pit-mutation-tuning

pit-mutation-tuning is a skill for Claude Code, Codex from loiane/specs-driven-development-spring-angular. It costs 39 tokens per session (990 once invoked), scanned A, original, MIT.

Guidance for configuring and understanding PIT mutation testing for changed Java code. Mutation testing makes small artificial code changes and checks whether the tests fail; a surviving change may show a missing test.

In plain words
What is it for?
Use it when adding a mutation-testing check, reviewing PIT reports, or adjusting thresholds and scope for the code changed in a project.
Why use it?
It reveals weaknesses that ordinary code coverage can miss, because coverage only shows that code ran, not that tests would detect incorrect behavior.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/loiane/specs-driven-development-spring-angular/pit-mutation-tuning
Any agent
npx skills add loiane/specs-driven-development-spring-angular --skill pit-mutation-tuning
Clone the repo
git clone --depth 1 https://github.com/loiane/specs-driven-development-spring-angular

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 pit-mutation-tuning

README.md
[![agentmods](https://agentmods.dev/badge/skills/loiane/specs-driven-development-spring-angular/pit-mutation-tuning.svg)](https://agentmods.dev/skills/loiane/specs-driven-development-spring-angular/pit-mutation-tuning)
Your own site
<a href="https://agentmods.dev/skills/loiane/specs-driven-development-spring-angular/pit-mutation-tuning"><img src="https://agentmods.dev/badge/skills/loiane/specs-driven-development-spring-angular/pit-mutation-tuning.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 990 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00039 $0.00990
Opus 5 $0.00019 $0.00495
Sonnet 5 $0.00008 $0.00198
Haiku 4.5 $0.00004 $0.00099

Measured 3d ago against content hash 5d7eecc45a44, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pit-mutation-tuning 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 3d 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.

.claude/skills/pit-mutation-tuning/SKILL.md · 105 lines

How it starts

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

PIT mutation tuning

Why mutation testing

Coverage proves the code ran. Mutation proves the test would have caught a real defect. A mutant is a small change (negate a condition, return null, change > to <=); a "killed" mutant means a test failed; a "survived" mutant means your test suite is blind.

Default configuration

<plugin>
    <groupId>org.pitest</groupId>
    <artifactId>pitest-maven</artifactId>
    <version>1.17.0</version>
    <configuration>
        <targetClasses>
            <param>com.example.shop.*</param>
        </targetClasses>
        <targetTests>
            <param>com.example.shop.*</param>
        </targetTests>
        <mutators>
            <mutator>STRONGER</mutator>
        </mutators>
        <outputFormats>
            <param>HTML</param>
            <param>XML</param>
        </outputFormats>
        <timestampedReports>false</timestampedReports>
        <features>
            <feature>+GIT(from[HEAD~1])</feature>     <!-- only changed files -->
        </features>
        <mutationThreshold>80</mutationThreshold>
        <coverageThreshold>90</coverageThreshold>
    </configuration>
    <dependencies>
        <dependency>
            <groupId>org.pitest</groupId>
            <artifactId>pitest-junit5-plugin</artifactId>
            <version>1.2.1</version>
        </dependency>
    </dependencies>
</plugin>

Scope: incremental, not full

Full PIT runs are slow. Always scope to changed code:

  • Locally / in /build refactor phase: +GIT(from[HEAD~1]).
  • In CI for PRs: +GIT(from[origin/main]).
  • Nightly: full run, results posted to dashboard but not blocking.

What to do with surviving mutants

For every survived mutant in changed packages:

  1. Look at the mutated line and the mutation type (e.g. "negated conditional").
  2. Write a test that would have failed under the mutation.
  3. Re-run; the mutant should now be killed.
  4. Log the new test in 06-test-plan.md.

If a mutant is genuinely equivalent (impossible to kill — e.g. a defensive if that can never be false), suppress it via @CoverageIgnore on the specific method, with a comment explaining why. Track in 08-code-review.md waivers.

Read the full file on GitHub · 105 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. 3d ago First seen · 105 lines · 39 tokens per session scan A 5d7eecc45a44

Subscribe to this mod's changes

pit-mutation-tuning is a skill published in the GitHub repository loiane/specs-driven-development-spring-angular (58 stars, last pushed 2mo ago), licensed MIT. It adds 39 tokens to every session and 990 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

speckit-init

Scaffold a Spec Kit (spec-driven development) project for GitHub Copilot by running specify init --integration copilot --integration-options="--skills". USE FOR: starting a new spec-kit project, bootstrapping spec-driven development in an existing repo, installing spec-kit templates/scripts/commands for Copilot. DO…

github/spec-kit-copilot · 113 tokens

speckit-bundle

Discover, install, and author Spec Kit bundles via specify bundle. USE FOR: searching/showing/listing bundles, installing/updating/removing a bundle (a curated set of extensions/presets/integrations/workflows), validating a bundle manifest, building a distributable bundle artifact, initializing a project and…

github/spec-kit-copilot · 99 tokens

speckit-extension

Manage Spec Kit extensions via specify extension. USE FOR: installing/removing/updating spec-kit extensions, searching the extension catalog, showing extension info, enabling/disabling extensions, setting extension resolution priority, managing extension catalogs. DO NOT USE FOR: presets (use speckit-preset), bundles…

github/spec-kit-copilot · 83 tokens

speckit-preset

Manage Spec Kit presets via specify preset. USE FOR: installing/removing presets, searching the preset catalog, showing preset info, resolving which template a preset name maps to, enabling/disabling presets, setting preset resolution priority, managing preset catalogs. DO NOT USE FOR: extensions (use…

github/spec-kit-copilot · 88 tokens

speckit-workflow

Manage and run Spec Kit automation workflows via specify workflow. USE FOR: running a workflow by ID or local YAML, resuming a paused/failed run, checking run status, listing/installing/removing workflows, searching the workflow catalog, showing a workflow step graph. DO NOT USE FOR: extensions (use…

github/spec-kit-copilot · 93 tokens

speckit-check

Check the local environment for Spec Kit by running specify check (and specify version). USE FOR: verifying required tools are installed, diagnosing a broken spec-kit setup, reporting CLI version/feature capabilities. DO NOT USE FOR: installing or upgrading the CLI itself (use the speckit-self skill).

github/spec-kit-copilot · 69 tokens