Review Pr

Comprehensive PR review using specialized agents — code quality, security, and language-specific patterns.

Input: $ARGUMENTS — PR number or URL. If blank, review the current branch's PR.

Run a multi-agent PR review in parallel.

Steps:

  1. Identify PR: gh pr view to get details, changed files, and diff
  2. Find project guidance: CLAUDE.md, lint config, language config, conventions
  3. Run agents in parallel:
    • code-reviewer — logic, correctness, maintainability, missing tests
    • security-reviewer — OWASP Top 10, secrets, auth, injection, sensitive data
    • Language-specific agent based on detected stack: typescript-reviewer / python-reviewer / go-reviewer / rust-reviewer
  4. Aggregate: dedupe overlapping findings; rank CRITICAL → HIGH → MEDIUM → LOW
  5. Report + post: findings grouped by severity, then gh pr review comment

Confidence rule: only report issues with ≥80% confidence.