What problem does it solve?
This Skill creates isolated Git worktrees, allowing you to work on multiple branches simultaneously without the need to switch contexts, preventing conflicts and maintaining a clean workspace.
Core Features & Use Cases
- Isolated Workspaces: Develop features in separate directories that share the same repository.
- Smart Directory Selection: Automatically finds or prompts for the best location to create worktrees.
- Safety Verification: Ensures project-local directories are ignored by Git before creation to prevent accidental commits.
- Automated Setup: Detects and runs project-specific setup commands (npm, cargo, pip, poetry, go).
- Baseline Testing: Runs tests after setup to ensure a clean starting point.
- Use Case: When starting a new feature like "user authentication," this skill will set up a dedicated worktree, install dependencies, run tests, and confirm readiness, all while keeping your main branch untouched.
Quick Start
Use the using-git-worktrees skill to set up an isolated workspace for the 'feature/new-api' branch.