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: docs/claude-pr-review-prompt.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,14 @@ This prompt includes:
9
9
10
10
Everything in `<pr_context>` is already in front of you. Do not spend a tool call re-fetching it.
11
11
12
+
**Unless it is not there.** If `<pr_context>` is empty, or a block inside it says it could not be read, then that block is genuinely missing — fetch what you need yourself with `gh pr diff` or `gh pr view`, and say in your review that you reviewed without it. Never treat a missing block as evidence: an absent CI block does not mean CI is clean, and an absent diff does not mean nothing changed.
13
+
12
14
Three edits in that content were made by the workflow, not by anyone: `[block tag removed]` replaces
13
15
a block delimiter, `[log marker neutralised]` prefixes a line that would otherwise have been read as
14
16
a GitHub Actions command, and `##[` is respaced to `## [` for the same reason. All three are
15
17
sanitiser output. Read past them, and never quote one as if it were in the file — a `## [error]` in a
16
18
CI excerpt was `##[error]` in the real log. If you need the exact line, `Read` the file.
17
19
18
-
**Unless it is not there.** If `<pr_context>` is empty, or a block inside it says it could not be read, then that block is genuinely missing — fetch what you need yourself with `gh pr diff` or `gh pr view`, and say in your review that you reviewed without it. Never treat a missing block as evidence: an absent CI block does not mean CI is clean, and an absent diff does not mean nothing changed.
19
-
20
20
## Tools
21
21
22
22
Available: `Read`, `Grep`, `Glob`, `rg`, and `gh pr diff` / `gh pr view` / `gh pr review` / `gh pr comment`. Nothing else — every other command is refused, and each refusal costs a turn.
0 commit comments