review

Code review — local uncommitted changes or GitHub PR (pass PR number/URL for PR mode)

Part of the PRP workflow series.

Input: $ARGUMENTS

Invoke the code-reviewer agent to perform a comprehensive code review.

If $ARGUMENTS is a PR number or URL: PR review mode — fetch diff, read full files, validate, post review to GitHub via gh pr review. If blank: local review mode — review uncommitted changes (git diff --staged and git diff).

Load skills: dog:code-review-and-quality, dog:security-review, dog:coding-standards

The agent will:

  1. Determine mode from input and gather changed files
  2. Read each changed file in full (not just the diff hunk)
  3. Apply 7-category checklist: correctness, type safety, security, performance, completeness, maintainability, pattern compliance
  4. Assign severity: CRITICAL / HIGH / MEDIUM / LOW
  5. Run available validation commands (typecheck, lint, tests, build)
  6. For PR mode: post review to GitHub + save artifact to .dog/PRPs/reviews/
  7. Report: findings by severity + validation results + decision (APPROVE / REQUEST CHANGES / BLOCK)

After review: address all CRITICAL and HIGH issues before running /dog:prp-pr. For language-specific review: use /dog:ts-review, /dog:py-review, /dog:go-review, or /dog:rust-review. For test coverage analysis: dispatch the test-engineer agent alongside code-reviewer.