worktree
Installation
SKILL.md
Git Worktree Management for spex
Overview
This skill manages git worktrees to isolate feature development. It supports three actions:
- create: Called by the
worktreestrait overlay afterspeckit.specifycompletes. Creates a worktree, restoresmain, and prints switch instructions. - list: Shows all active feature worktrees with path, branch, and feature name.
- cleanup: Detects worktrees whose branches are merged and offers removal.
Action Routing
Determine the action from context:
- If invoked from the
speckit.specifyoverlay (post-specify context), the action is create. - If invoked with argument
cleanup, the action is cleanup. - Otherwise (no args,
list, or invoked directly), the action is list.