| name | quality-gate |
| description | Run before creating a PR — chains test creation, compliance checks, and build verification in sequence, stopping on failure |
| agents | ["all"] |
| workflow | project-tools |
Quality Gate
Single command that runs all pre-PR quality checks in sequence. Stops on first failure.
Process
Step 1: Create Tests
If the create-tests skill is available, invoke it scoped to the current branch changes.
This analyzes changed files, triages what's worth testing, and generates tests as needed. It may generate no tests if the changes don't warrant them (e.g., docs-only, config changes).
On completion: Commit any generated tests, then proceed to step 2.
If skill not available: Skip to step 2.
Step 2: Compliance Checks
Run the project's check command (typically npm run check — typecheck + lint + format + test).
On failure: Stop. Report violations. Fix issues before proceeding.
On pass: Proceed to step 3.
Step 3: Build Verification
Run the project's build command (typically npm run build).
On failure: Stop. Report errors with details.
On pass: Report success.
Final Report
## Quality Gate Results
**Branch:** <branch-name>
### 1. Test Creation
✅ Created N tests (or: ✅ No new tests needed / ⏭ Skipped)
### 2. Compliance Checks
✅ PASS — all checks clean
### 3. Build
✅ PASS — compiled successfully
**Ready for PR:** ✅ Yes