lessons
Skill4 starsChanged 29 days agoMITView on GitHub
Review a repo's merged work since the last review, record each lesson in LESSONS.md with its evidence, and promote lessons seen on 3 separate days into the code standards.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- swe-workflow/log-decisionsword for word, first seen Nov 1, 2026
- moberghr/mtk-agent-toolkittheir own version, first seen Oct 25, 2026
- OpenSWE/skillsword for word, first seen Oct 15, 2026
- kev-hu/ai-toolkittheir own version, first seen Oct 13, 2026
- 3xian/lessonstheir own version, first seen Oct 11, 2026
- derekcedarbaum2/content-machinetheir own version, first seen Sep 20, 2026
Other versions9 projects use a version of this.
Word for word · 2
- OpenSWE/skills★ 4100% same
- swe-workflow/log-decisions★ 4100% same
Edited · 0
None found.
Wrote their own version · 7
- sampleXbro/agentsmesh★ 27same name
- moberghr/mtk-agent-toolkit★ 9same name
- apinizer/agentnizer-cookbook★ 2same name
- ChewbaccaRoars/pathfinder-skills★ 2same name
- derekcedarbaum2/content-machine★ 2same name
- 3xian/lessons★ 1same name
- kev-hu/ai-toolkit★ 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 repository3 other files it gives its agents.
- distill-promptSkill
- herdr-advisorSkill
- log-decisionsSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Find the range: Run git fetch, then read the first line of LESSONS.md: <!-- reviewed-through: <sha> (<date>) -->.
- Distinctive: line 23
Add both pointer lines to the repo's AGENTS.md (or CLAUDE.md).
- Very specific: line 28
Review every commit in the range: Read each commit's diff and body.
- Distinctive: line 55
Add each done right commit as a "Done right" bullet under its lesson.
- Distinctive: line 63
Check and commit: Run git cat-file -e on every sha you cited, and fix each one that fails.
- Distinctive: line 79
Write the rule as the action to take: "Reproduce the reporter's exact case before you call it fixed."
- Distinctive: line 81
Every claim from this repo cites a sha or issue number a reader can open.
- Distinctive: line 86
Add to the repo's AGENTS.md, with the standards file's real path:
“Common” is measured: kept by at least 6 in 10 of the 6 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
Agents that change code in this repo read LESSONS.md first. You keep it. You review the
commits merged since the last review, turn each mistake into a lesson, and promote a
lesson into the code standards once reviews have seen it on 3 separate days. A lesson written
down reaches every later session. A promoted lesson is checked by every review.
Steps
Find the range. Run
git fetch, then read the first line ofLESSONS.md:<!-- reviewed-through: <sha> (<date>) -->. The range is<sha>..origin/main. If the repo has noLESSONS.md, set it up first:- Find the standards file: the code-standards doc the repo's
AGENTS.mdnames. If there is none, copy this skill's docs/code-standards.md to the repo'sdocs/code-standards.md. If there is one, add each rule from this skill's copy that it does not already state. - Copy this skill's LESSONS.md to the repo root, and put the standards file's
path in place of
<standards file>. Step 5 sets its reviewed-through line. - Add both pointer lines to the repo's
AGENTS.md(orCLAUDE.md). - Review the last 24 hours.
Done when you can name the range's first and last sha and its commit count.
- Find the standards file: the code-standards doc the repo's
Review every commit in the range. Read each commit's diff and body. Then
git logpast it for the files and issue numbers it touches. Also read the PRs merged and the issues closed or reopened in the range (gh). The lessons already inLESSONS.mdare the patterns to look for. Give each commit one mark:- redo: a later commit fixed it again, reverted it, or covered a sibling case it missed. A later commit that only takes the next step the user asked for, with nothing wrong in the earlier one, is no redo: the earlier one stays clean.
- should not have merged: it shipped past a red test, past a problem a review named, or with no record of what was run.
- thin: its verification can't show the fix works. It has no test that fails without it, no real-use check where one was possible, or it left a check out instead of listing it as not run.
- done right: it did well what a lesson asks. Worth copying.
- clean: none of these.
Done when every commit in the range has a mark, and each redo names the commit that redid it.
Write the lessons. Group the findings by cause. For each group, look for the lesson that already states its rule:
- In
LESSONS.md: add the evidence, and add the review's date to its Seen list if it is new. The review's date is the range's last commit date, in that commit's own timezone (git log -1 --format=%cd --date=short). An inherited lesson becomes Seen 1×. - In the standards file: the rule was missed again. Add the evidence under its bullet in "Moved to the standards".
- Nowhere: add a new lesson, Seen 1×, under the heading that fits.
Add each done right commit as a "Done right" bullet under its lesson. Done when every redo, should-not-have-merged and thin mark is evidence under some lesson.
- In
- Promote. Move each lesson with 3 or more dates in its Seen list into the standards file,
under the section that fits. Write the rule there with its strongest evidence. In
LESSONS.md, leave one bullet under "Moved to the standards": the rule in bold and its three dates. Done when no lesson inLESSONS.mdhas 3 dates. - Check and commit. Run
git cat-file -eon every sha you cited, and fix each one that fails. Set the reviewed-through line to the range's last sha and its date. Commit onlyLESSONS.md, the standards file and the pointer lines, aslessons: review of <dates>. The body gives the commit count and the lessons that are new, seen again and promoted, then "Ran: every cited sha checked with git cat-file". Push if the repo's instructions say to.
A lesson
**<The rule, as the action to take.>**
- <What happened: sha or #issue, what went wrong, which commit fixed it.>
- <How to apply it: the check or command that would have caught it.>
- Done right on <date>: <sha>, <what it did>.
- Seen 2× (2026-10-05, 2026-10-06).- Write the rule as the action to take: "Reproduce the reporter's exact case before you call it fixed."
- Every claim from this repo cites a sha or issue number a reader can open.
- Seen counts separate review dates (step 3). Six commits on one day are Seen 1×.
Pointer lines
Add to the repo's AGENTS.md, with the standards file's real path:
Write and review changes against the [code standards](docs/code-standards.md). A change is merged
or released only when it meets their acceptance criteria.
Before changing code, read [LESSONS.md](LESSONS.md): what recent merged work got wrong and the
rule that would have caught it.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.

