lesson-learned
Skill13 starsChanged 4 days agoMITView on GitHub
Turn session corrections and approved decisions into minimal edits to checks, skills, AGENTS.md, or decision logs.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- fmind/dotword for word, first seen Nov 8, 2026
- compozy/compozytheir own version, first seen Nov 7, 2026
- imMamdouhaboammar/kaku-chatgpt-harnesstheir own version, first seen Oct 25, 2026
- mementomori-co/maker-masterytheir own version, first seen Oct 25, 2026
- sueryue/Claude-Skilllstheir own version, first seen Jul 28, 2026
- nbirkner/digital-braintheir own version, first seen Apr 12, 2026
Other versions8 projects use a version of this.
Word for word · 1
- fmind/dot★ 13100% same
Edited · 0
None found.
Wrote their own version · 7
- compozy/compozy★ 2.9ksame name
- pedronauck/skills★ 649same name
- FelipeAngeli/skills★ 2same name
- mementomori-co/maker-mastery★ 2same name
- imMamdouhaboammar/kaku-chatgpt-harness★ 0same name
- nbirkner/digital-brain★ 0same name
- sueryue/Claude-Skillls★ 0same name
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 repository67 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dot_agents/AGENTS.mdAGENTS.md
- skills/repository-docs/references/agents.mdAGENTS.md
- chezmoiSkill
- dot-developmentSkill
- dot-releaseSkill
- dot-skillsSkill
- dot-verifySkill
- acliSkill
- agent-evaluationSkill
- agent-frameworksSkill
- agent-harnessesSkill
- agent-projectSkill
- agent-protocolsSkill
- agySkill
- airflowSkill
- auth-statusSkill
- awsSkill
- bfSkill
- chrome-devtoolsSkill
- clipboardSkill
- cloud-runSkill
- code-securitySkill
- colabSkill
- databricksSkill
- diagrams-as-codeSkill
- dockerSkill
- documentation-siteSkill
- dot-cliSkill
- dprintSkill
- draft-docSkill
- draft-mailSkill
- duckdbSkill
- fmind-visualsSkill
- full-reviewSkill
- gcloudSkill
- ghSkill
- git-deliverySkill
- github-actionsSkill
- github-issuesSkill
- github-pull-requestSkill
- github-repositorySkill
- google-developerSkill
- gwsSkill
- hfSkill
- infra-as-codeSkill
- kaggleSkill
- kubernetesSkill
- mcp-setupSkill
- miseSkill
- model-providersSkill
- playwrightSkill
- project-scaffoldingSkill
- python-mlopsSkill
- python-stackSkill
- python-webSkill
- repository-docsSkill
- scheduled-jobsSkill
- skillifySkill
- <name>Skill
- The first 60 shown.
The file
Files
Lesson Learned
Turn what a session taught into the smallest durable change in the right owner, so projects align bit by bit without piling up rules. Run it on /lesson-learned or "lessons learned", and propose it as a (Lesson Learned) suggestion after an implementation, approved decisions, a correction, or a repeated instruction. skillify owns creating and extending skills, trim owns shortening, and AGENTS.md guidance defines what each instruction layer holds.
Workflow
- Collect candidates: list the user's corrections, approved decisions with their reason, repeated instructions, workarounds, and rules that proved stale, wrong, or ignored, each with where it came from. Drop session-specific paths, one-off values, and secrets. Done when every correction and approved decision is listed or excluded with a reason.
- Admit few: keep a lesson only when the situation will recur, an agent would likely get it wrong next time, and no existing rule already says it; search the owners first (
rg -i '<keyword>' AGENTS.md ~/.agents/AGENTS.md ~/.agents/skills/*/ .agents/skills/). An ignored rule is a wording or placement problem, not a missing rule. Done when each candidate is admitted or rejected with one reason. Pick one owner, strongest first:
- a test, check, lint rule, script, or code default that enforces it;
- the skill that owns the topic, through skillify when the change is more than a line or needs a new skill;
- the project
AGENTS.mdfor a repository invariant; - the global persona (
dot_agents/AGENTS.mdin fmind/dot) for a durable personal preference across projects; - the project decision log, the brain through bf when the project has one, for a dated choice and its reason, including "do not re-raise" outcomes.
Done when each lesson has exactly one owner and no copy elsewhere.
- Improve before adding: don't just append. First sharpen, merge, or align the existing content the lesson touches, and delete what it makes stale; add a new line only when nothing existing can carry it. Done when each edit reports the words added and removed per file and instruction budgets still pass (
dot agent context --project ., plus--source .in fmind/dot). - Propose, then apply: list each lesson as a
(Lesson Learned)suggestion naming the owner path and the exact old and new text, ranked by impact. Apply only what the user approves, since approving a decision does not approve rule wording; then run the owner's checks (focused tests,mise run check:skillsfor skills, the formatter for docs). Done when approved edits pass their checks or the failure is reported.
Gotchas
- Prefer enforcement over prose: a check fails on every host and costs no context; a sentence is loaded every session and can still be ignored.
- Report "no lesson" plainly: most sessions change nothing durable; say so in one line instead of inventing a rule.
- Keep host memory out of the loop: harness memory (such as Claude Code's
memory/directory) is read by one host only, so route durable lessons to shared owners and migrate memory entries that hold them; touch memory only on the user's request, and never delete a memory file that a decision log cites as evidence. - Keep agy
/learnlessons in the dot source: its global scope writes~/.gemini/GEMINI.md, which links to~/.agents/AGENTS.md, so a global/learnwrite changes the shared persona for every harness until the nextchezmoi apply --forceoverwrites it; it also writes rule files under~/.gemini/config/rules/, or new skills under~/.gemini/config/skills/(~/.agents/skills), all outside the dot source. Approve itslearning_proposal.mdonly for project scope; apply global lessons to the dot source with this workflow.
Documentation
- Companion skills: skillify (skill authoring), trim (shortening owners), repository-docs (instruction layers and Markdown style), bf (brain decision logs).
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.

