git-worktree
Installation
SKILL.md
In the commands below, <skill-dir> is this skill's base directory, announced when the skill loads. Substitute the literal path. On Windows, py -3 may replace python.
Use this workflow: inspect -> plan-create (ensures ignore) -> authorized execute -> record.
Routing
- Isolation worktree create / list / owned remove / authorized prune: this skill.
- Commit, split, checkpoint:
git-commit. - PR, review, merge, CI, Release, tag-build detached worktree:
gh-pr-release. - GitHub template bootstrap:
gh-bootstrap. - Adopt an existing foreign worktree, or add a worktree for an existing branch: refuse. MVP is
--mode new-branchonly.
If a native harness worktree tool exists, run the helper first. Call the native tool only when inspect/plan JSON already contains worktree_path and ok_to_create=true. Do not let the native tool pick an unchecked path.
1. Inspect
From the repository root: