Skip to content
Skill

Quality gate

Scores agent session work at stop, flags unverified test claims, and writes handoffs

Quality gate is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
311
Last commit
License
MIT
Listing updated

Similar skills

About Quality gate

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.

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 (1 KB) on GitHub on 3 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 lacp-hardening plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

gemini skills install https://github.com/0xNyk/lacp.git --path plugin/skills/quality-gate

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Quality gate 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.

More from 0xNyk/lacp

  1. Switch an agent session into structured work modes like TDD, debugging or review

    • Open source
    • 311 GitHub stars
    • Developer tools
  2. Guards agent sessions with pretool blocks, periodic test runs and startup context

    • Open source
    • 311 GitHub stars
    • Developer tools