本文へ移動
cccskills
無料GitHub で公開日本語紹介

agentic-verify

Pythonの変更箇所に意図的な誤りを加え、テストが検知するか確かめます。見逃しを補うテストを追加し、変更前のコードでは失敗することも確認して根拠を報告します。

原文原文の説明を見る

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.

インストール方法を見る

こんなときに便利

  • Pythonの機能追加や修正のテスト確認
  • 見逃した誤りを捉えるテスト追加
  • 変更前のコードで失敗するか確かめたいとき
  • 基準リビジョンからの変更の検証

日本語での紹介

できること

Pythonの機能追加や修正について、テストが変更箇所の誤りを検知できるか調べます。成功条件を整理したうえで、変更行に意図的な誤りを加えるミューテーションテストを実行します。見逃しには利用者から見える動作を確かめるテストを追加し、再検証します。base-check では、新しいテストが変更前のコードで失敗することも確認します。

こんなときに便利

修正後にテストが通るだけでは判断しづらいときや、追加したテストが変更を実際に捉えているか知りたいときに向いています。未コミットの作業や、指定したGitの基準リビジョンからの変更を対象にし、検知した誤り、未検証の行、残る課題を報告します。

使い方の例

  • 「今回の修正を --base HEAD で検証して」
  • 「見逃した変更例を検知するテストを追加し、変更前でも確認して」

注意点

Python 3.12以上と pytest-cov が必要で、実行順の検査には pytest-randomly も使います。ランナーは uvx で取得し、一時コピーで実行します。既存テストを弱めたり削除したりせず、検証を繰り返すのは最大3回です。誤りを検知できてもコード全体の正しさは保証されず、変更によっては検証用の誤りを生成できない場合があります。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md8.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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-audit instead 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 change is verified when the tests fail if any part of it is wrong. 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@v0.3.0#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

  1. 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-check to confirm the test fails on the old code.
  2. 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.
  3. 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 on base-check and say so.
    • no change: nothing under the source packages changed since --base; check the base.
  4. Close each gap, then rerun verify (step 3). Stop after three rounds and report what is left.
    • Surviving mutant: read its patch in mutants/<id>.patch. It shows a wrong version of your code that the tests accept. Write a test that passes on the real code and fails on that version, then confirm it with replay --all (killed_now: true). If the mutant changes nothing a caller could observe, leave it and say why.
    • Uncovered changed line: test it, or remove it if it is dead code.
    • New test that catches none of the change's mutants (change-weak-tests): strengthen its assertions, or explain what it checks instead.
    • Failing, intermittent or order-dependent test: report it; do not work around it. Tests that already fail on the base revision are listed as a caveat and do not cause gaps.
  5. Optional, for larger changes: review in a fresh context. If you can start a subagent, give it only the success criteria, the diff and the test files, and ask it to write one test that should pass and might not. Run it. A failure is a bug or a missing requirement.
  6. Report evidence, not a diff. Lead with the verdict, then:
    • the success criteria and which tests check each one;
    • mutants killed out of mutants run on the changed lines, and changed lines not covered;
    • which new tests base-check shows failing on the old code;
    • tests you added, and gaps closed this way;
    • what is left: surviving mutants with your reason, and anything not assessed;
    • the fast check command from the report, and the path to report.md. Do not say the change is correct. Say what the tests now catch.

For the meaning of statuses and labels, see reading the report.

Examples

Example 1: Check uncommitted work

AV='uvx --from git+https://github.com/timini/agentic-verification@v0.3.0#subdirectory=runner agentic-verification'
$AV verify . --base HEAD --budget-minutes 10

Example 2: Confirm a new test kills a surviving mutant

$AV replay --run .test-suite-audit/<run-dir> --mutant <id> --all

Limitations

  • Python and pytest only. Needs Python 3.12+ and pytest-cov; the order check needs pytest-randomly.
  • A killed mutant shows the tests notice that change, not that the code is correct.
  • Some changes get no mutants (for example a decorated function); the verdict is then incomplete.
  • The runner decides kills; possibly equivalent mutants are left for human review.

Security & Safety Notes

  • The runner is fetched with uvx from GitHub at tag v0.3.0 (commit 07608b3b9e4e359bc0b93b3eca94bb78d67e369e). Review it before first use.
  • It copies the project to a temporary directory and writes only to .test-suite-audit/ in the project. It does not stash, revert or edit production files.
  • The agent adds test files; it must not weaken, skip or delete existing tests.

Related Skills

  • @agentic-test-audit - audit a whole pytest suite for gaps, flaky and slow tests, and removal candidates.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

00-andruia-consultant

無料日本語概要

新規・既存のAIプロジェクトについて、コードや目的、制約を確認し、利用可能なスキルの提案と、依存関係や完了条件を含むタスク一覧・実装計画の作成を支援します。

  • 新規AIプロジェクトの着手計画
  • 既存プロジェクトの技術課題の整理
  • 利用可能なスキルを選びたいとき
sickn33/agentic-awesome-skills4.8万2026年10月16日 更新

007

無料日本語概要

コードやインフラのセキュリティ監査、脅威の洗い出し、設定の強化を支援します。OWASPに沿った確認や、攻撃側・防御側の検証、インシデント対応も扱います。

  • コードとインフラの安全性を点検したいとき
  • STRIDEやPASTAで脅威を整理したいとき
  • セキュリティ設定を強化したいとき
sickn33/agentic-awesome-skills4.8万2026年10月16日 更新

10-andruia-skill-smith

無料日本語概要

繰り返し行う作業をAndru.ia向けのスキルにまとめます。入力・成果物・利用例・制約を定め、SKILL.mdの作成から構造検証、PRの準備まで支援します。

  • 繰り返す作業をスキル化したいとき
  • 既存スキルの例や制約を改善したいとき
  • スキルを検証してPRを準備したいとき
sickn33/agentic-awesome-skills4.8万2026年10月16日 更新

20-andruia-niche-intelligence

無料日本語概要

プロジェクトの業界が決まった段階で、業界動向や適用候補の法規制、利用者に合う画面設計、技術選定とリスクを調べ、確認済みの事実と仮説を分けて資料にまとめます。

  • 業界特有の要件を設計前に調べたいとき
  • 対象地域の法規制を確認したいとき
  • 利用者になじみのある画面設計の検討
sickn33/agentic-awesome-skills4.8万2026年10月16日 更新

2slides-ppt-generator

無料日本語概要

文章や文書から2slides APIでスライドを生成し、参考画像に合わせたスタイルの指定、AI音声ナレーションの追加、画像・音声の書き出しに対応します。

  • 文章や構成案から発表資料を作成
  • 文書を要約してスライド化
  • 参考画像に合わせた資料デザイン
sickn33/agentic-awesome-skills4.8万2026年10月16日 更新

360-feedback-system

無料日本語概要

360度評価や相互フィードバックの運用を整理し、回答を1件ずつ記録する空の台帳を作るスキル。確認済みの項目だけでCSV、SQL、JSON SchemaやNotion向けの対応表を整えます。

  • 匿名の相互フィードバックを設計したいとき
  • 回答記録用のCSV台帳を作りたいとき
  • SQLとJSON Schemaの項目統一
sickn33/agentic-awesome-skills4.8万2026年10月16日 更新

sickn33 のスキルをすべて見る

このスキルの問題を報告する