What problem does it solve?
Git worktrees create isolated workspaces sharing the same repository, enabling parallel branch work without switching contexts or risking accidental commits to the wrong branch.
Core principle: Systematic directory selection + safety verification = reliable isolation.
Announce at start: "I'm using the using-git-worktrees skill to set up an isolated workspace."
Core Features & Use Cases
- Directory discovery and prioritization (project-local .worktrees, local worktrees, global config, CLAUDE.md preferences).
- Safety verification to ensure the worktree directory is ignored by git, preventing accidental commits of worktree contents.
- Automated setup: detect project type (Node, Rust, Python, Go) and run the appropriate install commands.
- Use Case: Work on feature branches in isolation for experiments, bug fixes, or parallel development.
Quick Start
Create a new Git worktree for a feature branch and let the skill detect the project type, install dependencies, and verify a clean baseline.