What problem does it solve?
This Skill creates isolated Git worktrees for feature development, ensuring a clean and safe workspace separate from your main development branch, preventing accidental commits and ensuring a stable starting point.
Core Features & Use Cases
- Isolated Workspaces: Work on multiple branches simultaneously without context switching.
- Smart Directory Selection: Prioritizes project-local hidden directories (
.worktrees/) or user-defined global locations.
- Safety Verification: Automatically checks if project-local directories are ignored by Git before creation, adding them to
.gitignore if necessary.
- Automated Setup: Detects and runs project-specific setup commands (e.g.,
npm install, cargo build).
- Baseline Testing: Runs project tests to ensure the new worktree starts from a clean, working state.
- Use Case: Before starting a new feature like "user authentication," use this skill to create a dedicated, safe worktree, install dependencies, and verify the baseline is clean, allowing you to focus solely on implementation.
Quick Start
Use the using-git-worktrees skill to create a new worktree for the 'feature/user-auth' branch.