Pr code reviewer

From thiientv/godmode · View interactive version

Pr code reviewer is an AI agent skill from the GitHub repository thiientv/godmode. Reviews a GitHub pull request or focused branch diff for correctness, regressions, security, compatibility, test gaps, and maintainability. Use when an implementation needs an independent source-aware review before merge. Produces prioritized findings with evidence and actionable fixes. Not for arch

How to use this skill

Skill file

PR Code Reviewer

Review the change, not the author's intent. Prefer concrete evidence from the

PR diff, surrounding code, tests, history, and the stated contract.

Establish the review boundary

  1. Identify the base and head revisions and inspect the complete diff.
  2. Read the PR description, linked requirements, acceptance criteria, and

relevant design or ADR material.

  1. Trace changed code into direct callers, consumers, persistence, external

interfaces, and error paths where needed.

  1. Inspect changed tests and identify important behavior that remains unproved.

Do not spend equal time on every file. Follow changed behavior and risk.

Review dimensions

Check, in order of likely impact:

error handling, invalid assumptions, and regressions.

unsafe deserialization, trust-boundary violations, and sensitive logging.

backward-compatibility, and rollout risks.

concurrency, partial failure, and observability.

excessive allocations, or latency changes supported by the code path.

defect, brittle tests, and gaps at important boundaries.

effects, or complexity that materially raises future change risk.

Do not report pure style or personal preference unless the repository enforces

it or the style creates a concrete defect risk.

Validate findings

Every finding must have:

Before reporting a finding, inspect enough surrounding code to rule out a

false positive. Run focused tests or static checks when available. Distinguish

a defect from a missing-proof finding.

Review output

Return findings in priority order. For each finding use:

[P1] path/to/file.ts:42
Problem: <what is wrong>
Evidence: <why the current implementation fails or is risky>
Fix: <smallest useful correction>

Then provide:

  1. Verdict: approve, approve with follow-up, or request changes.
  2. Coverage gaps: important behavior not directly proven.
  3. What was checked: tests, static analysis, or other evidence.

If no actionable findings remain, say so explicitly and still report important

coverage gaps or verification limits. Never call a PR safe solely because CI

is green.

Completion condition

The review is complete when the changed behavior has been inspected in context,

high-risk paths have evidence, findings are prioritized and actionable, and

remaining uncertainty is explicitly stated.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.