/gh-code-review:gh-code-reviewfrom gh-code-review
Review GitHub pull request changes and publish coherent inline, multiline, file-level, and apply-able suggestion comments as one formal review. Use when asked to review a PR, leave code review comments, submit line or file comments, approve, request changes, inspect review threads, reply, resolve discussions, or manage reviewed-file state. Prefer the gh code-review extension; use the bundled gh api fallback when installation is declined or unavailable. Never replace a formal review with a flat gh pr comment.
Ships in gh-code-review. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use a formal pull-request review so every finding is anchored, individually followable, and submitted with one clear decision. The extension is deterministic transport and validation; you remain responsible for review judgment.
gh code-review capabilities.gh extension install wildcard/gh-code-review. Never install without the user's consent.scripts/gh_code_review_fallback.py. The fallback supports JSON manifests and the core inspect, validate, and submit transaction.Resolve the repository and PR, then read normalized review context:
gh code-review inspect 42 -R owner/repo --unresolved
Use --include bodies when full comment text is needed and --include patches only when local diff access is unavailable. Always inspect existing threads before proposing or posting findings.
Confirm each finding against the current diff and surrounding implementation. Avoid duplicating an existing thread or restating a resolved finding without new evidence.
Choose the smallest useful anchor:
line: one changed or context line.file: a concern about the entire changed file that has no honest line anchor.Use a replacement only when the exact corrected code is known. Suggestions may replace a different number of lines, but they must target RIGHT-side line or range subjects. Do not attach suggestions to deleted lines or whole files.
Write findings so a maintainer can act:
Copy references/review-manifest.md and fill the current head SHA returned by inspect. Use unique, stable client_id values.
The default event for unspecified review feedback is COMMENT. Use APPROVE or REQUEST_CHANGES only when the user explicitly authorizes that decision. Do not infer approval from “looks good,” and do not infer a changes request from the presence of findings.
Agent metadata such as severity, category, confidence, rule ID, and evidence remains local; the transport never posts it.
gh code-review validate --input review.json
Validation must pass against the live PR head, diff locations, permissions, existing comments, and pending-review state. Treat HEAD_CHANGED as a required re-inspection. Never move a finding to a nearby valid line merely to satisfy the API.
If event derivation was explicitly requested, preview it:
gh code-review validate --input review.json --derive-event
Derived decisions are visible before submission and still require --confirm-decision for APPROVE or REQUEST_CHANGES.
Only submit when the user asked to post or submit the review:
gh code-review submit --input review.json
For an explicitly authorized approval or changes request:
gh code-review submit --input review.json --confirm-decision
Do not use gh pr comment as a fallback. If submission is partially applied, report the recovery receipt and pending review ID exactly; do not blindly retry.
Inspect again and confirm:
Report the review URL, decision, number of threads, and any remaining limitation.
COMMENT.APPROVE and REQUEST_CHANGES.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub wildcard/gh-code-review --plugin gh-code-review