Structured Learning Capture
SkillAI & modelsCapture structured learnings (gotcha, pattern, decision, bug-fix) as JSONL per project. Cross-project searchable.
Use Structured Learning Capture in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Structured Learning Capture and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Structured Learning Capture skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by griffinhilly/claude-code-synthesis in skills/learn/SKILL.md and read by ahel’s review.
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.jsonl
Step 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 text
If no matches, say: "No learnings found matching '' 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.
Signals
- GitHub stars
- 67
- Forks
- 6
- Last commit
- Aug 2026
Advanced
- Item type
- skill
- Key
learn-griffinhilly- Source
- github.com/griffinhilly/claude-code-synthesis
github.com/griffinhilly/claude-code-synthesis
Related picks
Skill · baekenough
The pick for Postgrespandas-dataframe-analyzer
Skill · a5c-ai
The pick for Pandasxlsx
Skill · anthropics
The pick for Pandasskill-creator
Skill · anthropics
More in AI & modelstriage
Skill · mattpocock
More in AI & modelswayfinder
Skill · mattpocock
More in AI & models