/pm-workspace:mutation-auditfrom pm-workspace
Runs deterministic mutation testing on bash, Python, or TypeScript modules to detect zombie tests with high coverage but weak assertions. Useful for sprint-end quality checks or pre-merge audits.
Ships in pm-workspace. 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.
Detecta tests zombies. Cobertura alta ≠ tests efectivos. Ref: SE-035, research
javiergomezcorio substack(57% → 74% mutation score automated).
# Bash module
bash scripts/mutation-audit.sh --target scripts/X.sh --tests tests/test-X.bats
# Python module
bash scripts/mutation-audit.sh --target src/module.py --tests tests/test_module.py --runner pytest
# TypeScript
bash scripts/mutation-audit.sh --target src/Y.ts --tests test/Y.test.ts --runner "npm test"
# Con threshold custom
bash scripts/mutation-audit.sh --target scripts/X.sh --tests tests/test-X.bats --threshold 80 --mutants 10 --json
# Modo simulate (Slice 1 fast path — SIN ejecución real, etiquetado "simulated")
bash scripts/mutation-audit.sh --target scripts/X.sh --tests tests/test-X.bats --simulate
=== SE-035 Mutation Audit ===
Target: scripts/X.sh
Tests: tests/test-X.bats
Language: bash
Mode: real
Mutants: 5 (killed=4, survived=1, equivalent=0, executed=5)
Score: 80% [PASS threshold 70%]
executed = número de mutantes que pasaron REALMENTE por el runner (el guard de
ejecución). En modo --simulate, executed=0 y Mode: simulated con WARNING.
{
"verdict":"PASS",
"execution":"real",
"target":"scripts/X.sh",
"tests":"tests/test-X.bats",
"language":"bash",
"mutants_total":5,
"executed":5,
"killed":4,
"survived":1,
"equivalent":0,
"score_pct":80,
"threshold_pct":70,
"survivors":["line=42 mutator=comparison-boundary status=survived"]
}
| Mutador | Aplica a | Ejemplo |
|---|---|---|
| arithmetic-op-swap | bash/py/ts | + → -, * → / |
| comparison-boundary | bash/py/ts | > → >=, < → <= |
| conditional-negate | bash/py/ts | if X → if ! X |
| return-null | py/ts | return X → return None/null |
Cada superviviente (mutante no matado) indica un gap concreto: diff muestra qué cambio NO fue detectado.
docs/rules/domain/checker-fail-closed.md.--simulate = fast path etiquetado simulated (nunca fabrica kills)./mutation-audit --target scripts/X.sh (command wrapper pendiente)output/mutation-scores-YYYYMM.md$TMPDIR — NO modifica el repo real--seed para reproducibilidaddocs/propuestas/SE-035-mutation-testing-skill.mdscripts/mutation-audit.shtests/test-mutation-audit.batsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: dependencies: Invalid input: expected array, received object, author: Invalid input: expected object, received string
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
139 skills in this plugin
/adversarial-securityUsar cuando se necesita auditar la seguridad de un proyecto con pipeline Red Team / Blue Team./agent-code-mapUsar cuando un agente necesita conocer la arquitectura del proyecto sin leer ficheros completos./agent-file-mapUsar cuando se trabaja con ficheros externos al workspace que los agentes deben localizar./agent-messagingUsar cuando un agente debe enviar un mensaje a otro agente con roles y receipts, sin pasar por el usuario. Triggers: mensaje a otro agente, agent-message, notify agent, inbox.Other plugins' skills for the same job