Mutation Probe

    by Ronan

    1

    Find out if your Python tests actually catch bugs by purposely breaking your code and seeing if they notice.

    Free

    Security scanned

    Works with the AI Agents you already use

    What it does

    • Injects small faults into your code to see if your tests are alert enough to catch them
    • Lists the exact lines where code was changed but the tests still passed anyway
    • Calculates a quality score based on how many intentional bugs were detected
    • Suggests new test cases to cover the gaps found during the probing process
    • Works in a temporary folder so your original source code stays safe and untouched

    Who it's for

    Python developers who want to prove their tests work

    Show exactly which lines of code your tests are ignoring by trying to break them on purpose.

    Try asking: “Check if my tests for the payment module actually catch mistakes.”

    Technical founders auditing an outsourced codebase

    Get a real quality score for the code you paid for, beyond just seeing green checkmarks.

    Try asking: “Verify the test quality of this new Python backend.”

    Lead engineers reviewing team pull requests

    Find weak assertions and missing edge cases before they reach production.

    Try asking: “Run a mutation probe on the recent changes in the user-auth file.”

    Mutation Probe

    Example session with this skill installed

    I just finished the logic for the shipping calculator. The tests pass, but I want to make sure they are actually checking the math correctly. Run a probe on shipping.py.

    • Read your context and instructions
    • Compiled the mutation probe

    I will run a mutation probe on shipping.py to see if your tests catch intentional mistakes.

    I have analyzed the file and injected 42 different faults (like flipping signs and changing constants). Here is what I found:

    Test Quality Results

    • Score: 85.7%
    • Faults caught: 36
    • Survivors: 6

    Where your tests are missing things:

    1. Line 24 (Comparison): I changed if weight > 10 to if weight >= 10 and your tests did not fail. You should add a test case specifically for exactly 10kg.
    2. Line 45 (Logic): I removed the return value for the international surcharge, and the tests still passed. This means you are calling the function but not checking the result.
    3. Line 12 (Math): I changed a +5.00 flat fee to -5.00 and it went unnoticed.

    I recommend adding three new test cases to cover these specific scenarios. Would you like me to help you write the test for the 10kg edge case first?

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The problem. Passing tests do not show that the tests check anything. Background: a 2025 empirical study of more than 1.2 million commits across 2,168 TypeScript, JavaScript and Python repositories (Hora and Robbes, arXiv 2602.00409) found that 36 % of coding-agent commits add mocks, against 26 % for non-agent commits. The study measures mocks, not bug-detection quality; it is background, not proof that agent-written tests are weak. Line coverage cannot tell you whether the assertions would notice a wrong result.

    How it works, in 4 steps.

    Frame: --list-only shows the faults that would be injected, without running any test or any project code. Run: the script copies the project to a temporary directory, injects one fault at a time (8 operators: comparisons, arithmetic, and/or, not, True/False, integer literals, return values, if conditions) and runs your test command (unittest or pytest, autodetected or given with --test-cmd). Read: survivors (faults the tests did not notice) come with the exact diff, the enclosing function, the category, and a hint for the test to write. JSON output is available for agents. Fix and repeat: the agent writes one test per useful survivor, explains equivalent mutants instead of writing absurd tests, re-runs, and stops after 3 rounds at most. It never edits the source code to "kill" a mutant and never claims a high score proves the absence of bugs.

    What you get. SKILL.md (agent procedure, exit-code table, hard rules), README.md with a worked example, and one standard-library Python script (no dependency, no network, no API key). Built-in checks: the reference suite runs twice, a canary verifies the copied file is the one executed, bytecode caches are neutralised. Worked example on a constructed fixture: a weak test suite scores 35.0 % (7 of 20 faults caught) and a stronger one 90.0 %, with the two remaining survivors being equivalent mutants. This is a constructed example, not a measurement on real projects.

    Note on language. The tool's report (summary, hints, notes, error messages) is written in French. SKILL.md, README and the option names are in English.

    Only works for Python on Linux. It runs your actual test code, so only use it on code you trust. It does not support Windows.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 1 day ago

    • Free with an Agensi account

    Linux only

    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables

    Python only (v1). It runs your tests, therefore your project's code. It is not a sandbox: do not run it on untrusted code. Equivalent mutants are not detected automatically. A test that becomes flaky after the two reference runs is not detected. If the process is killed with SIGKILL, a temporary copy can be left behind. 8 operators only; default sample of 60 mutants, so the score may be an estimate. Tested only on Linux with Python 3.13, pytest 9 and unittest. Windows is refused. A score is not proof of correct code. Requirements. Python 3.9 or later (verified on 3.13 only), Linux, a project whose tests pass on unmodified code, git only for the optional --since option.

    Listed1 day ago

    What's inside

    Frequently Asked Questions

    This skill identifies holes in your Python test suite by purposely breaking parts of your code. If your tests still pass even though the code is broken, it reveals specific lines where you need stronger checks to prevent real bugs.

    You only need a Python project folder and the specific file you want to check. The skill handles the rest by creating a safe copy of your code to test against so your original work stays untouched.

    You get a report showing a test quality score and a list of surviving mutants, which are the specific spots where code was broken but tests failed to notice. This list includes the exact code changes and hints on why the tests might have failed to catch them.

    This skill is currently for Python projects on Linux systems only. It does not work on Windows and it focuses on eight specific types of code changes, so it won't catch every possible type of logic error or work on non-Python languages.

    You can tell your AI agent that you want to check your test quality or get a mutation score for a specific Python file. You should also mention if you want to focus only on recently changed lines or a specific part of your project.

    It is not safe to use this skill on untrusted code because it must run the project tests to work. Since the tests have access to your files and network, you should only use it on code you know is safe.

    New in Testing & Debugging

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.

    Free