| name | b4push |
| description | Run comprehensive pre-push validation covering code quality, build, production server, and smoke e2e tests. Use when: (1) Completing a PR or feature implementation, (2) Before pushing significant changes, (3) After large refactors, (4) User says 'b4push', 'before push', 'check everything', or 'ready to push'. |
| user-invocable | false |
| allowed-tools | ["Bash"] |
Before Push Check
Run pnpm b4push from the project root. This executes scripts/b4push.sh:
- Code quality checks - typecheck, lint, format via
pnpm check
- Clean build -
pnpm clean && pnpm build
- Start production server - serve built output on port 8030
- Wait for server - retry with 30s timeout
- Smoke e2e tests - test all manual pages load successfully
Takes ~5-10 minutes. All steps must pass.
On failure
- Read the failure output to identify which step failed
- Auto-fix what you can:
- Formatting:
pnpm check:fix
- Lint:
pnpm lint:fix
- Re-run
pnpm b4push to confirm all checks pass
- Report the final status