What problem does it solve?
It prevents accidental changes to your current branch by ensuring you create and use an isolated workspace when starting feature work.
Core Features & Use Cases
- Detects existing isolation: Identifies whether you are already in a linked worktree or in a submodule so you don’t create nested or duplicate worktrees.
- Uses native worktree tooling when available: Prefers platform-native worktree creation to avoid phantom state that the harness can’t manage.
- Falls back to safe
git worktree creation: Chooses an appropriate directory using a clear priority order and verifies project-local worktree directories are ignored before creating them, then runs setup and baseline tests.
- Use Case: You want to implement a risky refactor or a new feature without touching the currently checked-out branch; create an isolated worktree, install dependencies, and confirm a clean test baseline before coding.
Quick Start
Use the using-git-worktrees skill to create (or reuse) an isolated git worktree, set up the project dependencies, and verify a clean test baseline before starting implementation.