Claude Code Skill for Auditing Stale Local Git Branches
Create a review list that identifies local branches already reachable from a base branch and branches with no recent commits.
中文Install in Claude Code
Use a Git checkout and identify its base branch. This example uses local refs only and needs no remote refresh.
- Get the complete `plugins/git/skills/listing-stale-branches` directory from the pinned GitHub checkout.
- Copy it under the target project's `.claude/skills/`. Confirm `.claude/skills/listing-stale-branches/SKILL.md`, open Claude Code at the project root, and call `/listing-stale-branches`.
Example task
In a practice checkout, make `docs-intro` reachable from `main` and leave `old-notes` unmerged with its last commit four months ago. Audit the local branches with a three-month cutoff.What to check
The report identifies `docs-intro` as merged and `old-notes` as inactive and unmerged, with evidence for both labels.
Original SKILL.md on GitHub · Updated
Frequently asked question
Does an old tip mean a branch has been merged?
Tip age is a time measurement. Check reachability from the chosen base for merge status.