← ClaudeAtlas

finishing-a-branchlisted

Use when a change's checks have been run and verified green and you're ready to wrap the branch — clean commits, a real PR description, and a clear merge/keep/discard decision. If "done" or "tested" is only asserted and not yet confirmed by running the check, verify first (verifying-completion) — don't wrap on an unverified claim. Gates on green before anything destructive; never force-pushes or discards without explicit say-so. Skip mid-development — this is the wrap-up.
NjoyimPeguy/augments · ★ 1 · AI & Automation · score 74
Install: claude install-skill NjoyimPeguy/augments
# Finishing a Branch Take a working branch to a merge-ready state. The order is fixed — gate, tidy, describe, decide, clean up — and nothing destructive happens before the thing it depends on is confirmed. ## When to use - A change is complete and its checks have been run and pass (not merely claimed), and you're ready to merge, open a PR, or set the branch aside. - **Skip** mid-development — this is the wrap-up, not a checkpoint. ## Procedure 1. **Gate on green.** Run the tests and checks fresh; read the output. If anything fails, STOP and fix it before any step below. A merge-ready branch has passing checks, not "should be passing". 2. **Tidy the history.** One logical commit per coherent change. Imperative subject ≤ ~72 chars; the body says *why*, not *what* (the diff is the what). Squash fixup noise. Do **not** force-push a branch with shared history unless explicitly asked. 3. **Write the PR description** — two sections, no more: - `## Summary` — 2–3 bullets: what changed and why. - `## Test Plan` — how it was verified. A reader should grasp the change without opening the diff. 4. **Decide, explicitly** — surface the choice once; don't open-end it: - **Merge** it — only after green checks and review (`requesting-code-review`; its self-review path covers a trivial mechanical diff). - **Open a PR** and leave the branch for review. - **Keep** it as-is, or **discard** it. 5. **Clean up only what you created**, and only after the merge is confirmed. Rem