What problem does it solve?
This Skill creates isolated Git worktrees, allowing you to work on multiple branches simultaneously without interfering with your main development workspace, ensuring a clean and safe environment for new feature development.
Core Features & Use Cases
- Isolated Workspaces: Create separate directories for different branches, sharing the same repository.
- Smart Directory Selection: Automatically determines the best location for new worktrees based on project conventions or user preference.
- Safety Verification: Ensures that new worktree directories are ignored by Git before creation to prevent accidental commits.
- Automated Setup: Detects and runs project-specific setup commands (e.g.,
npm install, cargo build).
- Baseline Verification: Runs tests to confirm a clean starting state for the new branch.
- Use Case: Before starting work on a new feature, use this skill to create a dedicated, isolated worktree for that feature branch, ensuring your main branch remains untouched and stable.
Quick Start
Use the using-git-worktrees skill to create a new worktree for the 'feature/user-auth' branch.