/verify — canonical pre-commit gate
Run the exact check sequence that CI runs, in the order that gives the fastest failure signal. Do not mark a task complete until every step below passes.
Steps
npm run format:check
npm run lint
npm run typecheck
npm run build
npm test
Rules
- If
format:checkfails, runnpm run formatand re-run the suite. - If
lintfails, fix the lint errors directly — never addeslint-disablewithout a comment explaining why. - If
typecheckorbuildfails, fix the types. Noas anycasts to silence the compiler. - If
testfails, read the failing test first, then the code under test. Never skip,.only, or comment out a test to make the suite green. - All 249 tests across 43 files must pass. If you added logic, the count should go up, not stay flat.
Report back
After the suite passes, print a one-line summary:
verify: format ✓ lint ✓ typecheck ✓ build ✓ test ✓ (N tests)
If anything failed, print which step and the first error. Do not claim success unless every step passed.