learn
Skill16 starsChanged 7 months agoMITView on GitHub
Extracts reusable patterns, lessons, and decisions from the current session and saves them to memory files. Run before End Session or before /compact to capture what was learned. Triggers on /learn or \"extract patterns\" or \"learn from this session\".
195 other projects use a version of this.
Adopted by
Most recently taken up by
- Doist/todoist-aitheir own version, first seen Nov 9, 2026
- Doist/todoist-clitheir own version, first seen Nov 8, 2026
- HughYau/AcademicForgetheir own version, first seen Nov 8, 2026
- dimsedra/skillstheir own version, first seen Nov 8, 2026
- rajanrx/skillstheir own version, first seen Nov 8, 2026
- edwinidrus/dragonhoardtheir own version, first seen Nov 8, 2026
Used with
Projects with it also use add-anydoc, add-clidash and 10 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.
TomGranotSkilladd-anydoc
Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when agents need to read attached Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, or text-based PDF files without uploading them to a hosted parser.
Also in 5 projects that use this
TomGranotSkilladd-clidash
Add clidash — a zero-dependency, read-only web dashboard that derives its tabs and tables at runtime from any CLI that lists resources as JSON. Ships pre-wired for NanoClaw's ncl CLI (agent groups, sessions, channels, users, roles), plus message-activity charts, a log tail, and a read-only file viewer for group skills/CLAUDE.md/profiles.
Also in 5 projects that use this
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 11 projects that use this
Saqlain-811Skillios-sync
Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)
Also in 6 projects that use this
MicrosoftSkilladd-codex
Use Codex (CLI + AppServer) as the full agent provider — planning, tool orchestration, native compaction, MCP tools, session resume — in place of the Claude Agent SDK. ChatGPT subscription or OPENAI_API_KEY. Per-group via agent_provider. Distinct from using OpenAI as an MCP tool (where Claude remains the planner).
Also in 6 projects that use this
MicrosoftSkilladd-deltachat
Add DeltaChat channel integration via @deltachat/stdio-rpc-server. Native adapter — no Chat SDK bridge. Email-based messaging with end-to-end encryption.
Also in 6 projects that use this
- +5 more from TomGranot
- +1 more from microsoft
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 195
- garrytan/gstack★ 141ksame name
- rohitg00/ai-engineering-from-scratch★ 78ksame name
- gavrielc/nanoclaw★ 31ksame name
- nanocoai/nanoclaw★ 31ksame name
- qwibitai/nanoclaw★ 31ksame name
- tigerless-labs/autoharness★ 11ksame name
- tw93/claude-health★ 7.5ksame name
- tw93/Waza★ 7.5ksame name
- nykooi1/vibe-wise★ 3.5ksame name
- HughYau/AcademicForge★ 2.6ksame name
185 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 repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- actSkill
- security-checkSkill
- environment-checkSkill
- run-verificationSkill
- refactorSkill
- debug-session-archivedSkill
- generate-guardsSkill
- check-anthropicSkill
- code-reviewerSkill
- code-reviewSkill
- debug-sessionSkill
- end-sessionSkill
- evolve-checkSkill
- evolveSkill
- fix-bugSkill
- forgetSkill
- frontend-designSkill
- guardSkill
- kit-healthSkill
- map-codebaseSkill
- modeSkill
- parallel-prototypesSkill
- planSkill
- powershell-safeSkill
- product-riskSkill
- progress-reportSkill
- prototype-hypothesisSkill
- recallSkill
- refactoring-uiSkill
- scan-codebaseSkill
- scan-conventionsSkill
- search-firstSkill
- search-memorySkill
- shadow-codeSkill
- skill-creatorSkill
- smart-resumeSkill
- start-sessionSkill
- strategic-compactSkill
- tourSkill
- ux-heuristicsSkill
- verification-loopSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 10 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 170 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Allowed Tools: Read, Edit, Write, Glob, Grep
- Distinctive: line 36
Ask: "This conflicts with an existing memory.
- Very specific: line 37
If replacing: use /forget to invalidate the old entry, then save the new one
- Very specific: line 38
If keeping both: add a note (supersedes [old filename]) to the new entry
- Distinctive: line 69
If it worked: log a single N row silently — no further questions needed.
- Distinctive: line 74
If it needed a correction: ask two follow-up questions:
- Distinctive: line 91
If the user's answer is too vague to extract step + produced + needed, ask one more time:
- Very specific: line 94
Only write INSUFFICIENT DATA as a last resort — never skip scoring entirely.
- Very specific: line 98
Velocity log: If this session had an estimated task, append to tasks/velocity.md: | [date] | [task] | [estimated] | [actual] | [complexity …
- Distinctive: line 103
If any pattern appeared 3+ times: "Suggest creating skill: [name] — run /evolve to cluster"
- Distinctive: line 109
Never delete existing entries — only append
- Distinctive: line 110
Keep entries concise — one lesson per entry
- Distinctive: line 111
Run before End Session to preserve session knowledge
- Very specific: line 112
Run before /compact to avoid losing insights
- Distinctive: line 113
If a pattern recurs across sessions, it belongs in a skill not just lessons.md
“Common” is measured: kept by at least 6 in 10 of the 170 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
Skill: learn
Trigger: /learn or "extract patterns" or "learn from this session"
Description: Extracts reusable patterns, lessons, and decisions from the current session and saves them to memory files. Run before End Session or before /compact to capture what was learned.
Allowed Tools: Read, Edit, Write, Glob, Grep
Steps
- Check
tasks/corrections_queue.md— if it has entries, read each one. These are prompts where you were corrected mid-session (auto-captured by hook). Convert each into a lesson entry using the format in step 3, then clear the file back to its header only (keep the two comment lines, delete the## dateentries). - Review the current conversation for:
- Bugs fixed and their root causes
- Patterns that worked well
- Mistakes made and how they were corrected
- Architectural decisions made
- Stack-specific gotchas discovered
- Conflict check before saving:
For each new lesson or decision, run:
Scan the results for contradictions — existing memory that says the opposite. If found:python tools/memory.py --search "[key term from lesson]" --top 3- Show both the old and new entry side by side
- Ask: "This conflicts with an existing memory. Replace it? (yes / keep both / skip)"
- If replacing: use
/forgetto invalidate the old entry, then save the new one - If keeping both: add a note
(supersedes [old filename])to the new entry
- Categorize findings:
- Bugs/errors → append to
.claude/memory/lessons.md(create if missing) - Architectural decisions → append to
.claude/memory/decisions.md(create if missing) - Rejected approaches → append to
tasks/regret.md(format:| Date | Approach | Why Rejected |) - Repeated patterns (3+ times) → flag as skill candidate
- Bugs/errors → append to
- Format each entry as:
## [YYYY-MM-DD] - [short title] **Context:** what you were doing **Problem:** what went wrong or what was learned **Solution/Pattern:** what works **Apply when:** trigger conditions - Global lessons check: For each lesson, ask: "Does this apply beyond this project?" If yes, also append to
~/.claude/global-lessons.md:## [YYYY-MM-DD] - [title] **Source:** [project name] **Pattern:** [what works] **Apply when:** [trigger] Skill scoring (interactive — ask, don't assume):
For each skill that fired this session, ask the user:
"Did [skill name] work correctly this session, or did it need a correction?"
If it worked: log a single N row silently — no further questions needed.
| [date] | [skill] | all | [what it was used for] | N | minor | - | - | - |If it needed a correction: ask two follow-up questions:
"Which step went wrong — and what did it produce vs what you needed?" "How bad was it? (minor = small fix / major = wrong approach / silent = not caught until later)"
Take their natural-language answer and translate it into the structured row:
| [date] | [skill] | step [N] | [used for] | Y | [severity] | Step [N]: produced [X], needed [Y]. Fixed by: [Z]. | manual | - |Translation rules:
- Extract a step number from their description (or infer from the skill's step list)
- "Produced X" = what Claude actually did or output
- "Needed Y" = what should have happened
- "Fixed by Z" = the correction given (brief)
Code Fixed=manual(code was corrected in the session) or-(no code change needed)Skill Patched= always-when first logged; /evolve fills this in when it patches the skill
If the user's answer is too vague to extract step + produced + needed, ask one more time:
"What specifically did it produce vs what you wanted?"
Only write
INSUFFICIENT DATAas a last resort — never skip scoring entirely.Severity guide:
minor= small correction, close output |major= wrong approach or significant rework |silent= failure not caught until later, discovered downstream- Velocity log: If this session had an estimated task, append to
tasks/velocity.md:| [date] | [task] | [estimated] | [actual] | [complexity 1-5] | [notes] | - After writing:
- Report: "Extracted N lessons: [list titles]"
- If any pattern appeared 3+ times: "Suggest creating skill: [name] — run /evolve to cluster"
Notes
- Never delete existing entries — only append
- Keep entries concise — one lesson per entry
- Run before End Session to preserve session knowledge
- Run before
/compactto avoid losing insights - If a pattern recurs across sessions, it belongs in a skill not just lessons.md
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.

