Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Merge Case?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/dev-dami-merge-case)
---
name: merge-case
description: "Use when writing or updating a pull request body, once the work has passed finish-line. Publishing it needs OK."
user-invocable: false
---
# Merge case
Gate: get the user's OK before pushing, or opening or updating a PR (G1). See gates.md in the skill house-rules.
Job: Let a reviewer grasp a change, trust it and judge merge risk in seconds.
Takes: a diff and a report. Gives: a PR body.
## Steps
1. **Get the report.** First run `gh pr list --head <branch> --state open`: if a PR exists, update it instead of opening a second. If the work has no report yet, use the skill `finish-line` first. When updating, read the current body and keep what people added to it.
2. **Open plainly.** No preamble. Open with the problem the user had, then the fix in one line, in the project's words. Title it in the style of recent merged PRs, stating the effect.
- BAD `Refactored parseConfig, added loadDefaults, updated three tests.`
- GOOD `Saved settings vanished when a key had no default. Missing keys now fall back to the shipped value.`
3. **Show the change** in the smallest view that fits: pseudocode, a call tree, a UI tree, a file tree, a sequence diagram, a diff of any of those, or a full block when the code is mostly new. Keep only the elements that matter. Put each visual beside its text. Add a second view only if the first can't carry the point.
4. **Prove it with before and after.** Use a screenshot when the change is visual and that's practical. Otherwise use execution output showing the exact test that flipped. Take evidence from the report and keep its labels: a `[reported]` line stays `[reported]`.
5. **Judge the danger.** Say whether it's cheaply reversible, and destructive or hard to undo means no. Add a one-word blast radius, with optional detail, thinking about consumers, layout and mobile. If the report proved a safety fact, cite it with its rung.
6. **Say what checked it.** Name the checker and its `independent` value, or say no check ran. Carry over anything under the report's `Open`, `Needs OK` and `Out of scope`.
7. **Publish.** Show the body. An explicit request such as "open the PR", or a standing OK in the user's prefs that names both the push and the PR, is already the OK for that push and PR, so go ahead. Otherwise ask first. Push and open through the host's own `gh`, passing the body from a file. Open it ready for review, not as a draft, unless asked, so review bots run. If GraphQL is rate-limited, open it through `gh api repos/<o>/<r>/pulls`, with the body from a file. End by printing the PR URL alone on a line. To watch it to merge-ready, follow the file `follow-through.md` in this skill.
## Shape
```markdown
Login now rejects a sixth attempt per IP per minute.
request > rateLimit(ip) > login
\-- 429 + Retry-After
Before: the sixth attempt returned 200.
After: `sixth attempt returns 429` went from failing to passing. [observed]
Reversible: yes, config flag. Blast radius: auth.
Checked by: codex, independent: other-kind.
Out of scope: per-account limit, card c9.
```
Every line earns its place. Drop any section the change doesn't need, and nothing goes in for decoration.
## Done when
- The body opens with the change, in project words, and has no preamble.
- It holds one fitting view, a before-and-after proof, and a danger line with reversibility and a one-word blast radius.
- Every evidence claim comes from the report with its label intact, and the report's open and out-of-scope items appear.
- The checker and its `independent` value are named, or the body says no check ran.
- The body was shown, and the push and PR ran only under an OK, explicit or standing, with the PR URL printed alone on a line. Without one, the body is handed over unpublished.