From review-to-pr
Clean up worktrees and branches from completed review-to-pr fixes. Use when user says 'clean up worktrees', 'review cleanup', 'remove fix branches', or '/review-cleanup'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/review-to-pr:cleanupThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Remove worktrees and branches that are no longer needed.
Remove worktrees and branches that are no longer needed.
/review-cleanup # Clean only merged/closed PR worktrees
/review-cleanup --all # Force clean ALL worktrees (including open PRs)
bash "${CLAUDE_PLUGIN_ROOT}/lib/autofix.sh" --cleanup
Only cleans worktrees whose PRs have been merged or closed. Safe to run anytime.
bash "${CLAUDE_PLUGIN_ROOT}/lib/autofix.sh" --cleanup-all
Warning: This removes ALL worktrees including those with open PRs. The remote branches and PRs remain — only local worktrees are removed. Ask user for confirmation before running with --all.
After cleanup, show what was removed and what remains.
npx claudepluginhub sheldon123z/review-to-pr --plugin review-to-prBatch removes git worktrees for closed GitHub issues and merged branches. Checks status via gh CLI, reports summary, confirms before pruning and branch deletion.
Safely deletes merged Git worktrees after verifying git merge status and GitHub PR closure via gh CLI. Handles single branch or 'all' for batch cleanup post-PR merge.
Removes git worktrees and associated branches after PR merges, sub-scope consolidation, or manual cleanup. Lists worktrees if unspecified, handles uncommitted changes and paused states.