| name | preflight |
| description | Run all quality gates before any major change. Checks TypeScript types, Vite build, ESLint, and backend tests. |
| disable-model-invocation | true |
| user-invocable | true |
| allowed-tools | Bash |
Preflight Quality Gates
Run all quality checks for the FloodSafe codebase. Use before commits, deployments, or after major changes.
Gates (run sequentially)
Gate 1: TypeScript Type Check
cd apps/frontend && npx tsc --noEmit
Gate 2: Frontend Build
cd apps/frontend && npm run build
Gate 3: ESLint
cd apps/frontend && npm run lint
Gate 4: Backend Tests
cd apps/backend && python -m pytest -m "not db_required" -q
Output Format
Report results clearly:
Preflight Results:
1. TypeScript ✅ Pass / ❌ Fail (N errors)
2. Build ✅ Pass / ❌ Fail
3. Lint ✅ Pass / ❌ Fail (N warnings)
4. Backend ✅ Pass / ❌ Fail (N failed)
Overall: ✅ All gates passed / ❌ N gates failed
If any gate fails, show the relevant error output so the user can fix it.