Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

antithesis-mutation-testing

БесплатноЗапускает вложенные скриптыНе проверен

Validate that an Antithesis property catalog can actually catch bugs. For each safety property, inject one realistic mutant into the SUT, run it, and confirm…

antithesishqот antithesishq★ 313 звёзд на GitHub

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

Antithesis Mutation Testing

Skill version: 2026-11-12 6ba10e2

Purpose and Goal

Validate the oracle, not the system under test.

A green run shows nothing bad was observed — not that the property would have noticed. Mutation testing removes that ambiguity: for each property, inject one realistic bug designed to break exactly that property, run it under Antithesis, and confirm the property fires.

Success means:

  • Every in-scope property is falsified by a mutant, or carries one of the other four verdicts: not mutatable, outstanding, withdrawn, or refined (see references/evidence-and-report.md, "Verdicts and qualifiers")
  • Each falsification is backed by a run whose evidence shows the property failed for the predicted reason, not as collateral from an unrelated cascade
  • Bad oracles and workload gaps found along the way are fixed; bad properties are routed back to antithesis-research
  • antithesis/scratchbook/mutation-testing/report.md records the outcome for every in-scope property, with the run that proves it
  • The user's working tree carries no mutation — every mutant lives in the fork, and clean.sh confirms it. Authorized fixes may land there; a mutation never does

This skill requires the antithesis plugin. Use the antithesis-research skill to build the property catalog, /antithesis workload to build the harness and workload, and /antithesis properties to implement assertions. Use /antithesis launch to submit runs — do not run snouty launch directly. Use /antithesis triage to read results.

Prerequisites

  • If the Antithesis scratchbook (usually antithesis/scratchbook/) is missing, or has fallen behind the assertions in the code, reconstruct a catalog from those assertions plus the baseline run — see references/catalog-reconstruction.md. This is not a blocker; it does narrow what the sweep can claim.
  • DO NOT PROCEED if the Antithesis config directory contains a manifests/ subdirectory. Kubernetes harnesses are not supported yet: mutant selection works by building one image per mutant and swapping the tag in docker-compose.yaml. Tell the user this and stop. Check this before the compose check below — a Kubernetes harness has no docker-compose.yaml.
  • DO NOT PROCEED if there is no docker-compose.yaml for Antithesis and no manifests/ directory either. Use /antithesis workload to create the compose harness.
  • DO NOT PROCEED if the SUT and workload contain no Antithesis SDK assertions at all. Use /antithesis properties first — there is no oracle to validate, and a reconstruction cannot stand in for this one.
  • DO NOT PROCEED if snouty is not installed. See https://raw.githubusercontent.com/antithesishq/snouty/refs/heads/main/README.md for installation options.
  • DO NOT PROCEED if snouty is older than 0.8.0. Use snouty --version to find the version. Use snouty update to update.
  • DO NOT PROCEED if no SUT service is built from source in this repo. A partial case — some services built from source, some prebuilt — is fine, and is handled by scoping (below).

The baseline gate

A green baseline at the current code state is required before any mutant is designed. Mutation testing on a buggy SUT measures nothing: you cannot tell a property that fired because of your mutant from one that was already failing.

Green means: every safety-class property (Always, AlwaysOrUnreachable, Unreachable) passes.

Separately, check which of the properties you intend to mutate actually appear in the run's property list. This needs the catalog-slug to property-name mapping — a run reports the assertion's message string as name, not your slug — so build it now, per references/sweep-and-verdicts.md, "Map slugs to property names first". An assertion Antithesis never cataloged cannot be falsified; this does not fail the gate. Scope each missing one out as outstanding — not cataloged and continue with the rest (references/catalog-reconstruction.md diagnoses why it is missing) — except on a fallback-SDK or JavaScript service, where absence means only "not hit in this run": mutate those like any other, reading the marker from run events (references/catalog-reconstruction.md, the join table). Only if none of them appear is the harness broken rather than incomplete: stop and report that.

Check the instrumentation signals too — Software was instrumented, Symbols were uploaded, Thread pausing was enabled (/antithesis triage, references/triage/instrumentation.md). Report them, but gate on them only for a language that supports coverage instrumentation. Python is cataloging-only and the fallback SDK emits none; there the fuzzer has no coverage feedback to steer toward a divergence, so prefer a longer re-run to a bad oracle diagnosis for a survivor, and say so in the report.

Green does not require every property in the run to pass:

  • A failing `Reachabl
Полный SKILL.md на GitHub

Установить antithesis-mutation-testing в Claude Code и Claude Desktop

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

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

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

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

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

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

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

assets/mutation-testing/AGENTS.mdassets/mutation-testing/build-mutants.shassets/mutation-testing/clean.shassets/mutation-testing/fork.shassets/mutation-testing/images.txtassets/mutation-testing/select-mutant.shassets/mutation-testing/sync-patches.shassets/mutation-testing/verify-mutant.shreferences/catalog-reconstruction.mdreferences/evidence-and-report.mdreferences/mutant-design.mdreferences/mutation-harness.mdreferences/resume.mdreferences/static-validation.mdreferences/sweep-and-verdicts.md

FAQ

Что делает скилл antithesis-mutation-testing?

Validate that an Antithesis property catalog can actually catch bugs. For each safety property, inject one realistic mutant into the SUT, run it, and confirm the targeted property fires. Diagnoses survivors as a bad mutant, bad oracle, bad workload, or bad property, and routes fixes back to the antithesis plugin's workload module or antithesis-research. Use once the harness is built and a baseline run is green.

Как установить скилл antithesis-mutation-testing?

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

Скилл antithesis-mutation-testing запускает скрипты?

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

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

Сравнить antithesis-mutation-testing с