repo-hygienelisted
Install: claude install-skill wan-huiyan/claude-ecosystem-hygiene
# Repo Hygiene
A pre-PR checklist and repo cleanup guide built from real mistakes that cost hours to fix.
Every item here came from a real incident where something was committed, merged, and then
had to be painfully undone.
## When to Use
- Before running `gh pr create`
- Before merging any branch
- When someone asks "is this repo clean?"
- When preparing a repo for handover to another team member
- When you notice data files, absolute paths, or runtime artifacts during any file operation
## The Pre-PR Checklist
Run through these checks in order. Each one has burned real teams.
### 1. Branch Ownership
**The problem:** You commit deliverable fixes on a feature branch, then need to cherry-pick
them onto the correct branch. Cherry-picking commits that touch files across concerns
(webapp + deliverables + analysis) creates merge conflicts and duplicated work.
**Before your first commit on any branch, answer:** "Which files does this branch own?"
| Branch type | Owns | Does NOT own |
|---|---|---|
| `feature/webapp-*` | `webapp/`, `tests/`, `requirements-web.txt` | `deliverables/`, `analysis/`, `ANALYSIS_FINDINGS.md` |
| `fix/review-*` | `deliverables/`, `analysis/`, `ANALYSIS_FINDINGS.md`, `docs/` | `webapp/` |
| `docs/*` | `docs/`, `README.md`, `.md` files | Code files |
**Rule:** If a commit touches files from two different ownership groups, split it into
two commits on two branches. The 5 minutes you spend now saves the 30-minute cherry-pick
session later.
**This app