What problem does it solve?
This Skill streamlines the process of creating isolated development environments using Git worktrees, ensuring a clean separation between different branches of work and preventing accidental interference.
Core Features & Use Cases
- Isolated Workspaces: Create separate directories for different branches without duplicating the entire repository.
- Smart Directory Selection: Intelligently chooses where to create worktrees based on existing conventions or user preference.
- Safety Verification: Automatically checks if a target directory is ignored by Git before creating a worktree, preventing accidental commits.
- Automated Setup: Detects project type (Node.js, Rust, Python, Go) and runs necessary dependency installations.
- Baseline Testing: Verifies that the new worktree starts with a clean slate by running project tests.
- Use Case: Before starting a new feature that requires significant changes, use this Skill to create a dedicated worktree, ensuring your main branch remains stable and your new work is contained.
Quick Start
Use the using-git-worktrees skill to create a new worktree for the 'feature/user-auth' branch in the '.worktrees' directory.