git-worktree
Installation
SKILL.md
Git Worktree
Manage worktrees from creation through merge and cleanup. Treat branch maintenance as maintenance of every local development surface, not only named unmerged branches.
Prepare
- Read the target repository instructions.
- Check
git status --short, the current branch, andgit worktree list --porcelainbefore changing state. - Resolve
SKILL_DIRto this skill directory and invoke the CLI with:
uv run python "$SKILL_DIR/scripts/git_worktree.py" --repo <repository-or-worktree> <command>
- For any code implementation task, inspect the current directory rather than relying on whether this conversation created or remembers the worktree: