Works with the AI Agents you already use

    MutantGate Survivor Pack: Mutation Testing Prompts & PR Gate

    by luckystore1

    1

    A coding agent writes three assertions on the happy path, CI turns green, coverage goes up, and the boundary at subtotal > 20 is still untested.

    $12

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    What it does

    • Turn each surviving mutant into one focused regression test, with a recipe per mutator type
    • Give your coding agent a survivor-to-test playbook with triage rules and a definition of done
    • Block merges on weak diffs with a ready-made GitHub Actions gate workflow and threshold
    • Include a monorepo preset template (per-package profiles, thresholds, report paths) plus policy settings
    • Review with a ready-to-post PR comment template, waiver table and approval checklist

    Who it's for

    TypeScript developers shipping with AI coding agents

    Stop accepting agent-written tests that pass but assert nothing.

    Try asking: “My scan shows four survivors in src/cart.ts. Write the tests that kill them and show the before and after score.”

    Platform and DevOps engineers

    Add a mutation gate that blocks weak PRs without adding thirty minutes to CI.

    Try asking: “Add the MutantGate PR gate to this repo, make it a required check, and keep the run under ten minutes.”

    QA and test engineers

    Prove the suite catches real bugs, then give reviewers a checklist they can run.

    Try asking: “Which of these surviving mutants are real gaps and which are equivalent? Then write the missing tests.”

    MutantGate Survivor Pack: Mutation Testing Prompts & PR Gate

    MutantGate Survivor Pack: Mutation Testing Prompts & PR Gate

    Example session with this skill installed

    Take a real green PR and prove its tests: run the diff gate on unjs/defu#111, triage the survivors, write the tests that kill them, and show the before and after score with the reviewer comment.

    • Read your context and instructions
    • Compiled the mutantgate survivor

    Summary

    Measured on a real pull request

    unjs/defu #111 ("fix: only merge plain objects"). CI was green and the new tests passed, but the 19 lines the PR changed scored

    52.9%. Six tests written against the survivors took the same command on the same commit to

    91.2% — no production change, no threshold change.

    MetricBeforeAfter
    Diff mutation score52.9% (exit 1)91.2% (exit 0)
    Mutants in the changed lines3434
    Detected / undetected18 / 1631 / 3
    Tests writtennone6 (test file only)

    1. Gate output (before)

    npx -y mutantgate --base 59d0f6a367e3 --head HEAD --threshold 70
    
    Scope:   1 file(s), 3 range(s), 19 changed line(s)
    Score:   52.9% (threshold 70%, mode block)  FAIL
    Mutants: 18 detected, 16 undetected, 34 in scope — Killed 6, Timeout 12, Survived 16
    

    2. Triage — 16 survivors, six behaviours

    Test writtenSurvivors it targetsRecipe
    ignores non-plain defaults (null, 42, 'str', [1,2]):10 conditional → falseConditionalExpression
    requires both sides plain before recursing (Date, nested object):33 logical operatorLogicalOperator
    null-prototype objects are plain:57 prototype === nullEqualityOperator
    class instances are non-plain:58 prototype === Object.prototypeEqualityOperator
    objects with Symbol.toStringTag are non-plain:59 !(Symbol.toStringTag in value)UnaryOperator
    iterables are non-plain:59 !(Symbol.iterator in value)UnaryOperator

    3. Tests added (test/defu.test.ts)

    it('ignores non-plain-object defaults', () => {
      // kills ConditionalExpression -> false at src/defu.ts:10
      const date = new Date();
      expect(defu({ a: 1 }, date)).toBe(date);
      expect(defu({ a: 1 }, 42)).toBe(42);
    });
    
    it('requires both sides to be plain before recursing', () => {
      // kills LogicalOperator -> || at src/defu.ts:33
      const date = new Date();
      expect(defu({ a: { b: 1 } }, { a: date })).toEqual({ a: date });
    });
    

    4. Same command, same commit

    Score:   91.2% (threshold 70%, mode block)  PASS
    Mutants: 31 detected, 3 undetected, 34 in scope — Killed 24, Timeout 7, Survived 3
    

    5. Reviewer comment (from templates/pr-comment.md)

    Mutation gate — 91.2% (threshold 70%) · pass
    31 caught / 3 missed · scope src/defu.ts:10-64
    Tests added: non-plain defaults, both-sides-plain recursion, null prototype, class instance, Symbol.toStringTag, iterables.
    Accepted survivors: :33 (equivalent), :58 and :59 (branch unreachable with a value that satisfies the rest of the check).
    Re-scan: npx -y mutantgate --base 59d0f6a367e3 --head HEAD --threshold 70

    Next steps

    • Copy workflows/mutantgate-pr-gate.yml and mark the mutantgate job as a required status check.
    • Keep the three accepted survivors in the waiver table with their reasons; do not chase them.
    • Add templates/mutantgate.monorepo.yml when the package split lands.

    Measured on a real repository (unjs/defu PR #111). Every number comes from a command that was run; the commands and raw output are in examples/unjs-defu-pr111-fixes.md, included in this pack.

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

    About this skill

    Your agent's tests pass. That is not the same as testing.

    A coding agent writes three assertions on the happy path, CI turns green, coverage goes up, and the boundary at subtotal > 20 is still untested. The free MutantGate skill finds exactly those gaps: it mutation-tests only the lines a PR changed and returns the surviving mutants, each one a behaviour no test asserts.

    Then what? The survivor list is where most teams stall: deciding which mutants matter, writing a test that actually kills each one, and making the check blocking without turning the score into something people game. This pack does that part.

    This is a template pack, not a software license. It ships the recipes, the playbook, the workflow and the templates. The CLI's built-in --comment-out and --fix-prompt-out (and the MCP mutantgate_fix_prompt tool) need a separate MutantGate software license. That license is not included in this pack, and nothing described below needs it.

    How it works

    1. Scan. npx -y mutantgate --base origin/main --threshold 70 returns the diff score and the survivor list: file, line, mutator, replacement.
    2. Triage. The playbook classifies every survivor as a real gap, an equivalent mutant (with the sentence that proves it), or needs-review, before any test is written.
    3. Fix. One recipe per mutator type. > vs >= needs the input at exactly the boundary. if to true needs the case where the condition is false and the outcome differs. && vs || needs one operand true and the other false.
    4. Prove. Re-run the same command on the same commit. Those are the numbers that go in the PR.
    5. Gate. workflows/mutantgate-pr-gate.yml blocks merge below the threshold on the free CLI's exit code and keeps a readable step summary; the reviewer comment comes from templates/pr-comment.md.

    What is in the pack

    FileWhat it does
    references/mutator-recipes.md16 mutators: the test that kills each one, and the trap that makes a test look right while the mutant survives
    prompts/mutant-kill-playbook.mdsurvivor list to finished tests, with triage rules, a definition of done and forbidden shortcuts
    workflows/mutantgate-pr-gate.ymlblock mode, incremental cache, fork-PR handling, step summary and artifacts
    templates/mutantgate.monorepo.ymlmonorepo preset template: per-package profiles with their own thresholds and report paths, plus a policy block (minThreshold, requireBlockMode). The profiles, reportPath and --report-path-prefix keys it sets are free-CLI features; policy is enforced only on the Team plan, and the file says so
    templates/pr-comment.mdreview comment, waiver table, approval checklist and red flags in agent-written tests
    examples/unjs-defu-pr111-fixes.mda real PR taken from 52.9% to 91.2% with six tests

    Frameworks and tools

    TypeScript/JavaScript through StrykerJS (Vitest, Jest, Mocha, node:test), the free mutantgate CLI or MCP server, and GitHub Actions. The pack is Markdown, YAML and two config files: nothing executes on install, no code is uploaded, and no credentials are read. No license key is required.

    Why not just prompt your agent?

    "Write tests for these mutants" produces happy-path assertions, or an agent that lowers the threshold to make the number move. The playbook encodes what a careful reviewer does instead: triage first, one survivor per test, prove the test fails under the mutation, never edit the gate, and report before and after numbers from a command.

    The templates also carry two traps that cost hours in real repositories: report keys are relative to the package Stryker ran in (MUTANTGATE_REPORT_PATH_PREFIX), and fork pull requests get a read-only token, so the comment step needs its own handling.

    Use cases

    • Reviewing agent-written PRs without reading every test file
    • Adding a mutation gate to a repository that already has coverage
    • Rolling the gate out package by package in a monorepo
    • Teaching a team what "tested" means with a checklist they can run

    Known limitations

    • JavaScript/TypeScript only (StrykerJS). Python, Go, Java and Rust are not covered.
    • Only changed lines are mutated; untouched weak tests stay weak.
    • Equivalent mutants survive forever. The pack tells you to explain them, not chase them.
    • The gate's latency is your suite's latency for the changed lines.
    • policy.minThreshold and policy.requireBlockMode are enforced by the CLI only on its Team plan; the preset ships them as settings the CLI ignores, with a warning, on other plans.
    • The CLI's built-in PR comment (--comment-out) and fix prompt (--fix-prompt-out), and the MCP mutantgate_fix_prompt tool, need a separate MutantGate software license. This pack does not include that license; the gate, the templates and every test workflow above work on the free CLI.

    Related skills

    Source code & package

    The pack drives the open-source mutantgate CLI (MIT). The same engine is published on npm as mutantgate (npx -y mutantgate, Node.js 20.11+) and its source is on GitHub as luckystore1/mutantgate, so you can inspect it before you buy.

    Files: SKILL.md; prompts/mutant-kill-playbook.md; workflows/mutantgate-pr-gate.yml; templates/stryker.conf.diff.mjs, templates/mutantgate.monorepo.yml, templates/pr-comment.md; references/mutator-recipes.md; examples/unjs-defu-pr111-fixes.md. Setup: Node.js 20.11+, Stryker installed in the project (npm i -D @stryker-mutator/core @stryker-mutator/vitest-runner), a JSON reporter in stryker.conf, then npx -y mutantgate --base origin/main --threshold 70. CLI flags used: --base, --head, --mutate-args, --threshold, --mode block|warning, --profile, --include, --exclude, --report-path-prefix, --format json, --json-out, --comment-out (needs a separate license), --fix-prompt-out (needs a separate license), --fail-on-error, --fail-on-no-mutants. Config keys in .mutantgate.yml: version, threshold, mode, include, exclude, strykerConfig, strykerTimeoutSeconds, incremental, defaultBranch, reportPath, failOnError, failOnNoMutants, profiles (paths, threshold, mode, include, exclude, reportPath), policy (Team plan only). GitHub Action inputs: fetch-depth 0, threshold, mode, comment (needs a separate license), format, fix-prompt-out (needs a separate license), license-key, fail-on-error, fail-on-no-mutants, stryker-timeout-seconds, working-directory, config. MCP tools: mutantgate_scope and mutantgate_scan (free), mutantgate_fix_prompt (needs a paid license key; not included in this pack).

    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
    mutantgateNode.js 20.11+Stryker (with stryker.conf.json)Git
    Optional
    MutantGate software license key

    No license key is needed for anything in this pack: the scan, the tests, the gate workflow and the templates all run on the free CLI. The built-in PR comment and fix-prompt output need a separate MutantGate software license, which this pack does not include.

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access

    File Scopes

    src/**

    Everything here runs locally or on your CI runner; nothing is uploaded. Test files are written next to the code they cover, and the workflow file goes in .github/workflows. The PR comment is a template you post yourself; the CLI's built-in comment output is not part of this pack.

    Listedtoday

    What's inside

    Frequently Asked Questions

    This skill identifies invisible gaps where your tests run the code but do not actually check if it works. It provides specific recipes and automated workflows to ensure every new piece of code is backed by tests that would actually fail if a bug were introduced.

    Six files: references/mutator-recipes.md (16 mutators, each with the test that kills it and the trap that makes a test look right), prompts/mutant-kill-playbook.md (survivor list to finished tests, with triage rules and a definition of done), workflows/mutantgate-pr-gate.yml (a GitHub Actions gate that blocks merges below your threshold), templates/mutantgate.monorepo.yml (per-package profiles, thresholds and report paths), templates/pr-comment.md (reviewer comment, waiver table and approval checklist) and examples/unjs-defu-pr111-fixes.md (a real PR taken from 52.9% to 91.2%).

    This skill is built for JavaScript and TypeScript projects. You will need an existing test suite and the free MutantGate command line tool or server, though you do not need a paid license for the tool to use the files in this pack.

    Ask your agent to read prompts/mutant-kill-playbook.md and paste the survivor list from npx -y mutantgate --base origin/main --threshold 70. It triages each survivor as a real gap, an equivalent mutant or needs-review, picks the matching recipe in references/mutator-recipes.md, writes one test per behaviour, and re-runs the same command on the same commit to show the before and after score.

    It currently only supports JavaScript and TypeScript. It is also not meant for chasing a perfect 100 percent score, as some code changes cannot be tested this way, and the skill encourages you to document those cases rather than forcing a fake result.

    The free skill is the diagnosis: it mutation-tests only the lines a PR changed and returns the surviving mutants, each one a behaviour no test asserts. This pack is the repair and the enforcement: a test recipe for every surviving mutant type, an agent playbook that turns the survivor list into finished tests, a GitHub Actions gate that blocks weak PRs, monorepo presets and the review templates. Install both; the pack calls the same free mutantgate CLI and needs no license.

    No. This listing is a template pack. The CLI's built-in PR comment and fix-prompt output, and the MCP fix-prompt tool, need a separate MutantGate software license. That license is not part of this pack, and nothing in the pack requires it: the gate blocks on the free CLI's exit code and the reviewer comment comes from the pack's template.

    New in DevOps & Cloud

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