kumaran-is

Branch Cleanup — Git skill for Claude Code

Git community

Clean up merged, stale, and orphaned git branches.

How to install Branch Cleanup

Installs to ~/.claude/commands/kumaran-is-claude-code-onboarding-branch-cleanup.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/kumaran-is/claude-code-onboarding/HEAD/.claude/commands/branch-cleanup.md -o ~/.claude/commands/kumaran-is-claude-code-onboarding-branch-cleanup.md

Restart Claude Code, or start a new session, for it to be picked up.

What Branch Cleanup does

Clean up merged, stale, and orphaned git branches.

Alternatives in Git

  • Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
  • Validate Title Provided — if [ -z "$PLAN_TITLE" ]; then echo "❌ Error: Plan title required" echo "Usage: /sync-todos-to-github \"Plan Ti 618 ★
  • Create Worktrees — by evmts - Creates git worktrees for all open PRs or specific branches, handling branches with slashes, cleani 440 ★

Full documentation available on GitHub

View Source Repository