- Home
- Skills
- Testing & Debugging
- Mutation Probe
Mutation Probe
by Ronan
Find out if your Python tests actually catch bugs by purposely breaking your code and seeing if they notice.
Free
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:
- Line 24 (Comparison): I changed
if weight > 10toif weight >= 10and your tests did not fail. You should add a test case specifically for exactly 10kg. - 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.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
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.
What's inside
Frequently Asked Questions
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.