# Quality gate

> Quality gate is an open-source agent skill for developer tools. Scores agent session work at stop, flags unverified test claims, and writes handoffs. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/0xNyk/lacp/tree/main/plugin/skills/quality-gate
- **Repository:** https://github.com/0xnyk/lacp
- **GitHub stars:** 311
- **License:** MIT
- **Skill name:** quality-gate
- **Collection:** https://github.com/0xNyk/lacp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

Quality Gate runs when an agent session stops and rates the work on four weighted dimensions: completeness, honesty about tests and status, how much was deferred to later, and how well the changed files match the scope claimed. It is designed to catch rationalizing language and to check whether test claims hold up.

The skill also supports sprint contracts. Before building, the agent can write down the files it expects to touch, the tests that should pass, and the acceptance criteria, and the gate later evaluates the session against that contract. On each non-trivial stop it writes a handoff artifact covering the task summary, modified files, test status, git branch and diff summary, and next steps, which the following session receives automatically.

Scoring is configurable through environment variables: a pass threshold on a 1 to 5 scale, the Ollama model used for scoring, and an optional blind spot reflection step. The folder contains a single SKILL.md file with no bundled scripts, and the plugin is distributed through the lacp-plugins Claude Code marketplace.

## When your agent uses it

> Production quality gate for agent sessions. Activates on session stop to evaluate work quality using 4-dimension weighted scoring (completeness, honesty, deferral ratio, work evidence). Catches rationalization patterns, verifies test claims, and generates handoff artifacts for session continuity. Use sprint contracts to define done-criteria before building.

## What it can access

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

- [Instructions only, no scripts](https://github.com/0xNyk/lacp/tree/HEAD/plugin/skills/quality-gate)
- [License: MIT](https://github.com/0xNyk/lacp/tree/HEAD/plugin/skills/quality-gate)

## Features

- **Weighted session scoring:** Rates each session on completeness, honesty, deferral ratio and work evidence using fixed weights.
- **Test claim verification:** Checks whether statements about tests and status are backed by the work done.
- **Rationalization detection:** Looks for patterns where the agent explains away unfinished or deferred work.
- **Sprint contracts:** Lets the agent state expected files, passing tests and acceptance criteria before building.
- **Handoff artifacts:** Writes a summary of task, files, test status, git diff and next steps for the next session.
- **Configurable threshold:** Environment variables set the minimum passing score, scoring model and blind spot reflection.

## Good for

- Review whether the work in this session actually meets what I committed to
- Check that my claims about passing tests are backed up before I stop
- Write a handoff summary so the next session can pick up where this one ended
- Define done-criteria for a feature before I start implementing it

## Install

### Claude Code

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

```sh
/plugin marketplace add 0xNyk/lacp
/plugin install lacp-hardening@lacp-plugins
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/0xNyk/lacp.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/quality-gate &&
cp -R "$tmp/plugin/skills/quality-gate" ~/.claude/skills/quality-gate &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/quality-gate` inside it instead.

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/0xNyk/lacp.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/quality-gate &&
cp -R "$tmp/plugin/skills/quality-gate" ~/.agents/skills/quality-gate &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/quality-gate` inside it instead.

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/0xNyk/lacp.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/quality-gate &&
cp -R "$tmp/plugin/skills/quality-gate" ~/.cursor/skills/quality-gate &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/quality-gate` 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/0xNyk/lacp.git --path plugin/skills/quality-gate
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/0xNyk/lacp.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/quality-gate &&
cp -R "$tmp/plugin/skills/quality-gate" ~/.copilot/skills/quality-gate &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/quality-gate` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/0xNyk/lacp.git
```

Then copy `lacp/plugin/skills/quality-gate` into your agent's skills folder as `quality-gate`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does the quality gate run?

It activates when the agent session stops, and it writes a handoff artifact on every non-trivial stop.

### What does Quality gate score?

Four dimensions with weights: completeness 35%, honesty 30%, deferral ratio 20%, and work evidence 15%.

### Which model does scoring use by default?

The default is llama3.1:8b through Ollama, and it can be changed with the LACP_QUALITY_GATE_MODEL variable.

### Does Quality gate include scripts?

No. The skill folder contains only its SKILL.md file and no scripts.

### How do I install Quality gate in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/quality-gate to use it in all your projects, or to .claude/skills/quality-gate in one project. Or install the lacp-hardening plugin, which includes it: /plugin marketplace add 0xNyk/lacp, then /plugin install lacp-hardening@lacp-plugins.

### Does Quality gate 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 gate?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Quality gate?

The closest alternatives to Quality gate are Agent self evaluation, Session hardening, Scoring, Test gap audit and Review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Agent self evaluation](https://ai-powered.com/skills/agent-self-evaluation): Agent self evaluation is an open-source agent skill for developer tools.
- [Session hardening](https://ai-powered.com/skills/session-hardening): Session hardening is an open-source agent skill for developer tools.
- [Scoring](https://ai-powered.com/skills/scoring-xiaolai-2): Scoring is an open-source agent skill for developer tools.
- [Test gap audit](https://ai-powered.com/skills/test-gap-audit): Test gap audit 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.
- [Go code review](https://ai-powered.com/skills/go-code-review): Go code review is an open-source agent skill for developer tools.
- [Code review expert](https://ai-powered.com/skills/code-review-expert): Code review expert is an open-source agent skill for developer tools.
- [Gap analysis](https://ai-powered.com/skills/gap-analysis): Gap analysis is an open-source agent skill for developer tools.

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