From RavenClaude Core
Remove finished agent worktrees, prune their branches, and surface anything still in flight. Run at the end of a multi-agent session and weekly as hygiene.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ravenclaude-core:cleanup-worktreesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Labeling (Sleipnir):** worktrees are "Sleipnir's stables" in user-facing prose (see `ravenclaude-core/CLAUDE.md` → "Sleipnir"); this skill returns Sleipnir to the stable. Labeling only; the mechanics below are unchanged.
Labeling (Sleipnir): worktrees are "Sleipnir's stables" in user-facing prose (see
ravenclaude-core/CLAUDE.md→ "Sleipnir"); this skill returns Sleipnir to the stable. Labeling only; the mechanics below are unchanged.
git worktree list --porcelain. Show the user a short table: path, branch, HEAD, dirty?main (or the configured base). Safe to remove.git worktree remove .claude/worktrees/<role>-<slug>
git branch -d agent/<role>/<slug> # only if fully merged
Use -d (safe), never -D (force) without explicit user approval.git worktree prune.Removed (3):
agent/coder/auth-refresh merged into main 2 days ago
agent/tester/auth-refresh merged into main 2 days ago
agent/coder/nav-typo merged into main 5 days ago
Kept (2):
agent/coder/billing-page open PR #142
agent/coder/exp-feature dirty — uncommitted changes
Needs review (1):
agent/coder/old-spike stale, last commit 23 days ago, no PR
git branch -D (force-delete) without approval. -d will refuse to delete unmerged branches; that's the correct behavior.isolation: "worktree"?The Agent tool's native worktree isolation auto-cleans up its own ephemeral worktrees. This skill cleans up the managed worktrees created by new-worktree — predictable paths, predictable branch names, persisting across multiple sub-agent runs so the Team Lead can hand a worktree off between agents. Those won't be cleaned by the harness, so the Team Lead runs this skill at the end of a multi-agent session and weekly as hygiene.
npx claudepluginhub mcorbett51090/ravenclaude --plugin ravenclaude-coreGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Dispatches multiple subagents concurrently for independent tasks without shared state. Use when facing 2+ unrelated failures or subsystems that can be investigated in parallel.