/dm-game:in-play-commsfrom dm-game
A voice that talks to the player during action (crew radio, a co-pilot, a coach, an operator) and must be read while the game keeps running: lines keyed to a situation and withdrawn the moment it stops being true, lessons versus moments, a reading-time floor whose clock slows while the player is busy, entry gates by priority with caps so nothing starves, a short stack of cards, teaching on the event instead of the clock, teaching overlays drawn from the rules, and a line budget measured with a scripted pilot. Use when building or reviewing in-play tutorial lines, crew chatter, mission radio or contextual coaching, and when players say 'it told me to run after the enemy was dead', 'the tip vanished before I read it', 'I was busy and missed it', 'it talked over itself', 'the story never got told', or 'I couldn't dismiss it'. For fire-and-forget toasts see hud-readouts; for player-paced dialogue the game waits on, see situational-ui.
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.
Read when SKILL.md points to them.
Purpose: Lines the game can't wait for but the player must read. While they're on screen they stay true, and they arrive when the player has eyes free. The pattern sits between the two neighbours:
| Pattern | The game waits? | Must be read? | Must stay true? | Skill |
|---|---|---|---|---|
| Toast | No | Mostly no | No | hud-readouts rule 8 |
| Dialogue box | Yes | Yes | n/a (the world is frozen) | situational-ui |
| In-play comms | No | Yes | Yes | this skill |
If a line doesn't need all three "yes"es, use the neighbour. It is less machinery.
Sources:
src/ui/comms-queue.ts (pure rules, tested),
src/app/engagement.ts, src/ui/comms.ts, src/sim/story/beats.ts,
src/view/teach-view.ts. Built after the operator's first playtest, hardened through three
independent reviews; each rule below names the failure it fixed. Numbers marked
corpus value are posture A for ice-pirates and posture B for your game (Numbers
Policy).Typed sketch: references/comms-queue.ts, the queue rules and the engagement meter
with no DOM.
| Failure | Root cause | Rule |
|---|---|---|
| "We're taking water, get clear" stays up after the enemy is dead | The line didn't know what it was about | 1 |
| The steering tip is withdrawn before anyone reads it | A lesson was keyed to its story beat, and a player who steers early ends the beat in 0 s | 2 |
| A busy player misses a line | A fixed timer, read by nobody under fire | 3 |
| Lines talk over each other, or story never arrives | No entry rule, or one with no cap | 4 |
| A new line wipes the one being read | Replace instead of stack | 5 |
| "See that glow?" with no glow on screen | Teaching on the clock instead of on the event | 6 |
| The overlay contradicts the rule it teaches | The overlay is hand-drawn art | 7 |
assertive announcement) and cut in.interface CommsLine { speaker: string; text: string; pri: 0 | 1 | 2; key?: string }
// story coaching urgent
liveKeys(): the situations true this tick (engineOut,
underFire, beat:board). The HUD withdraws any line, queued or on screen, whose
key isn't live.MIN_SHOWN 1.2 s, corpus value) so it
doesn't flicker on and off when a situation is true for a few frames.liveKeys reads sim state. It never reads the HUD, so a replay withdraws the
same lines.drop(text) (ADDED in the sketch; pending lines only). Never key a
lesson to "not learned yet": a key also withdraws the card on screen, which
brings back the unread steering lesson above. ice-pirates shows the steering
lesson even to a player who steered early. Whether one early press counts as
learned is a design call; decide it per lesson and write it down.need = clamp(1 + chars / 15, 3, 9) s (corpus value): a second to find the
card, then about 15 characters a second.1 − 0.35 × engagement. A busy player gets up to
~1.5× the time.dt, and dt is 0 while paused (game-shell's view clock).dt = 0),
times the player's reading-time multiplier, 1–10× (XAG 116; ADDED in the sketch).
The operator's stated preference for Hard Deck is no dismiss input at all; he found one
"too much hassle" (felt, not playtested).MIN_SHOWN),
on screen or queued, exactly as at any speeddismiss() reports through the same CommsChange as update(), so the view
retires the card the same way| pri | Enters when engagement is below | Waits at most |
|---|---|---|
| 2 urgent | always | 0 |
| 1 coaching | 0.65 | 2.5 s |
| 0 story | 0.3 | 9 s |
Corpus values. Then:
max-height from 0), so the cards above are
pushed up instead of jumping. Reduced motion turns the animation off.aria-live="polite", as ice-pirates' #hud-comms) holds the
cards. Urgent lines go to an assertive region (hud-readouts rule 8). The
stack sits clear of the play-critical centre and of the toast area.MIN_SHOWN and its key is gone, so a lesson about a
0.35–0.85 s gun charge (Hard Deck) would retire unread. For an event shorter
than MIN_SHOWN plus the reading time, it is still a lesson, so it stays
unkeyed (rule 2). Only its priority is a choice:
telegraphHint is pri 2 and carries a key, but
live: () => true keeps that key in liveKeys() forever, so it is unkeyed in
effect: it cuts in while the glow shows and is never withdrawn. The costs:
urgent skips the engagement gate and the 60% overlap, a fourth card retires the
oldest unread, and it wears the alarm styling and assertive announcement.
ice-pirates gets away with it because barks are spaced 6 s apart (barkIn).
Use it for one or two lessons, and space urgent lines.push() only dedupes while a line is queued or showing, so a
trigger that pushes on every gun glow repeats the lesson all run. The caller keeps
a per-run fired flag (ice-pirates' st.flags). Set it when the card appears in
CommsChange.admitted, so a lesson cleared by a death before it showed fires
again; ice-pirates sets it at push (ADDED).teach: [{ kind: 'arcs', shipId }]); the view
draws it from the real defs: a weapon's range and arc, the hull's weak-spot
fraction. An overlay can't drift from the rule it teaches.Hard Deck's design (the operator's choice, 2026-10-12; posture B until playtested):
drop(text)). A card already on screen
finishes its reading time, and the lesson is never keyed to "not learned yet"
(rule 2).Each line names what the check cannot see.
MIN_SHOWN; a lesson isn't; story is held while busy,
but not past its cap; never more than 3 cards. Mutation-check each. Blind to:
layout and whether anyone read it.liveKeys at a fixed
engagement (0.5), and assert every lesson line, and the hook, reaches the
screen. This test found pitfalls 2 and 3 in ice-pirates. Blind to: a human
who plays differently from the pilot, and to reading speed.MIN_SHOWN on the reading clock. That's ~1.2 s
idle and up to ~1.9 s just after a fight, while engagement is still settling.MIN_SHOWN plus
its reading time is unkeyed (urgent, or coaching if it reads fine after the
event), and its fired flag is set on admission.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
npx claudepluginhub rbergman/dark-matter-marketplace --plugin dm-game40 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.