clean-branches

Clean up merged and stale git branches

Content Preview
# Clean Branches Command

Clean up merged and stale git branches

## Instructions

Follow this systematic approach to clean up git branches: **$ARGUMENTS**

1. **Repository State Analysis**
   - Check current branch and uncommitted changes
   - List all local and remote branches
   - Identify the main/master branch name
   - Review recent branch activity and merge history

   ```bash
   # Check current status
   git status
   git branch -a
   git remote -v
   
   # Check main branch name
   git 
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/clean-branches.md \
  https://raw.githubusercontent.com/qdhenry/Claude-Command-Suite/main/.claude/commands/dev/clean-branches.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/qdhenry/Claude-Command-Suite

Then reference at .claude/commands/dev/clean-branches.md

Related Skills