/gameplay-debugging-toolkit:implementing-gameplay-invariantsfrom Gameplay Verification & Debugging Toolkit
Translates game design prose into engine-neutral implementation invariants and validation checks. Use when implementing or reviewing game mechanics to prevent idle, mashing, spam, or safe waiting from dominating skilled play.
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.
Turn design intent into concrete implementation constraints. This skill sits between game design and engine-specific coding: it converts statements such as "mashing should be worse than timed play" into invariants, implementation patterns, and validation checks that can be applied in any engine.
Use this skill even without designing-mini-games when a game spec contains risk/reward prose but does not say how the code will enforce it.
If the game has no design spec yet, start with designing-mini-games (it covers one-button and multi-input briefs).
mono_dominant, tied, or repeated-input dominance, and you already know which design promise needs a code-level invariant.evaluating-gameplay-balance when a failure has occurred and you need to diagnose the cause or choose a balance pattern; use this skill after that when the chosen fix needs a new code-level invariant.Extract each design promise that must be true in code:
Rewrite each promise as an invariant:
targetId, pulseId, or equivalent) so duplicate scoring is detectable.Run a policy-specific precheck before coding when the mechanic can be reasoned about from the spec:
Choose an implementation pattern from references/invariant-patterns.md if needed.
Check for scoring loopholes:
Add or review the implementation:
Validate:
NoInput score/death, HoldOnly score/death, SpamPress scoring events, entity counts, resource drain, and score-per-opportunity caps.SpamPress score per unique target below a scripted skilled cycle, HoldOnly score capped below a stated rate, or max active entities below a fixed limit.Use this compact form in specs, PR notes, or code reviews:
- Design promise: <prose from spec>
- Implementation invariant: <testable rule>
- Pattern: <pattern ID from references/invariant-patterns.md, e.g. cooldown, per-target-cap, resource-drain>
- Readout: <the persistent on-screen indicator that lets the player act on this rule — or why this rule changes no player decision>
- Precheck: <whether the bad policy dies, survives safely, or must be score-capped>
- Validation: <policy, telemetry, or seeded scenario that should fail if the invariant is broken>
Readout is not documentation of the rule; it is part of the rule. An invariant that changes
what the player should do, and is not drawn, is indistinguishable from an unfair game — see
"Invisible rule" below.
A change is valid when:
If validation is impossible, report that the invariant is specified but unverified.
references/invariant-patterns.md — reusable patterns for mashing, hold-only, idle, safe waiting, pulse scoring, combos, and resource states.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
/adversarially-validating-game-repairsStress-tests an already-written game bug fix with adversarial cases selected from the state, timing, identity, lifecycle, persistence, and input surfaces the patch can actually reach, then returns a PatchEvidence record covering fail-to-pass, relevant pass-to-pass, inverse-case, invariant, and untested-scope evidence. Use when a fix makes the reported symptom go away and it is still unknown whether the fix is the real one or an overfit, coincidental, or plausible-but-wrong one. Not for finding unknown defects in a build (that is runtime smoke testing), checking one mechanic against its written spec, or judging difficulty, fun, or balance./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.2 plugins in one repository ship this exact skill · first indexed Sep 5, 2026
Other plugins' skills for the same job