# Quality gates

> Quality gates is an open-source agent skill for developer tools. Gives an agent a four-gate quality model for judging whether code is ready to merge. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/zerotechdebt/ffflow/tree/main/plugin/skills/quality-gates
- **Repository:** https://github.com/zerotechdebt/ffflow
- **GitHub stars:** 6
- **License:** Apache-2.0
- **Skill name:** quality-gates
- **Collection:** https://github.com/zerotechdebt/ffflow
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/zerotechdebt/ffflow/tree/HEAD/plugin/skills/quality-gates)
- [License: Apache-2.0](https://github.com/zerotechdebt/ffflow/tree/HEAD/plugin/skills/quality-gates)

## Features

- **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

## Install

### Claude Code

This skill ships in the `fff` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add zerotechdebt/ffflow
/plugin install fff@ffflow
```

Or copy only this skill to `~/.claude/skills/quality-gates`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/quality-gates` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/quality-gates` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/zerotechdebt/ffflow.git --path plugin/skills/quality-gates
```

Or copy the folder to `~/.gemini/skills/quality-gates` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/quality-gates`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git
```

Then 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.

## 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.

## Alternatives

- [Quality gate](https://ai-powered.com/skills/quality-gate): Quality gate is an open-source agent skill for developer tools.
- [Check](https://ai-powered.com/skills/check-juliusz-cwiakalski): Check is an open-source agent skill for developer tools.
- [Constraint driven development](https://ai-powered.com/skills/constraint-driven-development): Constraint driven development is an open-source agent skill for developer tools.
- [Code review and quality](https://ai-powered.com/skills/code-review-and-quality): Code review and quality is an open-source agent skill for developer tools.
- [Code review and quality](https://ai-powered.com/skills/code-review-and-quality-ajyadav013): Code review and quality is an open-source agent skill for developer tools.
- [Code review checklist](https://ai-powered.com/skills/code-review-checklist): Code review checklist is an open-source agent skill for developer tools.
- [Spec driven dev](https://ai-powered.com/skills/spec-driven-dev): Spec driven dev is an open-source agent skill for developer tools.
- [Review](https://ai-powered.com/skills/review-jasgujral): Review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/quality-gates
