/wicked-garden:wicked-garden-qe-mutation-test-engineerfrom wicked-garden
Runs mutation testing with Stryker, Mutmut, Pitest, or go-mutesting. Parses kill reports, writes kill-rate summary and top surviving mutants with triage priority. Distinguishes weak tests from missing tests.
Ships in wicked-garden. 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.
None: SKILL.md is the whole skill.
Coverage tells you which lines ran. Mutation tells you whether your tests notice when those lines are wrong. You run a scoped mutation pass, classify survivors by triage level, and write a verdict that distinguishes "weak assertions" from "missing tests" — they have different fixes.
Script-backed steps use the wicked-garden launcher: wicked-garden run <plugin-root-relative path, e.g. scripts/…> [args]. It is on PATH after npm i -g wicked-garden; otherwise use npx wicked-garden run …; inside a wicked-crew run it is "$WICKED_GARDEN_ROOT/scripts/wicked-garden".
If none of these is available, or Python 3 is missing, skip the script-backed step, say so, and follow the manual alternative where one is given next to it — never invent the script's output.
Relative paths in this skill are relative to the directory that contains this SKILL.md.
target_paths: list of source paths to mutate (NEVER the whole repo;
mutation is slow).language: one of javascript, typescript, python, java, go,
ruby — drives tool selection.kill_rate_threshold: the scenario's pass bar; default 75% on
critical code, 60% overall.max_mutants: optional cap; default 500 per run.run_id — UUID of the current runs row; defines EVIDENCE_DIR..wicked-qe/config.json — detected_tooling drives fallbacks
if the scenario's language disagrees with what's on PATH..wicked-qe/evidence/<run_id>/context.md — optional domain
rules like "pricing module must be ≥ 90% kill rate" or "exclude
generated code under /src/proto/".Mutation passes are long. Wrap each invocation in
{WT_LIB}/exec-with-timeout.mjs with a generous timeout (15-30 min) and run
it detached if the scenario allows.
# Mutate only the target paths; do NOT mutate the whole repo.
npx --yes stryker run \
--mutate "${TARGET_PATHS}" \
--reporters json,html,clear-text \
--jsonReporter.fileName "${EVIDENCE_DIR}/stryker-report.json" \
--htmlReporter.fileName "${EVIDENCE_DIR}/stryker-report.html" \
--maxTestRunnerReuse 10 \
--concurrency 4
# Mutmut stores state in .mutmut-cache; point it at the evidence dir
# so it doesn't pollute the working tree.
MUTMUT_CACHE_DIR="${EVIDENCE_DIR}/.mutmut-cache" mutmut run \
--paths-to-mutate "${TARGET_PATHS}" \
--runner "pytest -x -q" \
--use-coverage
mutmut junitxml > "${EVIDENCE_DIR}/mutmut-report.xml"
mutmut results > "${EVIDENCE_DIR}/mutmut-summary.txt"
mvn -q org.pitest:pitest-maven:mutationCoverage \
-DtargetClasses="${TARGET_CLASSES}" \
-DtargetTests="${TARGET_TESTS}" \
-DoutputFormats=XML,HTML \
-DreportsDirectory="${EVIDENCE_DIR}/pit-reports"
go-mutesting --debug "${TARGET_PACKAGE}/..." \
> "${EVIDENCE_DIR}/go-mutesting-report.txt" 2>&1 || true
kill_rate = killed / (total - timeouts - no-coverage - equivalent)
Threshold guidance:
| code class | threshold |
|---|---|
| critical (auth, pricing, state machines, payments) | ≥ 85% |
| core domain | ≥ 75% |
| generic glue | ≥ 60% |
| generated code | excluded |
100% kill rate is a yellow flag, not a win. It often means redundant
assertions — every surviving mutation is killed by multiple tests. The
scenario should flag suspicious_100pct: true and prompt a reviewer to
sample whether the assertions actually differ in intent.
Classify each survivor at one of three levels:
> → >=) and return-value
mutations on code that's reached but weakly asserted. Fix before merge
if on the critical path.mutator_ignored: true with a one-line
justification in the finding.Each surviving mutant in the report MUST be tagged P0/P1/P2 by name.
Under .wicked-qe/evidence/<run_id>/:
| File | manifest kind | Required |
|---|---|---|
stryker-report.json / mutmut-summary.txt / pit-reports/ / go-mutesting-report.txt | coverage | Yes (one per language) |
stryker-report.html (if generated) | misc | Optional |
kill-summary.md | log | Yes |
surviving-top10.md | log | Yes |
kill-summary.md includes per-module kill rate, equivalent/timeout/
no-coverage counts, delta vs. last run (query DomainStore for the prior
verdicts.reason via test-oracle pattern).
store.create("verdicts", {
run_id: RUN_ID,
verdict: killRate >= threshold ? "PASS" : "FAIL",
reviewer: "wicked-garden-qe-mutation-test-engineer",
reason: `kill_rate=${(killRate*100).toFixed(1)}% (threshold ${(threshold*100).toFixed(0)}%); killed=${killed}/${total}; survivors P0=${p0Count} P1=${p1Count} P2=${p2Count}; suspicious_100pct=${killRate === 1}.`,
evidence_path: `evidence/${RUN_ID}/`,
// Inside a governed wicked-crew run, name it, so crew attributes this verdict by stamp.
...(process.env.WICKED_RUN_ID ? { crew_run_id: process.env.WICKED_RUN_ID } : {}),
});
// One task per P0/P1 survivor cluster so they show up in test-oracle's
// "tasks by status" queries.
for (const cluster of survivingClusters) {
store.create("tasks", {
project_id: PROJECT_ID,
title: `Mutation survivor ${cluster.priority}: ${cluster.file}:${cluster.line} (${cluster.operator})`,
status: "open",
assignee_skill: `mutation-test-engineer:${cluster.priority.toLowerCase()}`,
body: JSON.stringify({
mutation_id: cluster.id,
priority: cluster.priority, // P0 | P1 | P2
file: cluster.file, line: cluster.line,
original: cluster.original, mutated: cluster.mutated,
surviving_run_count: cluster.count,
proposed_assertion: cluster.proposedAssertion,
}),
});
}
| code | meaning | class |
|---|---|---|
ERR_LANGUAGE_MISMATCH | scenario language: doesn't match detected tooling | user |
ERR_TARGET_PATHS_MISSING | frontmatter missing target_paths: | user |
ERR_MUTATION_TOOL_MISSING | none of stryker/mutmut/pitest/go-mutesting available | system |
ERR_MUTATION_TIMEOUT | tool exceeded configured timeoutMs | user |
ERR_NO_COVERAGE | tool reported no-coverage for > 50% of mutants — | user |
| run coverage first; mutation testing without cov | ||
| is noise. |
target_paths: in the scenario.kill-summary.md.mutator_ignored
with a written justification — do not silently drop it.## Mutation: {scenarioName} language={lang}
targets: {TARGET_PATHS}
total: {N} killed: {K} survived: {S} timeouts: {T} no-cov: {NC} equiv: {E}
kill_rate: {pct}% threshold: {pct}%
survivors: P0={p0} P1={p1} P2={p2}
suspicious_100pct: {yes|no}
delta_vs_last_run: {+/- N} new_survivors: {N}
top survivors (see surviving-top10.md for details):
P0 src/pricing/tax.ts:42 (>, →, >=) count=3
P0 src/auth/token.ts:17 (===, →, !==) count=2
P1 src/cart/coupon.ts:91 (+, →, -) count=1
...
VERDICT: PASS|FAIL
REVIEWER: wicked-garden-qe-mutation-test-engineer
RUN_ID: {RUN_ID}
{WT_LIB}){WT_LIB} is the plugin's own qe helper directory — the helper modules ship
in-catalog (scripts/qe/lib/, ported from the retired wicked-testing package
in Phase 6c). Resolve it (cross-platform):
WT_LIB="$(wicked-garden path scripts/qe/lib)"
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
JavaScript, TypeScript, Python, Java, Go
npx claudepluginhub mikeparcewski/wicked-garden --plugin wicked-garden91 skills in this plugin
/wicked-garden-agenticAgentic-systems domain skill: review, design, audit, and framework selection
for AI agent systems. Routes to one of four actions (review | design | audit |
frameworks) backed by the rubrics in refs/.
Use when: "agentic review", "review this agent system", "full agentic codebase
review", "trust and safety audit", "audit my agents for GDPR/HIPAA/SOC2/NIST
compliance", "design an agentic system", "design a multi-agent architecture",
"which agentic framework should I use", "compare LangChain vs CrewAI vs
AutoGen", or any former /wicked-garden:agentic:{review|design|audit|frameworks}
invocation.
Disambiguation: this domain reviews and designs **AI agent systems**. For
ordinary source code use the engineering review; for a binding go/no-go
verdict use the archetype review (see docs/domains.md → "review appears in
three domains").
/wicked-garden-agentic-architectFive-layer architecture validation, agent topology analysis, orchestration
pattern assessment, and framework detection for agentic systems.
Use when: architecture review of an AI agent system, agent topology analysis,
validating the five-layer model (cognition/context/interaction/runtime/
governance), assessing orchestration patterns, or as a parallel worker in a
heavyweight wicked-garden-agentic review.
Other plugins' skills for the same job