Sets up mutation testing across multiple language ecosystems (C#, TS/JS, Python, Java/Kotlin, Go, Rust) to measure test quality by injecting faults and checking for test failures. Interprets mutation scores and surviving mutants.
Ships in AI for Developers Toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Measure whether your tests actually catch bugs - not just execute code - by injecting small faults (mutants) and checking that a test fails. Then turn surviving mutants into better assertions.
Works on a target: a project / test project, a repo, or a GitHub URL (clone first: git clone --depth 1 <url> /tmp/repo). It can also interpret a mutation report the user pastes or points to (HTML/JSON report folder).
| Manifest | Stack | Tool | Run |
|---|---|---|---|
*.csproj (+ *.Tests.csproj) | C# / .NET | Stryker.NET | dotnet tool install -g dotnet-stryker, then dotnet stryker in the test project folder |
package.json | TS / JS | StrykerJS | npm init stryker, then npx stryker run |
pyproject.toml, setup.cfg | Python | mutmut | pip install mutmut, mutmut run, mutmut results |
pom.xml, build.gradle(.kts) | Java / Kotlin | PIT (pitest) | Maven pitest-maven plugin / Gradle info.solidsoft.pitest plugin |
go.mod | Go | gremlins (or go-mutesting) | gremlins unleash |
Cargo.toml | Rust | cargo-mutants | cargo install cargo-mutants, cargo mutants |
First confirm the test suite is green and reasonably fast - mutation testing reruns it many times. A flaky or slow suite makes results meaningless.
stryker-config.json in the test project folder:
{
"stryker-config": {
"project": "MyApp.csproj",
"test-projects": ["MyApp.Tests.csproj"],
"mutate": ["**/Core/**/*.cs", "!**/Migrations/**"],
"thresholds": { "high": 80, "low": 60, "break": 50 }
}
}
Use --since (against a target branch) for PR runs so only changed code is mutated.
npm init stryker generates stryker.config.* and picks the test runner plugin (@stryker-mutator/vitest-runner, jest-runner, mocha-runner). Set mutate globs (e.g. src/**/*.ts, excluding *.test.ts/*.spec.ts), thresholds (same high/low/break keys), and the TypeScript checker plugin to discard mutants that don't compile. Enable incremental to reuse previous results.
Configure paths to mutate and the test command in pyproject.toml/setup.cfg (check the installed mutmut version's docs - config keys changed between major versions). mutmut run, then mutmut results and mutmut show <id> to inspect a survivor. Keep the pytest run fast (-x, no slow integration tests in the mutation run).
Maven: add org.pitest:pitest-maven and, for JUnit 5, the pitest-junit5-plugin dependency to the plugin; run mvn org.pitest:pitest-maven:mutationCoverage. Gradle: the info.solidsoft.pitest plugin with junit5PluginVersion, run gradle pitest. Configure targetClasses, excludedClasses, mutationThreshold. PIT works on bytecode, so Kotlin is supported (expect some noise from compiler-generated code; exclude it).
gremlins unleash from the module root (supports thresholds for CI); go-mutesting (avito-tech fork) is an alternative. Scope to packages with real logic; keep go test for those packages fast.
> flipped to >=, a statement removed, true -> false, an arithmetic operator swapped) and no test failed -> a real gap in your assertions.test-coverage-gap-finder).For each meaningful survivor: add or strengthen an assertion so the mutation would be caught. A test that runs code without asserting its effect lets mutants survive. Boundary survivors (> vs >=) usually mean a missing boundary-value test case.
## Detected
<stack, tool, test framework, current suite runtime>
## Setup
<install commands + config file scoped to the important code>
## Results (when a report is available)
Score: <x%> (killed / survived / no coverage / timeout)
## Survivors that matter
1. <file:line> <mutation> - <why no test caught it> -> <assertion or test case to add>
## Ignored
<equivalent or low-value survivors and why>
"Set up Stryker mutation testing", "set up PIT for this Maven project", "run mutmut on my Python package", "are my tests actually catching bugs", "explain these surviving mutants", "improve my tests so these mutants die". Pairs with test-coverage-gap-finder and unit-test-generator.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
TypeScript, JavaScript, Python, Java, Kotlin, Go, Rust, C#
mutation-testing, test-quality, stryker, pitest, mutmut, cargo-mutants
/ai-dev-toolkit:mutation-testing-setupfrom AI for Developers Toolkit
npx claudepluginhub stefanthecode/ai-for-developers --plugin ai-dev-toolkit45 skills in this plugin
/api-endpoint-scaffolderScaffold HTTP API endpoints in any stack - ASP.NET Core Minimal APIs or controllers, Express, Fastify, NestJS, FastAPI, Django REST Framework, Spring Boot controllers, Go net/http, chi, Gin - one feature per endpoint (REPR style) with request validation, typed responses, route grouping, auth, and OpenAPI metadata. Use this skill whenever the user wants to add an endpoint or route, convert controllers to minimal APIs, structure routes or routers, set up endpoint groups, TypedResults, route handlers, request DTOs/schemas (zod, Pydantic, Bean Validation, binding tags), or asks "how do I add an endpoint / structure my API routes". Always use this skill for endpoint scaffolding; it generates a complete, validated endpoint that matches the project's conventions./architecture-test-generatorGenerate architecture tests / fitness functions that fail the build when architectural rules are violated - layer dependencies, module boundaries, cycles, naming, and visibility conventions - in any stack: NetArchTest or ArchUnitNET (.NET), ArchUnit or Konsist (Java/Kotlin), dependency-cruiser or eslint-plugin-boundaries (TypeScript/JavaScript), import-linter (Python), go-arch-lint or depguard (Go). Use this skill whenever the user wants architecture tests, to enforce layering or the dependency rule, dependency rules as tests, import rules, forbidden imports, no circular dependencies, naming conventions, fitness functions, or asks "how do I stop people breaking the architecture / enforce my layers / keep modules from importing each other". Always use this skill for architecture-test requests; it generates rules matching the project's real structure./async-await-auditorAudit async and concurrent code in any language for correctness and performance bugs - C#/.NET (async/await, Task), JavaScript/TypeScript (Promises, async/await), Python (asyncio), Java/Kotlin (CompletableFuture, virtual threads, coroutines), Go (goroutines, channels, context), Rust (tokio/async). Use this skill whenever the user shares async or concurrent code, or asks about deadlocks, hangs, blocking calls, .Result/.Wait(), async void, ConfigureAwait, floating or unhandled promises, await in a loop vs Promise.all, blocking the event loop, forgotten await, asyncio.gather/TaskGroup, CompletableFuture.join, virtual thread pinning, goroutine leaks, context cancellation, WaitGroup/errgroup, holding a lock across .await, fire-and-forget tasks, cancellation tokens, or "why does my async code hang". Always use this skill for async/concurrency reviews instead of answering from memory; it applies a fixed checklist and rewrites the code./authorization-setupDesign API authorization in any stack - policy-based, role-based, claims/permission-based, and resource-based (ownership) checks. Covers ASP.NET Core policies and AuthorizationHandler, NestJS guards, Express middleware and CASL, FastAPI dependencies/scopes, Django and DRF permission classes, Spring Security (@PreAuthorize, SecurityFilterChain), Go middleware, and Casbin/OPA. Use this skill whenever the user wants authorization policies, role/claim/permission checks, RBAC/ABAC, custom authorization rules, resource-based authorization, IDOR protection, "deny by default", or asks "how do I authorize this / policy vs role / restrict this endpoint to X / stop users seeing other users' data". Always use this skill for authorization requests; it generates policies, handlers, and endpoint wiring./benchmark-setupSet up correct micro-benchmarks in any stack and interpret the results - BenchmarkDotNet (.NET), JMH (Java/Kotlin), pytest-benchmark / pyperf (Python), Vitest bench / tinybench / mitata (JavaScript/TypeScript), Go testing.B + benchstat, Rust criterion. Use this skill whenever the user wants to benchmark code, measure performance, compare two implementations or functions, set up a benchmark harness, or asks "which is faster", "benchmark these two functions", "how do I benchmark this", "is this optimization worth it", or "interpret these benchmark results". Always use this skill for micro-benchmarking requests; it writes correct benchmarks, avoids the classic pitfalls, and explains the numbers./caching-strategy-setupAdd the right caching to an app in any stack - in-process, distributed (Redis/Valkey/Memcached), two-level, or HTTP/output caching - with correct keys, expiration, stampede protection, and invalidation. Covers HybridCache / IMemoryCache / IDistributedCache / output caching in .NET, lru-cache / keyv / cache-manager / ioredis in Node, functools / cachetools / redis-py / Django cache in Python, Spring Cache with Caffeine or Redis in Java/Kotlin, and ristretto / groupcache / singleflight / go-redis in Go. Use this skill whenever the user wants caching, to cache a query/response, Redis caching, @Cacheable, lru_cache, HybridCache, cache-aside, output caching, or asks "how do I cache this / add caching / avoid cache stampede / invalidate this cache". Always use this skill for caching requests; it picks the right layer and wires expiration + invalidation correctly.Other plugins' skills for the same job