git-branch-clean
Git Branch Clean
Sync remote state, then find and delete local branches whose remote is gone. Always confirm with user before any deletion.
Step-by-Step Process
Step 1: Fetch and prune remote refs
git fetch --prune
This removes remote-tracking refs that no longer exist on remote.
Step 2: Pull alive tracking branches
Get list of alive tracking branches (not gone, not current):
More from nguyenhuy158/skills
odoo-code-review
Review Odoo (Python & XML) code for best practices, standards, and common errors. Use this skill when the user asks to review Odoo modules, Python files in an Odoo context, or XML views/data files.
48copilot-commit-style
Use this skill when the user asks to write, generate, draft, or format a git commit message. It enforces the Conventional Commits specification with mandatory emojis and strict formatting rules.
9pr-creator
Use this skill when user wants to create a pull request (PR) from current branch to another branch. Triggers on phrases like "create PR", "open PR", "make pull request", "tạo PR", "tạo pull request".
3code-polish
Polish Python code in git-changed files. Removes all comments and docstrings, eliminates magic strings and numbers, makes code self-documenting via naming. Python only — skips other languages. Use when user says "code-polish", "polish code", "clean code", "self-documenting", "remove comments", "làm sạch code".
2