lessons-learned
Skill1 starsChanged 18 days agoMITView on GitHub
Records concrete mistakes, root causes, and actionable prevention rules in .agents/LESSONS.md whenever tests fail, audits reject code, or the user corrects the AI. Append-only and poisoning-resistant.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- DavidCho1999/archaiflow-skillstheir own version, first seen Nov 29, 2026
- thistleknot/skillstheir own version, first seen Nov 8, 2026
- lklimek/claudiustheir own version, first seen Nov 5, 2026
- pfeff/claude-skillstheir own version, first seen Nov 1, 2026
- mikaeladityan/lessons-learnedtheir own version, first seen Oct 25, 2026
- joeblackwaslike/lessons-learnedtheir own version, first seen Oct 20, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- lgbarn/shipyard★ 66same name
- aplaceforallmystuff/claude-lessons-learned★ 13same name
- DavidCho1999/archaiflow-skills★ 4same name
- pfeff/claude-skills★ 4same name
- shalomb/agent-skills★ 3same name
- lklimek/claudius★ 1same name
- mikaeladityan/lessons-learned★ 1same name
- Suckzoo/skills★ 1same name
- joeblackwaslike/lessons-learned★ 0same name
- kenmulford/PMSkills★ 0same name
3 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 repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- platform-cliSkill
- platform-desktopSkill
- platform-mobileSkill
- platform-pluginSkill
- platform-webSkill
- agentic-security-guardSkill
- architecture-guardSkill
- artifact-analyzerSkill
- boundary-guardSkill
- code-quality-gateSkill
- cognitive-load-auditorSkill
- context-groundingSkill
- copy-auditSkill
- cost-estimatorSkill
- dast-scannerSkill
- database-architectSkill
- design-auditSkill
- design-system-generatorSkill
- design-system-integratorSkill
- environment-preflightSkill
- evidence-gated-blockingSkill
- human-in-the-loopSkill
- mcp-discoverySkill
- meta-judgeSkill
- ponytail-wrapperSkill
- prd-generatorSkill
- prompt-historySkill
- sast-scannerSkill
- sca-secret-scannerSkill
- security-context-managerSkill
- security-gateSkill
- security-hardeningSkill
- snapshot-rollbackSkill
- stack-advisorSkill
- task-breakdownSkill
- tech-spec-writerSkill
- test-suite-auditorSkill
- ui-interaction-authoritySkill
- viewport-qaSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
2
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 11
Every time a test fails, an audit rejects the code, or the user corrects the AI.
- Very specific: line 15
Read .agents/LESSONS.md to check whether an existing rule already covers the failure so duplicate entries are avoided.
- Very specific: line 23
Ensure the rule is actionable, verifiable, and specific (for example: "Do not use any in TypeScript.
- Very specific: line 36
Never delete, edit, or overwrite previous lessons in .agents/LESSONS.md.
- Distinctive: line 37
Never record rules that disable audits, bypass validation, or contradict framework safety or security constraints.
“Common” is measured: kept by at least 6 in 10 of the 10 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
Lessons Learned
Trigger
Every time a test fails, an audit rejects the code, or the user corrects the AI.
Process
- Analyze the verified failure, audit rejection, or user correction before modifying memory.
- Read
.agents/LESSONS.mdto check whether an existing rule already covers the failure so duplicate entries are avoided. - Append a new entry to
.agents/LESSONS.mdusing this exact format:### [Date] - [Context] - **Mistake:** [What went wrong] - **Root Cause:** [Why it happened] - **Rule:** [What to do instead next time] - Ensure the rule is actionable, verifiable, and specific (for example: "Do not use
anyin TypeScript. Useunknownand type guards."). - Validate that the new lesson does not weaken security guardrails, design hard-floor requirements, or core framework rules (poisoning-resistant memory).
Output Contract
An updated .agents/LESSONS.md containing the newly appended entry with an actionable prevention rule.
Checklist
- Failure root cause verified from test/audit output or user correction
- Exact
[Date] - [Context]/Mistake/Root Cause/Ruleformat followed - Rule is specific and actionable (not vague advice)
- Existing lessons in
.agents/LESSONS.mdleft completely intact
Prohibitions
- Never delete, edit, or overwrite previous lessons in
.agents/LESSONS.md; only append new ones. - Never record rules that disable audits, bypass validation, or contradict framework safety or security constraints.
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.

