agentic-verify
БесплатноБез исполняемых скриптовНе проверенCheck that a Python change is caught by tests: run every mutant of the changed lines and write tests until they catch them. Reports evidence instead of a diff…
от sickn33★ 50 670 звёзд на GitHubОб этом скилле
Verify a change
Overview
This skill checks that code Claude wrote or changed is actually tested. It defines the check before coding, runs every mutant of the changed lines with a pinned runner, and writes tests until the tests catch them. It reports which mutants were killed and which new tests fail on the old code, so the user can trust the change from evidence. Upstream source: timini/agentic-verification.
When to Use This Skill
- Use after implementing a feature or fix in a Python/pytest project, before saying the work is done.
- Use when the user asks whether a change is tested.
- Use
@agentic-test-auditinstead to review a whole test suite rather than one change.
How It Works
Arguments: $ARGUMENTS. --base is the git revision to compare with: HEAD (default) checks
uncommitted work, a branch such as main checks a whole branch. Other options go to the runner.
The goal is that the user can trust the change from evidence, without reading every line. A runner verdict describes coverage and the supported mutants tested; it cannot establish that every possible defect would fail a test. Passing tests alone do not show that: our study found 71% of the calls that could be deleted unnoticed sat in functions that looked well tested.
Runner
AV='uvx --from git+https://github.com/timini/agentic-verification@07608b3b9e4e359bc0b93b3eca94bb78d67e369e#subdirectory=runner agentic-verification'
$AV verify <project-root> --base <rev> [--budget-minutes N]
$AV replay --run <run-dir> --mutant <id> --all
$AV base-check <project-root> --base <rev> [tests...]
Pass the project root (the directory pytest runs in), not a package directory or a file.
base-check runs tests against the production source as it was at --base, in a disposable
copy, and lists the tests that pass now and fail there: those detect the change.
The runner works in a disposable copy and writes only to .test-suite-audit/ in the project.
It needs Python 3.12+ and pytest-cov in the project's environment, plus pytest-randomly for
the order check. Use a Bash timeout of the budget plus 2 minutes. The last stdout line is JSON
with the verdict and report paths.
Rules
- Never weaken, skip or delete an existing test to get a verified verdict, and never edit a test so it matches wrong behaviour. If an existing test fails, the change or the test is wrong: find out which and tell the user.
- A new test must assert behaviour a user of the code depends on: a result, an effect, an error. Do not assert on private helpers or mock the code under change. A test that mocks the thing it checks passes when the feature is broken.
- Only the runner decides that a mutant is killed. Do not call a mutant equivalent yourself; list it for the user with your reasoning.
- Do not retry a failing or flaky test until it passes. Report it; it hides real failures.
- Never stash, revert or edit production files to see a test fail on the old code. Use
base-check, which does it in a copy; an interrupted stash leaves the user's code broken.
Steps
- Define the check first. Before writing code (or, if the code exists, before testing it),
restate the success criteria in one to three lines, and pick the strongest oracle available:
- an end-to-end or public-API test of the user-visible behaviour, if there is a flow to drive;
- a property, for pure logic: round trip, invariant, idempotence, or agreement with a simple reference implementation (Hypothesis, if the project has it or the user agrees to add it);
- a differential test, for a refactor or migration: the old version (
git show <base>:<file>) is the oracle; compare on generated inputs and list intentional differences with a reason; - example tests otherwise, including the edge cases the criteria name.
Write that test and see it fail before the change. If the change already exists, run
base-checkto confirm the test fails on the old code.
- Keep the loop fast. While iterating, run only the tests for the area you are changing. The verify report lists the tests covering the changed lines and how long they take.
- Run verify once the change and its tests are written. Read the verdict:
verified: every changed line runs under a test and every mutant of the changed lines was killed. Go to step 5.gaps: changed lines no test runs, surviving mutants, or a suite that is not green and deterministic. Go to step 4.incomplete: the budget ended first (rerun with a larger--budget-minutes), or no mutant applies to the changed lines, for example a decorated function. Then the mutants give no evidence: rely onbase-checkand say so.no change: nothing under the source packages changed since--base; check the base.
- Close each gap, then rerun verify (step 3). Stop after three rounds and report wha
Установить agentic-verify в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
claudeFAQ
Что делает скилл agentic-verify?
Check that a Python change is caught by tests: run every mutant of the changed lines and write tests until they catch them. Reports evidence instead of a diff to read.
Как установить скилл agentic-verify?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agentic-verify запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic