- Home
- Skills
- Testing & Debugging
- Anti Fake Pass Mutation
Works with the AI Agents you already use
Anti Fake Pass Mutation
Eliminate fake test passes using Red-Green-Refactor TDD and syntactic micro-mutation testing.
$12
Anti Fake Pass Mutation
Example session with this skill installed
I need to add a discount calculation to the billing module. Use the mutation sentinel to ensure the tests are solid. Module is at src/billing.py.
- Read your context and instructions
- Compiled the anti fake pass
I have initialized the Red-Green-Refactor workflow for the discount logic. I first verified the test failure, implemented the logic, and then ran the micro-mutation sentinel to audit assertion sensitivity.
Mutation Audit Results
The micro_mutator.py utility was executed against src/billing.py using pytest as the test runner. The test suite achieved a kill score of 91.6%, exceeding the 80% threshold.
| Mutant Type | Operator | Change | Result | Status |
|---|---|---|---|---|
| Arithmetic | * | / | Test Fails | KILLED |
| Comparison | > | >= | Test Fails | KILLED |
| Boolean | True | False | Test Fails | KILLED |
| Arithmetic | - | + | Test Passes | SURVIVED |
| Comparison | < | <= | Test Fails | KILLED |
{
"module": "src/billing.py",
"mutation_score": 91.6,
"mutants_generated": 12,
"mutants_killed": 11,
"survivors": [
{
"line": 42,
"original": "total = subtotal - discount",
"mutant": "total = subtotal + discount",
"reason": "Assertion only checks if total > 0"
}
]
}
Next steps
- Strengthen the assertion on line 42 to verify the exact expected total instead of just checking if it is positive.
- Rerun the sentinel with
python scripts/micro_mutator.py src/billing.py --test-cmd "pytest" --jsonto reach 100% kill rate. - Archive the final verification receipt in the evidence log.
Connects securely to your tools. The creator never sees your data.
About this skill
Standard unit tests often pass for the wrong reasons, creating a false sense of security. This skill enforces a strict Red-Green-Refactor workflow and uses syntactic micro-mutation testing to ensure your test suite is actually sensitive to code changes. It eliminates tautological tests by requiring empirical failure receipts and verifying that tests fail when logic is intentionally broken.
What it does
- Enforces TDD Discipline by requiring a documented RED failure before any production code is written or modified.
- Syntactic Micro-Mutation executes a polyglot sentinel script that flips operators and inverts booleans to see if your tests catch the regressions.
- Verification Evidence mandates raw terminal output receipts for every state change, preventing hallucinated test results.
- Sensitivity Scoring calculates a "Kill Score" to ensure at least 80% of injected mutants are caught by the existing assertions.
- Dry-run Auditing allows you to preview potential logic vulnerabilities in your code without modifying files.
How it works
- Initialize RED: Write a minimal test case and execute it to capture the empirical failure output.
- Implement GREEN: Write the minimum production code required to satisfy the failing test.
- Execute Mutator: Run
python scripts/micro_mutator.pyagainst your module with the--test-cmdflag to inject faults. - Audit Results: Review the JSON output to identify "surviving" mutants where tests stayed green despite broken logic.
Frameworks & tools
Built for Python 3.10+ using the standard library. Supports testing in Python (pytest), TypeScript, JavaScript, and Groovy.
Why this beats prompting it yourself
Generic AI prompting often leads to "hallucinated passes" where the agent claims tests work without running them. This skill forces the agent to use a dedicated mutation engine and provide raw execution receipts, making it impossible to fake test coverage.
Use cases
- Auditing legacy test suites to find weak assertions that pass unconditionally.
- Preventing AI agents from writing tautological tests during feature development.
- Validating critical business logic where a boolean flip could cause financial loss.
- Hardening CI/CD pipelines by enforcing a minimum mutation kill score.
Known limitations
Requires a local Python 3.10+ environment to run the micro-mutator script. Does not support pip-installed mutation libraries, relying instead on its bundled lightweight sentinel.
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.
Requires Python 3.10+ locally. Mutation score defaults to 80.0%. Limited to syntactic flips (operators, booleans, boundaries).
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
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
PythonPlaywright
Node.jsvitest