name: 07-worktree description: "Create and manage git worktrees for isolated feature development. Use when starting a feature that needs branch isolation."
Worktree
Use this skill for optional isolated git worktree development for large, risky, or parallel feature work.
Core rules
- Use
worktree_managertool for all operations - Only create when user explicitly asks or task is large/risky enough (with confirmation)
- Derive branch name from plan or task
- Report worktree path after creation so
03-workcan execute inside it - Never force operations — if worktree exists, report status instead of duplicating
- On completion: offer merge → cleanup (with user confirmation)
Workflow
See references/worktree-lifecycle.md for detailed flow, branch naming, and error handling.
Quick reference:
detect— check if already in worktreecreate— spin up new worktree with feature branch- Execute
03-workinside worktree directory merge— merge feature branch back (with confirmation)cleanup— remove worktree and delete branch (with confirmation)
Branch naming
feat/<slug>— feature workfix/<slug>— bug fixeschore/<slug>— maintenance tasks
Before finishing this skill, apply the completion checklist in shared pipeline instructions.