Skip to content
Testing
Skill

/verification-quality

Verify agent-written changes before they are kept: run the tests, measure coverage, scan for vulnerabilities, apply AQE's fail-closed quality gate, and revert with git when the verdict is a failure. Use when an agent's output needs a measured pass/fail decision rather than a

From plugin
agentic-qe
534119 skills169 agents149 commands1 MCP

Claude Code

$ npx -y skills add proffesor-for-testing/agentic-qe --skill verification-quality --agent claude-code

SKILL.md

verification-quality.SKILL.md
name: "Verification & Quality Assurance"
description: "Verify agent-written changes before they are kept: run the tests, measure coverage, scan for vulnerabilities, apply AQE's fail-closed quality gate, and revert with git when the verdict is a failure. Use when an agent's output needs a measured pass/fail decision rather than a self-reported one."

Verification & Quality Assurance Skill

What This Skill Does

This skill turns "the agent says it works" into a measured verdict:

  • **Evidence first**: run the tests and coverage so the gate has real measurements.
  • **Fail-closed gate**: `aqe quality --gate` passes only on measured evidence; a missing metric is *insufficient evidence*, never a pass.
  • **Security check**: SAST and dependency advisories before a change is kept.
  • **Rollback with git**: when the verdict fails, revert the change with ordinary git commands.

Every command below exists in the AQE CLI (`aqe`) or in git. The skill does not depend on Ruflo.

Prerequisites

  • AQE initialized in the project (`aqe init --auto`)
  • A git repository (for review and rollback)
  • `jq` for reading JSON verdicts in scripts

Quick Start

# 1. Produce evidence: run the tests (records testsPassing for the gate)
aqe test execute tests/ --format json --output .agentic-qe/results/tests.json

#    Measure coverage with your runner's instrumentation, then analyze it
npx vitest run --coverage            # or: npx jest --coverage
aqe coverage src/ --gaps --threshold 80 --format json --output .agentic-qe/results/coverage.json

# 2. Scan the change
aqe security --sast --target src/ --format json --output .agentic-qe/results/security.json

# 3. Ask for a verdict
aqe quality --gate --format json --output .agentic-qe/results/gate.json
echo "gate exit code: $?"

The Quality Gate

`aqe quality --gate` evaluates the measured evidence and reports a verdict with one of four exit codes:

| Exit code | Meaning | What to do | |---|---|---| | `0` | Passed, every check has more than five points of headroom | Keep the change | | `1` | One or more measured checks failed | Fix or revert (see Rollback) | | `2` | Passed, but at least one check is within five points of its threshold | Keep, and flag the narrow margin | | `3` | Insufficient evidence: a metric is missing, stale or malformed, so the gate was not evaluated | Produce the missing evidence and run again. This is **not** a pass |

The JSON output names what was not measured and how to measure it:

aqe quality --gate --format json | jq '{status, passed, unmeasured, recommendations}'
{
  "status": "insufficient-evidence",
  "passed": false,
  "unmeasured": ["coverage", "testsPassing"],
  "recommendations": [
    "Insufficient evidence: testsPassing not measured — run the test suite (test_execute_parallel, or `aqe test execute`)."
  ]
}

Never report exit code `3` as a pass: say which metrics are missing instead of giving a score.

**Current limit.** The gate also requires `criticalBugs`, `codeSmells`, `securityVulnerabilities`, `technicalDebt` and `duplications`, and no AQE CLI command or MCP tool records those yet. Until they are supplied from your own measurement, expect exit code `3` even when tests and coverage are measured. Until then, decide on the evidence you did measure: the test run's exit code, `aqe coverage` against its threshold, and the security findings. Say plainly which gate metrics were not measured. The CI example below works this way.

Pinned-checklist verdicts

For a two-gate, three-valued verdict on one artifact against a frozen checklist (the anchor ships with agentic-qe, so this works in any project from the release after 3.15.22; #1454):

# List the pinned checklists
aqe quality-gate --list

# Judge an artifact, with the mutation-oracle result
aqe quality-gate --checklist <id> --artifact-file path/to/artifact.ts --oracle-file oracle.json --format json

Exit codes: `0` pass, `1` fail, `3` inconclusive. Without `--oracle-file` (or `--oracle-passed`) the mechanical gate fails closed, and without a frontier LLM provider the judge is unavailable, so the verdict is never a pass.

Verification Checks

Tests

# Run one directory or file; the framework is read from each project's jest/vitest config
aqe test execute tests/unit/ --format json

# A monorepo package
aqe test execute src/ --project-root packages/api --format junit --output junit.xml

Coverage

# Gaps below the threshold, with risk scoring
aqe coverage src/ --gaps --risk --threshold 80

# Machine-readable
aqe coverage src/ --format json --output coverage.json

Security

# Static analysis of the source tree
aqe security --sast --target src/

# Known advisories for package.json dependencies (sends package names and versions to OSV)
aqe security --dependencies

# SARIF for code-scanning upload
aqe security --sast --format sarif --output security.sarif

Audit trail

# Verify the integrity of AQE's witness chain of recorded decisions
aqe audit verify

Rollback

AQE does not rewrite your history. When the gate fails (exit `1`), revert with git:

# See what the agent changed
git status
git diff

# Discard uncommitted changes to specific files
git restore src/broken-file.ts

# Undo the last commit but keep its changes in the working tree for repair
git reset --soft HEAD~1

# Revert a pushed commit with a new commit
git revert <commit>

Before discarding work, save it on a branch (`git switch -c wip/rejected-change && git add -A && git commit -m "rejected by gate"`) so it can be inspected later; `git add -A` also keeps new files the agent created.

CI/CD Integration

GitHub Actions

name: Quality Verification

on: [push, pull_request]

jobs:
  verify:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npm ci
      - run: n
Read more
@proffesor-for-testing
Ships withagentic-qe

Quality engineering tools for your coding agent. Generate tests, investigate coverage gaps, analyze flaky behavior and coordinate quality checks across the software lifecycle. Keep the findings close to the code and use them to make a better quality decision.

534119 skills169 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
534
Star history of proffesor-for-testing/agentic-qe on GitHub, a chart by star-history.com

Other skills on agentic-qe.

More skills from other plugins.

api-review

api-review

Produce the "Playwright 1.xx API Review" artifact for a range of commits - the public API additions and the breaking or behavior…

@microsoft@microsoftInstall Skill
add-e2e-selectors

add-e2e-selectors

Add reliable @grafana/e2e-selectors to interactive elements and key containers in the Grafana frontend. Use when adding e2e…

grafana2w78k
@grafana@grafanaInstall Skill
promptfoo-evals

promptfoo-evals

Write, refine, run, and QA promptfoo evaluation suites: promptfooconfig.yaml, prompts, providers, vars, tests, assertions,…

@promptfoo@promptfooInstall Skill
deepeval

deepeval

DeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent,…

@confident-ai@confident-aiInstall Skill

Questions about verification-quality.

Which coding agents can use verification-quality?
verification-quality 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.