recover

Installation
SKILL.md

/recover — Worktree & Branch Cleanup

Scan for orphaned worktrees, stale branches, and partial work left behind by crashed or abandoned Claude Code sessions. Read-only by default — reports findings and waits for approval before cleanup.

Invocation: deliberately model-invocable — scanning is read-only. Every cleanup action is gated on explicit user approval.

When to Use

  • After a system crash or forced session termination
  • When parallel session hooks warn about stale processes
  • When you find commits on unknown branches
  • Periodic hygiene (monthly or after heavy parallel work)

Instructions

0. Detect the default branch

Don't assume main. Resolve it once and use it everywhere below:

Installs
4
GitHub Stars
10
First Seen
Sep 3, 2026