What problem does it solve?
This Skill provides a robust and safe method for creating isolated development environments using Git worktrees, ensuring that new feature development does not interfere with the main codebase and that the workspace is set up correctly.
Core Features & Use Cases
- Isolated Workspaces: Create separate directories for different branches, allowing simultaneous work on multiple features.
- Smart Directory Selection: Automatically determines the best location for new worktrees based on project conventions or user preference.
- Safety Verification: Ensures that project-local directories are ignored by Git before creating a worktree, preventing accidental commits.
- Automated Setup: Detects and runs project-specific setup commands (e.g.,
npm install, cargo build).
- Baseline Testing: Verifies that the new worktree starts from a clean, tested state.
- Use Case: When starting a new, complex feature, use this Skill to create a dedicated, safe, and correctly configured worktree, allowing you to focus on implementation without worrying about workspace conflicts or setup errors.
Quick Start
Use the using-git-worktrees skill to set up an isolated workspace for the new feature branch named 'feature/user-auth'.