| name | consistency-check |
| description | Full quality gate: build, lint, format, typecheck, unit tests, Minter integrity, visual verification, and E2E tests. Run after implementing a feature. |
/consistency-check
Run this after implementing a feature. It checks everything — from fast static checks to full E2E.
If any step fails, fix the issue and re-run from step 1. Loop until ALL pass.
Step 1: Quality Gate
pnpm check
This runs build, lint, format check, typecheck, and unit tests in one command.
If the failure is a formatting issue, run pnpm format to auto-fix, then re-run pnpm check.
Step 2: Minter Integrity
minter ci
If minter.lock is stale, run minter lock first.
Step 3: Visual Check (if UI feature)
If the feature has UI changes:
- Run
/preview if not already running
- Use Playwright MCP to navigate to the affected page
- Take a screenshot
- Verify it looks beautiful — consistent with the design system, well-spaced, no visual bugs
- If it doesn't look right, fix and re-run from step 1
Skip this step for backend-only changes.
Step 4: E2E Tests
pnpm test:e2e
Runs Playwright against the live /preview environment. If /preview is not running, run it first.
Self-Healing Loop
Step 1 (quality gate)
→ Any failure? Fix → re-run from step 1
→ Pass?
Step 2 (minter)
→ Stale lock? `minter lock` → re-run
→ Pass?
Step 3 (visual)
→ Doesn't look right? Fix → re-run from step 1
Step 4 (E2E)
→ Any failure? Fix → re-run from step 1
→ All pass? Done.
If the same issue persists after 2-3 attempts, follow the "When Stuck" protocol from CLAUDE.md.