Run the 6-phase pre-PR quality gate (build, typecheck, lint, test, security scan, diff review). Use before creating or updating pull requests.
Run this checklist after completing a feature or significant change, before creating a PR.
Execute each phase in order. Stop and fix any failure before continuing. Produce a verification report at the end.
npm run build
If build fails, stop and fix before continuing.
npx tsc --noEmit
Fix all type errors. Zero tolerance.
npm run lint
Fix errors; warnings are acceptable if pre-existing.
npx vitest run
All tests must pass. If a test fails:
Quick checks on changed files:
sk-, ghp_, AKIA, password literals)console.log of sensitive datagit diff --stat
Review each changed file for:
npm run docs:generate
After running all phases, produce:
VERIFICATION REPORT
==================
Build: [PASS/FAIL]
Types: [PASS/FAIL] (X errors)
Lint: [PASS/FAIL] (X warnings)
Tests: [PASS/FAIL] (X/Y passed)
Security: [PASS/FAIL] (X issues)
Diff: X files changed
Overall: [READY/NOT READY] for PR