/gameplay-debugging-toolkit:adversarially-validating-game-repairsfrom Gameplay Verification & Debugging Toolkit
Stress-tests game bug fixes with adversarial cases from state, timing, identity, lifecycle, persistence, and input surfaces. Produces PatchEvidence records to distinguish correct fixes from overfit or coincidental ones.
Ships in Gameplay Verification & Debugging 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.
A fix that makes the symptom disappear has proven one thing: the symptom disappears under the one condition that was tried. That is compatible with the fix being correct, and equally compatible with it being a guard at the reader, a clamp on the output, a special case that happens to cover the reported input, or a change that works only at 60 fps on seed 2001.
This procedure attacks the fix with conditions its author did not have in mind, and produces a record an independent reader can check without re-deriving the author's reasoning.
The patch, as a diff.
The ReproCase the patch was written against — minimal contract, inlined so this skill needs
nothing else:
id: # stable name for this defect
seed: # RNG seed, or "none"
build: # commit / build identifier
setup: # starting state or save slot
inputs: # ordered input events with tick indices — the input tape
observe: # the wrong observable, as a value
expected: # the healthy value
determinism: # always | intermittent(n/m runs)
The invariant the patch claims to restore, stated as a checkable predicate.
Whatever passing checks existed before the patch, so pass-to-pass has a baseline.
Restate the claim without the author's explanation. Write, from the diff alone, what the patch changes and what would have to be true for that to fix the reported symptom. Do not read the author's rationale first, and do not treat it as evidence when you do. An explanation is a hypothesis with a motive; the diff is the artifact.
Establish fail-to-pass and relevant pass-to-pass. Run the ReproCase on the pre-patch build (must
fail) and the post-patch build (must pass). A repro that does not fail before the patch
invalidates everything downstream — stop and fix the repro. Then run the existing healthy checks
whose paths the patch can reach and confirm they still pass. State what those checks exercise;
an unrelated green suite is not evidence. Record counts, not adjectives.
Select adversarial cases by reachability and failure cost. Use
references/adversarial-conditions.md as a routing catalog, not a universal checklist. Map the
diff and restored invariant to the state surfaces they can reach, then run the cheapest cases
that cover those surfaces:
Do not enumerate catalog rows the patch cannot reach. Record a reachable, high-cost condition in
untested_scope when it matters but cannot be run.
Attack the fix's shape, not only its inputs. For each of these, decide yes/no with evidence:
max(0, hp), min(cap, score)) rather than prevent the bad
value? Clamping converts a visible defect into a silent one.Test the inverse. Construct a case where the patched code path should not trigger and confirm it does not. A fix that suppresses the symptom by suppressing the whole mechanic passes every test aimed at the bug.
Judge by outcome, never by diff similarity. If a reference or "correct" patch exists, do not compare against it. A different change that restores the invariant is correct; an identical change that does not is not.
Do not let the fix's author supply the verdict. The evidence must be reconstructable from the
diff, the ReproCase, and the recorded runs alone. If a claim in the record can only be checked
by asking the author what they meant, it is not evidence — rewrite it or drop it.
undecidable. Do not resolve it by preferring the patched version.A PatchEvidence record. Field list and a worked example are in references/patch-evidence.md;
the required fields are:
patch_id:
root_cause_hypothesis:
violated_invariant:
fail_to_pass:
pass_to_pass:
adversarial_cases:
cross_configuration:
performance_impact:
fix_shape:
inverse_test:
untested_scope:
confidence: # high | medium | low | undecidable
human_decisions_required:
human_decisions_required may not be empty. untested_scope contains important conditions the
patch plausibly reaches but this pass did not run; use none identified from patch reachability
when there are none. That phrase is scoped to the patch, not a claim of exhaustive game-state
coverage.
fail_to_pass names a run that actually failed before the patch.pass_to_pass reaches the patched subsystem, and an inverse case confirms the patched path does
not fire when it should not.confidence is justified by the recorded runs and downgraded to low when untested_scope
covers a condition the patch plausibly reaches.references/adversarial-conditions.md — the condition catalog, with the setup and the observable
break for each.references/patch-evidence.md — full PatchEvidence schema and a worked example.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub abagames/agentic-gamedev-skills --plugin gameplay-debugging-toolkit5 skills in this plugin
/auditing-gameplay-implementation-coverageAudits a stateful game's specification, phase/state machine, implementation, presentation, and tests for scenario-specific omissions such as one phase missing an input alias, one actor skipping a rule, a state change lacking HUD feedback, an event lacking audio, or a lifecycle boundary failing to reset or freeze state. Use when a game mostly works but may contain unimplemented sibling cases, inconsistent behavior across phases or actors, or important rules with no concrete probe; scope the audit to behavior surfaces changed or plausibly reached by a cross-cutting mechanic, to named high-risk surfaces before release, or to a family implicated by repeated forgotten-case bugs. Do not use for a small isolated change already covered by a direct distinguishing assertion, and do not expand into unrelated behavior surfaces. Not for localizing an already-reproduced semantic divergence, validating an existing patch, measuring balance, or proving exhaustive correctness./implementing-gameplay-invariantsTranslates game design prose into engine-neutral implementation invariants and validation checks. Use when implementing or reviewing game mechanics where idle, hold-only, mashing, spam, safe waiting, or repeated scoring pulses must be prevented from dominating skilled play.Other plugins' skills for the same job