From dev-toolkit
Capture a durable, generalizable learning — a preference, project convention, workflow/infra fact, or hard-won approach — into docs/context/learnings.md, promoting any hard rule to agent/AGENTS.md.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-toolkit:extract-learningsWhen to use
A turn revealed something durable — a user preference, a project convention not in agent/AGENTS.md, a generalizable correction, a workflow/infra fact, or a working approach found after trial-and-error. MUST self-check at the end of any multi-step session that established a new file/convention or pinned down setup wiring.
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Write down **non-obvious** things from the current chat — user preferences, project conventions, recurring mistakes, hard-won setup recipes — before they're lost.
Write down non-obvious things from the current chat — user preferences, project conventions, recurring mistakes, hard-won setup recipes — before they're lost.
This skill is the project's memory of record, and it takes precedence over personal/global agent memory. Capture durable project facts here, in
docs/context/learnings.md(and hard rules inagent/AGENTS.md) — do not also write the same fact to~/.claude/projects/<dir>/memory/. The repo is the shared brain; per-user memory is not.
Fire when the turn revealed one of these:
agent/AGENTS.md or docs/context/.<file> need a dev-server restart to apply — they aren't hot-reloaded."Skip when:
agent/AGENTS.md § Hard rules, docs/decisions.md, or docs/context/learnings.md.git log, or following an existing doc.Most turns won't trigger this. When unsure, don't fire. But always self-check at the end of any multi-step session: "what did I discover or establish here that the next session would need to know on day one?" — if the answer is non-empty, capture it. Even a sprawling setup compresses to one bullet that names the key files/paths/commands.
Re-read recent turns and ask:
.gitignore, environment, or how secrets flow change? → Capture the new convention.Zero bullets is fine — don't pad. Skip anything already in docs/context/learnings.md, agent/AGENTS.md § Hard rules, or docs/decisions.md.
docs/context/learnings.mdUnder the ## Entries heading, newest first:
- YYYY-MM-DD — one-line learning.
docs/context/open-decisions.md (or a dedicated doc under docs/) and tell the user.agent/AGENTS.mdIf the learning is a hard, non-negotiable rule ("Never X" / "Always X", no edge cases):
## Hard rules (never) in agent/AGENTS.md. Match the existing terse voice.docs/context/learnings.md (the only allowed edit beyond appending, same run only).Bar is high. When unsure, leave it in learnings.md and flag it. Never promote anything contradicting an existing Hard rule — stop and surface the conflict.
One short sentence:
Captured learning: <bullet>.Captured + promoted to agent/AGENTS.md: <rule>.docs/context/learnings.md. Append-only — the one exception is removing a bullet you just promoted, same run.agent/AGENTS.md outside ## Hard rules (never).npx claudepluginhub refactco/claude-toolkit --plugin dev-toolkitProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.