quality-gate
Installation
SKILL.md
Quality Gate
Run the project's static-checks + build sequence. Stop on the first failure, diagnose the root cause, and fix it before re-running.
Workflow
Step 1 — Detect the toolchain
Read package.json scripts (or equivalent for the project: composer.json, Makefile, Cargo.toml). Pick the first command from each row that exists:
| Phase | Preferred | Fallback |
|---|---|---|
| Lint | pnpm lint / npm run lint |
npx next lint, composer run lint |
| Types | pnpm types / npm run types |
npx tsc --noEmit |
| Tests | pnpm test / npm test |
composer run test, framework default |
| Build | pnpm build / npm run build |
npx next build |
If a phase has no command for the project (e.g. a JS-only repo with no types script), skip that phase and continue.