agentleFS
surasakchosurasakcho/claude-skills/lesson-review/SKILL.md

lesson-review

Skill0 starsChanged 5 months agoMITView on GitHub

Run the weekly lesson-harvest pass — sweep project repos for lessons, rules, defect write-ups and repo-agnostic checkers that are stranded in one project, filter for the portable ones, mechanise what can run, verify the existing shared rules still hold, and publish to the shared agentic-ai-rules-and-skills repo. Use when the user asks to review/harvest/share lessons, when a week has passed since the last pass, at the end of a project phase or remediation, or when a task produced a defect write-up or a reusable checker worth sharing.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    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
  1. Very specific:

    Run harvest.py for the mechanical parts, then apply judgement to what it surfaces.

    line 14
  2. Very specific:

    6. Publish: Commit, push, and append one line to lessons/_review-log.md with the date and what was harvested.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Lesson Review

The weekly pass that keeps the shared rules repo alive. Full policy in that repo's CADENCE.md; this is how to execute it.

Shared repo: https://github.com/surasakcho/agentic-ai-rules-and-skills

Run harvest.py for the mechanical parts, then apply judgement to what it surfaces. The script finds candidates and checks health; it deliberately does not decide what is portable — that is the part that needs a reader.

python -X utf8 harvest.py --projects <dir-holding-your-project-repos> --shared <clone-of-the-shared-repo>

Paths are arguments, never hardcoded here: a machine path in a public repo publishes a username and a directory layout. See sanitise-before-sharing.

The pass, in order

1. Harvest. The script lists candidates changed since the last pass: LESSONS.md, DEFECTS.md, Q-and-A.md, research/*.md, new numbered rules in project CLAUDE.md files, and scripts that look repo-agnostic (no hardcoded project paths, a CLI, a __main__). Read them. Most stay where they are.

2. Filter — the hard part, and it is yours. A lesson belongs in the shared repo only if it is true outside the project that produced it:

  • Would it hold with different data, a different domain, a different language?
  • Does it name a real incident with a cost? Advice without a scar is opinion.
  • Is it already covered? Then strengthen the existing rule rather than adding a second one that will drift out of agreement with it.

3. Mechanise what can fail. prose < checklist < test < gate. Before writing a rule as text, ask whether it can be a check that runs. If it can, it goes to skills/ as code with a self-test. Roughly half of what gets harvested can be; be honest about the other half rather than writing a crude proxy and calling it enforcement.

4. Verify what is already shared. harvest.py --check runs the health pass: every skill's self-test executes, every internal link resolves, and every rule is checked for an incident reference. A rule later contradicted by experience gets deleted, not hedged — git keeps the history, and a hedged rule is one nobody can act on.

5. Sanitise before pushing — blocking. --deny the private repo names and collaborator names so the scan is specific to what must stay out; it already catches absolute paths, emails and links that escape the repo. Then read for the one thing no scan can judge: whether a number is a defect count or somebody's unpublished result. Never publish a raw write-up next to its redacted version. See sanitise-before-sharing.

6. Publish. Commit, push, and append one line to lessons/_review-log.md with the date and what was harvested.

Recording an empty pass

A pass that harvests nothing is a valid outcome and must still be logged. Three empty passes in a row is a signal worth reading: either the projects are genuinely quiet, or lessons are not being written down anywhere the sweep can find them — which is a different and more serious problem.

What good looks like

A harvested rule reads like this, not like a style guide:

The conditional that never fires. A colour map was registered under if "flag" not in colormaps: — but flag is a library builtin, so the branch never ran and 30 figures silently drew inverted. Cost: 30 wrong figures, invisible in code review. Guard: if you write if X: do_important_thing, prove X is ever true.

Mechanism, incident, cost, guard. If you cannot write the cost, you probably do not have a lesson yet — you have a preference.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.