Review an incoming pull request through multiple focused lenses: architecture, security, tests, antipatterns, and conventions.
/ctdd QA for that) or deciding whether to merge a contribution (use /cmaintain).This skill is standalone β it does not require an active Correctless workflow. Use it anytime a PR needs review. It pairs well with /cmaintain when you also need a maintainer-perspective assessment on merge readiness.
gh (GitHub) or glab (GitLab). Falls back to manual diff paste if neither CLI is available.User: /cpr-review 42
[1/16] Fetching PR info and diff...
[2/16] Checking for dependency bump...
PR #42 "Add rate limiting to login endpoint" by @contributor β code change, not a dep bump.
[3/16] Reading project context (ARCHITECTURE.md, antipatterns.md)...
[4/16] Architecture compliance check...
Architecture compliance complete β 1 finding. Running security checklist...
[5/16] Security checklist (auth code detected)...
...
## PR Review: #42 β Add rate limiting to login endpoint
### CRITICAL (1)
- src/middleware/rateLimit.ts:18 β Rate limit counter stored in-memory; resets on deploy.
Why: Attackers can bypass by waiting for a deploy cycle.
Fix: Use Redis or the existing cache layer documented in ARCHITECTURE.md (PAT-004).
### What Looks Good
- Correct use of the middleware chain pattern from ARCHITECTURE.md.
- Login endpoint test covers both success and lockout paths.
| Reads | Writes |
|---|---|
PR diff and metadata (via gh / glab) |
Nothing (read-only) |
ARCHITECTURE.md |
Optionally posts a PR comment |
AGENT_CONTEXT.md |
Β |
.correctless/antipatterns.md |
Β |
.correctless/config/workflow-config.json |
Β |
.correctless/specs/*.md (if referenced) |
Β |
workflow.intensity set): Adds concurrency analysis, trust boundary analysis, cross-spec impact, drift detection, performance implications, and dependency risk assessment.gh nor glab installed: The skill still works if you paste the PR diff manually, but it cannot detect the PR author (for dep bump detection) or post review comments.