
Quality gates
Gives an agent a four-gate quality model for judging whether code is ready to merge
Quality gates is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 6
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Quality gates
This is a reference rulebook rather than a runnable tool. It lays out four ordered gates a pull request must clear: structure, correctness, coverage and maintainability. Gates run from fastest to slowest, and a failure at one gate means later, more expensive checks are skipped.
The structure gate covers spec traceability checks such as unique and well-formed identifiers, step definitions bound to scenarios, and annotation limits for known defects and unverified intent. The coverage gate sets unit and spec coverage thresholds and mutation testing focused on the domain and application layers. The maintainability gate caps cyclomatic complexity per function and flags functions whose mutants all survive.
The skill is loaded as context by other skills in the same plugin, such as work-issue and ci-gates, and by L3 auditors. Thresholds are read from a stack configuration rather than hardcoded, and the examples given use Stryker, mutmut and PIT for mutation testing.
When your agent uses it
The four-gate model (Structure, Correctness, Coverage, Maintainability) with spec liveness, mutation testing, complexity budgets. L3 reference rulebook.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (5 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the fff plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add zerotechdebt/ffflow
/plugin install fff@ffflowOr copy only this skill to ~/.claude/skills/quality-gates:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/quality-gates &&
cp -R "$tmp/plugin/skills/quality-gates" ~/.claude/skills/quality-gates &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/quality-gates inside it instead.
Copy the skill folder to ~/.agents/skills/quality-gates to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/quality-gates &&
cp -R "$tmp/plugin/skills/quality-gates" ~/.agents/skills/quality-gates &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/quality-gates inside it instead.
Copy the skill folder to ~/.cursor/skills/quality-gates to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/quality-gates &&
cp -R "$tmp/plugin/skills/quality-gates" ~/.cursor/skills/quality-gates &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/quality-gates inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/zerotechdebt/ffflow.git --path plugin/skills/quality-gatesOr copy the folder to ~/.gemini/skills/quality-gates yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/quality-gates:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/quality-gates &&
cp -R "$tmp/plugin/skills/quality-gates" ~/.copilot/skills/quality-gates &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/quality-gates inside it instead.
Get the folder:
git clone --depth 1 https://github.com/zerotechdebt/ffflow.gitThen copy ffflow/plugin/skills/quality-gates into your agent's skills folder as quality-gates. Agents that support SKILL.md read one folder per skill.
What it does
- Four-gate merge model
- Defines the ordered gates a pull request must pass, from fast structural checks to slower maintainability review.
- Spec traceability checks
- Covers identifier format, uniqueness, directory alignment and step definition binding for scenarios.
- Mutation testing guidance
- Explains where to focus mutation testing on the core layers and how to scope runs to changed files.
- Complexity budgets
- Sets a per-function cyclomatic complexity limit and ties refactoring to specifiability.
- Spec liveness rules
- Identifies unbound scenarios, orphaned step definitions and stale specs as problems to fix.
Good for
- Check whether a pull request is ready to merge against a staged quality model
- Review a codebase for orphaned step definitions and unbound scenarios
- Set up complexity and mutation thresholds for a CI pipeline
- Decide which quality checks to run before commit versus in CI
Quality gates FAQ
Does Quality gates run any tools or scripts?
No. It is a reference rulebook that is loaded as context and is not invoked as a tool, and it has no scripts.
Where do the coverage and complexity thresholds come from?
They are read from the stack skill's dimensions block, and a project's stack configuration can override them. The skill does not hardcode the numbers.
Which mutation testing tools are mentioned?
Stryker for TypeScript, mutmut for Python and PIT for Java.
How do I install Quality gates in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/quality-gates to use it in all your projects, or to .claude/skills/quality-gates in one project. Or install the fff plugin, which includes it: /plugin marketplace add zerotechdebt/ffflow, then /plugin install fff@ffflow.
Does Quality gates run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Quality gates?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Quality gates?
The closest alternatives to Quality gates are Quality gate, Check, Constraint driven development, Code review and quality and Code review and quality.
Where this comes from
- Description: from the skill's own SKILL.md.
More from zerotechdebt/ffflow

Onboards a project onto FFFlow: config, stack setup, then a phased roadmap
- Open source
- 6 GitHub stars
- Developer tools

Runs keep-honest audits on a project and reports drift, stale docs and tech debt
- Open source
- 6 GitHub stars
- Developer tools

Runs another interactive skill unattended, making routine choices from project context
- Open source
- 6 GitHub stars
- Developer tools

Lists and validates the adapter cartridges that FFFlow ports load in a project
- Open source
- 6 GitHub stars
- Developer tools

Extracts a behavioral spec from an unspecified codebase and plans characterization tests
- Open source
- 6 GitHub stars
- Developer tools

Adds GitHub Actions workflows that run FFFlow quality gates on pull requests
- Open source
- 6 GitHub stars
- Developer tools




