mutation-testing

mutation-testing is a skill for Claude Code, Codex from tpierrain/kenjaku. It costs 119 tokens per session (2,669 once invoked), scanned A, original, Apache-2.0.

A procedure for running and interpreting mutation testing with StrykerJS. Mutation testing makes small changes to production code and checks whether the test suite detects them.

In plain words
What is it for?
Use it to choose the repository runner, run mutation batches, inspect surviving mutations, and decide whether to improve production code, strengthen tests, or document an equivalent result.
Why use it?
It helps distinguish tests that genuinely catch code errors from mutation scores that are misleading or survivors that need another explanation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is [`test-first-discipline`](../../../../use-case-driven-harness/skills/test-first-discipline/SKILL.md).

Good fit Use it to choose the repository runner, run mutation batches, inspect surviving mutations, and decide whether to improve production code, strengthen tests, or document an equivalent result.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/tpierrain/kenjaku
agentmods
npx agentmods add skills/tpierrain/kenjaku/mutation-testing

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mutation-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/tpierrain/kenjaku/mutation-testing/github.svg)](https://agentmods.dev/skills/tpierrain/kenjaku/mutation-testing)
Your own site
<a href="https://agentmods.dev/skills/tpierrain/kenjaku/mutation-testing"><img src="https://agentmods.dev/badge/skills/tpierrain/kenjaku/mutation-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mutation-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/tpierrain/kenjaku/mutation-testing"><img src="https://agentmods.dev/badge/skills/tpierrain/kenjaku/mutation-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,669 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 34
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00119 $0.02669
Opus 5.5 $0.00048 $0.01068
Sonnet 5.5 $0.00024 $0.00534
Haiku 4.5 $0.00012 $0.00267

Measured 3mo ago against content hash 8d4b76943413, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mutation-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

maintainers/skills/mutation-testing/SKILL.md · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mutation testing, on this repo

The mutation score is the judge of the tests, not a ceremony (test-first-discipline). This skill is the judgement half of that: when a pass is due, how to read what it gives back, and what to write down. The mechanics are the other half and they are a script — maintainers/mutation/mutate-one.mjs — because every mechanical trap below has already cost a real run at least once, and a written reflex was measured as insufficient (CONVENTIONS §5quinquies).

Not here: how to write a killing assertion. That is test-first-discipline (a matcher on every throws, assert the whole object, triangulate bounds, collections ≥2 unsorted, a double's answer as a fingerprint). This skill starts once the run has produced a number.

Nor the portable version of the traps below. Since 2026-08-20, test-first-discipline §"A mutation run LIES to you" carries the five ways any run hands back a number that measures nothing, and the survivor triage that precedes writing a test — tool- and language-agnostic. This file owns the local answer: which command, which worktree, which package. Read the doctrine there, run it here.

1. When a pass is due — and on WHAT SURFACE

🔑 The scope of a run is the scope of the change. A new file is measured whole; an existing one is measured by its changed lines ("scripts/file.mjs:147-160" — the runner passes the range straight through to Stryker). Whole-file re-runs of large existing files are where this practice dies of slowness: measured on the S6 block, one cost 7 minutes to return a survivor list byte-identical to the previous run, and a second was killed by the 10-minute cap. The same real defect, re-measured on its hunk, died in 44 seconds (17 mutants instead of 396). The reasoning and the numbers live in test-first-discipline § When to run it, and on what; the commands live in CONVENTIONS §5quinquies.

The bonus is in §3: on a hunk-scoped run every survivor is yours, so there is no score drift to attribute and no survivor list to diff against last time.

Read the full file on GitHub · 166 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 166 lines · 119 tokens per session scan A 8d4b76943413

Subscribe to this mod's changes

mutation-testing is a skill published in the GitHub repository tpierrain/kenjaku (100 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 119 tokens to every session and 2,669 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

mutation-testing compared with skills from other repositories

mutation-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mutation-testingtpierrain/kenjakuSkill1002mo agoApache-2.0A119Claude Code, Codex
lintjohnfkoo951/cmds-llm-wikiSkill1061mo agononeA64Claude Code, Codex
refresh-contextjohnfkoo951/cmds-llm-wikiSkill1061mo agononeA51Claude Code, Codex
statusjohnfkoo951/cmds-llm-wikiSkill1061mo agononeA51Claude Code, Codex
capture-tabsjohnfkoo951/cmds-llm-wikiSkill1061mo agononeA61Claude Code, Codex
ingestjohnfkoo951/cmds-llm-wikiSkill1061mo agononeA56Claude Code, Codex
reindexjohnfkoo951/cmds-llm-wikiSkill1061mo agononeA45Claude Code, Codex