git-cleanup

Installation
SKILL.md

Git Cleanup

Clean local branches (except main and current branch) and non-origin remotes. Useful after reviewing multiple PRs that leave behind tracking branches and contributor remotes.

Workflow

1. Survey

Run these in parallel:

git branch
git remote
git status --short
git stash list

Present a summary of how many branches and remotes will be removed.

Installs
3
GitHub Stars
17.6K
First Seen
Apr 10, 2026
git-cleanup — alibaba/page-agent