What problem does it solve?
Git worktrees allow working on multiple branches within the same repository by creating isolated workspaces that share the repository history. This skill solves the problem of needing feature isolation without constantly switching branches, reducing context-switching and risk of interfering with the main workspace.
Core Features & Use Cases
- Directory selection and isolation: prioritizes existing local worktree directories (.worktrees or worktrees), then CLAUDE.md preferences, and finally prompts the user.
- Safety verification: ensures the chosen worktree directory is ignored by Git and suggests adding to .gitignore if needed to avoid accidental commits.
- Automated setup and baseline: after worktree creation, auto-detects project type and runs project setup commands (e.g., install dependencies) to ensure a clean baseline.
- Use cases: starting feature work that requires isolation, debugging across branches, and safe experimentation without touching the main working tree.
Quick Start
Create an isolated git worktree for your current feature branch.