Install any skill in seconds. Free to start, no credit card required.
Get Started Free →hashgraph-online/quality-gates
Use this skill when referencing canonical quality check commands for typecheck, test, and lint. Defines 4 variants (Baseline, Incremental, Full Gate, Per-File) used by session-start, wave-executor, session-end, and session-reviewer. Reference skill — not invoked directly.
Passed 15 of 19 test cases with the skill, and 12 of 19 without it.
and 5 more in the full report
7 fixed10 passed either way1 still failing4 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
When reporting typecheck results in the `full-gate` quality check JSON output, what key is used to report the number of typecheck errors?
| Checked | Without skill | With skill |
|---|---|---|
| The typecheck result object reports error counts using the key 'error_count'. | Missed | Passed |
The instructions your model reads when the skill loads.
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.test cases passed, vs 12 / 19 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.