/game:feature-seams-and-savesfrom Game Design and Build
Add 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".
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; scripts run unread.
A game with persistent progress grows by adding content to shared code, and each addition can change old behaviour or break old saves without a visible error. This skill adds every new thing through a seam: a small, tested hook in shared code or data whose default keeps today's behaviour exactly. Big changes go behind a data flag that is off until they are ready, and every save format change ships with a migration that a real old save proves. It works because each step has a check that can fail: the old rows, the flag-off suite and the old save fixture all must give the same result as before.
Rules: game:game-systems-reviewer holds the rules for save/load and data-driven systems; this skill is the Godot method to apply them.
safe-refactor-and-review for the identity proof.This is the main procedure. The later sections are the same idea at other scales.
class_name. A global class name can clash with a sibling unit that lands the same day.Use this when content needs a new data field, or 2 or more units plan the same edit in 1 shared script.
Tests for a seam:
Use this for a large change: a new game mode, a new render path, a design option. It must not change the shipped game until it is ready. This skill owns the mode rollout: the flag, the stages, the flag-on tests and the turn-on gate. safe-refactor-and-review owns only the identity proof (hash or cmp compares, paired runs) that Stage 2 step 3 calls for.
Stage 1: prototype.
Stage 2: build behind a flag.
safe-refactor-and-review for this compare.Mode fields on content rows. When 2 modes share data, give each content row a mode field (for example single, world, both). Runtime systems, hint lists, index pages and tests filter by that field, not by a pinned list of ids, so a new row works with no list edit. Write 1 test per mode. The test sets the mode flag in setup and restores it in teardown.
Prove the filter: disable it, and see the mode test fail.
Use this when a save must survive a crash, a failed write, a corrupt or edited file and bad settings values.
JSON instance and check its error code. The static parse prints an engine error on bad input.typeof of each payload key. Turn a wrong type or a missing field into the default (for example a number-or-zero helper). Clamp every settings value to its range.var_to_str and str_to_var on save data, because they encode and decode objects.Use this when a feature changes the save format or a settings key, and old saves must load.
user:// (for example in a sandbox), list those failures by name, apart from real ones.Use this when the game needs quality presets, a first-launch Auto pick and a frame cap.
godot-perf).Use this when a tool script writes input maps or other settings into project.godot.
scripts/check_idempotent.py does steps 4 and 5.| Symptom | Cause | Fix |
|---|---|---|
| The variant's special verb never fires in the encounter check. | No caller wires the verb. | Record the table as "before". Wire the verb. Run "after". |
| A test override fails after a seam change. | A new argument on a shared function; the override keeps the old signature. | Ask the owner. Update the override. |
| A rare result jump appears with the new variant. | A balance change merged by someone else. | Run the base type on the same build and the same seeds. |
| An upgrade node does nothing visible. | The node changes a number only. | Build a felt effect for every node. |
get() returns null for a constant. | Constants are not properties. | Read the constant from the script, or expose a var. |
| A path follow drifts over time. | One large move per tick (for example 5 cm). | Use sub-steps. |
| A state check fails at random. | The check runs during a recovery window. | Wait for the idle state first. |
| 2 entities close the same window twice. | Each has its own local copy of the rule. | 1 shared seam that emits once per window. |
| A lookup crashes on a new id. | The id has no row. | Return an empty dictionary; fall back to the default. |
| A shared test breaks when a key is added. | The test copied a real row. | Remove the key from the test's copy only. |
| New art renders wrong in one view only. | A second render path ignores the new frame count or cell size. | Read frames and cell size from the row in every path. |
| Old rows fail validation. | A test requires the new field on all rows. | Require it only on the new rows. |
| A removed table still has references. | Old code names it in several places. | Run a parse check of all scripts; remove every reference. |
| A proto merge conflicts after upstream edits. | The proto edits the upstream file by hand. | A generator script applies the proto edits to any upstream copy. |
| The prototype costs tens of ms more than expected. | A debug hash runs every frame. | Put each debug cost behind an environment flag. |
| Mode tests break on each data change. | Tests use fixed distances or positions. | Read positions from the map API. |
| Positions are off by a constant. | 2 coordinate systems with their own origins. | Give the origin 1 owner. |
| Content of one mode shows in the other. | A hint or index list does not check the mode. | Filter by the row mode field. |
| A design doc names missing captures. | The report came before the captures. | Take the captures before the report. |
| An edited save loads without warning. | The encrypted file format has no integrity check against a key holder. | Sign with HMAC; compare in constant time. |
| A save decodes an object. | str_to_var decodes objects. | Save plain dictionaries only. |
| A load crashes on a missing number. | float(null) fails. | A number-or-zero helper. |
| A bad file prints an engine error. | The static JSON parse reports errors. | Use a JSON instance and check its error. |
| A test accepts a wrong type. | It compares with == true. | Check typeof first. |
| A tamper test does not change the file. | The test edits the wrong number form. | Match the exact serialized text, for example 2.0. |
| A new reset copy becomes the oldest and is pruned. | It reused a deleted stamp in the same second. | Each new stamp is above the newest kept stamp. |
| Save tests fail in a sandbox. | The sandbox cannot write user://. | Use a disposable fixture under the test folder; list sandbox failures by name. |
| Old UI tests fail after a settings change. | They check the replaced boolean row. | Get approval, then update the tests of the replaced row. |
| Auto picks again on every launch. | The first-launch pick is not saved. | Save in the no-file branch. |
| UI tests break when a row is added. | They press "down" a fixed number of times. | Loop over the row count. |
| The editor rewrites the input map after the tool runs. | The tool saved typed arrays. | Convert events to plain arrays. |
scripts/check_idempotent.py.safe-refactor-and-review: the identity proof for the flag-off path, and the search for every reader of a key.godot-testing: the test loop, and how to prove that a seam test can fail.headless-godot-runs: scratch projects for engine probes, and tools that stay off the real save.godot-perf: the A/B frame-cost measure for a variant, a mode or a graphics option.bot-balance-loop: the encounter checks that compare a variant with the base type.balance-model-data: the model term for a new row key and the per-mode model profile.upgrade-tree-design: felt effects for each upgrade node of a new variant.pixel-art-pipeline: the real model that replaces the placeholder.visual-verification: captures of the variant and of proto options for a pick.release-and-store: save isolation per edition and input defaults for pads.fleet-game-dev: how to ask for seams, land seam commits and handle sandbox write limits.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"./core-loopUse 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./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./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".