git-branch-cleanup

Installation
SKILL.md

Git Branch Cleanup

Use this skill to safely remove merged or stale branches with explicit user confirmation.

Safety Rules

  • Stop if the working tree is not clean.
  • Detect the default branch from origin/HEAD and fall back to main, then master.
  • Never delete protected branches.
  • Never force delete unless the user explicitly approves.

Workflow

  1. Check repository state
    • git status --porcelain
    • If not clean, ask the user to commit or stash first.
Installs
6
Repository
tmeister/skills
GitHub Stars
1
First Seen
Feb 3, 2026
git-branch-cleanup — tmeister/skills