/game:bot-balance-loopfrom Game Design and Build
Tune 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".
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 designer can not feel 20 seeds of a boss fight, and a balance model can not see what the real game does. This skill makes scripted bots play the real encounter headless, over fixed seeds and several player types, and prints a table that you compare with target bands written before the first run. You change 1 lever at a time and measure again on the same seeds. It works because the table comes from the real game code, the bands are fixed before the numbers exist, and every odd number is traced to a cause in the bot or in the game before any data moves.
Terms used in this skill:
godot --headless --import in Godot 4.3 and later, or --editor --quit before) that refreshes the class cache and resources after a merge.Rules: game:game-balance-auditor holds the rules for balance, economies and difficulty curves; this skill is the Godot method to measure against them.
upgrade-tree-design.balance-model-data.visual-verification; a headless run draws nothing.SceneTree script. Give the copy its own role name, save tag and log folder, so parallel copies never share a save. Add options for the start state, seed, steering, try count, variant and output folder. Load the meeting state (see "Start states from the model"). Print 1 JSON line per try. Check: the tool parses, and a dry call prints 1 valid line.SCRIPT ERROR and parse errors. When a reference table exists, reproduce it exactly first. Check: 0 script errors, and the reference row matches.--fixed-fps 60 --delta-smoothing disable, through the slot runner, with a time alarm. Split long seed sets into chunks that end inside your tool time limit. Check: every log has the full row count; a cut run has fewer rows.scripts/fight_table.py does this for the log format it documents. Check: the seed and try counts in the table equal the counts you ran.git diff on the data source is empty between sweeps.A fight measured at a hand-set level map tells you nothing about a real player. Start every measure from a state a real player can reach.
Mark a state where the run ends before the encounter rises as "no fight", apart from a loss.
A table is only as good as its repeat. Make 2 runs of 1 seed give 1 result before you trust any comparison.
--fixed-fps 60 and --delta-smoothing disable to every headless Godot call of every bot tool. Godot smooths the frame delta from the wall clock even at a fixed frame rate. Without the second flag, 1 save can replay with about 10 points of spread.Use a probe when the question is about 1 rule or effect, not 1 encounter: event counts, live enemies, hits by source, nodes or draw calls.
SceneTree probe, or a wrapper around the autoplay or stress driver. Load game scripts at run time with load(), so the probe does not depend on the global class cache.--headless --fixed-fps 60 under an alarm. Put engine flags before the lone -- and your own flags after it. A --seed= after -- reaches only the script.Headless frame time is not render time. Count nodes and draw calls headless; time rendering in a window run.
When many workers measure many cases (encounter x mode x variant), or many per-unit tools must measure 1 joined branch, give them 1 pipeline so the tables compare.
nice and an alarm.Grep each tool for the fields it logs before the patch names them.
A wall is an encounter where a bot fails try after try. Decide whether the bot, the economy or the encounter is at fault before you change data. Many walls turn out to be bot faults.
upgrade-tree-design); this section owns the replay and the ranking.A full-run bot answers "does the whole game play from a fresh save to the end, and where does a strong player stall?" before a human sees it.
When players stall at a boss, show the move that wins, taken from a winning fight and not from a guess.
A coach can not teach a fight that the resource always ends. Measure first.
A telegraph is the warning shape an attack draws before it hits. A hit outside the telegraph feels unfair, and a bot table can not see it.
These are the faults that cost the most. Read references/pitfalls.md for the full table (about 70 rows) before a long batch or a wall triage.
| Symptom | Cause | Fix |
|---|---|---|
| Replays of 1 save differ by about 10 points | Frame delta smoothing from the wall clock | Add --delta-smoothing disable next to --fixed-fps 60; restart the work from before the missing flag |
| No encounter rises in any run for a whole day | A tool script named a class_name at compile time | Load scripts by path at run time; grep logs for SCRIPT ERROR; a smoke must prove key events |
| A wall of hundreds of runs | A bot fault, for example straight lines where the encounter needs curves | Trace 1 fight before you call it balance |
| Rates are only 0 % or 100 % | A bot that never misses | Count distinct outcomes; add 1 shared seeded skill draw |
| The coached line loses | The bot overshot the guide, or followed another shape than the game drew | Read the coach from game code; add a "follow exactly" steering |
| Parallel runs corrupt each other | Tool copies share 1 save role | 1 save tag per copy and per run |
| A batch mixes 2 rules | An edit to the tool, scene or data during the batch | Stop, edit, restart; merge the base only between batches |
| Runs use the wrong steering or an empty argument | zsh does not split an unquoted variable into words | Use explicit arguments, arrays or bash; print the knob values in each row |
| A lever does nothing | A derived value moves with it, or a per-window cap binds the result | Read how the data derives values and which rule caps the window first |
| The model and the game disagree | The model misses a game rule | The game table decides; report the gap to the model owner |
| Losses are not resource losses | The run timer or a fight cap ended the try | Log the end reason in each row; compute the run end before the batch |
| Old tables mislead | The economy or a rule changed after the measure | Make the meeting states again and re-measure |
SceneTree script per encounter type with options for start state, seed, steering, tries, variant, output folder and trace; 1 JSON line per try.scripts/fight_table.py is a start.trap.upgrade-tree-design: chooses the tree, the buy policies and the fun bands, and gives the upgrade list for wall probes; this skill owns wall diagnosis (snapshot replay and +1 level probes) and measures fights at a state.balance-model-data: owns the model, the row edit, the export and model-to-game parity; this skill gives it game tables.headless-godot-runs: owns the -s tool rules, the flags, process traces and run cleanup.godot-testing: owns the test loop and the proof that a new test can fail.safe-refactor-and-review: proves that a refactor keeps behaviour with a deterministic trace.visual-verification: owns window captures of telegraphs, coach cards and phases.fleet-game-dev: owns the proposal and approval protocol, long waits, the slot runner policy and landing.scripts/fight_table.py: the table and band checker for JSON-lines fight logs (standard library only). Run python3 -I scripts/fight_table.py <logs> --targets bands.json. The bands file maps each encounter id to the bands of its class. The docstring documents the log line and the bands format. It exits 1 when a band or check fails.references/pitfalls.md: the full pitfall table.What SKILL.md sets; muted values are Claude Code's defaults
30 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"./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./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".npx claudepluginhub mattmakes/skill-marketplace --plugin game