learn
Skill67 starsChanged 4 months agoMITView on GitHub
Capture structured learnings (gotcha, pattern, decision, bug-fix) as JSONL per project. Cross-project searchable.
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 repository24 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- autoresearchSkill
- brainstormSkill
- bug-huntSkill
- check-resolvableSkill
- compSkill
- debugSkill
- dialectic-reviewSkill
- distillSkill
- finalizeSkill
- implementSkill
- plan-taskSkill
- premortemSkill
- red-teamSkill
- researchSkill
- retroSkill
- reviewSkill
- rsbSkill
- sessionsSkill
- shipSkill
- socratesSkill
- tradeoffSkill
- verifySkill
- wrapupSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 170 edited versions we read keep these.
3
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 31
If no arguments at all, ask: "What did you learn?
- Distinctive: line 35
Use these to classify learnings and to infer type when not specified:
- Very specific: line 85
Read the .claude-learnings.jsonl file in the current project directory.
- Very specific: line 98
If no learnings file exists, say: "No learnings captured yet for this project.
- Very specific: line 105
Read each file and search for entries where summary, detail, or tags contain the search term (case-insensitive).
- Distinctive: line 121
If no matches, say: "No learnings found matching '<term>' across any project."
“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
Structured Learning Capture
Capture reusable knowledge as structured JSONL entries in the current project directory. Each project gets its own .claude-learnings.jsonl file. Cross-project search supported.
Input
Arguments: $ARGUMENTS
Subcommand Routing
Parse the first word of $ARGUMENTS:
| First word | Action |
list | Show all learnings for current project |
search | Search ALL projects for matching learnings |
gotcha | Capture with type=gotcha, rest is description |
pattern | Capture with type=pattern, rest is description |
decision | Capture with type=decision, rest is description |
bug-fix | Capture with type=bug-fix, rest is description |
| anything else | Capture with type inferred from context (default: pattern) |
If no arguments at all, ask: "What did you learn? Describe it and I'll capture it."
Type Definitions
Use these to classify learnings and to infer type when not specified:
| Type | When to use | Example |
gotcha | A trap or pitfall to avoid next time | "psycopg2 cursor.copy_expert needs binary mode for COPY" |
pattern | A reusable approach or technique | "use pd.read_csv with encoding='utf-8-sig' for BOM files" |
decision | A choice made with rationale worth preserving | "chose GMM over K-Means because clusters are non-spherical" |
bug-fix | What broke and why, so it never recurs | "capacity_changes double-counted because JOIN lacked date filter" |
Type Inference Rules (when no type specified)
- Contains "don't", "avoid", "careful", "trap", "gotcha", "watch out", "never" -->
gotcha - Contains "chose", "decided", "picked", "went with", "because", "over" -->
decision - Contains "broke", "fixed", "bug", "caused by", "root cause", "was wrong" -->
bug-fix - Default -->
pattern
Capture Process (for gotcha/pattern/decision/bug-fix)
Step 1: Determine the File Path
The learning file lives in the current project root (the directory containing CLAUDE.md, or the current working directory if no CLAUDE.md is found):
<project-root>/.claude-learnings.jsonlStep 2: Compose the Entry
Build a JSON object with these fields:
{"type": "gotcha|pattern|decision|bug-fix", "summary": "one-line summary", "detail": "full description with context", "date": "YYYY-MM-DD", "tags": ["tag1", "tag2"]}Rules:
summary: One sentence, max ~80 chars. This is the scannable headline.detail: The full description from the user, plus any relevant context (what project, what file, what triggered it). Include enough that someone reading this 6 months later understands it.date: Today's date in YYYY-MM-DD format.tags: 2-4 tags derived from the content. Use lowercase, hyphenated terms. Include the technology/tool involved (e.g., "pandas", "postgresql", "git") and the domain (e.g., "data-pipeline", "deployment", "testing").
Step 3: Write the Entry
Append the JSON object as a single line to the .claude-learnings.jsonl file. One entry per line, no trailing comma, no array wrapper.
Step 4: Confirm
Print the captured entry formatted for readability and state the file path it was written to.
List Process
Read the .claude-learnings.jsonl file in the current project directory. Display all entries grouped by type, with newest first within each group. Format:
## Learnings for <project-name> (N total)
### Gotchas (N)
- [2025-03-15] one-line summary
detail text here
### Patterns (N)
...If no learnings file exists, say: "No learnings captured yet for this project. Use /learn <description> to start."
Search Process
Arguments after search: the search term(s).
- Glob for all
.claude-learnings.jsonlfiles recursively. Search root in this order: (a)~/Projects/if it exists, (b) otherwise the current working directory. Do NOT fall back to globbing the entire home directory (~/) — on a developer machine that would traversenode_modules,.git, cache folders, and thousands of irrelevant paths. Users who keep projects in a non-standard location should adjust this skill (or symlink their projects directory to~/Projects) rather than widening the search scope. - Read each file and search for entries where
summary,detail, ortagscontain the search term (case-insensitive). - Display matching entries grouped by project, with the project path as a header.
Format:
## Search results for "<term>" (N matches across M projects)
### ~/Projects/my-web-app
- [pattern] [2025-03-15] one-line summary
detail text
### ~/Projects/data-pipeline
- [gotcha] [2025-02-10] one-line summary
detail textIf no matches, say: "No learnings found matching '<term>' across any project."
Integration Notes
- This skill complements MEMORY.md. Use
/learnfor atomic, searchable facts. Use MEMORY.md for narrative context, status, and cross-cutting decisions. - The
/debugskill suggests/learn gotchaafter fixing a bug. The/retroskill can bulk-capture learnings from session review. - Learnings files are gitignored by convention (they're local workflow artifacts, not project code). Add
.claude-learnings.jsonlto.gitignoreif the project is version-controlled.
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.

