Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Defines four canonical typecheck, test, and lint command variants used by session and wave skills.
Use this skill ↓64% 77%+14 ptsof test cases passed
Passed 17 of 22 test cases with the skill, and 14 of 22 without it.
When reporting typecheck results in the `full-gate` quality check JSON output, what key is used to report the number of typecheck errors?
The typecheck result object reports error counts using the key 'error_count'.
3 of 3 safety checks passed
This skill defines the canonical quality check commands. Do NOT invoke this skill directly. Consuming skills (session-start, wave-executor, session-end, session-reviewer) reference the variant they need and execute the commands inline.
Quality-gate commands are resolved in this priority order:
.orchestrator/policy/quality-gates.json — canonical policy file (preferred). Schema: .orchestrator/policy/quality-gates.schema.json. Bootstrap writes a package-manager-aware default; hand-edit to customize.test-command / typecheck-command / lint-command in CLAUDE.md (Claude Code / Cursor) or AGENTS.md (Codex CLI) — fallback.npm test, npm run typecheck, npm run lint.Loader: scripts/lib/quality-gates-policy.mjs exports loadQualityGatesPolicy(repoRoot) and resolveCommand(policy, key, fallback). The Node runner scripts/run-quality-gate.mjs performs the same resolution inline.
If any resolved command is set to the literal string skip, skip that check entirely.
Lint, typecheck, and test commands MUST run with the project's canonical, unscoped invocation as resolved above (e.g., npm run lint, npm test, npm run typecheck). The resolved command's own configuration (eslint.config.*, tsconfig.json, vitest.config.*, package.json scripts) is the single source of truth for which files are checked.
Domain-split scoping is FORBIDDEN. Do NOT replace the canonical command with narrower variants such as:
pnpm lint src/ or pnpm lint src/ scripts/ — silently hides errors in tests/, tests/e2e/, tests/integration/, root-level config files (vitest.config.mjs, eslint.config.js, etc.), and any directory outside the chosen split.pnpm exec eslint src/**/*.ts — same blind-spot; bypasses the project's lint script.pnpm test src/foo/ instead of pnpm test --run — masks regressions in untouched modules.This rule applies to every consumer of this skill: session-start Baseline, wave-executor Incremental, session-end Full Gate, session-reviewer Per-File, discovery probes, and repo-audit. It applies whether the command is invoked by an agent, by scripts/run-quality-gate.mjs, or by a human running it inline during triage.
Exception — Incremental Per-File (Variant 4) test runs: {test-command} MAY be invoked with explicit changed-file arguments (e.g., pnpm test -- auth.test.ts) per the per-file contract. Lint and typecheck have NO per-file exception — they always run the canonical command.
Why: Domain-split scoping was empirically shown (consumer-repo Deep-10 retro, 2026-05-20) to hide 2 errors and 17 warnings in tests/integration/ and tests/e2e/ that the canonical pnpm lint (841-file glob) catches. Narrowing scope to src/+scripts/ for "lint-triage" produced a green W1, but the W4 Full Gate then surfaced the hidden errors, forcing a W5 sweep. The narrow-scope variant is a foot-gun: it looks faster but leaks debt across waves.
Read these from the project's ## Session Config section when .orchestrator/policy/quality-gates.json is absent:
test-command — Custom test command.typecheck-command — Custom typecheck command.Next to this one in the catalogue, plus more from the same author.