You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/commands/review.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,11 @@ Read the following files to understand the project's standards and structure. Th
16
16
17
17
Also use Glob to find any additional guideline files:
18
18
-`.cursor/rules/*.mdc` or `.cursor/*.md` (coding standards, review checklists)
19
-
- Any `CLAUDE.md` files in subdirectories relevant to the changed files
19
+
- Any `CLAUDE.md`or `BUGBOT.md`files in subdirectories relevant to the changed files
20
20
-`CONTRIBUTING.md` if it exists
21
21
22
+
**Subdirectory guidelines**: If changed files are in subdirectories with their own guideline files, read those as well for module-specific review criteria.
23
+
22
24
## Step 2: Gather PR data
23
25
24
26
Run these commands in parallel:
@@ -33,7 +35,7 @@ Run these commands in parallel:
33
35
Count the number of changed files from step 2.
34
36
35
37
**If fewer than 100 files changed:**
36
-
Review all changed files directly. Read each changed file using the Read tool to understand surrounding context beyond the diff.
38
+
Review all changed files directly. Read each changed file using the Read tool to understand surrounding context beyond the diff. Cache these file contents for reuse in later validation steps.
37
39
38
40
**If 100 or more files changed:**
39
41
This is a large PR. Deploy parallel sub-agents to gather context efficiently:
@@ -43,7 +45,7 @@ This is a large PR. Deploy parallel sub-agents to gather context efficiently:
43
45
44
46
## Step 4: Four review passes
45
47
46
-
Execute four independent review passes. For PRs with fewer than 100 files, do these sequentially. For large PRs, launch agents in parallel.
48
+
Execute four independent review passes**in parallel** using separate tool calls. Each pass operates independently on the file context gathered in Step 3.
47
49
48
50
### Pass 1 + 2: Code standards and style compliance
49
51
@@ -93,18 +95,17 @@ For each issue found across all passes, assign a confidence score from 0 to 100:
93
95
-**75**: Highly confident, real and important
94
96
-**100**: Absolutely certain, definitely real
95
97
96
-
**Validation**: For each finding scored 50 or above, verify it by:
97
-
- Re-reading the relevant code in full context (not just the diff)
98
+
**Filter**: Discard all findings below confidence 80.
99
+
100
+
**Validation**: For each finding scored **80 or above**, verify it by:
101
+
- Re-reading the relevant code in full context (not just the diff) if not already cached from Step 3
98
102
- Checking if the pattern is intentionally used elsewhere in the codebase
99
103
- For style violations: confirming the project actually enforces this rule
100
104
101
-
**Filter**: Discard all findings below confidence 80.
102
-
103
105
**Always discard (false positives):**
104
106
- Pre-existing issues not introduced in this PR
105
107
- Code that appears buggy but is actually correct in context
106
108
- Pedantic nitpicks a senior engineer would not flag
107
-
- Issues that linters (ruff, mypy) will catch — do not run the linter to verify
108
109
- General code quality concerns not explicitly required by project conventions
109
110
- Issues silenced in code via lint-ignore comments
110
111
@@ -141,14 +142,16 @@ sequenceDiagram
141
142
<interactions showing the primary flow affected by this PR>
--append-system-prompt "CRITICAL INSTRUCTION: When a user asks you to review a pull request (e.g. @claude review, @claude review this PR, @claude please review), you MUST execute the /review slash command. Do NOT attempt a freeform review. Always use the /review skill — no exceptions."
0 commit comments