Branch Cleanup
Description
--- description: Clean up merged, stale, and orphaned git branches. Protects main/develop/release/* automatically. Supports --dry-run (preview only), --force (no confirmation), --remote-only, --local-only. Run after a sprint ends or before a release. allowed-tools: Bash, Read, Grep --- # Branch Cleanup Audit and clean up local and remote branches safely. Always categorises before deleting. ## Step 1 — Gather Repository State ```bash echo "=== Current branch ===" git branch --show-current ec
Installation
Installs to ~/.claude/commands/kumaran-is-claude-code-onboarding-branch-cleanup.md
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.
Full documentation available on GitHub
View Source RepositoryRelated Skills
Epic Sync
Sync epic issue bodies, labels, and local coordination snapshots from GitHub.
Git 使用 Git Worktrees
创建孤立的 Git worktrees,带有智能目录选择与安全验证。
Git Claude skills github
[Building agent skills blog](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-ag
Git #148
, [#161](https://github.com/affaan-m/everything-claude-code/pull/161))
Git GitHub MCP
| Token | Repos, issues, PRs, workflows |
Git GitHub MCP Server
Official first-party server to read repos, manage issues/PRs, and automate workflows.
Git