PR Multi-Perspective Review
When to Use
- Before merging any significant PR โ to catch issues a single reviewer might miss
- When the PR touches multiple concerns (UI + API + infra all at once)
- For PRs with external impact: public API changes, auth logic, billing flows
- As a pre-merge gate in high-stakes or regulated environments
Differentiation from code-review: code-review is a single technical pass.
This skill runs 6 distinct lenses simultaneously, surfacing business, quality, and
operational issues that a developer reviewer alone would not flag.
Prerequisites
- PR is open and has a diff available (via
ghCLI or GitHub MCP) - At minimum: PR description exists (even if brief)
Workflow
Option A โ Single Session (Sequential, Lower Token Cost)
Suitable for smaller PRs or when fleet is not available.
# Fetch the PR diff
$pr = 123
gh pr diff $pr
# Fetch PR description and metadata
gh pr view $pr --json title,body,labels,additions,deletions,changedFiles
Then work through each perspective in the same session using the prompts below.
Option B โ Fleet Parallel (6 Concurrent Agents, Faster)
Use fleet mode to run all 6 perspectives simultaneously:
> /fleet Run a 6-perspective review of PR #123 in owner/repo.
> Launch 6 parallel agents, each with a different lens:
> 1. PM lens: business value, scope, requirements alignment
> 2. Dev lens: code quality, architecture, maintainability
> 3. QA lens: test coverage, edge cases, regression risk
> 4. Security lens: vulnerabilities, secrets, auth, input validation
> 5. DevOps lens: CI/CD impact, performance, observability, rollback
> 6. UX lens: user-facing changes, error messages, accessibility
> 7. Optional Staff lens: system-level risk, rollout readiness, ownership burden
> Each agent should output: [PASS/CONCERN/BLOCK] + findings as bullet list.
> Final agent: synthesize all active lens outputs into a single review comment.
The 6 Perspectives
For architecture-heavy, rollout-sensitive, or cross-team changes, add the optional
Staff Engineer lens below instead of assuming the regular Dev lens covers
system-level risk.
1. ๐ PM Lens โ Business & Requirements
Questions to answer:
- Does this PR deliver what the linked issue/ticket describes?
- Are there scope creep additions not in the original requirement?
- Is the change reversible if it needs to be rolled back?
- Are all acceptance criteria met?
# Check linked issues
gh pr view $pr --json body | Select-String "closes|fixes|resolves" -i
gh pr view $pr --json labels
Output format:
[PM] STATUS: PASS / CONCERN / BLOCK
- Finding 1
- Finding 2
2. ๐ ๏ธ Dev Lens โ Code Quality & Architecture
Questions to answer:
- Are there logic errors, off-by-one bugs, or null-pointer risks?
- Does the abstraction level match the rest of the codebase?
- Is there duplication that should be extracted?
- Are naming and readability consistent with conventions?
# Review the diff
gh pr diff $pr | Select-String "^\+" | Select-Object -First 100
# Check complexity hotspots
gh pr view $pr --json files | ConvertFrom-Json | Select-Object -ExpandProperty files |
Sort-Object additions -Descending | Select-Object -First 5
Output format:
[DEV] STATUS: PASS / CONCERN / BLOCK
- Finding 1
- Finding 2
3. ๐งช QA Lens โ Test Coverage & Edge Cases
Questions to answer:
- Are new code paths covered by tests?
- Are happy path + error path + edge cases all represented?
- Do existing tests still cover the changed behavior?
- Is there risk of regression in adjacent functionality?
# Check test files in the diff
gh pr view $pr --json files | ConvertFrom-Json | Select-Object -ExpandProperty files |
Where-Object { $_.path -match 'test|spec|__tests__' }
# Count test additions vs source additions
$files = gh pr view $pr --json files | ConvertFrom-Json | Select-Object -ExpandProperty files
$testLines = ($files | Where-Object { $_.path -match 'test|spec' } | Measure-Object additions -Sum).Sum
$srcLines = ($files | Where-Object { $_.path -notmatch 'test|spec' } | Measure-Object additions -Sum).Sum
Write-Host "Test:Source ratio = $testLines : $srcLines"
Output format:
[QA] STATUS: PASS / CONCERN / BLOCK
- Finding 1
- Finding 2
4. ๐ Security Lens โ Vulnerabilities & Trust Boundaries
Questions to answer:
- Is user input validated before use?
- Are auth/authorization checks present on new endpoints?
- Could any change leak secrets, PII, or internal details?
- Are new dependencies free of known CVEs?
# Scan diff for security patterns
gh pr diff $pr | Select-String "password|secret|token|api.key|eval\(|exec\(" -i
# Check new dependencies
gh pr view $pr --json files | ConvertFrom-Json | Select-Object -ExpandProperty files |
Where-Object { $_.path -match 'package.json|requirements|go.mod|Cargo.toml' }
Output format:
[SECURITY] STATUS: PASS / CONCERN / BLOCK
- Finding 1
- Finding 2
5. ๐ DevOps Lens โ Operations & Reliability
Questions to answer:
- Will CI pass? Are there environment-specific assumptions?
- Are there performance implications (N+1 queries, large allocations)?
- Is the change observable? Are new log lines / metrics / traces added?
- Is rollback safe? Does this require a migration or feature flag?
# Check CI status on the PR -- default with gh on PATH (Copilot CLI omits pull_request_read):
gh pr checks $pr
# When the MCP tools are exposed (no gh on PATH, or --add-github-mcp-tool=<name> for every GitHub MCP
# tool you need -- it replaces the default set -- or --enable-all-github-mcp-tools, which also enables write tools):
# Tool: github-mcp-server-pull_request_read
# method: "get_check_runs"
# owner: "my-org" repo: "my-app" pullNumber: 123
# Look for migration files
gh pr view $pr --json files | ConvertFrom-Json | Select-Object -ExpandProperty files |
Where-Object { $_.path -match 'migration|migrate|schema' }
Output format:
[DEVOPS] STATUS: PASS / CONCERN / BLOCK
- Finding 1
- Finding 2
6. ๐จ UX Lens โ User-Facing Impact
Only relevant when the PR touches UI, API responses, error messages, or CLI output.
Questions to answer:
- Are error messages clear and actionable for end users?
- Are breaking changes to public APIs or CLI flags documented?
- Is accessibility considered for UI changes?
- Are loading/empty states handled?
# Check for user-facing files
gh pr view $pr --json files | ConvertFrom-Json | Select-Object -ExpandProperty files |
Where-Object { $_.path -match '\.tsx?$|\.vue$|\.svelte$|\.css$|messages\.|i18n\.' }
Output format:
[UX] STATUS: PASS / CONCERN / BLOCK
- Finding 1 (or "N/A โ no user-facing changes")
7. ๐งญ Staff Engineer Lens โ Systemic Risk & Change Readiness *(Optional)*
*Use this lens for high-blast-radius PRs: migrations, platform changes, major rollout
plans, reliability work, or changes that alter long-term ownership burden.*
Questions to answer:
- Does this change add hidden operational burden, coupling, or long-term maintenance cost?
- Does the rollout, rollback, or migration plan match the blast radius?
- Are ownership, observability, and failure recovery clear if this change goes wrong?
- Would splitting the change reduce review risk or release risk materially?
[STAFF] STATUS: PASS / CONCERN / BLOCK
- Finding 1
- Finding 2
Final Synthesis
After all active lenses complete, compile the summary:
## Multi-Perspective Review: PR #123
| Lens | Status | Key Finding |
|------|--------|-------------|
| PM | โ
PASS | Scope matches issue #89 |
| Dev | โ ๏ธ CONCERN | null check missing in getUserById |
| QA | โ
PASS | Test added for 404 case |
| Security | ๐ซ BLOCK | User ID not validated before DB query |
| DevOps | โ
PASS | No migration required |
| UX | โ
PASS | 404 error message is user-friendly |
**Overall: ๐ซ BLOCK โ Security issue must be resolved before merge.**
### Required Before Merge
- [ ] Add input validation for userId parameter (Security)
### Suggested Improvements
- [ ] Add null check in getUserById helper (Dev)
Tips
- BLOCK is a hard stop โ any single BLOCK means the PR should not merge until resolved
- CONCERN is advisory โ capture it as a follow-up issue if not fixing now
- Skip irrelevant lenses โ if the PR has no UI changes, mark UX as N/A upfront
- Add Staff when the blast radius is real โ migrations, infra, platform, or
multi-service changes benefit from a system-level lens
- Fleet version scales better โ for large PRs (>500 lines), fleet runs 6x faster than sequential
- Post as PR comment: use
gh pr comment $pr --body-file review.mdto submit the synthesis