/dm-game:situational-uifrom dm-game
Provides UI patterns for browser games: radial menus, inventory grids, dialogue boxes, and photo mode, with guidance on when to build each and common player complaints.
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: Build the pattern only when the game needs it, and then build it the way players already expect. Each section opens with when not to, because each of these costs a session and most games don't need most of them.
Sources:
Build it when: pad-first play, a handful of choices (weapons, emotes, pings), picked mid-action without looking away.
Don't, when: mouse-first play (a hotbar with number keys is faster), more choices than fit one ring, or choices with long names.
Idiom (UNSOURCED console convention):
The one place release-to-act is correct. The radial is a provisional surface, the exception game-feel names for act-on-press. Holding is the browse; releasing is the commit.
Hold is an access barrier (XAG 107). Offer Toggle: press opens, the stick points, a second press selects, and B cancels.
/** Stick angle -> slice index, or -1 inside the deadzone (centre = cancel). Slice 0 is up, clockwise. */
function sliceAt(x: number, y: number, slices: number, deadzone = 0.5): number {
if (Math.hypot(x, y) < deadzone) return -1;
const a = (Math.atan2(x, -y) + 2 * Math.PI) % (2 * Math.PI); // 0 = up, clockwise
return Math.floor((a + Math.PI / slices) / ((2 * Math.PI) / slices)) % slices;
}
Checklist:
Blind to: real pad drift, which needs the real controller.
Build it when: items have spatial size, or arranging them is a decision (Tetris-style bags, gear loadouts).
Don't, when: a list would do. A sortable list with filters beats a grid for anything without shape.
Idiom:
arrows, D-pad or stick move a cursor cell by cell
A or Enter picks up, and A again puts down
a pick on an occupied cell swaps
B or Esc cancels a carry, then closes the panel
the mouse drags
Single-pointer alternative to drag (WCAG 2.5.7): click to pick up, click to place. It is the same state machine as the keyboard path. Build that state machine once and drive it from all three inputs.
Navigation is spatial (menu-navigation rule 3) and doesn't wrap. The carried item is drawn at the cursor with a valid/invalid tint and an outline shape, so colour isn't the only cue.
Live panel or pausing screen:
consumeBack on the
inventory screen, never with a separate Esc listener.The tooltip shows effective numbers, before → after, against what's equipped (progression-legibility rule 2).
Checklist:
Blind to: touch drag, which needs a device.
Build it when: lines are spoken or read, and a story beat depends on them.
Don't, when: for ambient barks; those are toasts (hud-readouts rule 8).
Idiom:
text reveals; the first press completes the reveal, the next press advances
the press acts on press (game-feel), and a held button doesn't skip lines: it's game-shell's fresh-press guard again
a backlog of recent lines on one key
a skip that asks once, because a skipped scene can't be undone
Player-paced by default (GAG Basic). Auto-advance is an option whose timing is adjustable up to at least 10×, or dismissed on input (XAG 116).
Reveal speed is a setting, and Instant is one of its values. The reveal is motion: with reduced motion, it defaults to instant.
Speaker names, subtitles and captions follow accessibility-design and XAG 104: a name label, at most 2 lines, an adjustable background.
Blocking versus live:
Checklist:
Blind to: reading speed for the real audience; watch a playtest.
Build it when: the game is beautiful, players share it, and the shell, HUD and settings are already done. It is the last thing to add.
Don't, when: the game is at prototype stage. A dev-only capture harness, like
redshifted's ?capture=, serves the team without a player-facing UI.
Idiom:
open from pause; the sim is frozen
a free camera with bounds (it can't leave the play space or clip through cover that hides spoilers)
toggle the HUD; filters and depth of field are optional
a "Capture" button saves a PNG
Esc or B returns to pause
Canvas capture. canvas.toBlob() returns a blank image for WebGL unless the
context has preserveDrawingBuffer: true, or the capture runs in the same frame
right after a render. Render once with the HUD hidden, call toBlob in the same
task, then restore.
Photo mode is a mode, not a shell dialog. Choosing it from pause:
'screen' unlock reason, so pointer lock can serve mouse-lookEsc or B returns to pause through game-shell's optional modeBack hook, which the
router consults while the stack is empty. Photo mode never adds its own Esc
listener. Camera input goes through input-bindings' actions, so remaps apply.
Photo mode ends whenever any screen opens. P, Start or the auto-pause latch
(a lock loss, a blur) can open pause without Back. End photo mode from
onStackChange when the stack is no longer empty. Otherwise Resume returns to a
frozen sim with the HUD hidden.
Filename includes the game and a timestamp. Offer the download; never upload.
Checklist:
Blind to: GPU-specific capture bugs; test on the target machines.
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-ui, radial-menu, inventory-grid, dialogue-box, photo-mode, browser-games, ui-patterns
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.Other plugins' skills for the same job