check_quality_gates
Run quality gate checks on your project—complexity, coupling, circular imports, and more—to verify code quality standards before committing or creating a PR. Returns pass/fail results for each gate.
Instructions
Run configurable quality gate checks against the project. Returns pass/fail for each gate (complexity, coupling, circular imports, dead exports, tech debt, security, antipatterns, code smells). Designed for CI integration — AI can verify gates pass before committing. Use before PR/commit to ensure quality standards. Read-only. When no gates are defined (no quality_gates in config and no inline config.rules), the result is NO_GATES_CONFIGURED with a _warnings advisory — NOT a misleading PASS. Pass use_default_gates: true to opt in to a conservative built-in ruleset (max_cyclomatic=30 error, max_circular_import_chains=0 error, max_coupling_instability=0.9 warning). Returns JSON: { gates, summary: { result: "PASS"|"FAIL"|"WARNING"|"NO_GATES_CONFIGURED", ... }, _warnings?, _defaults_used? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Scope: "project" (all) or "changed" (git diff). Default: project | |
| since | Yes | Git ref for "changed" scope (e.g. "main") | |
| use_default_gates | No | Opt-in to the conservative built-in default ruleset when no `quality_gates` config and no inline `config.rules` are provided. Default false — when false and no gates configured, returns `NO_GATES_CONFIGURED`. | |
| config | No | Inline config overrides (merged with project config) |