worktree
Installation
SKILL.md
Worktree
Create a git worktree off the right base branch, in a clean gitignored
directory, with the safety checks that keep the main checkout and .gitignore
correct. This skill only creates and lists worktrees. Removing and
pruning merged worktrees is release-cleanup's job — do not delete here.
Contract
Inputs:
- Repository root (must be inside a git work tree)
- Optional worktree/branch name (the new branch to create)
- Optional explicit base branch override (
from <base>/--base <base>) - Optional
--fetchflag to refresh the base from origin before branching
Outputs: