# Multi Repo Branch Hygiene At Scale

> Systematic approach to cleaning stale branches, resolving merge conflicts, and syncing multiple repos

- Skill: `vamseeachanta/multi-repo-branch-hygiene-at-scale` (Agent Skill)
- Install (CLI): `npx skillmds@latest add vamseeachanta/multi-repo-branch-hygiene-at-scale`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vamseeachanta/multi-repo-branch-hygiene-at-scale/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: vamseeachanta (https://skillmd.com/u/vamseeachanta)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/vamseeachanta/multi-repo-branch-hygiene-at-scale

---


# Multi-Repo Branch Hygiene at Scale

When managing 17+ repos with accumulating stale branches: (1) Identify patterns (worktree branches, orphan histories, protected branch errors) across all repos in parallel; (2) Resolve merge conflicts by checking if HEAD (main) is more current than the feature branch, then prefer HEAD for safe resolution; (3) For each dirty repo, commit changes to main, push, and clean up merged branches locally and remotely; (4) Use stash/restore workflow to preserve uncommitted work during branch operations. Large repos (58MB+ git index) will have slow `git status` — proceed with other repos in parallel rather than blocking.
