| name | quality-check |
| version | 1.0.0 |
| description | Unified quality gate dispatcher. Runs selected quality checks with profile-aware defaults. |
| trigger | manual |
| depends-on | ["code-quality","test-validator","security-audit","architecture-check","performance-check"] |
| references | [] |
| disable-model-invocation | true |
| user-invocable | true |
| allowed-tools | Read, Glob, Grep, Bash, Agent |
| argument-hint | [--code] [--tests] [--security] [--architecture] [--performance] [--all] |
quality-check
Running quality gates: $ARGUMENTS
1. Parse Flags
Extract check selection from $ARGUMENTS:
| Flag | Dispatches |
|---|
--code | /code-quality |
--tests | /test-validator |
--security | /security-audit |
--architecture | /architecture-check |
--performance | /performance-check |
--all | All 5 checks above |
2. Apply Profile Defaults
If NO flags are provided, read the project profile from the **Profile:** line in CLAUDE.md and apply defaults:
| Profile | Default Checks |
|---|
| lean | --code (lint + complexity only) |
| standard | --code --tests --security |
| strict | --all plus integration-tester agent |
If the profile is not set or not recognized, default to standard behavior.
3. Run Quality-Gate-Sequence First
Before dispatching agent skills, run the quality-gate-sequence micro-component from .claude/prompts/quality-gate-sequence.md — this runs lint, typecheck, and tests from CLAUDE.md Commands. These are fast, deterministic checks that catch issues before the more expensive agent analysis.
HARD GATE: If tests fail, stop here. Do not dispatch agent skills on failing code.
4. Dispatch Selected Checks
Dispatch each selected check as a parallel Task agent. Each invokes the corresponding skill:
For each selected check:
Launch Agent (subagent_type: general-purpose) with prompt:
"Run /<skill-name> on the current codebase. Return a structured report."
Run all selected checks in parallel for efficiency. Wait for all to complete.
Also dispatch the `integration-tester` native agent (`.claude/agents/integration-tester.md`) to independently verify acceptance criteria by running commands.