rmwt
Installation
SKILL.md
Remove a git worktree and clean up all associated resources.
Skill Path
Resolve the scripts directory once:
RMWT_SCRIPTS=$(python3 -c "import os; p='.claude/skills/rmwt/scripts'; print(os.path.abspath(p) if os.path.isdir(p) else os.path.expanduser('~/.agents/skills/rmwt/scripts'))")
Usage
/rmwt <name> — Remove worktree, branch, all handoff chat groups for that workspace, and all handoff database buckets for that project.
The <name> argument is required. If not provided, list worktrees and ask the user to pick one.
Workflow
- Resolve the worktree. Run
git worktree listand find a worktree whose path contains<name>(case-insensitive). If no match, tell the user. If multiple matches, list them and ask the user to pick.