validate
Installation
SKILL.md
Type safety chain: error check and fix
Run the six-layer validation bottom-up. Fix any failures at the failing layer only, then re-validate until all layers pass.
1. Run error check
- Full chain:
pnpm validate:all— checks layers 1 → 6, stops at first failure. - Single layer:
pnpm db:check|pnpm contracts:check|pnpm services:check|pnpm routes:check|pnpm hooks:check|pnpm ui:check
Each script prints JSON (status, message, missing, invalid); exit 0 = success, 1 = failure. Success = LOCKED (L1, L2, L3, L5) or VALIDATED (L4, L6). Failure = UNLOCKED.
2. Fix errors (until 0 errors)
- Run
pnpm validate:all. - If a layer fails: fix only at that layer (never change a lower layer to satisfy an upper one). Use the script’s
messageandmissing/invalidto see what’s wrong. - Re-run from the fixed layer: run that layer’s command, then each higher layer (or
pnpm validate:allagain). - Repeat until
pnpm validate:allexits 0 and every layer reports LOCKED or VALIDATED.