continuous-learning
Skill19 starsChanged 10 months agoMITView on GitHub
Promote valuable session learnings into reusable, triggerable skill files in ~/.claude/skills/learned/. Unlike Claude Code's built-in memory (which captures conversational facts and preferences), this skill extracts structured patterns — error resolutions, user corrections, workarounds, debugging techniques, project conventions — that future sessions can match against specific triggers. Use at end of a session (typically via Stop hook), after solving a hard bug, when the user says "save what we learned", "remember this for next time", or "extract patterns from this session".
31 other projects use a version of this.
Adopted by
Most recently taken up by
- me-workspace/orchestrator-operational-agent-skillstheir own version, first seen Sep 29, 2026
- best-radar/bradar-everything-claude-codetheir own version, first seen Sep 6, 2026
- tarrragon/claude-skillstheir own version, first seen Sep 1, 2026
- Lukasbrujula/claude-code-frameworktheir own version, first seen Jul 6, 2026
- ckorhonen/claude-skillstheir own version, first seen Jul 5, 2026
- zkw15555506767-boop/claude-skillstheir own version, first seen Jun 24, 2026
Used with
Projects with it also use project-guidelines-example, clickhouse-io and 8 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.
WorldFlowAISkillproject-guidelines-example
Also in 14 projects that use this
WorldFlowAISkillclickhouse-io
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
Also in 10 projects that use this
saxon-ySkillconfigure-ecc
Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.
Also in 5 projects that use this
FaisalAlqarniSkillspringboot-tdd
Test-driven development for Spring Boot using JUnit 5, Mockito, MockMvc, Testcontainers, and JaCoCo. Use when adding features, fixing bugs, or refactoring.
Also in 7 projects that use this
FaisalAlqarniSkilldjango-verification
Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.
Also in 7 projects that use this
joneqianSkillcontinuous-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 10 projects that use this
- +1 more from FaisalAlqarni
Other versions31 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 31
- WorldFlowAI/everything-claude-code★ 4ksame name
- rohitg00/awesome-claude-code-toolkit★ 2.7ksame name
- xu-xiang/everything-claude-code-zh★ 2ksame name
- loulanyue/awesome-claude-notes★ 272same name
- tpavanipradeep/everything-claude-code★ 134same name
- hellangleZ/burn-in-cceverywhere-ralph★ 112same name
- MRCalderon3D/everything-game-dev-code★ 90same name
- Jamkris/everything-gemini-code★ 87same name
- ahmed3elshaer/everything-claude-code-mobile★ 66same name
- codelably/harmony-claude-code★ 43same name
21 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 repository39 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
- deep-brainstormSkill
- design-languageSkill
- e2e-testingSkill
- eval-harnessSkill
- grumpy-reviewerSkill
- implement-phaseSkill
- implement-planSkill
- iterate-planSkill
- prompt-generatorSkill
- security-reviewSkill
- ship-issueSkill
- skill-visualizerSkill
- strategic-compactSkill
- team-brainstormSkill
- team-create-planSkill
- team-implement-plan-fullSkill
- team-implement-planSkill
- tt-brainstormSkill
- 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
- workflow-guideSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 10 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
After solving a particularly difficult bug.
- Distinctive: line 38
When the user corrects an approach (indicating a learning opportunity).
- Distinctive: line 39
After discovering an undocumented workaround.
- Distinctive: line 40
When a debugging technique proves especially effective.
- Distinctive: line 41
After understanding project-specific conventions.
- Distinctive: line 112
Before saving, check for existing similar patterns:
- Very specific: line 130
Write the pattern file and update the index.
- Distinctive: line 186
Don't save obvious solutions — the first Google result doesn't need saving.
- Distinctive: line 187
Don't over-generalize — keep patterns focused and actionable.
- Distinctive: line 188
Don't skip validation — patterns should be tested before high confidence.
- Distinctive: line 189
Don't ignore updates — revisit patterns as frameworks evolve.
- Very specific: line 201
With
context-saver: when context-saver runs at session end, it can include a "Patterns Discovered This Session" section pointing into …
“Common” is measured: kept by at least 6 in 10 of the 25 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
Extract patterns from sessions and save them as structured skill files that future sessions can consult by trigger match. This is the layer above Claude Code's auto-memory: memory captures facts and preferences about you and your projects; continuous-learning captures reusable problem-solving patterns that need more structure than a memory entry can carry.
Scope — how this differs from auto-memory
Claude Code has a built-in memory system (~/.claude/projects/.../memory/) that captures user, feedback, project, and reference memories — short, typed entries loaded into every future conversation's context. Use that for:
- Facts about the user's role, preferences, responsibilities.
- Corrections you want applied in all future work ("don't mock the database in integration tests").
- Project-state facts like deadlines, decisions, stakeholders.
- Pointers to external systems.
This skill handles the things auto-memory doesn't:
- Triggerable patterns — full YAML files with an exact error-message trigger, root-cause analysis, and copy-pasteable fix. When that same error shows up six months later, the pattern surfaces.
- Structured templates per pattern type — not just free text. Consistent shape across error resolutions, user corrections, workarounds, debugging techniques, project-specific conventions.
- Reusable skills layer — files land in
~/.claude/skills/learned/, discoverable as portable skills across projects and machines. - Usage + confidence tracking — a pattern that's worked 5 times carries more weight than one that's worked once.
Rule of thumb: a one-line fact goes in memory. A reproducible fix-recipe or debugging playbook goes here.
When to use
Automatic triggers:
- Stop hook — runs when a Claude Code session ends. See
references/hook-setup.md. - Session timeout — same mechanism.
Manual triggers:
- After solving a particularly difficult bug.
- When the user corrects an approach (indicating a learning opportunity).
- After discovering an undocumented workaround.
- When a debugging technique proves especially effective.
- After understanding project-specific conventions.
Signal phrases to watch for:
- "Save what we learned"
- "Remember this for next time"
- "This should be a pattern"
- "Extract learnings from this session"
- "What patterns did we discover?"
The five pattern types
Each pattern gets classified into one of five types. Full YAML templates and extraction criteria for each → references/pattern-types.md. Detailed examples → references/examples.md. Brief summary:
- Error resolution — non-obvious fixes to errors where the root cause matters. Trigger is the exact error message or pattern.
- User correction — insights when the user redirected your approach. Captures original-vs-corrected-vs-why.
- Workaround — clever solutions to limitations in tools, frameworks, or environments. Includes "when will this become unnecessary."
- Debugging technique — systematic approaches for specific problem classes. Includes indicators for "when to reach for this."
- Project-specific — conventions unique to one codebase (architecture, naming, testing, deployment). Must include concrete examples and rationale.
Extraction workflow
Step 1 — Session analysis
Scan the session for these learning signals:
- Error/exception events — error messages, stack traces, failed commands. Note which required multiple attempts.
- User corrections — messages where the user redirected the approach; phrases like "actually", "instead", "don't do that".
- Workarounds — "can't do X, so we'll do Y"; framework/tool limitations encountered.
- Debugging journeys — investigation sequences; hypotheses tested and results.
- Project conventions — corrections about "how we do things here"; architectural patterns discovered.
Step 2 — Threshold evaluation
Apply the extraction threshold to filter noise:
Include if:
- Pattern would save significant time if encountered again.
- Solution wasn't immediately obvious from error/docs.
- Pattern is specific enough to be actionable.
- Context is clear enough for future matching.
Exclude if:
- Solution was the first result in documentation.
- Pattern is too generic to be useful.
- Context is too narrow (one-time unique situation).
- Better patterns already exist for this case.
Configurable threshold — tune via ~/.claude/config/learning.yaml:
extraction:
threshold: 0.7 # 0.0-1.0, higher = more selective
min_investigation_steps: 3 # Minimum complexity for extraction
require_root_cause: true # Must understand why, not just what
max_patterns_per_session: 10 # Prevent noiseStep 3 — Structuring
For each pattern that passes threshold:
- Classify type into one of the five categories.
- Extract context — framework, version, environment.
- Formulate trigger — when should this pattern be recalled?
- Structure solution per the type-specific template (
references/pattern-types.md). Pattern-body fields only — the surrounding file wrapper (metadata,usage:,confidence:,tags:) lives inreferences/storage-format.md. - Assign confidence — initial confidence based on validation level (goes in the wrapper's
confidence:block, not the pattern body).
Step 4 — Deduplication
Before saving, check for existing similar patterns:
1. Load existing patterns from ~/.claude/skills/learned/
2. For each candidate:
a. Search for patterns with similar triggers
b. Search for patterns in same category/context
c. Calculate similarity score
3. If similarity > 0.8:
a. Merge — combine insights, increment times_applied
b. Update — if new pattern is more complete, replace
4. If similarity < 0.8: save as new patternSimilarity by type: error patterns compare error-message patterns; user corrections compare original/corrected approaches; workarounds compare limitations+solutions; debugging compares problem classes; project-specific compares project+category.
Step 5 — Storage
Write the pattern file and update the index. Full file layout, naming, and schema → references/storage-format.md.
Quality criteria
Scoring
Patterns that score ≥ the threshold get saved.
| Indicator | Weight |
| Non-obvious solution (answer wasn't in first search result) | High |
| Time investment (took significant debugging time) | High |
| Root-cause depth (understanding goes beyond symptoms) | High |
| Recurrence likelihood (likely to encounter again) | High |
| Transferability (applies beyond immediate context) | Medium |
| Specificity (clear trigger conditions) | Medium |
| Actionability (concrete steps, not abstract advice) | Medium |
quality_score = (
non_obvious * 0.20 +
time_investment * 0.15 +
root_cause_depth * 0.20 +
recurrence * 0.20 +
transferability * 0.10 +
specificity * 0.10 +
actionability * 0.05
)
# Save if quality_score >= threshold (default 0.7)What NOT to extract
- Documented in official docs (first page of results).
- Common knowledge for the technology stack.
- Insufficient context for future matching.
- Too narrow (unique one-time situation).
- Too broad (generic advice without specifics).
- Lacks root cause understanding.
- Would be outdated quickly (version-specific hacks).
- Duplicates existing patterns without adding value.
Best practices
Effective capture:
- Be specific: "React
useStatestale closure in event handler" > "React bug". - Include context: framework, version, environment.
- Explain why — root cause beats surface fix.
- Show examples — concrete code beats abstract description.
Avoiding anti-patterns:
- Don't save obvious solutions — the first Google result doesn't need saving.
- Don't over-generalize — keep patterns focused and actionable.
- Don't skip validation — patterns should be tested before high confidence.
- Don't ignore updates — revisit patterns as frameworks evolve.
Pattern hygiene:
- Review patterns periodically (monthly suggested).
- Deprecate patterns for outdated framework versions.
- Merge similar patterns to reduce duplication.
- Increase confidence only after successful reuse.
Integration points
With context-saver: when context-saver runs at session end, it can include a "Patterns Discovered This Session" section pointing into ~/.claude/skills/learned/.
With brainstorm: learned patterns can inform brainstorming sessions — surface relevant patterns when discussing technical approaches, reference past workarounds when evaluating options.
With future sessions: at session start, patterns are loaded and available for automatic matching when similar errors occur, explicit recall ("what did we learn about X?"), and pattern suggestions during debugging.
References (loaded on demand)
references/pattern-types.md— Full YAML templates and extraction criteria for all five pattern typesreferences/examples.md— Complete worked examples, one per pattern typereferences/storage-format.md— Directory layout, file naming, skill file schema, index file structure, lifecyclereferences/hook-setup.md— Stop hook configuration, options, lifecycle integration, testing
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.

