worktree-cleanup

Installation
SKILL.md

Worktree Cleanup

Remove a git worktree and its associated branch after work is complete. Typically invoked after a PR is merged, after CONSOLIDATE merges sub-scope branches, or manually by the user.

When to Use

  • After peer-review merges a PR (automatic cleanup)
  • After CONSOLIDATE merges sub-scope branches
  • Manual cleanup of stale worktrees (/PACT:worktree-cleanup)
  • User aborts a workflow and wants to clean up

Process

Follow these steps in order. Surface all git errors clearly — the user resolves them.

Step 1: Identify Target

Determine which worktree to remove.

Related skills
Installs
14
GitHub Stars
65
First Seen
Feb 26, 2026