/agent-workflow-engineering:generating-semantic-game-mutantsfrom Agent Workflow Engineering
Plants controlled, game-specific semantic defects (timing, identity, scoring, save, RNG, input buffering, animation sync, config) into a game or trace reducer, recording a withheld manifest of defect mechanism and expected symptom. Use to measure test suite or agent workflow detection power against known-planted defects.
Ships in Agent Workflow Engineering. 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 what a test suite or an agent workflow actually catches, by planting defects whose ground truth you hold. Without planted defects, a suite's detection rate is unknown: green means "no defect was found", which is indistinguishable from "no defect was looked for".
The defects here are semantic and game-specific — a scoring guard removed, an identity reused
across a pool boundary, a field dropped from a save. Generic syntactic mutation (flip < to <=,
delete a statement) mostly produces crashes and dead code, which any suite catches, inflating the
score without measuring anything about gameplay.
These are different experiments with different setups. Running one and reporting another is the main way this instrument produces a wrong number.
| Goal | Subject | Passing means | Additional setup |
|---|---|---|---|
| Suite detection | An existing test suite | The suite goes red on the mutant | Run the suite directly; no subagent or clean control is required |
| Workflow repair | An agent + a workflow | The agent localizes and restores the invariant | Withhold the manifest and use an isolated working copy |
| With / without comparison | The same agent, two instruction sets | Repair-rate difference across matched task sets | Keep agent conditions and prompts matched; use enough independent tasks to support the claim |
| Over-repair control | An agent, on a healthy build | The agent changes nothing semantically | Present a clean control exactly like a defect case |
Choose the measurement goal from the table above and write it down. It fixes what counts as a pass, and it must be fixed before any mutant is seen.
Pick operators across families. The catalog is in references/mutation-families.md. Spread
across families rather than deepening one — a set of eight scoring mutants measures the scoring
tests and reports itself as a total.
Write the manifest entry before applying the operator. Fields and rules are in
references/mutant-manifest.md. Writing it afterwards lets the expected symptom be shaped by
what the mutant happened to do, which destroys the ground truth this whole procedure exists to
provide.
Emit each mutant as a standalone artifact. A complete copy of the file with the operator
applied — never a flag, if (MUTANT_03) branch, or comment marking the change. Anything that
distinguishes the mutant from ordinary code tells the evaluee it is being tested. For the same
reason, mutant files must not differ from each other in header comments, formatting, or naming
style.
Screen for equivalent mutants and keep them separate. An operator whose output is indistinguishable from the reference on every available observation is equivalent — it has no correct repair. Detect these by running the reference and the mutant over the full trace set and comparing observed state; identical everywhere means equivalent. Do not put equivalent mutants in the pass/fail pool. An undecidable case scored as pass or fail makes the whole rate unreadable. Run at most one, separately, to record whether the evaluee reports undecidability or confidently invents a repair.
Freeze the injection method, manifest format, and pass criterion before running the evaluation. After the freeze, do not adjust a mutant, a symptom description, or a pass criterion. Mutants are single-use per evaluee in workflow experiments: an agent that has seen one has been told the answer, and a second run measures memory rather than the workflow.
Apply the setup for the selected goal.
For workflow repair, with/without comparison, and over-repair control, the manifest is the answer key. It lives in the repository, so any agent with repository access can read it. File placement is not a firewall. Isolation is procedural:
When using assets/fixtures/, read references/bundled-fixture-manual.md for its commands, scoring
boundary, and measurement limitations. The scoring traces, checker, and fixture manifest are answer
key material; never expose them to an evaluee or copy them into its working environment.
references/mutation-families.md — operator catalog by family.references/mutant-manifest.md — manifest schema and the rules that keep it usable as ground truth.references/bundled-fixture-manual.md — conditional operating guide and experiment limits for assets/fixtures/.references/fixture-manifest.md — the bundled fixture's answer key. Withhold from evaluees.assets/fixtures/check.mjs (opens in a new tab)assets/fixtures/mutants/m01.mjs (opens in a new tab)assets/fixtures/mutants/m02.mjs (opens in a new tab)assets/fixtures/mutants/m03.mjs (opens in a new tab)assets/fixtures/mutants/m04.mjs (opens in a new tab)assets/fixtures/mutants/m05.mjs (opens in a new tab)assets/fixtures/mutants/m06.mjs (opens in a new tab)assets/fixtures/mutants/m07.mjs (opens in a new tab)assets/fixtures/mutants/m08.mjs (opens in a new tab)assets/fixtures/mutants/m09.mjs (opens in a new tab)assets/fixtures/mutants/m10.mjs (opens in a new tab)assets/fixtures/mutants/m11.mjs (opens in a new tab)assets/fixtures/mutants/m12.mjs (opens in a new tab)assets/fixtures/mutants/m13.mjs (opens in a new tab)assets/fixtures/reducer.mjs (opens in a new tab)assets/fixtures/traces-scoring.json (opens in a new tab)assets/fixtures/traces.json (opens in a new tab)references/bundled-fixture-manual.md (opens in a new tab)references/fixture-manifest.md (opens in a new tab)references/mutant-manifest.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub abagames/agentic-gamedev-skills --plugin agent-workflow-engineering9 skills in this plugin
/critiquing-own-responseReviews the agent's own immediately preceding response as an advisory pass, surfacing assumptions, reasoning gaps, alternatives, and unverified claims. Use ONLY when the user explicitly asks for self-critique, critical thinking, or challenges to the agent's prior answer. Do not use for normal follow-ups, someone else's work, automatic checking, or independent quality assurance./dispatching-agent-workRoutes a user's request to a separate task, subagent, automation, or current agent with an appropriate model role, reasoning effort, and workspace isolation. Use when the user or an authoritative instruction asks to dispatch, delegate, orchestrate, enter dispatch mode, run work in another session, select an execution backend, or schedule work. While dispatch mode is active, proactively send substantive execution to the host's preferred worker boundary: a new user-visible task in Codex Desktop App and a subagent on hosts without durable tasks. Do not invoke merely because ordinary work is complex, long-running, or parallelizable, or when this skill is only being mentioned, reviewed, or edited./extracting-agent-skillsDistills reusable agent procedures, validation loops, debugging methods, tool-use patterns, and decision rules from completed, paused, abandoned, or failed projects. Use when closing or archiving a project, reducing side-project sprawl, or when asked to harvest project knowledge into reusable agent capabilities. Gates candidates for trigger clarity, validation, and transferability to avoid weak skills./extracting-spec-design-laddersReverse-engineers existing source code into a two-layer artifact ladder — a concrete reproduction spec (preserves behavior-affecting constants, same-tick ordering, input edges, collision/threshold semantics; drops cosmetics) and an abstract design doc (intentionally omits reproduction detail and records what is unspecified vs. safe-to-assume). Use to document or recover a program's intent and reproducible behavior without leaking implementation-only detail into the design layer./gating-by-blind-restorationValidates that one abstraction layer (a spec, design doc, schema, contract, or generated artifact) is self-sufficient by spawning an ISOLATED sub-agent that sees only that layer and must reconstruct the adjacent layer, returning pass / weak-pass / fail. Use when checking whether an extracted or generated artifact preserves enough structure to be rebuilt or used without the original source, and to prevent an author from grading their own output./gating-expensive-batch-workSplits a batch of expensive per-item agent work into a cheap reversible pass over every item and an expensive irreversible pass, separated by a method-freeze checkpoint. Use when running one costly procedure over many items (evaluations, migrations, audits, labeling, benchmark or fixture construction) and the method — rubric, transform rules, criteria, instrument — could still turn out to be wrong, or when part of the work spends something that cannot be spent twice: fresh seeds, held-out data, one-shot quota, published output, or a reviewer's first impression. Not for single items, cheap items, or a method already validated on the same class of item.Other plugins' skills for the same job