Quality Gates
Validating task completion against acceptance criteria with per-type automated checks
by TheLobbi★ 22 GitHub stars
Install Quality Gates in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Quality Gates Skill
The Binary Validation Protocol
Every task completion passes through a quality gate before its status transitions to COMPLETE. The gate is not advisory — a task that fails its gate is immediately moved to VALIDATING status (if it was IN_PROGRESS) and the autonomous loop treats it as incomplete. The executor must address every failed criterion before re-submitting for validation.
The foundational rule is binary evaluation: each acceptance criterion is either PASS or FAIL. There is no partial credit, no "mostly done," and no subjective judgment. If a criterion cannot be evaluated with a definitive PASS or FAIL, the criterion itself is malformed and must be rewritten before the task can proceed. The quality gate skill includes a criterion linter that flags vague language — any criterion containing the words "appropriate," "reasonable," "good," "better," "clean," "proper," "sufficient," or "correct" (without a specific measurement) is rejected as unevaluable.
The gate evaluates criteria in the order they are listed in the task's completion_criteria array. Evaluation stops at the first FAIL and the failing criterion is recorded. This is not because subsequent criteria don't matter — they do — but because a failing criterion often indicates a fundamental problem that makes subsequent criteria meaningless to evaluate. Once the failing criterion is reported and remediated, the full gate runs again from the beginning.
Per-Task-Type Automated Checks
Different task types trigger different automated check suites. The task level and tags fields together determine which suite applies.
Code implementation tasks (tagged code or implementation) trigger the code quality suite. The suite runs in this order: TypeScript compilation (npx tsc --noEmit from the project root), ESLint (npx eslint on the modified files), and the test suite filtered to files related to the changed modules (pnpm test --related or equivalent). All three must exit with code 0. A compilation error is a hard FAIL that prevents lint and test from running — fixing type errors first is required. A lint warning that is not configured as an error does not constitute a FAIL, but lint errors do. Test failures are FAIL regardless of the number of passing tests — a partially passing test suite is not acceptable.
Documentation tasks (tagged docs) trigger the documentation completeness suite. The suite checks that each required file exists at the expected path, that each required section heading is present in the document (using a case-insensitive grep), and that the document's word count meets the minimum specified in the criterion (if one is given). Documentation tasks do not run tsc or eslint unless they involve code samples embedded in markdown that are explicitly marked as runnable.
Test tasks (tagged test) trigger the test-focused suite. The suite runs the specific test file(s) created or modified by the task in isolation (pnpm test path/to/test.ts), checks that the new test names match the names specified in the completion criteria, and checks that the test file does not have any it.only, describe.only, or test.only calls (which would make the rest of the test suite silently skip). Coverage thresholds specified in the criteria are validated using the --coverage flag if available.
Configuration tasks (tagged config) trigger the configuration validation suite. JSON configuration files are validated with python3 -m json.tool or equivalent. YAML files are validated with a YAML parser. Environment variable files (.env.*) are checked to ensure no actual secret values are present — only placeholder strings. Kubernetes manifests are validated with kubectl --dry-run=client -f if kubectl is available.
Design tasks (tagged design or ui) trigger the design consistency suite. Token references are verified against the project's design token file (typically tokens.json or the Tailwind config). Component prop types are checked against the established component API patterns. Accessibility attributes (aria-*, role, tabIndex) required by the criterion are verified to be present in the rendered output or component source.
Research tasks (tagged research) trigger the research completeness suite. The research brief file must exist at the expected path. The brief must contain each of the question strings listed in the completion criteria. Each question must have at least one paragraph of substantive answer following it (not just a restatement of the question).
DevOps and infrastructure tasks (tagged devops or infra) trigger the infrastructure validation suite. Terraform plans are validated with terraform validate. Helm charts are validated with helm lint. Shell scripts are checked with shellcheck if installed. All infrastructure change scripts must be idempotent — the criterion "running the script twice produces the same end state" is automatically added
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the Quality Gates skill do?
Validating task completion against acceptance criteria with per-type automated checks
How do I install the Quality Gates skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the Quality Gates skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…