/dm-game:simulation-first-designfrom dm-game
Designs and balances games where the primary loop runs without human input: self-playing simulations, AI-vs-AI matches, autonomous world sims, and spectator games. Covers determinism, seeding, spectator readability, bot policy as balance instrument, and evidence blind spots.
Ships in dm-game. 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.
Purpose: Design and balance games where the loop runs without a human in it — and know what that costs you in evidence.
Sources: No canonical design text covers this; the practice is scattered. Determinism and lockstep replay are standard RTS engineering (see any Age of Empires or StarCraft networking postmortem). Self-play as a balance instrument is established in reinforcement learning (Silver et al. on AlphaGo/AlphaZero; OpenAI Five; DeepMind's AlphaStar league) and the league structure there — deliberately diverse opponent policies to prevent overfitting to one strategy — is the transferable idea. Everything else below is generalised from working implementations rather than cited, and its thresholds are posture B under the Numbers Policy. Treat this skill as a practice being written down, not as received wisdom.
A simulation is an instrument, and every instrument has a blind spot. State it in the same breath as the result — always, without being asked.
Clear rate 24/24.
is not a result. This is:
Clear rate 24/24, from a bot that never retreats, never repositions, and never conserves a resource for later.
A metric that did not move is not evidence of no effect until the instrument has been shown capable of detecting that class of effect. When a change produces no movement in the sim, the first hypothesis is that the bot cannot express the behaviour the change affects — not that the change was inert. See mechanic-ablation for the four-stage procedure that tests this properly.
Enumerate this list for your own bot and keep it beside the results:
| The bot cannot detect | Because |
|---|---|
| Whether anything is legible | It reads state directly; it never parses the screen |
| Whether anything is satisfying | It has no affect |
| Pacing and fatigue | It does not get tired, bored, or tilted |
| Learning curve | It arrives fully competent, or fully incompetent, and never moves |
| Whether a choice was interesting | It evaluates; it does not deliberate |
| Surprise | It has no expectations to violate |
Every one of those is a design property. A sim-tuned game can be numerically excellent and unplayable, and the sim will never say so.
If the same seed does not produce the same run, you do not have an instrument. You have an anecdote generator. Everything else in this skill depends on this, so build it first — retrofitting determinism into a running sim is one of the most expensive things you can do.
The contract:
Test: run the same seed twice and diff the full event log, not the outcome. Two runs that reach the same result by different paths are non-deterministic and will diverge on the run that matters.
In a self-playing game the player is a spectator, and spectating is the entire experience. This inverts the usual UX priority: legibility of what the system just decided outranks everything, because it is the only thing the player gets.
Four questions, in order:
Test: show a viewer thirty seconds of the sim with no explanation and ask who is winning and why. If they cannot answer both, the sim is running correctly and communicating nothing. This is the sim equivalent of the five-second test in player-ux, and it fails far more often, because the developer reads the state directly and cannot see what the screen omits.
An agent's decision is invisible unless the design makes it visible. Options, in increasing cost:
The bot is not a stand-in for a player. It is a measuring device, and its policy determines what the measurement means. A single bot policy measures one thing: how the game behaves against that policy.
Rule: never balance against one policy. A single-policy sim overfits — the design becomes tuned to defeat exactly that bot, and the tuning does not transfer. This is the league idea from self-play RL, and it is the transferable part.
Build a small deliberately-diverse set:
| Policy | Purpose |
|---|---|
| Greedy | Takes the locally best action always. Finds dominant strategies fastest. |
| Random-legal | Establishes the floor. Anything a random policy clears is not a challenge. |
| Specialist | Commits hard to one strategy. Reveals whether counters actually counter. |
| Conservative | Never takes risk. Exposes whether risk is ever correctly rewarded. |
| Adversarial | Written specifically to break the current tuning. The most valuable and the one usually skipped. |
Diagnostic: if all policies produce similar outcomes, either the game has no strategic depth or the policies are not actually diverse. Check the second before concluding the first — writing five bots that are secretly the same bot is easy.
Test: the spread between best and worst policy is your depth signal. If greedy and random-legal clear at similar rates, the decisions in between do not matter, and mechanic-ablation will tell you which of them to cut.
Playtesting is not optional here; it changes target. You still need humans, but you are asking them different questions.
| Traditional playtest asks | Sim-first asks a human |
|---|---|
| Is this fun to play? | Is this interesting to watch? |
| Was that fair? | Was that comprehensible? |
| Could you do it? | Could you predict it, even loosely? |
| Would you play again? | Would you leave it running? |
The last one is the retention question for a self-playing game, and it has no analogue in conventional playtesting.
Run these with a real human and no explanation from you. The developer-blindness problem in player-ux is worse for sims, not better: you know the state model, so you literally cannot see the screen as an uninformed viewer does.
For felt reactions, capture them verbatim as they happen — see moment-capture. "I stopped watching around minute four" is the single most valuable datum a self-playing game can collect, and it evaporates if not written down at the time.
These pull in opposite directions and it is worth knowing which you are building, because the same code cannot serve both without a decision.
| Sim as instrument | Sim as product | |
|---|---|---|
| Optimised for | Runs per second, statistical power | Legibility, pacing, drama |
| Wants | Headless, no rendering, no delays | Rendering, deliberate pacing, telegraphs |
| Correct bot | Whatever isolates the variable | Whatever produces interesting play |
| Success | The number moves and you know why | Someone leaves it running |
Rule: keep the headless core pure and put presentation strictly outside it. A single deterministic reducer with no rendering, no timers and no I/O serves both — the instrument runs it at speed, the product renders it. The moment presentation concerns leak into the core, the instrument stops being trustworthy and the product stops being tunable.
Three tight links. Everything else routes through the map, so adding a skill
touches one file rather than twenty: references/routing-map.md (in
game-design).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
game-design, simulation-balance, ai-vs-ai, spectator-games, bot-policy
40 skills in this plugin
/accessibility-designUse when designing any player-facing feature, evaluating a game for accessibility, responding to accessibility feedback, designing difficulty or assist options, adding subtitle/caption systems, implementing input remapping, or when a player reports they can't play. Covers the four accessibility pillars (visual, auditory, motor, cognitive), implementation tiers, colorblind design, subtitle standards, input accessibility, and testing methodology. Accessibility is a design discipline, not a post-launch checklist./async-and-socialSocial and competitive design that does not require players to be online together: ghost/replay data, leaderboards, asynchronous PvP, offline vulnerability, and anti-snowball mechanics. Use when adding leaderboards or high-score tables, designing ghost races or replay challenges, letting players attack or compete against absent opponents, deciding what social signal a single-player game should carry, or when matches and runs feel decided in the first minutes. Anti-snowball applies to single-player roguelikes and simulations too, not just PvP. For real-time multiplayer architecture, matchmaking, guilds, and moderation, this skill deliberately does not cover them — those are large specialities and belong in dedicated references./audio-designUse when designing how audio communicates game state, creates emotion, and serves as a feedback system. Activate for sound effect design, adaptive music systems, spatial audio, ambient soundscapes, audio priority and ducking, emotional audio design, and audio accessibility. Also activate when audio feels disconnected from gameplay, when players routinely play on mute (a design failure signal), when evaluating whether the audio stack has appropriate layering and variation, or when planning how music responds to gameplay context. This skill treats audio as a design system — not audio engineering or production, but the intentional design of what players hear, when, and why. Covers the full audio stack from music and ambience through sound effects, UI audio, and voice./camera-controlControlling a 2D or top-down game camera, not juicing it: a pure 'where it wants to be' target kept separate from 'how it gets there'; exponential damping versus a critically damped spring, with halflife as the tuning unit; velocity look-ahead and an aim lead on its own slow clock; zoom as a product of named factors (player base zoom, wheel, screen size, speed); combat framing that zooms out to keep every threat on screen, with a floor; an optional rotate-with-ship (heading-follow) mode and what it does to the HUD; shake applied only at render and never to the aim; one pair of world/screen conversions; and the camera options players expect. Use when building or reviewing a follow camera, adding zoom or a camera options tab, or when players say 'the view jumped when my mouse came back', 'I got shot from off screen', 'I can't see far enough ahead', 'the zoom makes me sick', 'it's too floaty' or 'too stiff', or 'the arrow points the wrong way'. Shake, punch and the trauma budget are game-feel's./cosmic-horror-registerTone, diction, and sensory palette for cosmic-horror game narrative — Lovecraftian, weird-fiction, eldritch, Arkham-adjacent, deep-time or deep-space dread. Use when writing or reviewing in-game text, story bibles, item descriptions, or interstitials for a cosmic-horror game; when horror prose reads as generic spooky rather than cosmic; when the mystery is being over-explained; or when a draft is leaning on words like eldritch, unspeakable, or indescribable to do the work. Also the worked example of the six-slot register template — read the Register template section to build folk-horror, noir, comic, or any other tonal register the same way. Layers on top of game-narrative-craft, which supplies the structural rules; this skill supplies only tone./data-driven-designTelemetry and analytics for games: event taxonomy and schema, engagement/progression/economy/balance/UX metrics, funnel analysis, A/B testing and when not to, cohort analysis, dashboard design, and the interpretation traps — Goodhart's Law, Simpson's paradox, survivorship bias, over-optimisation. Use when instrumenting a game, deciding what to measure, reading a retention or funnel drop, comparing cohorts, or when a metric moved and you need to know whether it means anything. Data-informed, not data-driven: numbers say what happened, not why. For pre-ship qualitative evidence use playtest-design.npx claudepluginhub rbergman/dark-matter-marketplace --plugin dm-gameOther plugins' skills for the same job