What problem does it solve?
This Skill eliminates the chaos of running multiple feature branches at once by preventing port collisions, ensuring environment consistency, and making worktree cleanup safe and repeatable.
Core Features & Use Cases
- Deterministic parallel worktrees: Create (or reuse) worktrees with standardized paths and naming so each branch behaves like an isolated local app.
- Collision-free port allocation: Allocate non-overlapping app/db/redis ports per worktree and persist them in a
.worktree-ports.json file.
- Env + optional dependency bootstrapping: Copy
.env* files from the base repo into each worktree and optionally install dependencies based on detected lockfiles.
- Safety-first cleanup: Detect stale worktrees, check for dirty working trees, determine merged status against a base branch, and optionally remove only when safe.
Quick Start
Prepare an isolated worktree for a new feature by running the manager script with your repo root, branch, worktree name, and base branch, then start your app using the allocated ports it outputs.