feature-cleanup
Skill0 starsChanged 7 months agoMITView on GitHub
Interactive walkthrough to clean up stale feature directories
- Deletes or force-pushes
In this repository45 other files it gives its agents.
- decisions/CLAUDE.mdCLAUDE.md
- kb/CLAUDE.mdCLAUDE.md
- spec/CLAUDE.mdCLAUDE.md
- work/CLAUDE.mdCLAUDE.md
- script-devSkill
- architectSkill
- auditSkill
- capabilitiesSkill
- curateSkill
- decisionsSkill
- feature-completeSkill
- feature-coordinateSkill
- feature-domainsSkill
- feature-hardenSkill
- feature-implementSkill
- feature-planSkill
- feature-prSkill
- feature-quickSkill
- feature-refactorSkill
- feature-resumeSkill
- feature-retroSkill
- featureSkill
- feature-testSkill
- kbSkill
- project-contextSkill
- researchSkill
- setup-vallorcineSkill
- spec-authorSkill
- spec-backfillSkill
- spec-initSkill
- spec-resolveSkill
- specSkill
- spec-splitSkill
- spec-verifySkill
- spec-writeSkill
- uninstall-vallorcineSkill
- upgrade-vallorcineSkill
- vallorcine-helpSkill
- work-decomposeSkill
- work-planSkill
- work-resumeSkill
- work-runSkill
- workSkill
- work-startSkill
- work-statusSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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
- Very specific: line 15
Check that .feature/ exists.
- Distinctive: line 48
If no feature directories found:
- Distinctive: line 86
Wait for user response.
- Very specific: line 91
Create .feature/_archive/ if it doesn't exist.
- Very specific: line 92
Update .feature/CLAUDE.md if the feature is listed in Active Features (move to Completed/Archived section).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
/feature-cleanup
Interactive walkthrough of existing .feature/<slug>/ directories. For each:
shows last activity date and stage, then asks the user to keep, archive, or delete.
Addresses abandoned feature directory clutter for long-running projects.
Pre-flight guard
Check that .feature/ exists. If not:
No .feature/ directory found. Nothing to clean up.Stop.
Display opening header:
───────────────────────────────────────────────
🧹 FEATURE CLEANUP
───────────────────────────────────────────────Step 1 — Scan feature directories
List all directories under .feature/ excluding:
_archive/project-config.mdCLAUDE.md
For each directory, read status.md and extract:
- Stage and substage
- Last updated timestamp
- Automation mode
- Brief description (from the
feature:frontmatter field)
Calculate staleness: days since last_updated (or file modification date if
last_updated is missing).
Sort by staleness (most stale first).
If no feature directories found:
No active feature directories. Nothing to clean up.Stop.
Step 2 — Display summary
── Active feature directories ─────────────────
<n> features found
SLUG STAGE LAST ACTIVITY AGE
────────────────────── ──────────────── ────────────── ────
old-auth-refactor planning/stubs 2026-02-28 16d
cache-layer scoping/complete 2026-03-01 15d
sql-query-support domains/progress 2026-03-16 0d
──────────────────────────────────────────────────────────────────Step 3 — Process each feature
Present each feature starting from the most stale:
── <slug> ─────────────────────────────────────
Stage: <stage> / <substage>
Last activity: <date> (<n> days ago)
Description: <from frontmatter or brief.md first line>
Files: <n> files in .feature/<slug>/
Type: keep · archive · deleteWait for user response.
keep — no changes. Display ✓ Keeping <slug> and continue to next.
archive — move .feature/<slug>/ to .feature/_archive/<slug>/.
Create .feature/_archive/ if it doesn't exist.
Update .feature/CLAUDE.md if the feature is listed in Active Features (move
to Completed/Archived section).
Display:
✓ Archived: .feature/_archive/<slug>/delete — confirm before deleting:
⚠ This will permanently delete .feature/<slug>/ and all its contents.
Source code and tests in git are NOT affected — only the working state files.
Use AskUserQuestion with options:
- "Delete"
- "Keep"
If "Delete": `rm -rf .feature/<slug>/`. Remove from `.feature/CLAUDE.md` Active
Features table if present.
Display:✓ Deleted: .feature/<slug>/
---
## Step 4 — Summary
───────────────────────────────────────────────
🧹 FEATURE CLEANUP complete
Kept: <n>
Archived: <n>
Deleted: <n>
Active features remaining: <n>
───────────────────────────────────────────────
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.

