What problem does it solve?
Git worktrees provide isolated workspaces sharing the same repository, enabling multi-branch development without switching contexts or polluting the main workspace. This skill helps teams start new features in isolation, ensuring safe directory selection and strong precautions before creating a worktree, reducing the risk of accidentally committing worktree contents.
Core Features & Use Cases
- Directory prioritization: reuse existing .worktrees or worktrees when available; respect CLAUDE.md preferences; otherwise prompt the user for a location.
- Safety verification: ensure the selected directory is ignored by gitignore to prevent accidental commits; provide steps if not ignored.
- Project-aware creation: auto-detect project name, create proper path for local or global worktrees; run project setup; verify a clean baseline with tests.
- Use case: starting a feature branch in a dedicated worktree so changes stay isolated from the main repo.
Quick Start
Ask the AI to set up an isolated git worktree following the priority rules and safety checks described.