From claude-resources
Lists and prunes remote git branches merged into origin/main after user confirmation. Useful for cleaning remote branches without affecting local branches.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-resources:git-prune-branches-remoteThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Check and prune remote branches that have been merged:
Check and prune remote branches that have been merged:
git fetch --prunegit branch -rgit branch -r --merged origin/main (or appropriate main branch)git push origin --delete <branch-name> for each branchImportant: Never delete:
Note: This operation affects the remote repository and cannot be easily undone. Ensure user confirmation before proceeding.
npx claudepluginhub takazudo/claude-resources --plugin claude-resourcesClean up local and remote merged git branches with user confirmation. Useful after PR merges to remove stale branches.
Safely identifies and deletes merged and stale Git branches after fetching latest state, filtering by pattern, and user confirmation via interactive prompts. Protects main branches.
Automates git branch cleanup: inventories local/remote branches, identifies merged/gone candidates, protects main/develop/release/current, confirms deletions, prunes remotes, provides recovery SHAs.