/dm-game:player-uxfrom dm-game
Cognitive load for players: perception, attention and memory limits, Gestalt principles for HUD and UI, signal-noise discipline, onboarding ramps, tooltips and affordances, and developer blindness. Use when designing or reviewing a HUD or UI layout, writing a tutorial or first-time-user flow, or when players say 'I didn't see that', 'I didn't know I could do that', 'I missed that it happened', or blame themselves for what is actually a readability failure. Usability problems reliably masquerade as difficulty problems — test readability before tuning difficulty. For access needs specifically (colourblindness, motor, hearing, cognitive) use accessibility-design.
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: Apply cognitive science to game interface and interaction design. The player's brain has hard constraints — limited attention, lossy perception, fragile memory. Design with those constraints, not against them.
Sources: This skill is substantially Celia Hodent, The Gamer's Brain: How Neuroscience and UX Can Impact Video Game Design (CRC Press, 2017) — the three cognitive pillars, the green-ball anti-pattern, usability-versus-engageability, and developer blindness are all hers. Working memory at ~4 chunks is Cowan (2001), which revised Miller's 1956 "7±2." Gestalt grouping principles are Wertheimer (1923). The 4.5:1 contrast minimum is WCAG 2.1 AA.
Every interaction between player and game passes through three systems, in order:
Perception → Attention → Memory
(Did they see it?) → (Did they focus on it?) → (Will they remember it?)
If any pillar fails, everything downstream fails too.
The brain doesn't passively receive information — it actively constructs a model based on expectations, context, and sensory input. Perception is top-down: what you know influences what you see.
Gestalt Principles for Game UI:
| Principle | Rule | Game Application |
|---|---|---|
| Proximity | Near objects are perceived as grouped | Group related HUD elements spatially (health + shield together) |
| Similarity | Similar appearance = perceived as related | Use consistent color/shape for same-category items |
| Figure-Ground | Salient elements pop out from background | Critical info needs contrast against the game world |
| Continuity | The eye follows smooth paths | Guide attention with visual flow (menu layouts, tutorials) |
| Closure | The brain completes incomplete shapes | Progress bars, partially-revealed maps work because of this |
Perception Checklist:
Control affordance: highlight on pointer-enter, act on press. That is the two-stage commit act-on-release is usually defended as providing, without the release delay (see game-feel, Gate 3). Not available on touch, where the finger occludes the control; there, the drag-off cancel is the only two-stage option and act-on-release is the honest default for touch-only surfaces. Scope: this applies to game-world controls. DOM menu buttons keep the browser's native activation, and pad buttons act on their press edge; see the scope note under Act on press in game-feel.
Attention is a finite resource. The brain consumes ~20% of body energy at ~2% of body weight. Every UI element, tutorial popup, and status indicator competes for this budget.
The Core Pillars Method:
The Green Ball Anti-Pattern: "Playing golf with a green ball on a green course" — when the challenge is finding the thing rather than doing the thing, you've put the difficulty in the wrong place. The challenge should be the experience, not a barrier to reaching it.
Attention Audit:
Working memory holds ~4 chunks simultaneously. Long-term encoding requires emotional significance, repetition, or active processing. Tutorials that dump information before the player has context to encode it are wasted.
Memory-Friendly Design:
Memory Audit:
Two distinct UX goals that are often confused:
| Dimension | Question | When It Fails |
|---|---|---|
| Usability | Can the player do what they intend? | Player blames themselves: "I'm bad at this" |
| Engage-ability | Does the player want to keep playing? | Player blames the game: "This is boring" |
Critical insight: Usability problems masquerade as difficulty problems. Players blame their own skill when the real issue is bad UI. Test usability before tuning difficulty.
Phase 1: Safe exploration (no failure possible)
→ Introduce movement and core interaction
→ Let the player touch things without consequence
Phase 2: Guided challenge (gentle failure)
→ Introduce the core mechanic with clear success/failure
→ Immediate feedback on what went wrong
Phase 3: Supported mastery (real challenge, safety nets)
→ Full mechanics, but with hints available
→ Coyote time, generous hit windows, undo options
Phase 4: Release (full game)
→ Remove scaffolding gradually
→ Player should feel competent, not coddled
Teach a verb where and when it's needed, then get out of the way. This is timberwolf's task prompts and learned counters (2026-09/10): its operator found prompts that "never go away even after you have done it". A hint spoken by a voice during action, which must be read while the game runs, is in-play-comms's.
Teach only what play won't teach. Andersen et al. (CHI 2012, 45,000+ players) found that tutorials raised play time by up to 29% and progress by up to 75% in Foldit, the most complex of three games, and had a negligible effect on play in the two simpler ones, which the authors describe as learnable through experimentation. In one of them, Hello Worlds, context-sensitive tutorials even lowered the return rate (17.96% against 21.60% with none, Table 3). In Foldit, in-context instructions beat an up-front manual (play time +16%, progress +40%). List the rules a player can't discover by experimenting; cut hints for genre idioms.
Say when, not just what. A verb that only works in a place gets a zone in the world, and the prompt follows the zone. ice-pirates (2026-10-12, the operator's playtest: the tip "doesn't say to hold it while inside the cyan ring"):
hud-model.ts:146).prompt(action)
(input-bindings rule 8). ice-pirates hard-codes "G" in both, and that
breaks after a remap.Felt verdict pending.
Trigger, not timeline. A hint shows while its trigger condition holds (near a fire, carrying wood), and clears the first time the player does the thing.
Shown where the player is looking, as a keycap plus a few words. The keycap is built from the live binding at draw time, so a remap shows (see input-bindings rule 8). Never hard-code "[E]".
Learned, then gone. Count successful uses per hint; stop showing after N. Timberwolf uses 6 for feeding and 3 for dropping (corpus values; B for yours). Test: does the hint vanish before the player stops needing it?
Per player, not per save. Store learned counts per browser: it is the player who learned it. Options has a "reset tips" control.
Budget. At most 2 hints on screen. Hide teaching hints in danger, except panic verbs (heal, flee), which are needed most then.
UI only. Hints read game state and never write it, and never draw from the sim's RNG, so seeds, replays and bots are unaffected.
You have played your game for hundreds of hours. Your players have played for zero. This asymmetry is the single biggest UX risk in game development.
Counter-measures:
| Category | Minimum Standard |
|---|---|
| Vision | No info conveyed by color alone; support colorblind modes (~10% of players) |
| Contrast | Critical UI elements meet 4.5:1 contrast ratio against background |
| Motor | Rebindable controls; no rapid-press requirements without alternatives |
| Cognitive | Difficulty options; pausable gameplay; adjustable text speed |
| Redundancy | Critical feedback uses 2+ channels (visual + audio minimum) |
Complexity is finite. Spend it on your core experience.
Total complexity budget
├── Core loop complexity (SPEND HERE — this IS the game)
├── Secondary systems (keep lean — inventory, menus, settings)
├── Onboarding complexity (minimize — teach through play)
└── Meta-game complexity (justify every layer)
Rule of thumb: If a system isn't part of the core loop, it should require less than 1 minute of learning. If it requires more, either it should be a core pillar or it needs simplification.
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.