What problem does it solve?
This Skill streamlines the process of managing multiple Git worktrees, ensuring isolated development environments with consistent port allocation, environment synchronization, and safe cleanup procedures.
Core Features & Use Cases
- Worktree Creation: Create new worktrees from branches, optionally creating the branch if it doesn't exist.
- Port Allocation: Assigns deterministic, non-conflicting ports for services like databases and applications per worktree.
- Environment Sync: Copies
.env* files from the main repository to new worktrees.
- Dependency Installation: Optionally installs project dependencies based on lockfile detection.
- Safe Cleanup: Identifies and optionally removes stale, merged, and clean worktrees with safety checks.
- Use Case: When working on multiple features simultaneously, this skill allows you to create isolated environments for each feature branch, preventing port conflicts and ensuring each environment is correctly set up without manual intervention.
Quick Start
Use the Git Worktree Manager skill to create a new worktree for the branch 'feature/new-ui' named 'wt-new-ui', installing dependencies.