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.
In this repository17 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- brain-syncSkill
- feature-guardianSkill
- feature-restorerSkill
- find-skillsSkill
- frontend-designSkill
- git-advancedSkill
- obsidian-vaultSkill
- safe-workflowSkill
- security-auditSkill
- session-wrapSkill
- spec-creationSkill
- systematic-debuggingSkill
- testing-patternsSkill
- graphifySkill
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
- Distinctive: line 16
If count ≤ 30 → report count and stop.
- Very specific: line 37
Keep the 20 most recent entries in Odoo-Mistakes.md.
- Very specific: line 41
If an archive file doesn't exist, create it with a # Archive: [Type] header.
≈ “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.
Files
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/:
| Tag | Archive 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]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.

