Correctless

/cpr-review β€” Multi-Lens PR Review

Review an incoming pull request through multiple focused lenses: architecture, security, tests, antipatterns, and conventions.

When to Use

How It Fits in the Workflow

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.

What It Does

Example

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.

What It Reads / Writes

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) Β 

Intensity Levels

Common Issues