What problem does it solve?
Coordinates a robust, automated pre-PR verification workflow that ensures builds, type checks, lint, tests, and security checks succeed before merging.
Core Features & Use Cases
- Phase 1: Build Verification — Check if the project builds using npm run build or pnpm build; if the build fails, stop and fix before continuing.
- Phase 2: Type Check — For TypeScript projects, run tsc --noEmit; for Python projects, run pyright; report all type errors and fix critical ones before continuing.
- Phase 3: Lint Check — Run lint for JavaScript/TypeScript with npm run lint and for Python with ruff check.
- Phase 4: Test Suite — Run tests with coverage and report total, passed, failed, and coverage percentage; enforce a minimum threshold (e.g., 80%).
- Phase 5: Security Scan — Scan for secrets and sensitive patterns and flag potential exposures.
- Phase 6: Diff Review — Review git diffs to catch unintended changes and edge cases.
This section outlines a deterministic sequence to validate changes before PR creation.
Output Format
After running all phases, produce a verification report that summarizes Build, Types, Lint, Tests, Security, Diff, and Overall readiness; include any issues to fix.
Quick Start
Run the verification loop on your codebase to kick off the predefined phases and verify readiness for PR.