.claude/skills/worktree-delete/SKILL.md
Remove a git worktree and optionally delete its branch
npx skillsauth add the-agency-ai/the-agency .claude/skills/worktree-deleteInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Remove a git worktree from .claude/worktrees/ and optionally clean up its branch.
fix-auth-bug).If $ARGUMENTS is empty, list worktrees and ask which to delete.
.claude/worktrees/<name>/ exists as a git worktree.Get branch name from the worktree.
git worktree remove .claude/worktrees/<name> (add --force only if user confirmed dirty deletion)git worktree pruneAsk:
Delete branch
<branch>as well?
- Yes — safe delete (
git branch -d)- Yes — force delete (
git branch -D)- No — keep the branch
Worktree deleted:
Path: .claude/worktrees/<name>/ (removed)
Branch: <branch> (deleted/kept)
business
Sync worktree with master — merge, copy settings, run sandbox-sync, report changes
tools
List all git worktrees with status info (branch, clean/dirty, deps)
tools
Remove a git worktree and optionally delete its branch
development
Create a new git worktree with dedicated branch and bootstrapped dev environment