worktree
Installation
SKILL.md
[IMPORTANT] Use
TaskCreateto break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ATTENTION ask user whether to skip.
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 infoto 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 createwith 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