Command Palette

Search for a command to run...

Назад к скиллам
скилл № 14030

Verification & Quality Assurance

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…

БесплатноЗапускает вложенные скрипты
proffesor-for-testingот proffesor-for-testing★ 537 звёзд на GitHub

Установить Verification & Quality Assurance в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

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
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • evals/verification-quality.yaml
  • schemas/output.json
  • scripts/validate-config.json

FAQ

Что делает скилл Verification & Quality Assurance?

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?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Verification & Quality Assurance запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Verification & Quality Assurance с