What problem does it solve?
Switching between branches for different tasks can be cumbersome and lead to context switching overhead. This skill automates the creation and setup of isolated Git worktrees, allowing you to work on multiple features simultaneously without interference.
Core Features & Use Cases
- Isolated Workspaces: Create separate, clean working directories for each feature or bugfix, sharing the same Git repository.
- Smart Directory Selection: Automatically determines the best location for new worktrees, respecting
.gitignore rules.
- Automated Setup: Runs project-specific dependency installations and baseline tests to ensure a clean starting point.
- Use Case: Start working on a new
feature/auth branch while keeping your main branch clean, without needing to stash or commit incomplete work.
Quick Start
Create a new worktree for a feature branch
(Assumes you are in the main repository directory)
git worktree add .worktrees/my-feature -b feature/my-feature
cd .worktrees/my-feature
Project setup (e.g., npm install, cargo build) will run automatically