What problem does it solve?
Git worktrees allow running multiple isolated development contexts against the same repository by giving each task its own working directory while sharing history. This skill manages creation, tracking, and port allocation to enable parallel Claude Code sessions with non-conflicting dev servers.
Core Features & Use Cases
- Create and list per-worktree spaces with automatic port assignment
- Enforce absolute paths for cross-session usage and reliable file state operations
- Provide a Rails-oriented setup workflow and port-aware configuration to simplify local development
- Handle setup and teardown of worktrees in a safe, reversible manner
- Support quick switching between worktrees for feature development and bug fixes
- Preserve per-worktree environment isolation (ports, .worktree-port, and .env.native)
Quick Start
Run /worktree create <name> to create a new worktree with an auto-assigned port and then run the setup script to initialize it.