branch-cleanup

Installation
SKILL.md

Branch Cleanup

Automated workflow to sync main with origin and clean up local branches that have merged PRs.

Quick Start

When user asks to "clean up branches" or "delete merged branches":

  1. Pre-flight checks:

    • git fetch origin (update remote refs)
    • git branch --show-current (verify current branch)
    • If not on main: Ask user: "Should I switch to main? (Current: {branch})"
  2. Sync main:

    • git checkout main
    • git pull origin main --ff-only
    • If conflicts: ⚠️ Stop and report "Main has conflicts. Resolve manually."
Installs
5
Repository
fxstein/ai-todo
GitHub Stars
9
First Seen
Feb 14, 2026
branch-cleanup — fxstein/ai-todo