MutantGate Complete: PR Mutation Gate + MCP Security Audit
Two paid template packs for a pull-request gate that AI-written code cannot talk its way past, plus the free scan they both build on.
The free MutantGate scan is a separate listing, not part of this bundle: install it first. It mutation-tests only the lines a PR changed and lists the surviving mutants.
The MutantGate Survivor Pack ($12) turns each survivor into a finished test: 16 mutator recipes, an agent playbook, a merge-blocking GitHub Actions gate workflow, a monorepo preset and PR-review templates. It is a template pack, not a software license; the CLI's built-in PR comment and fix-prompt output are not included.
MCP Security Audit & PR Gate ($9) audits the MCP config a PR can change - plaintext secrets in .mcp.json or .cursor/mcp.json, a repository that approves its own servers, an unpinned claude-code-action - and adds CODEOWNERS and a read-only CI gate.
What you need: Node.js 20.11+, the mutantgate CLI and Stryker (JavaScript/TypeScript) for the test pack; Python 3 and the GitHub CLI on the runner, plus ripgrep locally, for the MCP gate; GitHub Actions for both.
What they access: neither pack uploads your code. The test pack reads your diff and test files. The MCP pack reads repository configuration, the PR diff and the runner's own variables (GH_TOKEN and similar) to write the gate summary, and it prints no secret. Claude Code, Cursor and GitHub Actions. Updates: both paid packs get free updates from the creator while their listings stay live; the free scan is updated in its own listing.
Works with any agent that signs in to Agensi, such as Claude, ChatGPT, Claude Code, Cursor and Codex CLI.
One payment, lifetime access. 2 skills unlock instantly in your library.
What's included
2 skillsKill 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.
Audit MCP configuration in Claude Code, Cursor and GitHub Actions: find plaintext secrets, stop a repository approving its own servers, and add a pull-request gate that blocks unsafe MCP and unpinned action changes.
See it in action
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.
| Metric | Before | After |
|---|---|---|
| Diff mutation score | 52.9% (exit 1) | 91.2% (exit 0) |
| Mutants in the changed lines | 34 | 34 |
| Detected / undetected | 18 / 16 | 31 / 3 |
| Tests written | none | 6 (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 written | Survivors it targets | Recipe |
|---|---|---|
ignores non-plain defaults (null, 42, 'str', [1,2]) | :10 conditional → false | ConditionalExpression |
requires both sides plain before recursing (Date, nested object) | :33 logical operator | LogicalOperator |
| null-prototype objects are plain | :57 prototype === null | EqualityOperator |
| class instances are non-plain | :58 prototype === Object.prototype | EqualityOperator |
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 · scopesrc/defu.ts:10-64
Tests added: non-plain defaults, both-sides-plain recursion, null prototype, class instance,Symbol.toStringTag, iterables.
Accepted survivors::33(equivalent),:58and: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.ymland mark themutantgatejob 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.ymlwhen 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.
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 these skills and uses them on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every skill in this bundle goes through our trust checks.
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.