self-learn
Skill6 starsChanged 15 days agoMITView on GitHub
Distills durable procedural rules from human corrections, search_web research, /browsing observations, code-review findings, and test failures into git-tracked docs/learnings/LESSONS.md without bloating AGENTS.md. Use after user feedback, tricky debugging, or external research (pairs with built-in /learn).
7 other projects use a version of this.
Adopted by
Most recently taken up by
- valpere/session-indexertheir own version, first seen Nov 24, 2026
- nurmdrafi/pi-nativetheir own version, first seen Nov 1, 2026
- Moriarty33/jb-kaizentheir own version, first seen Oct 20, 2026
- dongnguyenvie/bashcut-agent-kittheir own version, first seen Oct 13, 2026
- kun66126/claude-skillstheir own version, first seen Oct 8, 2026
- Pratiyush/llm-wikitheir own version, first seen Jun 14, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- Pratiyush/llm-wiki★ 383same name
- valpere/session-indexer★ 42same name
- dongnguyenvie/bashcut-agent-kit★ 6same name
- DAYLAB-HQ/claude-self-learn★ 4same name
- nurmdrafi/pi-native★ 4same name
- Moriarty33/jb-kaizen★ 1same name
- kun66126/claude-skills★ 0same name
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 repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- browsingSkill
- codebase-designSkill
- code-reviewSkill
- database-migrationSkill
- diagnosing-bugsSkill
- discoverSkill
- domain-modelingSkill
- handoffSkill
- implementSkill
- index-projectSkill
- officeSkill
- perf-auditSkill
- prSkill
- researchSkill
- safe-refactorSkill
- tddSkill
- to-specSkill
- to-ticketsSkill
- wave-executeSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Prefer executable guardrails (test case, validator check, or hook regex) over passive prose whenever possible.
- Very specific: line 34
Search docs/learnings/LESSONS.md before appending.
- Very specific: line 35
If the insight represents a domain invariant or costly architectural decision, also promote it to CONTEXT.md §6 (/domain-modeling) or …
- Very specific: line 37
When the user wants personal/IDE-level persistence outside the repository, also recommend /learn.
“Common” is measured: kept by at least 6 in 10 of the 6 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
Self-Learn (Multi-Source Procedural Memory Distillation)
Turn transient discoveries, human feedback ("teguran"), and failure trajectories into concise, verified, non-redundant rules in docs/learnings/LESSONS.md (maximum 50 active lessons) so every future session and teammate inherits the insight automatically via SessionStart.
Decision tree
- Did a durable insight emerge from any verified source below?
human-feedback: User correction, preference, or premise pushback.web-research: Primary documentation or2026best practices viasearch_web//research.browsing: Live DOM/network/UI verification discovery via/browsing.code-review:🔴 Blockingor🟡 Structuralfinding fromadversarial-reviewer,security-auditor, orarchitecture-planner.test-failure: Root cause of a non-trivial bug, CI regression, orStop/PostToolUsehook failure.- No (one-off typo or ephemeral WIP note) → Do not pollute
docs/learnings/LESSONS.md; keep ephemeral notes in.scratch/handoff.md. - Yes → Proceed to step 2.
- Is this already enforced deterministically by a hook, test, or
CONTEXT.mdinvariant?- Yes (and identical) → Do not duplicate; cross-link the existing rule/test ID.
- No (or an important nuance/gotcha was missed) → Distill and persist using the workflow below.
Distillation workflow
- Verify Before Writing:
- Cite the exact verified source (
URL,path:line, test/hook output, or user directive). Never store unverified guesses or secrets (<REDACTED>).
- Cite the exact verified source (
- Distill Into Actionable Rule (
<= 2lines):- Format:
| ID | Source | Scope / Trigger | Falsifiable Rule & Fix | Provenance | Status | - Prefer executable guardrails (test case, validator check, or hook regex) over passive prose whenever possible.
- Format:
- Deduplicate, Supersede & Prune (
<= 50Active Cap):- Search
docs/learnings/LESSONS.mdbefore appending. Merge overlapping rules or mark obsolete rulessuperseded by L-###so the file stays token-lean. - If the insight represents a domain invariant or costly architectural decision, also promote it to
CONTEXT.md§6 (/domain-modeling) ordocs/adr/NNNN-*.md.
- Search
- Pair with Built-In
/learn:- When the user wants personal/IDE-level persistence outside the repository, also recommend
/learn.
- When the user wants personal/IDE-level persistence outside the repository, also recommend
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.

