Skip to content
Agent Orchestration
Skill

/quality-gates

Use when setting up or changing a project's lint, type, test, coverage, build, size, audit, complexity or dead-code checks, when a commit, pull request or merge is being prepared, and when a check fails or someone proposes to disable, skip or loosen one.

From plugin
godmode
12333 skills1 agent2 hooks

Claude Code

$ npx -y skills add NoobyGains/godmode --skill quality-gates --agent claude-code

SKILL.md

quality-gates.SKILL.md
name: quality-gates
description: "Use when setting up or changing a project's lint, type, test, coverage, build, size, audit, complexity or dead-code checks, when a commit, pull request or merge is being prepared, and when a check fails or someone proposes to disable, skip or loosen one."

Quality Gates

Anything a machine can check, a machine checks, on every change, in CI, with the same configuration everyone runs locally. A check that only runs when someone remembers is a suggestion. **When a check fails, the code changes; the check does not.**

The Prime Directive

NEVER DISABLE, SKIP OR LOOSEN A CHECK TO MAKE IT PASS

No exceptions. No workarounds. No shortcuts.

When to Use

**Required:**

  • Setting up a new project or a new CI pipeline.
  • Before a commit, a pull request or a merge: run the gates locally and read the output.
  • When a gate fails, in CI or locally.
  • When anyone (you, a subagent, a reviewer, the user) proposes to turn off a rule, add a suppression comment, lower a threshold or skip CI.

**Skip:**

  • Nothing in an existing project. In a throwaway spike, agree with the user which gates apply and say so.

The Protocol

1. **Inventory what exists.** Read the project's scripts (`package.json`, `pyproject.toml`, `Makefile`, `Cargo.toml`, `go.mod`), the linter and type-checker configs and the CI workflow files. List which of the eight gates below are configured, which run in CI, and what their thresholds are. Use the project's own commands; do not invent new ones when the project already has them.

2. **Run every configured gate locally and record the output.** Run the full command, not a subset, and read the exit code and the counts. A gate you did not run this session has no status.

3. **Fix failures in the code.** A lint warning is fixed in the code. A type error is fixed in the types. A coverage drop is fixed with tests (written with `godmode:test-first`). A vulnerable dependency is upgraded, replaced or, if no fix exists, recorded with the user's decision and a review date.

4. **Add missing gates when you set up or are asked to harden a project.** Add them in the order of the table below, one per commit, each green before the next. Adding a gate to an existing codebase that fails it: fix the existing violations first, or set the ratchet at today's level and record a plan to tighten it; never land a gate that is red on arrival.

5. **Make CI enforce what runs locally.** The same commands, the same configs, required on every pull request, failing the job on any violation. Check that each tool really exits non-zero on a finding before you trust it in CI; run it once against a known violation and read the exit code.

6. **Handle a request to loosen a gate.** Stop, and put the question to the user with the evidence: which rule, which code triggers it, why the rule might genuinely be wrong for this project. A rule that is wrong for the project is changed in the config file with a comment that explains why, and the change is a disclosed, reviewed change. A rule that is inconvenient stays.

7. **Report.** Hand the gate results to `godmode:completion-gate` as evidence: each gate, the command, the result.

The Eight Gates

| Gate | Standard | Fails when | |---|---|---| | Lint | Zero errors and zero warnings | Any warning or error | | Types | Strict mode, zero errors | Any type error | | Tests and coverage | Suite green; coverage never drops (ratchet) | A failing test, or coverage below the recorded floor | | Build | Clean build, zero warnings | Non-zero exit or any warning | | Size budget | Bundle or binary within the agreed budget | Over budget | | Dependency audit | No known high or critical vulnerability | A high or critical advisory without a recorded decision | | Complexity | Functions under the agreed threshold | A function over it | | Dead code | No unused files, exports or dependencies | An unused item |

Lint

Zero warnings, because a warning that is tolerated today is noise that hides tomorrow's real one. Commit the config. Report unused suppression comments too.

<!-- ESLint CLI: --max-warnings fails the run when warnings exceed the number; --report-unused-disable-directives. https://eslint.org/docs/latest/use/command-line-interface (fetched 2026-10-25) -->

  • JavaScript and TypeScript: `eslint . --max-warnings 0 --report-unused-disable-directives`.
  • Python: `ruff check .`.

A suppression comment is allowed only with a reason on the same line and, where the project uses them, an issue link. A bare `eslint-disable`, `# noqa` or `@ts-ignore` is a failing gate.

Types

<!-- TSConfig reference: strict, noUncheckedIndexedAccess, noImplicitReturns, noFallthroughCasesInSwitch, noImplicitOverride, exactOptionalPropertyTypes, noEmit. https://www.typescriptlang.org/tsconfig/ (fetched 2026-10-25) -->

  • TypeScript: `"strict": true` plus `noUncheckedIndexedAccess`, `noImplicitReturns`, `noFallthroughCasesInSwitch` and `noImplicitOverride`; run `tsc --noEmit` in CI.

<!-- mypy --strict: https://mypy.readthedocs.io/en/stable/command_line.html (fetched 2026-10-25) -->

  • Python: `mypy --strict` (or pyright in strict mode, if the project already uses it).

`any`, `# type: ignore` and casts that hide a real mismatch are type errors you chose not to fix. Each one needs a reason in a comment.

Tests and the coverage ratchet

Coverage is a floor that only moves up. Record today's number in the config; CI fails when a change drops below it; when coverage rises, raise the floor.

<!-- Jest coverageThreshold (global branches/functions/lines/statements; run fails if not met): https://jestjs.io/docs/configuration ; Vitest coverage.thresholds incl. autoUpdate: https://vitest.dev/config/coverage ; pytest-cov --cov-fail-under and --cov-branch: https://pytest-cov.readthedocs.io/en/latest/config.html (all fetched 2026-10-25) -->

  • Jest: `coverageThreshold.global` with `lines`, `branches`, `functions`, `statements`.
  • Vitest: `coverage.thresholds`; `autoUpdat
Read more
@noobygains
Ships withgodmode

Engineering discipline for AI coding agents: question the request, verify against current docs, plan, build test-first on the cheapest capable model, review with a second model family, prove it before saying done. One repo for Claude Code, Codex, Antigravity, Cursor, Gemini CLI and OpenCode.

12333 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
123
Star history of NoobyGains/godmode on GitHub, a chart by star-history.com

Other skills on godmode.

agent-briefing

agent-briefing

Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…

@noobygains@noobygainsInstall Skill
code-review

code-review

Use when a task, feature or bug fix is implemented and before it is committed, merged or handed back to the user, and when the…

@noobygains@noobygainsInstall Skill
codebase-conventions

codebase-conventions

Use when about to add or change code in an existing codebase: a new file, module, route, component, service, test, migration,…

@noobygains@noobygainsInstall Skill
completion-gate

completion-gate

Use when about to say that work is done, fixed, passing, working, deployed or ready, before committing, opening or merging a pull…

@noobygains@noobygainsInstall Skill
cross-model-review

cross-model-review

Use when a reviewed change is about to land on a shared branch, be released or be deployed, and when the user asks for a second…

@noobygains@noobygainsInstall Skill
delegated-execution

delegated-execution

Use when a written implementation plan is ready to execute in the current session and its tasks are mostly independent, so each…

@noobygains@noobygainsInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca1d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip2d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about quality-gates.

Which coding agents can use quality-gates?
quality-gates installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.