skills/git-branch-cleanup/SKILL.md
Safely clean merged and stale git branches with explicit confirmations.
npx skillsauth add tmeister/skills git-branch-cleanupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to safely remove merged or stale branches with explicit user confirmation.
origin/HEAD and fall back to main, then master.Check repository state
git status --porcelainDetect default branch
git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'main, then master.Define protected branches
main, master, develop, staging, production, qa.List merged branches
git branch --merged <default-branch>git branch -r --merged <default-branch>List stale branches
git for-each-ref --format='%(refname:short) %(committerdate:short)' refs/headsDelete with confirmation
git branch -d <branch>-D.Remote cleanup
git remote prune origingit push origin --delete <branch>Report and recovery
git reflog --no-merges --since="2 weeks ago".Provide:
documentation
Use when a JWT site content issue is ready for execution and you need to draft or finalize the post directly in jwt-site, keep the same draft PR moving, and sync HQ tracking.
tools
Analyze changes and update WordPress plugin version references safely.
tools
Create, verify, list, or delete WordPress plugin version tags safely.
tools
Generate a WordPress plugin changelog focused on user value and update readme.txt when requested.