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 worktrees trait overlay after speckit.specify completes. Creates a worktree, restores main, 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.specify overlay (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.

Prerequisites

Related skills
Installs
2
Repository
rhuss/cc-spex
GitHub Stars
42
First Seen
Mar 30, 2026