Branch Cleanup Skill for Reviewable Git Candidates
Build a local cleanup preview from merge ancestry, checked-out worktrees, and protected branches.
中文Install in Claude Code
Use your Git test repository and known main branch. The example only reports candidates.
- Get the complete `plugins/git/skills/cleaning-up-branches` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/cleaning-up-branches/SKILL.md`, start Claude Code at the project root, and call `/cleaning-up-branches`.
Example task
Make merged-demo already merged and active-demo checked out in another worktree. Inspect branch merge status and worktree occupancy.What to check
The preview treats merged-demo as reviewable and active-demo as occupied. Both branches remain available.
Original SKILL.md on GitHub · Updated
Frequently asked question
Does inactivity prove a branch has been merged?
Check commit ancestry or the associated pull request. Inactivity only describes time.