Clean up local git branches that have been merged into main/master. Use when: (1) User says 'prune local branches' or 'clean local branches', (2) User wants to delete only local merged branches without touching remote.
Scanned 9/8/2026
Install to Claude Code
npx -y skills add Takazudo/claude-resources --skill git-prune-branches-local --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Git Prune Branches Local?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/takazudo-git-prune-branches-local)More formats (shields.io, HTML) on the badges page.
---
name: git-prune-branches-local
description: >-
Clean up local git branches that have been merged into main/master. Use when: (1) User says 'prune
local branches' or 'clean local branches', (2) User wants to delete only local merged branches
without touching remote.
---
# Git Prune Branches (Local)
Check and prune local branches that have been merged:
1. Get the list of all local branches using `git branch`
2. For each branch, check if it has been merged into the main branch using `git branch --merged`
3. Exclude protected branches (main, master, develop, etc.)
4. Create a list of branches that are safe to delete
5. Present the deletion list to the user clearly
6. Ask for confirmation: "The following local branches will be deleted. Proceed? (yes/no)"
7. If user confirms with "yes" or similar affirmative response, delete the branches using `git branch -d <branch-name>` for each branch
8. Report the results
**Important:** Never delete:
- The currently checked out branch
- Protected branches: main, master, develop, development, staging, production
- Branches that are not fully merged (unless explicitly requested)
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation
Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.