| name | pr-gate-review |
| description | Enforce structured PR scrutiny with risk-focused findings, plain-language summaries, and conflict triage outputs. |
PR Gate Review
Use this skill when reviewing pull requests or triaging merge conflicts.
Objectives
- Surface regressions, security risks, and missing tests before merge.
- Produce plain-language explanations for maintainers who do not review raw diffs.
- Provide actionable conflict resolution guidance.
Review Flow
- Restate PR intent in plain language.
- Identify behavior changes and blast radius.
- Run a security checklist:
- input validation and bounds checks
- memory safety and ownership
- path/file/process safety
- privilege and fail-closed behavior
- Validate tests:
- regression test coverage for changed behavior
- negative path coverage for risky code paths
- Classify findings by severity (
blocker, high, medium, low).
- End with explicit merge recommendation (
approve or do-not-merge).
Conflict Triage Flow
- List conflicting files.
- For each file, state likely intent of both sides.
- Propose a merge strategy:
- keep ours
- keep theirs
- combine with ordered edits
- Mark follow-up tests required after conflict resolution.
- State residual risk after resolution.
Required Output Shape
Summary
Findings (severity-ranked)
Required fixes before merge
Conflict guidance (only when conflicts exist)
Final recommendation