Skip to content

Scheduling infrastructure for absolutely everyone.

chore: add review rule for agents to avoid large PRs (#22690)

Eunjae Lee098b52012938
diff --git a/.cursor/rules/review.mdc b/.cursor/rules/review.mdc
index 4344e2c39eb..68b1db0882f 100644
--- a/.cursor/rules/review.mdc
+++ b/.cursor/rules/review.mdc
@@ -19,3 +19,10 @@
- "summary" fields do not end with a period
- "summary" fields are written in proper American english
- When changes to API v2 or v1 are made, ensure there are no breaking changes on existing endpoints. Instead, there needs to be a newly versioned endpoint with the updated functionality but the old one must remain functional
+- For large pull requests (>500 lines changed or >10 files touched), advise splitting into smaller, focused PRs:
+ - Split by feature boundaries: separate different features or user stories
+ - Split by layer/component: frontend changes, backend changes, database migrations, and tests in separate PRs
+ - Split by dependency chain: create PRs that can be merged sequentially
+ - Split by file/module: group related file changes together
+ - Suggested pattern: Database migrations → Backend logic → Frontend components → Integration tests
+ - Benefits: easier review, faster feedback, reduced conflicts, easier rollback, better history