Skip to content

Write review instructions

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

View as Markdownllms.txt

Do it with your agent

Paste this prompt into Claude Code, Codex or another coding agent. It reads this page and does the steps for you.

Write a REVIEW.md for this repository.
Follow https://crysk.dev/docs/reviews/review-instructions.md and run each step yourself.

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.

In a clone of your repository, run:

Terminal window
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.

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:

# 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.

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. 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 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.

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.