What problem does it solve?
This skill solves the problem of managing multiple, isolated development contexts within a single Git repository. It prevents accidental commits, ensures clean baselines for new features, and streamlines the setup of new development environments, saving time and reducing complexity when switching between tasks or branches.
Core Features & Use Cases
- Isolated Workspaces: Create separate, clean directories for feature work without affecting your main repository.
- Smart Directory Selection: Automatically or interactively determines the best location for new worktrees, respecting project conventions.
- Safety Verification: Ensures
.gitignore is correctly configured to prevent accidental commits of worktree contents.
- Automated Setup: Detects project type (Node.js, Rust, Python, Go) and runs
npm install, cargo build, pip install, etc., automatically.
- Use Case: Before starting a new feature, use this skill to create a fresh, isolated environment, ensuring your changes are contained and won't interfere with other ongoing work.
Quick Start
Use the using-git-worktrees skill to set up an isolated workspace for my new 'auth' feature.