learned-lessons
Skill17 starsChanged 9 months agoMITView on GitHub
Accumulates knowledge from solved problems. Activates automatically after web search or MCP tools are used to solve technical problems. Also activates during debugging to check the knowledge base first. Invoke explicitly via "/til" to record a lesson manually. Triggers: "/til", "record a lesson", "what lessons do we have".
In this repository17 other files it gives its agents.
- action-itemsSkill
- aqal-reviewSkill
- directorsSkill
- dream-teamSkill
- frameworksSkill
- memory-healthSkill
- memory-initSkill
- miracle-securitySkill
- miracle-unstuckSkill
- orchestrateSkill
- project-statusSkill
- researching-webSkill
- search-memorySkill
- session-saveSkill
- checkupSkill
- transcript-to-proposalSkill
- triangulateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 12 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
After using MCP tools: if a technical problem was solved
- Distinctive: line 20
During debugging: check the knowledge base first
- Distinctive: line 25
After successfully using web search or MCP tools to solve a technical problem:
- Distinctive: line 27
Ask the user briefly:
- Very specific: line 32
If yes, add an entry to the knowledge base file (default: ~/.claude/knowledge-base.md):
- Distinctive: line 45
Add entries at the TOP of the file (newest lessons first)
- Distinctive: line 49
When systematic-debugging activates or during explicit debugging:
- Distinctive: line 52
Search for similar problems by keywords and tags
- Distinctive: line 53
If relevant match found, show the user
- Distinctive: line 54
If nothing found, continue normal debugging
- Distinctive: line 77
Do NOT record trivial things (typos, forgotten imports)
- Distinctive: line 101
Read this file during debugging to check for known solutions.
- Distinctive: line 102
Create it on first use if it does not exist.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Learned Lessons: Knowledge Base
Purpose
This skill accumulates knowledge from solved problems so you never search for the same thing twice.
When it activates
- After web search for problem solving: offer to record the lesson
- After using MCP tools: if a technical problem was solved
- During debugging: check the knowledge base first
- Explicit invocation: user says "/til" or "record a lesson"
Workflow after search/MCP
After successfully using web search or MCP tools to solve a technical problem:
- Ask the user briefly:
Record this lesson to the knowledge base? (yes/no) - If yes, add an entry to the knowledge base file (default:
~/.claude/knowledge-base.md):## [YYYY-MM-DD] Brief title **Problem**: What was not working **Symptoms**: How it manifested (errors, behavior) **Solution**: What helped **Tags**: #python #asyncio #networking - Add entries at the TOP of the file (newest lessons first)
Workflow during debugging
When systematic-debugging activates or during explicit debugging:
- Read
~/.claude/knowledge-base.mdfirst - Search for similar problems by keywords and tags
- If relevant match found, show the user
- If nothing found, continue normal debugging
Entry Format
Each entry contains:
| Field | Description |
| Date | When it was learned |
| Title | Gist in 5-7 words |
| Problem | What you were trying to do |
| Symptoms | Errors, traceback, behavior |
| Solution | Specific steps or code |
| Tags | For search (#python, #docker, #api) |
Commands
/til: record a lesson manually (asks for details)/lessons: show last 5 lessons/search-lessons <query>: search the knowledge base
Important
- Do NOT record trivial things (typos, forgotten imports)
- Record what was NON-OBVIOUS and required research
- Record SPECIFIC solutions, not general advice
- Tags help search. Use technologies and concepts
Example
User: why does requests hang in asyncio?
Claude: [uses web search]
Claude: Found it! requests blocks the event loop. Use
aiohttp or run_in_executor instead.
Record this lesson to the knowledge base? (yes/no)
User: yes
Claude: Recorded with tags #python #asyncio #requestsKnowledge Base
The file ~/.claude/knowledge-base.md contains all accumulated lessons.
Read this file during debugging to check for known solutions.
Create it on first use if it does not exist.
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.

