From claude-resources
Clean up local and remote merged git branches with user confirmation. Useful after PR merges to remove stale branches.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-resources:git-prune-branches-bothThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Check and prune both local and remote branches that have been merged:
Check and prune both local and remote branches that have been merged:
git branchgit branch --mergedgit fetch --prunegit branch -rgit branch -d <branch-name>git push origin --delete <branch-name>Important: Never delete:
Note: Remote deletion affects the repository for all users and cannot be easily undone. Ensure user confirmation before proceeding.
npx claudepluginhub takazudo/claude-resources --plugin claude-resourcesLists and prunes remote git branches merged into origin/main after user confirmation. Useful for cleaning remote branches without affecting local 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.