Works with the AI Agents you already use

    Test Generator Pro: Tests That Catch Bugs, Proven

    by Mas Boy

    1

    If you have ever written a test that passes even when you know the code is broken, you have "happy-path theater." This skill helps you build a safety net that actually works.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    What it does

    • Maps every logic branch and error path in your code module
    • Creates a test file with placeholders for every possible scenario
    • Detects whether you use Jest, Vitest, Mocha, or the standard Node runner
    • Breaks your code in six different ways to prove the tests can catch bugs
    • Reports a mutation score to show exactly how reliable your testing is

    Who it's for

    Software developers writing JavaScript/Node.js

    Write tests that actually fail when your code is broken, rather than just checking if it runs.

    Try asking: “Help me test this payment logic module and make sure the tests catch bugs.”

    Technical founders building prototypes

    Ship code with confidence by proving your tests aren't just for show.

    Try asking: “Generate a test suite for my new auth helper and run a mutation check.”

    QA Engineers and Testers

    Automate the busywork of scaffolding tests and focus on finding tricky edge cases.

    Try asking: “Scaffold tests for this math utility and tell me if they survive a mutation test.”

    Test Generator Pro: Tests That Catch Bugs, Proven

    Test Generator Pro: Tests That Catch Bugs, Proven

    Example session with this skill installed

    Generate a test suite for posixpath_normpath.mjs, a port of CPython's posixpath.normpath, and prove the tests catch bugs with a mutation check.

    • Read your context and instructions
    • Compiled the test generator pro

    Proof — a real module with a real oracle. Subject: posixpath_normpath.mjs, a production port of CPython 3.15.2's posixpath.normpath. The suite asserts semantic behavior — separator collapsing, .. resolution, the POSIX double-slash rule, idempotence, error paths — with every expected value verified against CPython itself. Run: 22 passed, 0 failed. Then the proof step: six planted breaks (flip ===, flip !==, negate condition, increment literal, swap &&→||, return undefined) — 6/6 killed. During development the mutation step caught a flaw in itself (a mutant that only edited a comment); comment lines are now excluded. That is the difference between tests that run and tests that catch bugs.

    Verification: Smoke-tested from a clean unzip: 22/22 pass, mutation score 6/6. Evidence in demo-evidence/ (oracle.json from CPython, run-output.txt, mutation-output.txt, analyze.json).

    oracle.json

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

    About this skill

    If you have ever written a test that passes even when you know the code is broken, you have "happy-path theater." This skill helps you build a safety net that actually works. It does not just check if your code runs, it tries to break your code on purpose to see if your tests notice.

    How it works

    1. Analyze: You provide a code file, and your AI agent finds every path, error, and logic gate inside it.
    2. Scaffold: The skill creates a test file with specific "probes" for every single logic branch it found.
    3. Verify: You add the expected results based on how the code should behave, then the skill runs the tests to make sure they pass.
    4. Mutate: The skill creates broken versions of your code (like flipping a plus to a minus) to see if your tests turn red.
    5. Report: You get a final score showing how many bugs your tests caught and where you need to add more checks.

    Frameworks & tools

    This skill uses a Node.js script to analyze and break code. It works with the built-in Node test runner, but can also detect if you use Vitest, Jest, or Mocha.

    Why this beats prompting it yourself

    Most AI agents write tests that simply repeat what the code already does. If the code is wrong, the test will be wrong too. This skill forces the tests to be "mutation-proof," meaning it proves the tests are strong enough to catch intentional mistakes.

    Use cases

    • Creating a new test suite for a math or logic module from scratch
    • Strengthening an existing test file that feels too weak
    • Finding "blind spots" in your testing where code could break without anyone knowing
    • Ensuring error messages and edge cases are actually being checked

    Known limitations

    It works best on logic-heavy code. It may miss complex code hidden inside very long single lines. It is less effective for code that relies heavily on databases or web browsers without extra setup.

    Pair it with

    Review Lite (free) flags the source files with no test siblings; Test Generator Pro writes those missing suites and proves they catch bugs. Pair with Code Review Pro for the full pre-merge gate: review the diff, then prove the tests.

    Uses a Node.js script (testgen.mjs) to perform lexical branch analysis and mutation testing. Supports node:test, Vitest, Jest, and Mocha. Mutation types include binary operator flipping, condition negation, and literal incrementing. Requires Node 22+.

    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

    Permissions

    Terminal / Shell
    Write Files
    Listedtoday

    What's inside

    Frequently Asked Questions

    This skill creates test files that prove they work by intentionally breaking your code to see if the tests notice. It helps you avoid happy path theater, where tests pass even if the code is actually broken.

    You need to provide a JavaScript or Node.js code file. The skill uses a built-in Node.js tool to run tests, but it can also detect if your project uses other popular tools like Vitest, Jest, or Mocha.

    You will receive a test file containing specific probes for every logic branch found in your code. After running the tests, you get a report showing a mutation score that tells you exactly how many intentional bugs your tests caught.

    This skill works best on logic heavy modules and pure code. It is less effective for code that is deeply connected to databases, web browsers, or networks, and it might miss complex code hidden in very long single lines.

    You can ask your agent to analyze a specific code file to find its logic paths or to scaffold a new test file for you. You can also ask it to run a mutation check to see if your existing tests are strong enough to catch intentional mistakes.

    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.