quality-gate/SKILL.md
Use when the user wants to run the project's lint + types + build sequence as a gate before pushing, opening a PR, or merging. Invoked by chained dev skills between phases. Trigger phrases - "/quality-gate", "run the quality gate", "check it builds".
npx skillsauth add paulund/skills quality-gateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run the project's static-checks + build sequence. Stop on the first failure, diagnose the root cause, and fix it before re-running.
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.
Run the four phases sequentially. Each must pass before the next runs.
<lint command>
<types command>
<tests command>
<build command>
git log / git blame / existing tests for context.Max 2 diagnose-fix cycles. If still failing, stop and surface the failure to the caller — don't hide it.
On success: one-line confirmation listing the phases that ran (lint, types, tests, build).
On failure: the failing phase, the command that ran, and the first ~20 lines of error output.
pnpm everywhere.development
Use when implementing any logic, fixing any bug, or changing any behaviour. Use when you need to prove code works, when a bug report arrives, or when modifying existing functionality. Do NOT use for config changes, data migrations, or dependency updates.
development
Use when starting a new feature, when requirements are unclear, when asked to write code without a clear spec, or before any non-trivial implementation. Do NOT use for trivial bug fixes or one-line changes.
development
Use when you want authoritative, source-cited code free from outdated patterns. Use when building with any framework or library where correctness matters. Detects the stack from dependency files, fetches official documentation, implements following documented patterns, and cites sources for every framework-specific decision.
development
Use when preparing to ship a feature, release, or deployment. Use before merging to main, creating a release, or deploying to production. Do NOT use for CI-only changes or internal refactors that don't reach production.