Install any skill in seconds. Free to start, no credit card required.
Get Started Free →gotalab/git-branch-cleanup
Analyzes and safely cleans up local Git branches. Categorizes branches by merge status, staleness, and remote tracking. Provides interactive selection with safety guards.
Passed 11 of 21 test cases with the skill, and 8 of 21 without it.
and 3 more in the full report
4 fixed13 passed either way5 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
We want to categorize unmerged branches based on activity level. What is a standard inactivity threshold in days for marking a branch as stale, and how can we sort branches by committer date in Git commands?
| Checked | Without skill | With skill |
|---|---|---|
| Uses 30 days as the default threshold for stale branch detection | Missed | Passed |
| Sorts branch references using for-each-ref with committerdate | Missed | Passed |
The instructions your model reads when the skill loads.
Safely organize and clean up local Git branches. Categorizes branches by merge status, staleness, and remote tracking, then guides users through safe deletion.
Collect information with these commands:
# Decide base branch (prefer auto-detect; fallback to main)
BASE_BRANCH="$(
git symbolic-ref --quiet --short refs/remotes/origin/HEAD 2>/dev/null | sed 's@^origin/@@'
)"
[ -n "$BASE_BRANCH" ] || BASE_BRANCH=main
# List all branches with last commit date
git for-each-ref --sort=-committerdate refs/heads/ \
--format='%(refname:short)|%(committerdate:relative)|%(upstream:trackshort)|%(contents:subject)'
# Merged branches (against base)
git branch --merged "$BASE_BRANCH"
test cases passed, vs 8 / 21 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.