> Crysk 0.9.0 docs. Index of every page: https://crysk.dev/llms.txt

# Write review instructions

Give Crysk the facts about your repository that a reviewer cannot see in the diff.

At the end, your repository has a `REVIEW.md` that Crysk gives to every reviewer on every pull request. It cuts false findings on things that look wrong but are deliberate, and points reviewers at rules the diff does not show. It works the same with the Crysk GitHub App and the open-source GitHub Action.

## Create the file

In a clone of your repository, run:

```bash
npx -y crysk init
```

It writes `.crysk/config.json` and a `REVIEW.md` scaffold at the repository root. It never overwrites an existing file. If the repository already has review instructions in `REVIEW.md` or `.crysk/gotchas.md`, it keeps them and writes no scaffold.

## What to put in it

Short, true statements a reviewer cannot infer from the diff:

- **Looks wrong, is deliberate**: code that looks like a bug but is not, and why.
- **Always check**: a rule enforced somewhere the diff does not show, or a naming or ownership rule a newcomer would break.
- **Not blocking here**: kinds of findings your team does not want blocking, such as style or generated code. This section only applies when `materiality_gate` is on in `.crysk/config.json`, and only to style, naming, test, generated-code and dev-script findings. Delete it otherwise.

Example:

```markdown
# Review instructions

## Looks wrong, is deliberate

- billing: `Math.round` on cents is intended. Invoices are rounded per line, not per total.

## Always check

- api: every route under `src/routes/admin/` must call `requireAdmin()` first.
- db: migrations in `db/migrations/` are never edited after merge; add a new one.
```

## Make it usable

Crysk refuses to review while the file is unusable. Before the first review:

1. Replace the `<subsystem>` placeholder lines with real facts.
2. Delete the `human-attention-required` comment on the first line.

A `REVIEW.md` that is empty, still the scaffold, or still has that marker stops the run with [`CRYSK-GOTCHAS-MISSING`](https://crysk.dev/docs/reference/error-codes.md). It does not fall back to another file. If you would rather have no instructions, delete the file: the review then runs on the default guidance.

## Commit it to the default branch

Commit `REVIEW.md` to your default branch. Comment-triggered reviews (`/crysk review`) read it from there, so a file that only exists on a feature branch is not used.

## Which file wins

| Order | Source |
|---|---|
| 1 | `--gotchas <file>` on `crysk review` (local runs) |
| 2 | `REVIEW.md` at the repository root |
| 3 | `.crysk/gotchas.md` |

Only the first one found is used. When `REVIEW.md` and `.crysk/gotchas.md` both exist, Crysk ignores `.crysk/gotchas.md` and says so.
