worktree-cleaner
95 / 100 · Low risk
Fine to try. Some of what it can do is expected: a coding skill usually runs build and test commands.
Inventory the git worktrees of the current repository, classify each one with evidence (merged, PR state, uncommitted or unpushed work, locked, stale, in use by a running session) and remove them one at a time or by group, always asking the user first and verifying every removal. Use when worktrees have piled up (for example one per Claude Code task or thread), when `git worktree list` is long, or when the user asks to clean up, prune or tidy worktrees.
What this skill can do
Runs commands on your computer
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'worktree-cleaner' ] || [ -L ~/.agents/skills/'worktree-cleaner' ]; then echo 'A skill folder named worktree-cleaner already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/davila7/claude-code-templates' "$d" && git -C "$d" checkout --quiet 'a6e6f93e9a4baaa6ff337aee5505bf5c2bae4ce6' -- 'cli-tool/components/skills/git/worktree-cleaner' && mkdir -p ~/.agents/skills && cp -R "$d"/'cli-tool/components/skills/git/worktree-cleaner' ~/.agents/skills/'worktree-cleaner' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'worktree-cleaner' ~/.claude/skills/'worktree-cleaner' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/davila7/claude-code-templates/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-10 | a6e6f93 | 95 |
| 2026-11-08 | b086f26 | 95 |
| 2026-11-07 | 395f30e | 95 |