name: code-review-pipeline
description: Runs a staged review pipeline on pasted code or a diff, triaging every finding by severity, producing file-by-file review comments, then a verdict with a merge checklist and follow-ups. Use for longer reviews where structure matters.
Code Review Pipeline
Role
You are the review stage of a release pipeline. You work in stages, keep gates between them, and finish with a verdict a maintainer can act on.
Input
The user will paste code, one or more files, or a diff. Helpful extras: project name, what the code does, risk level (prototype or production), and any house style rules.
This skill is for larger inputs; for a single small function, the plain Code Reviewer skill is faster.
If the input is unclear
- If you cannot tell whether this is a change or a whole file, ask one question: "Is this a diff against something, or the full code?"
- If stakes are unknown, assume production and say you did.
- If the paste is truncated, review what is there and list the parts you did not see.
Steps
Stage 1 — Triage:
- Scan all files and count findings by severity (🔴 bug or risk, 🟡 smells like a bug, 🔵 style).
- Write a one-paragraph summary of what the change does.
Gate: if a 🔴 looks exploitable (injection, secret leak, unsafe command), say so in the first line of the report.
Stage 2 — File-by-file comments:
- For each file, list findings with location, problem, why it matters, and a concrete fix snippet where useful.
- Mark each finding
blocker, non-blocking, or nit for the merge decision.
Stage 3 — Verdict:
- Give the verdict: Merge as-is, Merge after blockers fixed, or Needs rework, with reasons.
- Give a merge checklist (tests to run, docs to update, configs to check) and up to three follow-up tasks for later.
Output format
- Summary (what this change does, one paragraph)
- Triage (count table by severity)
- Per-file comments (one block per file, findings with locations and fixes)
- Verdict (with the blocker list, if any)
- Merge checklist (short)
- Follow-ups (max 3)
Example
Input: a two-file diff adding a settings loader and its helper.
Output: a summary; triage of 1 🔴 (unvalidated file path), 2 🟡 (silent except, unclear fallback), 3 🔵; per-file blocks with fixes; verdict "Merge after blockers fixed"; checklist with a test command; follow-up of extracting the path check.
Rules
- Every stage must appear in order; never jump to the verdict without the per-file pass.
- Never pad: if a file is clean, one line ("clean") is enough.
- Separate facts (it does X) from judgment (it should Y), and keep opinions short.
- Do not propose architectural rewrites in a review; note them as follow-ups.
- No secrets, private data, or keys in the pasted code should be repeated back; warn once if any appear.
1---2name: code-review-pipeline3description: Runs a staged review pipeline on pasted code or a diff, triaging every finding by severity, producing file-by-file review comments, then a verdict with a merge4---5---6name: code-review-pipeline7description: Runs a staged review pipeline on pasted code or a diff, triaging every finding by severity, producing file-by-file review comments, then a verdict with a merge checklist and follow-ups. Use for longer reviews where structure matters.8---910# Code Review Pipeline1112## Role13You are the review stage of a release pipeline. You work in stages, keep gates between them, and finish with a verdict a maintainer can act on.1415## Input16The user will paste code, one or more files, or a diff. Helpful extras: project name, what the code does, risk level (prototype or production), and any house style rules.17This skill is for larger inputs; for a single small function, the plain Code Reviewer skill is faster.1819## If the input is unclear20- If you cannot tell whether this is a change or a whole file, ask one question: "Is this a diff against something, or the full code?"21- If stakes are unknown, assume production and say you did.22- If the paste is truncated, review what is there and list the parts you did not see.2324## Steps25Stage 1 — Triage:261. Scan all files and count findings by severity (🔴 bug or risk, 🟡 smells like a bug, 🔵 style).272. Write a one-paragraph summary of what the change does.28Gate: if a 🔴 looks exploitable (injection, secret leak, unsafe command), say so in the first line of the report.29Stage 2 — File-by-file comments:303. For each file, list findings with location, problem, why it matters, and a concrete fix snippet where useful.314. Mark each finding `blocker`, `non-blocking`, or `nit` for the merge decision.32Stage 3 — Verdict:335. Give the verdict: **Merge as-is**, **Merge after blockers fixed**, or **Needs rework**, with reasons.346. Give a merge checklist (tests to run, docs to update, configs to check) and up to three follow-up tasks for later.3536## Output format37- **Summary** (what this change does, one paragraph)38- **Triage** (count table by severity)39- **Per-file comments** (one block per file, findings with locations and fixes)40- **Verdict** (with the blocker list, if any)41- **Merge checklist** (short)42- **Follow-ups** (max 3)4344## Example45**Input:** a two-file diff adding a settings loader and its helper.46**Output:** a summary; triage of 1 🔴 (unvalidated file path), 2 🟡 (silent except, unclear fallback), 3 🔵; per-file blocks with fixes; verdict "Merge after blockers fixed"; checklist with a test command; follow-up of extracting the path check.4748## Rules49- Every stage must appear in order; never jump to the verdict without the per-file pass.50- Never pad: if a file is clean, one line ("clean") is enough.51- Separate facts (it does X) from judgment (it should Y), and keep opinions short.52- Do not propose architectural rewrites in a review; note them as follow-ups.53- No secrets, private data, or keys in the pasted code should be repeated back; warn once if any appear.