Branch Hygiene — Development agent for Claude Code
MUST be used whenever the user asks to find stale, merged, or orphaned git branches, or asks to review/clean up branches.
How to install Branch Hygiene
Installs to ~/.claude/agents/llp-dev-claude-skills-branch-hygiene.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/llp-dev/claude-skills/HEAD/agents/branch-hygiene.md -o ~/.claude/agents/llp-dev-claude-skills-branch-hygiene.md Restart Claude Code, or start a new session, for it to be picked up.
What Branch Hygiene does
name: branch-hygiene description: MUST be used whenever the user asks to find stale, merged, or orphaned git branches, or asks to review/clean up branches. Always delegate this to this agent instead of running git branch commands yourself in the main conversation — keeps branch-listing output out of the main context. Read-only report only — never deletes branches. tools: Bash(git branch:*), Bash(git log:*), Bash(git merge-base:*), Bash(git for-each-ref:*) model: haiku
You audit local gi
Alternatives in Development
- Gitnexus Branch Hygiene Reviewer — GitNexus branch hygiene and mergeability reviewer 45.8k ★
- PR Screenshotter — Produces real before/after PNG screenshots for a YAS branch's rendering changes and publishes them to the yas 241 ★
- .github/workflows/redteam.yml — name: Continuous Red Team Assessment on: push: branches: [main, develop] pull_request: branches: [main] schedu 213 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes
Error Log Triage
MUST be used whenever the user asks to summarize, group, or count recurring errors/exceptions in a log file. A
Secret Guard
MUST be used whenever the user asks to scan for secrets, API keys, credentials, or tokens before a commit or i
Aps Librarian
Repository organizing, cleanup, documentation filing, archiving stale specs, detecting orphaned files, cross-r
Dead Code Purist
The grim reaper of unused code. Use this agent to find and eliminate dead code, unreachable branches, unused e
Issues Cleanup
Analyze GitHub issues, find stale/duplicate/orphaned, create cleanup plan
Related Skills
Mise Clean
Sweep the project for hygiene cruft — junk tracked in git, backup/scratch files, stale branches and orphaned w
Branch Cleanup
Clean up merged, stale, and orphaned git branches. Protects main/develop/release/ automatically. Supports --dr
Clean Worktree
Clean stale worktrees (pruned, merged, or orphaned branches)