learn-and-improve

learn-and-improve is a skill for Claude Code from dwmkerr/claude-toolkit. It costs 61 tokens per session (1,790 once invoked), scanned B, original, MIT.

A configuration-review assistant for coding-agent setups. It examines reported friction involving skills, agents, hooks, permissions, and related configuration, then proposes targeted improvements.

In plain words
What is it for?
It helps review settings files, project instructions, memory, permissions, hooks, and plugin configuration when improving an agent setup.
Why use it?
It helps diagnose repeated setup problems instead of treating each frustrating session as a separate incident. It focuses on what happened, what should have happened, and whether the issue recurs.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the toolkit plugin — 15 skills, 3 commands, 1 agent shipped together

Good fit It helps review settings files, project instructions, memory, permissions, hooks, and plugin configuration when improving an agent setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dwmkerr/claude-toolkit/learn-and-improve
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dwmkerr/claude-toolkit --skill learn-and-improve
Clone the repo
git clone --depth 1 https://github.com/dwmkerr/claude-toolkit

Made for: Claude Code.

Or install toolkit, the plugin that ships this one along with the rest of its 15 skills, 3 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for learn-and-improve

README.md
[![agentmods](https://agentmods.dev/badge/skills/dwmkerr/claude-toolkit/learn-and-improve/github.svg)](https://agentmods.dev/skills/dwmkerr/claude-toolkit/learn-and-improve)
Your own site
<a href="https://agentmods.dev/skills/dwmkerr/claude-toolkit/learn-and-improve"><img src="https://agentmods.dev/badge/skills/dwmkerr/claude-toolkit/learn-and-improve/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for learn-and-improve

Your own site · 80×15
<a href="https://agentmods.dev/skills/dwmkerr/claude-toolkit/learn-and-improve"><img src="https://agentmods.dev/badge/skills/dwmkerr/claude-toolkit/learn-and-improve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,790 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.01790
Opus 5 $0.00030 $0.00895
Sonnet 5 $0.00012 $0.00358
Haiku 4.5 $0.00006 $0.00179

Measured 10d ago against content hash 465e637380a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

learn-and-improve scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- `~/.claude/settings.json` (user-level)
plugins/toolkit/skills/learn-and-improve/SKILL.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Learn and Improve

Analyze friction in the current session and propose targeted improvements to Claude Code configuration.

Workflow

Step 1: Understand the Problem

Ask the user what went wrong. If they've already described the issue, confirm your understanding.

Use AskUserQuestion to clarify:

  • What happened? (e.g., "skill X asked for permission to run Y")
  • What should have happened? (e.g., "it should just run without asking")
  • How often does this occur? (one-off vs recurring)

Step 2: Gather Diagnostic Context

Investigate the current configuration by reading these files (read only what exists):

Settings (permissions, hooks, env):

  • ~/.claude/settings.json (user-level)
  • .claude/settings.json (project-level, shared)
  • .claude/settings.local.json (project-level, local)

Memory (CLAUDE.md hierarchy):

  • ~/.claude/CLAUDE.md (user-level)
  • ./CLAUDE.md or ./.claude/CLAUDE.md (project-level)
  • ./CLAUDE.local.md (local overrides)
  • ./.claude/rules/*.md (modular rules)

Auto memory:

  • ~/.claude/projects/*/memory/MEMORY.md for the current project

Plugins & skills:

  • .claude-plugin/marketplace.json (if in a plugin repo)
  • Installed plugins: ~/.claude/plugins/cache/ (list directories)
  • Installed marketplaces: ~/.claude/plugins/marketplaces/ (list directories)

MCP servers:

  • .mcp.json (project)
  • ~/.claude.json or ~/.claude/mcp.json (user)

Also review the conversation history for:

  • Tool calls that were blocked or required permission prompts
  • Skills that were invoked (or should have been but weren't)
  • Agents that were spawned and their outcomes
  • Error messages or unexpected behavior

Step 3: Identify the Root Cause

Common root causes and their fixes — see Improvement Types for full details.

Symptom Likely Cause Fix Location
Permission prompt for a bash command Missing allow rule settings.json permissions.allow
Permission prompt for file read/write Missing path pattern settings.json permissions.allow
Skill not triggering Bad description triggers Skill SKILL.md frontmatter
Skill triggering on wrong tasks Description too broad Skill SKILL.md frontmatter
Repeated instructions ignored Not in CLAUDE.md CLAUDE.md (appropriate level)
Convention not followed per-filetype No path-scoped rule .claude/rules/ with paths frontmatter
Agent hitting permission walls Agent lacks permissionMode Agent frontmatter
MCP tool requiring permission Missing MCP allow rule settings.json permissions.allow
Hook not firing Wrong matcher or event settings.json hooks

Read the full file on GitHub · 145 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 145 lines · 61 tokens per session scan B 465e637380a5

Subscribe to this mod's changes

learn-and-improve is a skill published in the GitHub repository dwmkerr/claude-toolkit (23 stars, last pushed 3d ago), licensed MIT. It adds 61 tokens to every session and 1,790 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.