# MutantGate Survivor Pack: Mutation Testing Prompts & PR Gate

> Kill the surviving mutants: 16 mutation-testing recipes with the test that catches each one, a survivor-triage playbook for Claude Code or Cursor, and a GitHub Actions PR gate that runs Stryker on the changed lines. Template pack, not a license.

MutantGate Survivor Pack: Mutation Testing Prompts & PR Gate is a paid AI agent skill on Agensi by luckystore1, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [luckystore1](https://www.agensi.io/creators/luckystore1)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.4
- Last updated: 2026-12-05
- Security: scan passed (2026-12-05); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mutantgate-survivor-pack-mutation-testing-prompts-pr-gate
- Tags: devops, code-review, testing, typescript, ci-cd, qa-automation, mutation-testing

## 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: "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: "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: "Which of these surviving mutants are real gaps and which are equivalent? Then write the missing tests."

## 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

| File | What it does |
| --- | --- |
| `references/mutator-recipes.md` | 16 mutators: the test that kills each one, and the trap that makes a test look right while the mutant survives |
| `prompts/mutant-kill-playbook.md` | survivor list to finished tests, with triage rules, a definition of done and forbidden shortcuts |
| `workflows/mutantgate-pr-gate.yml` | block mode, incremental cache, fork-PR handling, step summary and artifacts |
| `templates/mutantgate.monorepo.yml` | monorepo 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.md` | review comment, waiver table, approval checklist and red flags in agent-written tests |
| `examples/unjs-defu-pr111-fixes.md` | a 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

- [MutantGate: Diff Mutation Testing for PRs](https://www.agensi.io/skills/mutantgate-diff-mutation-testing-for-prs) (free) - the scan this pack builds on. Install it first.
- [MCP Security Audit & PR Gate: Claude Code & Cursor](https://www.agensi.io/skills/mcp-security-audit-pr-gate-claude-code-cursor) ($9) - the same keep-it-from-regressing idea for MCP config and agent settings.

### 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.

## Requires

- mutantgate
- Node.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.

## Technical details

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the MutantGate Survivor Pack: Mutation Testing Prompts & PR Gate skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### My tests already pass, so why would I need this?

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.

### What specific files and templates come with this skill?

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%).

### What do I need to have ready before I can use these files?

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.

### How do I get my AI agent to start fixing my test gaps?

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.

### Are there any types of code or projects this won't work for?

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.

### How is this different from the free MutantGate skill?

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.

### Does this include a paid MutantGate 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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
