/devflow:continuous-learningfrom DevFlow Skills Collection
Saves multi-step problem-solving procedures from the current session as standalone skills that auto-load in future sessions when the same trigger appears. Keeps up to 20 skills, retiring near-duplicates.
Ships in DevFlow Skills Collection. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Reference files (open one when a step points to it):
references/examples.md: Example learned skillsreferences/pattern-types.md: Pattern types — criteria and body sectionsreferences/storage-format.md: Storage formatPromote a reusable problem-solving procedure from this session into a standalone skill that Claude Code discovers by itself. Each learned skill lives at ~/.claude/skills/learned-<slug>/SKILL.md; its description appears in every future session's skill listing, so the model loads the body when the trigger shows up again.
Claude Code's auto-memory (~/.claude/projects/<project>/memory/) already records preferences, corrections, project facts and pointers, one line each, and loads them into later sessions. This skill does not duplicate it.
| The learning... | Goes to |
|---|---|
| Fits in one memory line — a preference, a fact, a correction ("don't mock the database in integration tests", "this repo uses named exports") | Auto-memory. No skill. |
| Is a multi-step procedure with a recognisable trigger — an exact error message, a named tool limitation, a symptom pattern, a named project task | A learned skill (this workflow) |
When a candidate turns out to be a one-liner, say it belongs in memory and move on.
Only when invoked; nothing triggers this skill automatically.
/continuous-learning.implement-phase and tt-implement-phase do at phase completion).There is no hook for this skill. A Stop hook fires after every response rather than once at session end, and a hook cannot run a skill, so a hook-driven version would fire on every turn or not at all.
Four types qualify. Per-type criteria and body sections → references/pattern-types.md. Complete examples → references/examples.md.
User corrections and single-rule conventions are not a type here; they go to auto-memory.
Scan the session for:
Promote a candidate only if all of these hold:
Never save credentials, tokens, keys, passwords or personal data; use placeholders in any example.
Create or update at most 3 learned skills per run — pick the strongest candidates.
Glob ~/.claude/skills/learned-*/SKILL.md and read each description.
Cap: 20 learned skills. Every learned skill's description sits in the always-loaded skill listing, so the set has to stay small. If a new skill would take the count past 20, first propose merging two related skills or retiring one (its "Retire when" condition is met, the tool or version is gone, it never applied again), and add the new one only after a slot is free.
Show the user the planned changes: for each, learned-<slug>, whether it is new / updated / merged / retired, and its description. Write after they confirm — these files load into every future session.
If no one can confirm — you were called by another skill running as a forked or background subagent, so AskUserQuestion is not in your tool list — write nothing. Return the planned changes as PROPOSED LEARNED SKILLS (one line each, as above) so the caller can show them to the user and re-run this skill to write the approved ones.
Each learned skill is a SKILL.md with frontmatter name: learned-<slug> and a trigger-specific description of at most 300 characters, then a short body: trigger, pattern, fix, evidence, dates. Exact layout and frontmatter rules → references/storage-format.md. Retiring a skill means deleting its learned-<slug>/ directory. New or changed skills are available from the next session on.
Report only what happened in this run:
Continuous learning
Created: learned-prisma-client-not-generated — PrismaClientInitializationError after a schema change in Docker/CI
Updated: learned-jest-esm-json-imports — added evidence line 2026-10-06
Retired: none
Left to auto-memory: "acme-frontend colocates tests next to source files"
Skipped: generic TypeScript null-check error — first result in the docs
Learned skills: 7 / 20
If nothing qualified, say so in one line.
When a run touches the set, also check for learned skills whose "Retire when" condition is now met and for pairs with overlapping triggers; include those retirements and merges in the Step 4 proposal.
references/pattern-types.md — per-type criteria and body sectionsreferences/storage-format.md — location, naming, frontmatter rules, body layout, updating, merging, retiringreferences/examples.md — one complete learned skill per type, plus examples that belong in auto-memory insteadWhat SKILL.md sets; muted values are Claude Code's defaults
35 skills in this plugin
/adrDocument architectural decisions in standardized ADR format. This skill should be used when making significant technical decisions, choosing between approaches, establishing patterns, or when other skills (create-plan, implement-plan, brainstorm) identify decisions that need documentation. Triggers on "document decision", "create ADR", "architectural decision", or automatically when invoked by other skills during planning and implementation./adversarial-reviewerAdversarial code review by three independent subagent personas (Saboteur, New Hire, Security Auditor) running in parallel, isolated contexts that know nothing of the author's intent or Claude's earlier conclusions. Reviews a diff by default (staged/unstaged, a ref or a file); --codebase reviews a whole repo or subtree for tech debt, attack surface and knowledge silos. Use before merging a PR; when the user asks for a hostile, harsh, critical, skeptical or second-opinion review; when a /devflow:code-review came back suspiciously clean; when the user is tired after a long session or has a gut feeling something is off; or for a quick audit of an inherited repo ("what am I inheriting"). Differs from /devflow:code-review (routine per-phase review, no isolation) and /devflow:security-review (single-lens OWASP depth).npx claudepluginhub mhylle/claude-skills-collection --plugin devflowOther plugins' skills for the same job