Output format:
**Merge risk: <low-medium-high>**
**<category>:** <verdict>
<list gaps that increase risk. Use bullets, keep succinct. Include links to relevant files as needed>
<...list all categories>
These are the categories and verdicts that affect risk, with descriptions of what "low risk" means:
- Alignment (poor ⚠️ / decent 👀 / good ✅): Code aligns with the description and source issue, when present. Behavior assumptions and drive-bys must be documented.
- Impact (large ⚠️ / medium 👀 / small ✅): Scope is contained and away from sensitive code paths.
- Consider blast radius: potential impact or scope of the changes introduced by this PR. Consider all possibilities. Examples are layout shift, breakages for consumers, mobile responsiveness, etc.
- Sensitive areas carry outsized risk regardless of diff size: auth, permissions, payments, PII, secrets, data migrations, dependency bumps, and infra or config changes. Flag any that are touched, and call out anything that widens access, weakens validation, or logs sensitive data.
- Verification (poor ⚠️ / decent 👀 / good ✅): Behavior is verified, where applicable.
- Changes to the user experience need end-to-end proof as screenshots or recordings. Changes that could meaningfully affect performance need profiling. Prefer before-and-after evidence to standalone proof. When this coverage is lacking, it's a failure.
- Edge cases must be tested, or documented when they aren't; review the code closely and link the user to relevant code when only documentation is present.
- Rollback cost (high ⚠️ / medium 👀 / low ✅): The code is reversible once merged. Consider one-way vs. two-way doors. You can walk back through two-way doors, but not one-way doors. A PR that is cheap to roll back is lower risk. Changes that involve destructive actions or hard-to-reverse decisions are one-way doors.
- Error detection (poor ⚠️ / decent 👀 / good ✅ / N/A ✅): If applicable, critical flows should be monitored; If this breaks in production, someone should find out before users report it. Look for swallowed errors or fallbacks that hide breakage.
Generate a risk score for merging this PR on a scale of low - medium - high.
Verdicts:
Weights:
- Impact = 2x
- Verification = 2x
- Rollback cost = 1.5x
- Error detection = 1x
- Alignment = 1x
Score = Σ(score × weight) / Σ(weights).
- low: < 1.5
- medium: 1.5 – < 2.25
- high: ≥ 2.25
Keep the numerical score and its calculations internal; do not include them in the output.
1---2description: Use when assessing the risk of merging a PR3metadata:4 source: https://skillmd.com/skills/h3y6e/merge-risk5 credits:6 author: Matt Pocock7 skill: pr8 url: https://github.com/mattpocock/skills/blob/main/skills/engineering/pr/SKILL.md9 github-path: .agents/skills/merge-risk10 github-ref: refs/heads/main11 github-repo: https://github.com/warpdotdev/common-skills12 github-tree-sha: 5c76f952405b020e9a1c9acfa86bcee99645c95313name: merge-risk14---1516Output format:1718```19**Merge risk: <low-medium-high>**2021**<category>:** <verdict>22<list gaps that increase risk. Use bullets, keep succinct. Include links to relevant files as needed>2324<...list all categories>25```2627These are the **categories** and **verdicts** that affect risk, with descriptions of what "low risk" means:2829- **Alignment (poor ⚠️ / decent 👀 / good ✅):** Code aligns with the description and source issue, when present. Behavior assumptions and drive-bys must be documented.30- **Impact (large ⚠️ / medium 👀 / small ✅):** Scope is contained and away from sensitive code paths.31 - Consider blast radius: potential impact or scope of the changes introduced by this PR. Consider all possibilities. Examples are layout shift, breakages for consumers, mobile responsiveness, etc.32 - Sensitive areas carry outsized risk regardless of diff size: auth, permissions, payments, PII, secrets, data migrations, dependency bumps, and infra or config changes. Flag any that are touched, and call out anything that widens access, weakens validation, or logs sensitive data.33- **Verification (poor ⚠️ / decent 👀 / good ✅):** Behavior is verified, where applicable.34 - Changes to the user experience **need** end-to-end proof as screenshots or recordings. Changes that could meaningfully affect performance **need** profiling. Prefer before-and-after evidence to standalone proof. When this coverage is lacking, it's a failure.35 - Edge cases must be tested, or documented when they aren't; review the code closely and link the user to relevant code when only documentation is present.36- **Rollback cost (high ⚠️ / medium 👀 / low ✅):** The code is reversible once merged. Consider one-way vs. two-way doors. You can walk back through two-way doors, but not one-way doors. A PR that is cheap to roll back is lower risk. Changes that involve destructive actions or hard-to-reverse decisions are one-way doors.37- **Error detection (poor ⚠️ / decent 👀 / good ✅ / N/A ✅):** If applicable, critical flows should be monitored; If this breaks in production, someone should find out before users report it. Look for swallowed errors or fallbacks that hide breakage.3839Generate a risk score for merging this PR on a scale of low - medium - high.4041Verdicts:4243- ⚠️ = 344- 👀 = 245- ✅ = 14647Weights:4849- Impact = 2x50- Verification = 2x51- Rollback cost = 1.5x52- Error detection = 1x53- Alignment = 1x5455Score = Σ(score × weight) / Σ(weights).5657- low: < 1.558- medium: 1.5 – < 2.2559- high: ≥ 2.256061Keep the numerical score and its calculations internal; do not include them in the output.