No. 084 Review the diff
What Important means in review
Use when a diff needs a second pass that stops at findings
- Claude Code
- Codex
- Cursor
- Review the diff
# Review instructions ## What Important means here Reserve Important for findings that would break behavior, leak data, or block a rollback: incorrect logic, unscoped database queries, PII in logs or error messages, and migrations that aren't backward compatible. Style, naming, and refactoring suggestions are Nit at most. ## Cap the nits Report at most five Nits per review. ## Do not report - Anything CI already enforces: lint, formatting, type errors - Generated files under `src/gen/` and any `*.lock` file - Test-only code that intentionally violates production rules ## Always check - New API routes have an integration test - Log lines don't include email addresses, user IDs, or request bodies - Database queries are scoped to the caller's tenant
When to use
“What Important means in review” fits when a diff needs a second pass that stops at findings, because it says “Review instructions”, and it is written to stay in force on later turns rather than to finish one task.
With “What Important means in review” loaded, the user message can be as small as “fix the empty-cart total in src/cart.js and do not touch the test runner”, because “Review instructions” is already in force.
When not to use
Leave “What Important means in review” unused when you wanted the fix applied in the same turn, because “Review instructions” points the other way
How to run it
Claude Code
Claude Code loads “What Important means in review” from .claude/rules on later sessions, so “Review instructions” survives a new chat, which a one-off paste does not.
Codex
Codex keeps “What Important means in review” only if you put “Review instructions” in AGENTS.md, or in AGENTS.override.md beside the directory that should inherit it. A paste that is not saved is gone next thread.
Cursor
Cursor keeps “What Important means in review” by saving “Review instructions” as .cursor/rules. The chat transcript alone will not reload it tomorrow.
Comparison
对比待补
This before-and-after was not run on this machine.
Related
- Stage: Review the diff
- Same stage: Automatically identify and fix CI failures or review…
来源:Anthropic · https://code.claude.com/docs/en/code-review-customize · 2026-12-01