vp-git-cleanup
Installation
SKILL.md
Git Cleanup
Audit first, then clean up only after explicit confirmation. Treat branch, worktree, stash, and remote-ref cleanup as separate risk classes.
Core Rules
- Default to read-only audit - Do not delete branches, worktrees, stashes, or refs until the user approves an exact plan.
- Protect active work - Never delete the current branch, base ref, checked-out branches, dirty worktrees, locked worktrees, or stashes that have not been inspected.
- Separate local and remote risk - Local branch cleanup and remote branch deletion require separate confirmation.
- Prefer safe Git checks - Use
git branch -dfor merged local branches. Usegit branch -Donly when the user explicitly accepts the force-delete risk. - Execute sequentially - Run cleanup commands one at a time and stop on unexpected failures. Do not batch destructive Git commands in parallel.