/game:core-loopfrom Game Design and Build
Use when designing or diagramming a game's core loop — applies Stone Librande's "flowchart first" to draw the moment-to-moment, session and long-term loops, each as player action → system response → feedback → next decision, as Mermaid flowcharts, with every feedback edge labeled by the kind of fun it serves (LeBlanc's eight kinds), and checks that the inner loops (not the long-term loop) produce every target kind. Trigger on: "core loop", "gameplay loop", "draw the loop", "moment-to-moment", "session loop", "long-term loop", "retention loop", or the loop step of the game-design pipeline. Runs headless: never asks, infers and states assumptions.
Ships in Game Design and Build. 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.
You draw the game as loops before anything else. A loop that closes is a game; a loop with a gap is a bug in the design.
Read references/loops.md before you start.
A concept (title and one-liner, or a brief) and, ideally, the fun-targeting result: the blend, the 2–3 target kinds of fun (the first is the primary) and the mechanics. Everything else is optional.
flowchart LR.A = player action (rectangle), for example A1["Place a tile"]S = system response (rectangle)F = feedback (rectangle)D = next decision (diamond), for example D1{"Save or spend?"}A, S, F, D. The last decision leads back to an action, so the loop closes.F node for each target kind that loop produces: F1, F2, F3, at most 3 per loop. The same system response fans out to each F, and each F leads to the same decision. Put the primary on F1 of the moment-to-moment loop. The long-term loop keeps one F node.A1, S1, F1, D1), because each block is a separate graph.F node has a label: exactly one kind of fun name and nothing else, for example F1 -->|Challenge| D1. Use only the eight names: Sensation, Fantasy, Narrative, Challenge, Fellowship, Discovery, Expression, Submission.Write exactly these sections, in this order, with these headings:
## Assumptions
- <one line per inferred fact; "None" if nothing was inferred>
## Moment-to-moment loop
<one sentence: what the player does every few seconds>
```mermaid
flowchart LR
A1["<player action>"] --> S1["<system response>"]
S1 --> F1["<feedback that produces the primary kind>"]
S1 --> F2["<feedback that produces a second target kind>"]
S1 --> F3["<feedback that produces a third target kind>"]
F1 -->|<Primary>| D1{"<next decision>"}
F2 -->|<Kind>| D1
F3 -->|<Kind>| D1
D1 --> A1
```
## Session loop
<one sentence>
```mermaid
flowchart LR
A1["<session goal action>"] --> S1["<how the game resolves it>"]
S1 --> F1["<reward that produces a target kind>"]
S1 --> F2["<reward that produces another target kind>"]
F1 -->|<Kind>| D1{"<end or extend the sitting?>"}
F2 -->|<Kind>| D1
D1 --> A1
```
## Long-term loop
<one sentence>
```mermaid
flowchart LR
A1["<return action>"] --> S1["<what carried over>"]
S1 --> F1["<feedback>"]
F1 -->|<Kind>| D1{"<why come back?>"}
D1 --> A1
```
Draw only the `F` nodes a loop needs: 1 to 3 in the moment-to-moment and session loops, each with a
different kind, and exactly 1 in the long-term loop.
## Nesting
- Moment-to-moment → session: <what the inner loop produces for the outer one>
- Session → long-term: <what carries over>
## Feedback-to-fun map
| Loop | Feedback | Kind of fun | Target? |
|---|---|---|---|
| Moment-to-moment | <feedback> | <Kind> | yes / no |
## Gaps
- <one line per gap; "None" if the loops close and every feedback serves a target>
**Fold-in check:** primary <Kind> on a moment-to-moment edge: yes. Every target kind on a moment-to-moment or session edge: yes (<Kind>: moment-to-moment F1; <Kind>: moment-to-moment F2; <Kind>: session F1).
The self-check is the last line of the output. It says yes twice, because you redesign the loops until both parts hold. The parentheses list every target kind once, in target order, with the loop and the F node whose edge carries it.
Hand the loops to design-diagrams and game-brief. For critique, send the design to game:game-studio-cpo.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mattmakes/skill-marketplace --plugin game30 skills in this plugin
/art-directionUse when a game concept needs its visual direction set: a style sheet (palette, shape language, lighting, texture), a shot list tied to the target fun, and image-generation prompts for a key art, hero and gameplay-mock placeholder. Trigger on: "art direction", "style sheet", "what should this look like", "shot list", or when `game-brief` needs its art section. Every image prompt carries fixed content-boundary negatives and never names a living artist./balance-model-dataKeep a game's numbers in a scripted balance model (for example Python modules) that checks design targets and exports the JSON the Godot game loads, and change that data without drift. It covers the edit-export-diff loop, FAIL-key baselines, deterministic exports, parity fixtures between the model and GDScript, what-if and lever searches inside the model, and design docs whose tables must match the model. Use it whenever someone wants to change a price, a yield, a pacing curve, a content table or an upgrade row that a script exports; asks why the model and the game disagree, why a parity test fails, or why a chapter runs too long; wants to tune or fit levers before touching game data; or writes a design doc full of numbers, even if nobody says "balance model" or "source of truth"./bot-balance-loopTune bosses, encounters and game rules with scripted bots that play the real Godot game headless, then compare the measured tables against written target bands. The loop writes the bands first, builds a fight tool with several bot steerings (coached, tight, wide, wait, ram), runs fixed seeds with repeatable flags, builds a table of first-try wins, mean tries, resource left and fight length, names each odd result BOT or GAME, and changes 1 lever at a time. It also covers model start states, rule probes, a shared pipeline, wall triage by snapshot replay, a full-playthrough bot, coach text from winning fights and telegraph-to-hit tests. Use it whenever someone wants to balance or retune a boss, check a kill rate or a difficulty band, find out why players or bots stall at an encounter, measure a rule change with encounter bots or a full-playthrough bot, or run a bot playthrough of the whole game, even if nobody says "bot table" or "target band"./design-diagramsUse when a game design needs the right diagram, not more prose: an engine loop, a whole-game storyboard, a time-and-space map, a faction relationship chart, an axes-first matrix, or a module map. Trigger on: "what diagram should I use", "map out the loop", "chart the factions", "storyboard the game", or when `core-loop` or `game-brief` needs a diagram picked and drawn. Picks the diagram from Librande's vocabulary, applies the "wrong metaphor" check, and emits a Mermaid or JSON/SVG recipe./feature-seams-and-savesAdd new content, variants and whole modes to a Godot game through data seams and off-by-default flags, and keep player saves and settings safe across versions. It covers a new playable variant (vehicle, class, character) or encounter batch on a shared base class, an optional row key whose default keeps old rows exact, a prototype branch plus a flagged landing for a big mode, mode fields on content rows, atomic signed saves with backups, save-version migration tested with a real old save, graphics presets with a first-launch Auto pick, and setup tools that give the same project file on a second run. Use it whenever someone wants to add a character, enemy, boss, level type, game mode or data field, bump the save format, rename a settings key, harden saves against corruption or edits, or asks "will old saves still load?" or "how do I add this without breaking the base game?", even if nobody says "seam" or "migration"./fleet-game-devHabits that let many agent sessions build one Godot game at the same time without breaking each other: one git worktree per plan unit, a fresh import, a baseline, small committed steps, merges of a moving base, a finish gate, and a clean land. It also covers the shared-machine rules (a slot runner for headless Godot, mkdir locks for the window, the timing machine and the main checkout), scope questions, dependency waits, compaction handoffs, long runs, the steward who lands branches, the balance lead, and the owner who decides gameplay changes. Use it whenever a fleet, an orchestrator, a worker, a steward or several parallel agents work on a game repo, or someone asks how to split a feature into parallel units, why a worktree fails its tests after a merge, how to land a branch safely, how to stop agents from overloading one machine, or how a worker should wait or ask, even if nobody says "fleet".