Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Anti Fake Pass Mutation

    1

    Eliminate fake test passes using Red-Green-Refactor TDD and syntactic micro-mutation testing.

    $12

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Anti Fake Pass Mutation

    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 TypeOperatorChangeResultStatus
    Arithmetic*/Test FailsKILLED
    Comparison>>=Test FailsKILLED
    BooleanTrueFalseTest FailsKILLED
    Arithmetic-+Test PassesSURVIVED
    Comparison<<=Test FailsKILLED
    {
      "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

    1. Strengthen the assertion on line 42 to verify the exact expected total instead of just checking if it is positive.
    2. Rerun the sentinel with python scripts/micro_mutator.py src/billing.py --test-cmd "pytest" --json to reach 100% kill rate.
    3. 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

    1. Initialize RED: Write a minimal test case and execute it to capture the empirical failure output.
    2. Implement GREEN: Write the minimum production code required to satisfy the failing test.
    3. Execute Mutator: Run python scripts/micro_mutator.py against your module with the --test-cmd flag to inject faults.
    4. 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. 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

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed today

    Software
    PythonPlaywrightNode.jsvitest

    Permissions

    Terminal / Shell
    Browser
    Read Files
    Write Files
    Network Access
    Environment Variables
    Listedtoday

    What's inside

    Frequently Asked Questions

    This skill solves the problem of 'tautological tests'—tests that pass regardless of whether the code works. It forces the AI to prove a test can fail (RED) before it passes (GREEN) and uses a mutation engine to verify that your test suite is actually sensitive to logic errors.

    The skill includes the core agent logic for the Red-Green-Refactor workflow and a proprietary 'micro-mutator' sentinel script. You will also receive documentation on how to integrate this script into your local environment for real-time verification.

    While the mutator script requires Python 3.10+ to run, it is polyglot-friendly and can be configured to audit test suites written in Python (pytest), TypeScript, JavaScript, and Groovy.

    You must have a local Python 3.10+ environment available. The skill operates by executing a bundled script against your files, so the AI agent needs permission to run shell commands to generate the required verification receipts.

    Unlike standard coverage tools that only show which lines were executed, this skill calculates a 'Kill Score.' This metric tells you what percentage of intentional logic errors (mutants) your tests successfully caught, providing a much higher standard of quality than line coverage alone.

    New in Testing & Debugging