Review triage

From ferologics/pi-skills · View interactive version

Review triage is an AI agent skill from the GitHub repository ferologics/pi-skills. Triage code review findings before changing code. Verify each one, separate the symptom from the proposed fix, and let the user pick what to fix. Use when acting on review findings from a reviewer agent or PR comments.

How to use this skill

Skill file

Review Triage

Treat review findings as claims, not tasks. Reviewers usually spot a real symptom but often guess the wrong cause, and a proposed fix applied as written turns into code nobody asked for. Triage first, then fix only what the user picks.

Triage (no repo edits)

Work through every finding. Put scratch reproductions in a temp directory, not the repo. When a finding already cites evidence (a failing input, a test, file:line), check that first instead of starting over: re-run it or re-read the lines, and don't take it on trust.

  1. Symptom. Restate it in one line: what goes wrong, for which input or state. Set the reviewer's proposed fix and suggestion code aside; treat it as a hypothesis.
  2. Evidence. Read the code and settle it:

"Unlikely" or "looks fine" is not a refutation. Mark those unverified.

  1. Cause. Name where the fix belongs. If the flagged line is only where the symptom shows and the cause sits upstream (a wrong producer, a missing invariant, an existing path the change went around), say so.
  2. Directions. One to three, smallest first, each with a rough size (files, lines). Check these before anything that adds code:

A direction that adds a guard, fallback, retry, option, or special case must name the input that reaches it.

  1. Call. fix (with the direction you recommend), ask (needs the user's decision), or skip.

Default to skip for test or coverage requests that don't pin a confirmed defect, hardening against inputs the types or callers already exclude, style or alternative designs without a repo rule behind them, and "consider" or "might" findings with no triggering input.

Output one table, ordered by priority. Re-rank by what you verified, and leave refuted findings out of it:

| # | Priority | Symptom | Verdict and evidence | Cause | Call |

| - | -------- | ------- | -------------------- | ----- | ---- |

Below it, give the directions for each fix and ask row in one to three lines, then list the refuted findings, one line each with the evidence. Then stop and wait for the user to pick. Do not start fixing, even when every call looks obvious.

When the user asks for fixes

Fix only the findings the user asks for, in the direction they choose.

Don't ask for another full review afterwards. For a recheck, review only the fix diff against the accepted findings.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.