Skill cleaner
Use this when trimming skill prompt budget, finding duplicate skills, auditing enabled/disabled skill roots, or deciding which skills/plugins to remove.
Workflow
Run the analyzer from this skill directory or repo root:
skills/skill-cleaner/scripts/skill-cleaner --months 3Use commands.md for useful variants.
Read the report in the order described by report-guide.md.
Before deleting or editing, apply the safety checks in cleanup-policy.md.
Use analyzer-notes.md when interpreting budget, root, duplicate, and usage heuristics.
This is an Effect-based adaptation of the MIT-licensed analyzer maintained in
steipete/agent-scripts. Preserve
the upstream license when redistributing it.
Required discipline
- Suggest first; edit only when the user asks.
- Verify the kept copy exists and is loaded before deleting duplicates.
- Preserve trigger nouns in descriptions: product, tool, action, object.
- Treat generated descriptions as manual rewrite candidates until tests prove that they preserve trigger meaning and exclusions.
- Do not delete ignored/untracked skill dirs without naming the destination or confirming they are disposable.
Context pointers
- Use commands.md for analyzer command variants.
- Use report-guide.md for report reading order.
- Use analyzer-notes.md for how the script models Codex skill budget and usage.
- Use cleanup-policy.md before applying cleanup.