What problem does it solve?
Working on multiple git branches simultaneously often requires constant switching between branches, which risks losing uncommitted work and creates conflicts when multiple people or AI agents need to work on the same repository at the same time. This Skill eliminates that friction by enabling safe, isolated workspaces that share the same repository data.
Core Features & Use Cases
- Smart worktree directory selection: Automatically prioritizes existing project-local .worktrees/ folders, respects CLAUDE.md project preferences, or prompts the user for their preferred location.
- Built-in safety guardrails: Verifies worktree directories are gitignored to prevent accidental commits of isolated work, and runs baseline tests to confirm the new workspace starts in a clean state.
- Edge case handling: Includes workflows for recovering vanished worktrees, managing gitignored deliverables that don't live in version control, and ensuring safe parallel work across multiple AI agent sessions.
- Use Case: A developer can work on a new authentication feature in an isolated worktree while keeping their main workspace stable for urgent bug fixes, or multiple AI agents can collaborate on separate repository tasks without overwriting each other's changes.
Quick Start
Use the using-git-worktrees skill to set up an isolated workspace for your new feature branch with automatic safety checks and project setup.