continuous-learning
Skill20 starsChanged 35 days agoMITView on GitHub
Turn a hard-won, multi-step procedure from the current session into its own small skill at ~/.claude/skills/learned-<slug>/SKILL.md, so future sessions load it when the same trigger shows up again (an exact error, a tool limitation, a recurring debugging situation, a multi-step project task). On demand only: use when the user says "save what we learned", "make this a pattern", "remember how we fixed this", or runs /continuous-learning; offer it at the natural end of a long session. One-line facts, preferences and corrections belong in Claude Code's auto-memory, not here. Keeps at most 20 learned skills, updating or retiring existing ones instead of adding near-duplicates.
42 other projects use a version of this.
Adopted by
Most recently taken up by
- Rojios/everything-claude-codetheir own version, first seen Nov 8, 2026
- ahmadvahidi/skill-atlastheir own version, first seen Nov 8, 2026
- shetengteng/skillix-hubtheir own version, first seen Nov 8, 2026
- XD3an/cc-plustheir own version, first seen Nov 7, 2026
- pankaj-mahaur/Agent-Daemontheir own version, first seen Nov 6, 2026
- darknecrocities/SkillBuildertheir own version, first seen Nov 1, 2026
Used with
Projects with it also use project-guidelines-example, clickhouse-io and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
HABUBUSSSkillproject-guidelines-example
Also in 7 projects that use this
HABUBUSSSkillclickhouse-io
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
Also in 6 projects that use this
mstuder-slalomSkillcontinuous-learning-v2
Instinct-based learning system that observes sessions via hooks, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents.
Also in 7 projects that use this
Microsoft AzureSkilliterative-retrieval
Max-3-cycle protocol for agent sub-tasks with WHY context and coordinator validation. Use when spawning sub-agents to complete scoped work.
Also in 9 projects that use this
mstuder-slalomSkilldjango-verification
Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.
Also in 4 projects that use this
nek1987Skillpostgres-patterns
PostgreSQL patterns for reviewing migrations and writing efficient queries. Use when reviewing Alembic migrations, optimizing queries, or debugging database issues.
Also in 7 projects that use this
- +1 more from mstuder-slalom
- +1 more from HABUBUSS
Other versions42 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 42
- blader/claude-code-continuous-learning-skill★ 2.4ksame name
- blader/Claudeception★ 2.4ksame name
- loulanyue/awesome-claude-notes★ 272same name
- MRCalderon3D/everything-game-dev-code★ 105same name
- Fmarzochi/EGC★ 61same name
- AlexMikhalev/claude-code-continuous-learning-skill★ 36same name
- vneseyoungster/ChocoVine★ 27same name
- ckorhonen/claude-skills★ 17same name
- darknecrocities/SkillBuilder★ 13same name
- xfstudio/skills★ 9same name
32 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- adrSkill
- adversarial-reviewerSkill
- agent-creatorSkill
- brainstormSkill
- codebase-auditSkill
- codebase-researchSkill
- code-quality-auditSkill
- code-reviewSkill
- context-saverSkill
- create-planSkill
- design-languageSkill
- e2e-testingSkill
- eval-harnessSkill
- grumpy-reviewerSkill
- implement-phaseSkill
- implement-planSkill
- iterate-planSkill
- prompt-generatorSkill
- security-reviewSkill
- ship-issueSkill
- skill-visualizerSkill
- strategic-compactSkill
- tt-create-build-loopSkill
- tt-create-planSkill
- tt-implement-phaseSkill
- tt-implement-planSkill
- tt-workflow-auditSkill
- tt-workflow-buildSkill
- tt-workflow-runSkill
- user-storySkill
- verification-loopSkill
- video-explainerSkill
- visual-explainerSkill
- workflow-guideSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 37 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 51
When a candidate turns out to be a one-liner, say it belongs in memory and move on.
- Distinctive: line 57
Only when invoked; nothing triggers this skill automatically.
- Distinctive: line 99
Never save credentials, tokens, keys, passwords or personal data.
- Distinctive: line 101
Create or update at most 3 learned skills per run — pick the strongest candidates.
- Distinctive: line 133
If nothing qualified, say so in one line.
- Distinctive: line 139
Description: start with "Use when", name the trigger concretely (exact error text in quotes, tool and version, project name), then the fix …
- Distinctive: line 144
When a run touches the set, also check for learned skills whose "Retire when" condition is now met and for pairs with overlapping triggers.
“Common” is measured: kept by at least 6 in 10 of the 37 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Continuous Learning
<!-- contents: generated by tests/skill_structure.py --write; edit headings, not this block -->Contents
- Scope — auto-memory or learned skill?
- When to run
- Pattern types
- Workflow
- Step 1 — Find candidates
- Step 2 — Apply the bar
- Step 3 — Check existing learned skills
- Step 4 — Confirm and write
- Step 5 — Report
- Writing a good learned skill
- References (loaded on demand)
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 format
<!-- /contents -->Promote 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.
Scope — auto-memory or learned skill?
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.
When to run
Only when invoked; nothing triggers this skill automatically.
- The user asks: "save what we learned", "make this a pattern", "remember how we fixed this", "extract learnings from this session", or
/continuous-learning. - Another skill calls it at a natural boundary (
implement-phaseandtt-implement-phasedo at phase completion). - At the natural end of a long session in which a hard problem was solved, offer it in one line ("Want me to save the Prisma-in-CI fix as a learned skill?") and run it only if the user agrees.
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.
Pattern types
Four types qualify. Per-type criteria and body sections → references/pattern-types.md. Complete examples → references/examples.md.
- Error resolution — a non-obvious fix for a specific error. Trigger: the exact error text.
- Workaround — a way around a tool, framework or environment limitation. Includes when it becomes unnecessary.
- Debugging technique — a repeatable investigation sequence for a recognisable problem class.
- Project procedure — a multi-step task specific to one codebase (release, migration, client regeneration). The description names the project.
User corrections and single-rule conventions are not a type here; they go to auto-memory.
Workflow
Step 1 — Find candidates
Scan the session for:
- Errors that took more than one attempt to fix, and the root cause that was found.
- "Can't do X, so we did Y" moments.
- Investigation sequences that located a non-obvious cause.
- Multi-step project tasks the user had to explain or that were worked out by trial.
Step 2 — Apply the bar
Promote a candidate only if all of these hold:
- It is a procedure (two or more steps), not a single rule.
- The trigger is concrete enough to recognise later — an error string, a tool and version, a symptom, a project and task name.
- The fix was not the first result in the official docs.
- The root cause or limitation is understood, not just the symptom silenced.
- It is likely to come up again, in this project or others.
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.
Step 3 — Check existing learned skills
Glob ~/.claude/skills/learned-*/SKILL.md and read each description.
- Same trigger or same root cause as an existing learned skill → update that skill (extend the fix, add an Evidence line, sharpen the description) instead of creating a near-duplicate.
- Related but with a different trigger → a new skill is fine; if the two would load in the same situations, merge them instead.
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.
Step 4 — Confirm and write
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.
Step 5 — Report
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 / 20If nothing qualified, say so in one line.
Writing a good learned skill
- Description: start with "Use when", name the trigger concretely (exact error text in quotes, tool and version, project name), then the fix in a few words. Leave out generic words ("debugging", "errors", "best practices") that would make it load for unrelated work.
- Body: fits on one screen; steps a future session can follow without this conversation.
- Evidence: dated, observable facts only — where it happened (repo), what was seen, what confirmed the fix (tests passed, command succeeded). No estimates of time saved or success rates.
- Retire when: the condition that makes the skill obsolete (upstream fix, version bump, migration finished).
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 (loaded on demand)
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 instead
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

