- Home
- Skills
- Testing & Debugging
- MutantGate: Diff Mutation Testing for PRs
MutantGate: Diff Mutation Testing for PRs
by luckystore1
Mutation testing for pull requests: run Stryker only on the lines a PR changed, get a diff mutation score, and see the surviving mutants your tests missed. Works in GitHub Actions and with Claude Code or Cursor.
Free
What it does
- Calculates a mutation score for only the lines of code you recently changed
- Identifies specific "survivors" where your tests failed to catch an injected bug
- Provides a clear table of exactly which file and line needs a better test assertion
- Checks if your test suite is strong enough to meet a specific quality threshold
- Works with your existing test runners (requires a Stryker config file)
Who it's for
Founders building their first app with AI assistance
Make sure the code your AI agent wrote actually works and has tests that catch real mistakes.
Try asking: “Check if the tests for my new login feature actually catch bugs.”
Freelance developers and contractors
Prove your code quality to clients by showing your tests pass a stress test.
Try asking: “Run a mutation scan on my latest pull request against the main branch.”
Tech leads reviewing team code
Spot exactly which parts of a code change are untested before you hit merge.
Try asking: “Show me the survivors from the last test run on the pricing logic.”
MutantGate: Diff Mutation Testing for PRs
Example session with this skill installed
I just finished the checkout logic. Can you check if my tests actually catch bugs in the new code? Use the main branch as the base.
- Read your context and instructions
- Compiled the mutantgate
I will run a mutation scan on your new checkout logic to see if the tests are effective.
I have analyzed the changes in src/checkout.ts against the main branch. I injected 6 small bugs into your new code and ran your test suite.
Mutation Score: 66.7% (Below the 70% threshold)
The tests caught 4 out of 6 bugs. Here are the 2 bugs that survived:
| # | Location | Mutation | Status |
|---|---|---|---|
| 1 | src/checkout.ts:12 | Changed > to >= | Survived |
| 2 | src/checkout.ts:25 | Emptying the code block | Survived |
What this means:
Your tests currently miss what happens when the total is exactly the limit on line 12. Also, the logic on line 25 could be completely removed and your tests would still pass.
Next Steps:
Would you like me to write two new test cases to cover these specific gaps?
Connects securely to your tools. The creator never sees your data.
About this skill
When you write tests for your code, a green checkmark usually just means the code ran. It does not mean the tests are actually good at finding bugs. This skill runs a "stress test" for your tests by putting tiny, intentional errors into your new code and seeing if your tests notice. If a test still passes even with a bug in the code, this skill tells you exactly where the hole is.
How it works
- You ask your AI agent to check the quality of tests in your current work.
- The skill finds exactly which lines of code you changed.
- It runs a tool that injects small bugs, like changing a "greater than" to a "greater than or equal to".
- It reports a score showing what percentage of these bugs your tests caught.
- You get a list of "survivors," which are specific lines where a bug was missed, so you can add a better test.
Frameworks & tools
This skill works with TypeScript and JavaScript projects. It uses the StrykerJS tool to run the tests and requires a configuration file in your project.
Why this beats prompting it yourself
A regular AI agent can only guess if a test is good by reading the code. This skill actually runs the code with bugs inside it to prove whether the tests work. It gives you a real math-based score for your specific changes rather than just looking at the whole project.
Use cases
- Verifying that an AI agent's suggested tests are actually useful.
- Finding hidden gaps in your testing before a big product launch.
- Reviewing a teammate's work to see if they missed any edge cases.
- Ensuring new features are fully protected against future code changes.
Known limitations
This skill only works for TypeScript and JavaScript code. It cannot test files that have no tests at all, and it does not work on documentation or plain text files.
Source code & package
The skill drives the open-source mutantgate CLI (MIT). The same engine is published on npm as mutantgate (npx mutantgate, Node.js 20.11+) and its source is on GitHub as luckystore1/mutantgate, so you can read it before you run it.
Related skills
- MutantGate Survivor Pack: Test-Gen Prompts & PR Gate Kit ($12) - template pack that turns these survivors into tests, with a GitHub Actions gate workflow, a monorepo preset and review templates.
- MCP Security Audit & PR Gate: Claude Code & Cursor ($9) - audit and pull-request gate for MCP config, agent settings and unpinned actions.
Orchestrates StrykerJS via a CLI or MCP server. Requires @stryker-mutator/core and a compatible runner (Vitest/Jest) installed in the repository. Uses git to determine the diff between the current HEAD and a base branch to scope mutations. Outputs results in JSON or clear-text table format. Includes an MCP tool for automated scanning and fix suggestions.
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
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed today
- Free with an Agensi account
- Software
Node.js 20.11+mutantgateStryker (with stryker.conf.json)
Git
Permissions
What's inside
Frequently Asked Questions
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.