What problem does it solve?
Setting up and tearing down git worktrees for Node.js feature development is error-prone and time-consuming, with common breakpoints including missing gitignored environment files, stale ORM generated clients, dev servers from other worktrees holding port or directory locks, and missing workspace package build artifacts that require manual fixes every time.
Core Features & Use Cases
- Full lifecycle automation: Handles both new worktree setup for feature branches and safe teardown after PR merges, with guardrails to prevent accidental data loss.
- Auto-detection of project stack: Automatically identifies the package manager (npm, pnpm, yarn), ORM type (Prisma, Drizzle, or none), and workspace package structure to apply the correct setup steps without manual configuration.
- Use case: When starting work on a new feature branch, use this skill to generate a fully functional worktree in seconds, with all dependencies, environment files, and generated code ready to use, instead of spending 10+ minutes troubleshooting missing files and stale clients.
Quick Start
Use the worktree skill to create a ready-to-code git worktree for your current feature branch, or safely remove a worktree and its associated branch after you have merged its changes into the main codebase.