| name | worktree |
| version | 1.0.0 |
| description | [Git] Use when you need to create isolated git worktree for parallel development. |
| disable-model-invocation | false |
Quick Summary
Goal: Create isolated git worktrees for parallel feature development with automatic branch naming and env file setup.
Workflow:
- Get Repo Info — Run
worktree.cjs info to detect repo type, base branch, env files
- Detect Prefix — Infer branch prefix from keywords (fix, feat, refactor, docs, etc.)
- Convert Slug — Transform description to kebab-case slug (max 50 chars)
- Execute — Run
worktree.cjs create with project, slug, prefix, and env files
Key Rules:
- For monorepos, ask user which project if not specified
- Always ask which env files to copy via AskUserQuestion
- Handle error codes (BRANCH_CHECKED_OUT, WORKTREE_EXISTS, etc.) gracefully
Be skeptical. Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence percentages (Idea should be more than 80%).
Create an isolated git worktree for parallel feature development.
Workflow
Step 1: Get Repository Info
node .claude/scripts/worktree.cjs info --json