Skip to content
PluginImportedContains scriptsShare-alike license

mutation-testing

Configures mewt or muton campaigns, analyzes surviving mutants, and investigates bugs exposed by testing gaps. Use when setting up mutation testing, reviewing campaign results, identifying equivalent mutants, or finding bugs from surviving mutations.

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Read this before you download

Talqeen never runs anything from this item. But what you download runs on your machine if you run it or let Claude Code run it, so read the files first.

  • The item has script files.

Files: 34 · Size: 160 KB

Download the ZIP

The file carries the license of the original source.

Install

Plugins are installed from a plugin marketplace in Claude Code, not by copying files. Download the package to read its content and its license.

Instructions

Mutation Testing

Configure mutation testing campaigns, explain what surviving mutations reveal about tests, and investigate potential bugs in the affected code.

The plugin ships one skill, mutation-testing. Invoke it with /mutation-testing:mutation-testing or ask for help with a mutation testing campaign or its results.

Workflows

RequestWhat the skill does
Set up or optimize a campaignConfigures mewt or muton, checks target selection, measures test duration, and tunes timeouts and per-target test commands.
Analyze completed resultsReads the source and tests for each survivor, distinguishes equivalent changes from testing gaps, and recommends specific assertions or inputs in mutation-testing-report.md.
Investigate potential bugsUses survivors to prioritize investigation of the original code. Requires a reproduced proof of concept before describing a bug as confirmed.

A surviving mutation means the tests did not detect a deliberate change. It can reveal a testing gap or an equivalent implementation. It does not by itself establish a bug in the original code. The analysis workflow recommends test improvements without implementing them.

Prerequisites

Campaign setup uses mewt or muton, plus a runnable test suite. Examples follow the mewt 4.x API. Check the installed tool's --help for supported flags and language labels. For muton projects, substitute muton, muton.toml, and muton.sqlite in the examples.

Analyzing saved results does not require either tool to be installed. Supply the campaign output, the source at the mutation sites, and the relevant tests. The analysis workflow also accepts results from other mutation testing tools.

Examples

  • "Help me set up mewt for this Rust project."
  • "Configure muton for this FunC codebase."
  • "My mutation campaign would take 30 hours. Help me reduce its scope."
  • "Which of these surviving mutants are equivalent, and what tests are missing?"
  • "Investigate the original code around these surviving authorization mutations."

Validation

The bundled eval uses a captured campaign against a deliberately weak Rust test suite. It requires the agent to distinguish balance > 0 from two mutations: balance != 0 is equivalent for u64, while balance >= 0 differs at zero. It also checks authorization, balance-accounting, and logging gaps. The fixture can be analyzed without cargo or mewt.

Run the report-validator tests from the repository root:

uv run --no-project --with pytest python -m pytest plugins/mutation-testing/tests -q --import-mode=importlib
DETERMINISTIC_ONLY=1 uv run --no-project bash plugins/mutation-testing/tests/smoke-test.sh

The deterministic checks accept a correct report and reject reports that misclassify either comparison. They test the grader, not the skill's effectiveness. The optional model eval checks the agent's report against the same validator:

# Requires Claude Code with plugin eval support and ANTHROPIC_API_KEY.
uv run --no-project bash plugins/mutation-testing/tests/smoke-test.sh

The model eval retains reports locally and makes API calls. Its model, judge, run count, and cost ceiling can be set with MODEL, JUDGE_MODEL, RUNS, and MAX_COST_USD. A passing fixture does not establish improvement over an agent without the skill.

To reproduce the captured campaign, work on a separate copy:

mutation_fixture_dir="$(mktemp -d)/vault"
cp -R plugins/mutation-testing/evals/weak-suite-analysis/fixture "$mutation_fixture_dir"
cd "$mutation_fixture_dir"
cargo test
mewt mutate
mewt run
mewt results

References

Files

  • folder.claude-plugin461 B
    • plugin.json461 B
  • folderevals20 KB
    • folderweak-suite-analysis20 KB
      • folderfixture15 KB
        • foldersrc1 KB
          • lib.rs1 KB
        • foldertests406 B
          • vault.rs406 B
        • .gitignore156 B
        • Cargo.toml60 B
        • mewt-results.json13 KB
        • mewt-status.txt491 B
        • mewt.toml83 B
      • foldergraders3.4 KB
        • covers-both-comparison-mutants.md147 B
        • criteria.md3 KB
        • names-access-control-guard.md112 B
        • report-written.md74 B
        • skill-fired.md81 B
      • case.yaml643 B
      • prompt.md1.1 KB
  • folderskills68 KB
    • foldermutation-testing68 KB
      • folderagents243 B
        • openai.yaml243 B
      • folderassets3 KB
        • trail-of-bits-mark.svg3 KB
      • folderreferences33 KB
        • blockchain-patterns.md4.8 KB
        • equivalent-mutants.md7 KB
        • input-formats.md2.4 KB
        • optimization-strategies.md8.7 KB
        • report-template.md4.3 KB
        • severity-classification.md5.9 KB
      • folderworkflows25 KB
        • analyzing-results.md6.7 KB
        • bug-hunter.md7.4 KB
        • configuration.md11 KB
      • SKILL.md6.1 KB
  • foldertests48 KBscript
    • folderfixtures31 KB
      • broken-filters-both.md9.6 KB
      • broken-filters-neither.md11 KB
      • good-report.md11 KB
    • smoke-test.sh4 KBscript
    • test_validate_report.py4.8 KBscript
    • validate_report.py7.4 KBscript
  • LICENSE20 KB
  • README.md3.9 KB

What the automatic scan found

We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.

  • Needs a lookA script file

    In file plugins/mutation-testing/tests/smoke-test.sh

  • Needs a lookDeletes files forcibly and recursively

    In file plugins/mutation-testing/tests/smoke-test.sh, line 22

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report

Similar items

  • PluginImported

    performance-testing-review

    Performance analysis, test coverage review, and AI-powered code quality assessment

    MITFiles: 5

  • PluginImportedContains scripts

    property-based-testing

    Write, review, and triage property-based tests — Hypothesis, fast-check, proptest, and Echidna or Medusa for Solidity invariants

    CC-BY-SA-4.0Files: 41

  • PluginImported

    quantitative-trading

    Quantitative analysis, algorithmic trading strategies, financial modeling, portfolio risk management, and backtesting

    MITFiles: 8

  • PluginImported

    shell-scripting

    Production-grade Bash scripting with defensive programming, POSIX compliance, and comprehensive testing

    MITFiles: 10

  • PluginImported

    ship-mate

    Your AI development teammate. Turns a story file into a shipped, reviewed, and tested feature via orchestrator → architect → developer → PR reviewer → QA → Playwright.

    MITFiles: 14

  • PluginImported

    tdd-workflows

    Test-driven development methodology with red-green-refactor cycles and code review

    MITFiles: 7