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

  1. Read the target repository instructions.
  2. Check git status --short, the current branch, and git worktree list --porcelain before changing state.
  3. Resolve SKILL_DIR to this skill directory and invoke the CLI with:
uv run python "$SKILL_DIR/scripts/git_worktree.py" --repo <repository-or-worktree> <command>
  1. For any code implementation task, inspect the current directory rather than relying on whether this conversation created or remembers the worktree:
Installs
6
First Seen
12 days ago
git-worktree — hu-wentao/skills