Review — Unified Review Command
Auto-detect and execute the appropriate review workflow.
Step 0 — Flag Override
If $ARGUMENTS starts with --code: load references/code.md and execute.
If $ARGUMENTS starts with --a11y: load references/a11y.md and execute.
If $ARGUMENTS starts with --ui: load references/ui-mode.md and execute. Delegate to epost-muji.
If $ARGUMENTS starts with --improvements: run improvements inline (see below).
Otherwise: continue to Auto-Detection.
Aspect Files
| File | Purpose |
|---|---|
references/code.md |
Ultrathink edge cases, then parallel verify with reviewers |
references/a11y.md |
Review accessibility compliance (WCAG 2.1 AA) |
references/ui-mode.md |
Lightweight UI component review by focus area |
references/improvements.md |
Review auto-improvement metrics, detect patterns |
Auto-Detection
Analyze $ARGUMENTS keywords:
| Keyword match | Load Reference |
|---|---|
| "a11y", "accessibility", "wcag" | references/a11y.md |
| "ui", "component", "token", "klara", "muji" | references/ui-mode.md → epost-muji |
| "improvements", "metrics", "patterns" | Run improvements inline (see below) |
| Default (no keyword match) | references/code.md |
Review-Improvements (Inline)
When dispatching review-improvements, run inline instead of forking (uses haiku model, restricted tools):
Read session metrics from
.epost-data/improvements/sessions.jsonlRead
.epost-data/improvements/sessions.jsonlPresent findings grouped by severity (high → medium → low)
For each finding: explain detection, recommended action, next step
If no findings: report healthy, show session count
Summary table: severity × count
Execution
For code and a11y reviews: load the reference file and execute its workflow. For improvements: execute inline per the Review-Improvements section above.