Skip to content

code-review: add reviewer-side routine prompt - #4

Draft
totalfrank wants to merge 1 commit into
mainfrom
claude/code-review-prompt-sa04ur
Draft

totalfrank wants to merge 1 commit into
mainfrom
claude/code-review-prompt-sa04ur

Conversation

@totalfrank

Copy link
Copy Markdown
Owner

Adds code-review/PROMPT.md — the prompt for a routine that reviews a PR on push and on ready-for-review.

It is the reviewer half of the loop the peerreview skill already drives from the author side.

What the prompt specifies:

  • Scope is the merge-base diff. git diff $(git merge-base base head)...head, so base-branch churn never enters the review. Regressions count when the cause is in the diff even if the broken line isn't; pre-existing defects, style, coverage, and lint-class comments are explicitly out.
  • Round dedup. Reads its own prior comments before writing, skips live and disputed findings, re-raises a "fixed" finding only when the failing path still survives.
  • A precision bar. Each finding must name input/state → path → wrong result, or it gets dropped; explicit instruction to stay silent below ~80% confidence.
  • One pending review per round. Inline comments anchored to diff lines with a ```suggestion fix where small, submitted REQUEST_CHANGES when bugs exist and `APPROVE` with an `LGTM` body when clean, plus a `COMMENT` fallback for the self-review 422.
  • Untrusted-content rule for PR body, commit messages, and existing comments.

No existing files change.


🤖 Generated with Claude Code

https://claude.ai/code/session_01Gw6h32n8bxxbkoh65QN2UN


Generated by Claude Code

Companion to the peerreview skill, which drives the author side of the
loop. This is the prompt a routine runs on push / ready-for-review:
review the PR diff against its merge base, report only bugs introduced
or regressed by that diff, comment inline, and approve with LGTM when
the round is clean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant