rtk-ai

Clean Worktrees (Automatic) — Git skill for Claude Code

Git community intermediate

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 ★