Back to Diffusers

PR Review Rules

.ai/review-rules.md

0.38.01.5 KB
Original Source

PR Review Rules

Review-specific rules for Claude. Focus on correctness — style is handled by ruff.

Before reviewing, read and apply the guidelines in:

Common mistakes

Common mistakes are covered in the common-mistakes / gotcha sections in AGENTS.md, models.md, pipelines.md, and modular.md. Additionally, watch for below patterns that aren't covered there:

  • Ephemeral context. Comments, docstrings, and files that only made sense to the current PR's author or reviewer don't help a future reader/user/developer. Examples: # per reviewer comment on PR #NNNN, # as discussed in review, # TODO from offline chat, debug printouts. Same for files: parity harnesses, comparison scripts, anything in scripts/ with hardcoded developer paths or imports from the reference repo. State the reason so the comment stands alone, or drop it.