skill-cleanup
Skill0 starsChanged 6 months agoMITView on GitHub
Audit and remove stale, renamed, or duplicate skills across all installed agent platforms (Claude Code, Kiro, Codex, Windsurf, Gemini, Pi, and more). Handles symlink and copy installs, detects artifacts, and generates OS-correct removal commands. Use when skills list feels cluttered, after renaming a skill, after uninstalling a plugin, or when user says "clean up skills", "remove old skill", "prune skills", "stale skill", "duplicate skill".
- Deletes or force-pushes
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- lamb92009/claude-skill-loadertheir own version, first seen Feb 18, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- lamb92009/claude-skill-loader★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- context-handoverSkill
- harness-auditSkill
- harness-guideSkill
- harness-issuesSkill
- harness-prdSkill
- harness-triageSkill
- harness-verify-before-moveSkill
- session-startSkill
- setup-harness-skillsSkill
- fullerSkill
- write-harness-skillSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
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 34
Use the manual flow below if you prefer guided step-by-step or need to inspect specific entries.
- Distinctive: line 40
Run the appropriate probe:
- Very specific: line 54
Use the detected home directory for all paths below.
- Distinctive: line 60
Run each command that applies (skip if directory does not exist):
- Distinctive: line 106
If no stale entries found: state "All installed skills look clean." and stop.
- Very specific: line 108
If stale entries found, call AskUserQuestion with multiSelect: true:
- Distinctive: line 113
Do NOT fall back to a text table — the checkbox selector is the required UI for this phase
- Distinctive: line 121
Use OS-correct commands. For each confirmed item:
- Distinctive: line 145
After removal, re-run Phase 2 scans and confirm the entries are gone.
≈ “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
Skill Cleanup
Audit tool. Never delete anything without explicit user confirmation per item.
Quick start — interactive TUI tool
The fastest path. Run the bundled script for a multi-select TUI that scans all platforms and removes in one flow:
# First-time setup (once per machine)
cd <skills-dir>/skill-cleanup && npm install
# Run the interactive cleanup tool
node scripts/cleanup.mjs
# Preview only — no files removed
node scripts/cleanup.mjs --dry-runThe tool:
- Scans all installed agent platforms (Claude Code, Kiro, Codex, Windsurf, Gemini, Pi, and more)
- Pre-selects stale entries (renamed originals, artifacts, orphaned installs)
- Shows a multi-select checklist — toggle any skill, select all with
a - Asks for final confirmation before removing anything
- Removes platform copies first, central store last
Use the manual flow below if you prefer guided step-by-step or need to inspect specific entries.
Phase 1 — Detect OS and home directory
Run the appropriate probe:
macOS / Linux:
echo "OS: $(uname -s)"
echo "HOME: $HOME"Windows (PowerShell):
echo "OS: Windows"
echo "HOME: $env:USERPROFILE"Use the detected home directory for all paths below. On Windows substitute \ for / throughout.
Phase 2 — Scan installed locations
Run each command that applies (skip if directory does not exist):
# Central store — source of truth
ls ~/.agents/skills/
# Symlink platforms (point into central store)
ls ~/.claude/skills/ # Claude Code
ls ~/.kiro/skills/ # Kiro CLI
ls ~/.pi/agent/skills/ # Pi
ls ~/.kilocode/skills/ # Kilo Code
ls ~/.qwen/skills/ # Qwen Code
# Copy platforms (independent copies — not symlinks)
ls ~/.codex/skills/ # Codex
ls ~/.codeium/windsurf/skills/ # Windsurf
ls ~/.gemini/config/skills/ # Gemini CLISee PLATFORMS.md for exact paths per OS and notes on each platform's install type.
Build two inventories:
- Central store list — what
~/.agents/skills/contains - Platform lists — what each platform dir contains
Phase 3 — Flag stale entries
Compare inventories. Flag an entry as stale when ANY signal is true:
| Signal | Stale type |
| Name matches a known renamed skill AND the replacement is also in central store | Renamed original |
Two entries where one is clearly the predecessor (e.g. foo and foo-v2, bar and bar-old) | Duplicate |
| Entry present in a platform dir but absent from central store | Orphaned platform entry |
| Entry in central store but absent from ALL platform dirs | Orphaned install (no platform linked) |
.zip suffix, -workspace suffix, or -backup suffix | Install artifact |
| Symlink in a symlink-platform dir whose target path does not resolve | Broken symlink |
Also check ~/.claude/settings.json (or equivalent) for plugins entries whose repo or skill name no longer matches what is installed.
Phase 4 — Interactive selection
If no stale entries found: state "All installed skills look clean." and stop.
If stale entries found, call AskUserQuestion with multiSelect: true:
- One option per unique skill name (not per platform entry)
- label:
skill-name [Platform1, Platform2, ...]listing every platform it appears in - description: the stale reason — e.g.
orphaned — not in central storeorinstall artifact AskUserQuestionsupports max 4 options per call — if more than 4 stale skills, chain a second call for the remainder- Do NOT fall back to a text table — the checkbox selector is the required UI for this phase
The user's checked selections become the confirmed removal list for Phase 5.
Phase 5 — Remove confirmed entries
Use OS-correct commands. For each confirmed item:
macOS / Linux:
# Symlink entry (Claude Code, Kiro, Pi, Kilo Code, Qwen Code)
rm ~/.claude/skills/<name>
# Full directory (central store or copy platform)
rm -rf ~/.agents/skills/<name>
rm -rf ~/.codex/skills/<name>Windows (PowerShell):
# Symlink / junction
Remove-Item -Force "$env:USERPROFILE\.claude\skills\<name>"
# Full directory
Remove-Item -Recurse -Force "$env:USERPROFILE\.agents\skills\<name>"
Remove-Item -Recurse -Force "$env:USERPROFILE\.codex\skills\<name>"Removal order: platform entries first, central store last.
After removal, re-run Phase 2 scans and confirm the entries are gone.
Gotchas
- Never remove the only installed version of a skill — if no replacement exists, keep it.
- Symlink platforms (
~/.claude/,~/.kiro/,~/.pi/agent/,~/.kilocode/,~/.qwen/): entries are symlinks,rmwithout-rfis sufficient on macOS/Linux;Remove-Item -Forceon Windows. - Copy platforms (
~/.codex/,~/.codeium/windsurf/,~/.gemini/config/): entries are full directory copies — remove from each platform dir independently, then from central store. - Pi path is
~/.pi/agent/skills/, not~/.pi/skills/— the extraagent/level is intentional. - Gemini CLI may install under multiple subdirs (
antigravity-backup/,antigravity-ide/,config/) — check all three. settings.jsonplugin entries: surface for human review only; do not auto-remove them.
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.

