Clean Worktrees (Automatic) — Git skill for Claude Code
Automatically remove all worktrees for branches merged into master.
How to install Clean Worktrees (Automatic)
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open rtk-ai/rtk and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Clean Worktrees (Automatic) does
Automatically remove all worktrees for branches merged into `master`. No interaction required. **Difference with `/clean-worktree`**: - `/clean-worktree`: Interactive, asks confirmation per branch - `
One of 9 entries listed from rtk-ai/rtk. The repository README
describes the whole collection, not this skill — read it on GitHub.
Alternatives in Git
- Worktree Parallel Init — Create multiple git worktrees for parallel development: $ARGUMENTS 23.4k ★
- Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★
- Validate Title Provided — if [ -z "$PLAN_TITLE" ]; then echo "❌ Error: Plan title required" echo "Usage: /sync-todos-to-github \"Plan Ti 618 ★
Related Skills
Branch Cleanup
Clean up merged, stale, and orphaned git branches. Protects main/develop/release/ automatically. Supports --dr
Worktree Hygiene
Report the state of every git branch and worktree in a repo (unpushed, unmerged, stale, merged) and clean up o
Prune Worktrees
Remove git worktrees whose PR has merged, to recover disk (dry-run first)
Cleanup Worktree
Remove a merged worktree and its branch after verifying it was merged into main
Git.Merge
Merge the current branch's PR, switch to the default branch, and clean up all merged/gone local and remote bra
Clean Branches
Safely prune merged and stale Git branches: drop dead remote-tracking refs, list merged candidates for review,
Related Agents
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes
Fpm Orchestrator
Master agent for FangPostMeet pipeline. Coordinates 6 sub-agents to process recordings end-to-end. Two phases
Delivery Tpm
Delivery control (code: tpm). Reconciles the board with branches, worktrees, pull requests, and gates; keeps o