Pre-Review
Deep code review before you open a PR.
Process
- Choose the review range. Default:
git diff develop...HEAD. If the user names another range (for exampleHEAD~1..HEAD), use that instead. All prompts in step 2 must review this exact diff, not a different ref pair.
- Launch 5
code-revieweragents in parallel, each with a different focus:
- A: Layers and boundaries first (
.agents/skills/structure-flow/SKILL.md,.agents/skills/flow-package/SKILL.md,.agents/skills/domain-data/SKILL.md,.agents/skills/package-public-api/SKILL.md), then MVVM for app composition underapps/*/src/mvvm/and for presentation infeatures/flow/**(Container, ViewModel, View, steps;.agents/skills/mvvm-architecture/SKILL.md,.agents/skills/flow-package/SKILL.md). Apply review-only gaps from.agents/agents/references/review-rules.md; do not repeat whatpnpm lint:archalready fails on CI. - B — Correctness (edge cases, null handling, error states)
- C — Code quality & conventions (Lumen UI, TypeScript, naming, new deps). Reject new
.pnpmfile.cjshooks andpnpm.packageExtensions(skillpnpm-resolution). - D — General review — DRY, KISS, missing tests, anything that would slow down a reviewer or cause future regressions
- E — Security: invoke the
detect-data-leaksskill for PII; check for auth bypass, injection, SSRF, crypto misuse; scan the diff for hardcoded secrets, tokens, API keys, or private keys.
Each agent prompt: _"Review the diff from step 1 (the same range). Focus on [FOCUS]. Return findings with file:line, severity (🔴 Critical / 🟡 Suggestion / 🟢 Nice to have), and suggested fix."_
- Merge + deduplicate findings. Present grouped by severity:
```
🔴 Critical — path/to/file.ts:42 — issue → fix
🟡 Suggestion — ...
🟢 Nice to have — ...
Summary: X critical, Y suggestions, Z nice-to-haves
```
- Ask the user which items to fix: "all criticals", "all", "#1,#2, #3", or "skip" →
/create-pr