What problem does it solve?
Developers often need to work on multiple features or bug fixes concurrently without constantly switching branches or polluting their main workspace. This skill automates the creation of isolated Git worktrees, ensuring a clean and safe development environment for each task.
Core Features & Use Cases
- Automated Worktree Creation: Quickly set up new worktrees with intelligent directory selection.
- Safety Verification: Automatically checks
.gitignore to prevent accidental commits of worktree contents.
- Project Setup Automation: Detects and runs project-specific setup commands (e.g.,
npm install, cargo build).
- Use Case: When starting a new feature, you'll use this skill to create a dedicated worktree, ensuring your changes are isolated, dependencies are installed, and tests pass before you even write a line of feature code.
Quick Start
Announce usage
"I'm using the Using Git Worktrees skill to set up an isolated workspace."
The skill will then guide you through directory selection and creation.
Example command (skill executes this internally):
git worktree add .worktrees/feature-branch -b feature-branch
cd .worktrees/feature-branch
npm install # or cargo build, etc.
npm test