What problem does it solve?
This Skill automates the creation of isolated Git worktrees, ensuring a clean and safe environment for feature development, preventing conflicts with your main workspace.
Core Features & Use Cases
- Isolated Workspaces: Create separate directories for new branches without affecting your current work.
- 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: Runs project-specific setup commands (npm, cargo, pip, go) after worktree creation.
- Baseline Testing: Verifies the new worktree starts with passing tests.
- Use Case: Before starting a new feature like "user authentication," use this skill to create a dedicated worktree, install dependencies, and confirm a clean state, allowing you to focus solely on implementation.
Quick Start
Use the using-git-worktrees skill to create a new worktree for the 'feature/new-api' branch.