agentleFS
Kashyap-001Kashyap-001/second-brain-template/.agents/skills/vault-pruner/skill.md

vault-pruner

Skill0 starsChanged 4 months agoMITView on GitHub

Archive older entries from Odoo-Mistakes.md when count exceeds 30. Implements AGENTS.md rule 7 automatically. Call from claude-general loop or manually.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

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

    If count ≤ 30 → report count and stop.

    line 16
  2. Very specific:

    Keep the 20 most recent entries in Odoo-Mistakes.md.

    line 37
  3. Very specific:

    If an archive file doesn't exist, create it with a # Archive: [Type] header.

    line 41

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

Skill: vault-pruner

Trigger: Called by /loop in claude-general, or manually. Implements AGENTS.md Rule 7.


Step 1 — Count entries

Count ### headers in Development/Odoo/Odoo-Mistakes.md. Each ### = one entry.

If count ≤ 30 → report count and stop. Nothing to do.


Step 2 — Classify entries for archiving

Sort entries by type tag into archive files under Development/Odoo/Mistakes/:

TagArchive file
[XML-Change]Archive_XML.md
[API-Change]Archive_API.md
[Field-Change]Archive_Field.md
[Security-Change]Archive_Security.md
[Performance-Tip]Archive_Performance.md
[Module-Specific]skip — these belong in ledgers, not here

Step 3 — Archive oldest

Keep the 20 most recent entries in Odoo-Mistakes.md. Move the rest to their archive file.

Never delete entries — only move them. If an archive file doesn't exist, create it with a # Archive: [Type] header.


Step 4 — Confirm

✅ vault-pruner complete
   Entries before: [N]
   Entries kept:   20
   Archived:       [N] → [list of archive files updated]

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.