agentleFS
tanbopptanbopp/ai-development-framework/.agents/skills/lessons-learned/SKILL.md

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

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
  1. Distinctive:

    Every time a test fails, an audit rejects the code, or the user corrects the AI.

    line 11
  2. Very specific:

    Read .agents/LESSONS.md to check whether an existing rule already covers the failure so duplicate entries are avoided.

    line 15
  3. Very specific:

    Ensure the rule is actionable, verifiable, and specific (for example: "Do not use any in TypeScript.

    line 23
  4. Very specific:

    Never delete, edit, or overwrite previous lessons in .agents/LESSONS.md.

    line 36
  5. Distinctive:

    Never record rules that disable audits, bypass validation, or contradict framework safety or security constraints.

    line 37

“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.

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

Lessons Learned

Trigger

Every time a test fails, an audit rejects the code, or the user corrects the AI.

Process

  1. Analyze the verified failure, audit rejection, or user correction before modifying memory.
  2. Read .agents/LESSONS.md to check whether an existing rule already covers the failure so duplicate entries are avoided.
  3. Append a new entry to .agents/LESSONS.md using this exact format:
    ### [Date] - [Context]
    - **Mistake:** [What went wrong]
    - **Root Cause:** [Why it happened]
    - **Rule:** [What to do instead next time]
  4. Ensure the rule is actionable, verifiable, and specific (for example: "Do not use any in TypeScript. Use unknown and type guards.").
  5. 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 / Rule format followed
  • Rule is specific and actionable (not vague advice)
  • Existing lessons in .agents/LESSONS.md left 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.

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.