mutation-test-suite-optimizer

mutation-test-suite-optimizer is a skill for Claude Code, Codex from ArabelaTso/Skills-4-SE. It costs 101 tokens per session (620 once invoked), scanned A, original, Apache-2.0.

A test-suite optimizer that uses mutation testing, which makes small code changes to check whether tests catch them. It selects fewer tests while trying to preserve the number of changes the tests detect.

In plain words
What is it for?
Use it to reduce test runs, find redundant tests, measure how effective tests are, and produce an optimization report.
Why use it?
Large test suites can take too long and may contain overlapping or weak tests. This helps reveal which tests add value and which can be removed.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/optimize.py /path/to/repo --tests tests/.

Good fit Use it to reduce test runs, find redundant tests, measure how effective tests are, and produce an optimization report.

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/ArabelaTso/Skills-4-SE
agentmods
npx agentmods add skills/arabelatso/skills-4-se/mutation-test-suite-optimizer

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-test-suite-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/arabelatso/skills-4-se/mutation-test-suite-optimizer/github.svg)](https://agentmods.dev/skills/arabelatso/skills-4-se/mutation-test-suite-optimizer)
Your own site
<a href="https://agentmods.dev/skills/arabelatso/skills-4-se/mutation-test-suite-optimizer"><img src="https://agentmods.dev/badge/skills/arabelatso/skills-4-se/mutation-test-suite-optimizer/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-test-suite-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/arabelatso/skills-4-se/mutation-test-suite-optimizer"><img src="https://agentmods.dev/badge/skills/arabelatso/skills-4-se/mutation-test-suite-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 620 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 pass 7 Sept 2026
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.00101 $0.00620
Opus 5 $0.00051 $0.00310
Sonnet 5 $0.00020 $0.00124
Haiku 4.5 $0.00010 $0.00062

Measured 9d ago against content hash 0f144496e212, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

mutation-test-suite-optimizer 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 9d 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.

skills/mutation-test-suite-optimizer/SKILL.md · 79 lines

How it starts

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

Mutation Test Suite Optimizer

Overview

This skill optimizes test suites using mutation testing, selecting a minimal subset of tests that maximizes mutation kill rate while reducing execution time and redundancy.

Quick Start

# Optimize test suite with mutation testing
python scripts/optimize.py /path/to/repo --tests tests/

# Use specific mutation operators
python scripts/optimize.py repo/ --tests tests/ --operators AOR,ROR,COR

# Generate optimization report
python scripts/optimize.py repo/ --tests tests/ --output report.json

What Gets Optimized

  1. Test Selection - Identify minimal test subset for maximum coverage
  2. Redundancy Removal - Eliminate tests that kill same mutants
  3. Mutation Coverage - Maximize mutants killed
  4. Execution Time - Reduce overall test execution time
  5. Test Quality - Identify weak or ineffective tests

Mutation Operators

Supports common mutation operators:

  • AOR - Arithmetic Operator Replacement
  • ROR - Relational Operator Replacement
  • COR - Conditional Operator Replacement
  • SOR - Shift Operator Replacement
  • LOR - Logical Operator Replacement
  • ASR - Assignment Operator Replacement

Optimization Report

Generates detailed report with:

  • Optimized Test Suite - Minimal test subset
  • Mutation Kill Rate - Percentage of mutants killed
  • Killed Mutants - List of detected mutants
  • Surviving Mutants - Mutants that escaped detection
  • Redundant Tests - Tests that can be removed
  • Execution Time Savings - Time reduction achieved

Example report:

{
  "original_tests": 150,
  "optimized_tests": 45,
  "mutation_kill_rate": 92.5,
  "killed_mutants": 185,
  "surviving_mutants": 15,
  "time_savings": "67%"
}

Usage

python scripts/optimize.py <repo_path> --tests <test_dir> [--operators <ops>] [--output <report.json>]

Tips

  • Run regularly to maintain test suite quality
  • Focus on high-value tests that kill unique mutants
  • Remove redundant tests to speed up CI/CD
  • Use surviving mutants to guide new test creation
  • Balance mutation score with execution time
  • Integrate into continuous testing pipeline

Read the full file on GitHub · 79 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. 9d ago First seen · 79 lines · 101 tokens per session scan A 0f144496e212

Subscribe to this mod's changes

mutation-test-suite-optimizer is a skill published in the GitHub repository ArabelaTso/Skills-4-SE (252 stars, last pushed 22d ago), licensed Apache-2.0. It adds 101 tokens to every session and 620 once invoked, about $0.0005 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-09-03.

Related

Other skills, from other repositories

review-ugc-render

Mandatory pre-publish review gate for a UGC video render. Transcribes the finished render's AUDIO with Whisper and word-diffs it against the approved spoken script, then gates setfinalrender — blocking a render whose generated audio mis-voices a word (e.g. the approved "human-vetted" spoken as "human witted"), drops…

gooseworks-ai/goose-skills · 116 tokens

test-generator

A test-writing helper that creates unit or integration tests from the code's actual behavior and contracts. Unit tests check small pieces of code, while integration tests check how real components work together.

laolaoshiren/claude-code-skills-zh · 79 tokens

testing-r-packages

Best practices for writing R package tests using testthat version 3+. Use when writing, organizing, or improving tests for R packages. Covers test structure, expectations, fixtures, snapshots, mocking, and modern testthat 3 patterns including self-sufficient tests, proper cleanup with withr, and snapshot testing.

posit-dev/skills · 67 tokens

r-package-development

R package development with devtools, testthat, and roxygen2. Use when the user is working on an R package, running tests, writing documentation, or building package infrastructure.

posit-dev/skills · 41 tokens

111-java-maven-dependencies

Use when you need to add or evaluate Maven dependencies that improve code quality or domain modeling — including nullness annotations (JSpecify), static analysis (Error Prone + NullAway), functional programming (VAVR), architecture testing (ArchUnit), or money and currency support (JavaMoney) — and want a…

jabrena/plinth · 133 tokens

130-java-testing-strategies

Use when you need to apply testing strategies for Java code — RIGHT-BICEP to guide test creation, A-TRIP for test quality characteristics, or CORRECT for verifying boundary conditions. This should trigger for requests such as Review Java code for testing strategies; Apply RIGHT-BICEP testing strategies in Java code…

jabrena/plinth · 96 tokens