# Review Triage Phase

Produces canonical review actions from fetched review state and renders action markdown.

- Repository: https://github.com/prisma/orm (47661 stars)
- Category: Engineering
- License: Apache-2.0
- Last updated: 2026-10-31
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add prisma/orm --skill review-triage-phase -g -a claude-code -y`
Codex: `npx skills add prisma/orm --skill review-triage-phase -g -a codex -y`
Cursor: `npx skills add prisma/orm --skill review-triage-phase -g -a cursor -y`
Gemini CLI: `npx skills add prisma/orm --skill review-triage-phase -g -a gemini-cli -y`

## Description

Produces canonical review actions from fetched review state and renders action markdown. Use when the user wants only triage/action-planning for the review-framework workflow.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Review Triage Phase

Run only the triage phase of the review-framework loop:

read current review state artifacts, bootstrap canonical `review-actions.json`, update triage fields, validate, then render `review-actions.md`.

Run commands from this skill directory. All script paths below are relative to it.

## Inputs

- Required:
  - PR URL
- Optional:
  - output directory

If output directory is omitted, derive:

`wip/reviews/<owner>_<repo>_pr-<number>/`

## Preconditions

Expected inputs in output dir:

- `<output-dir>/review-state.json`
- `<output-dir>/review-targets.json` (optional)
- `<output-dir>/review-state.md` (optional)
- `<output-dir>/summary.txt` (optional)

If `review-state.json` is missing, instruct user to run:

- `/review-fetch-phase <PR_URL> [output-dir]`

Note:
- `review-actions.json` scaffolding is generated from `review-state.targets`, taking the thread and review-body targets. Issue-comment targets are captured in `review-state.json` but get no scaffolded action.
- **Compound review bodies**: A single `pull_request_review` target may contain multiple distinct findings (e.g., CodeRabbit bundles "outside diff range" comments, actionable comments, and nitpicks into one review body). The triager must decompose these into individual action items during triage, never blanket-dismiss a review body without reading its content.

## Behavior

1. Compute deterministic paths:
   - `<output-dir>/review-state.json`
   - `<output-dir>/review-actions.json`
   - `<output-dir>/review-actions.md`
2. Enforce artifact safety before generation (the artifacts must stay untracked). In a git checkout the guard asks git directly; in a Jujutsu workspace with no git directory it accepts a directory under the workspace root's ignored `wip/` tree:

```bash
node ../review-fetch-phase/scripts/guard-review-artifacts-ignored.mjs --dir <output-dir>
```

3. Bootstrap canonical action scaffold from review state:

The rest: https://github.com/prisma/orm/blob/HEAD/skills-contrib/review-triage-phase/SKILL.md
