/game:upgrade-tree-designfrom Game Design and Build
Design, price and judge an incremental game's upgrade tree, skill tree or meta-progression from bot and human playtests, not from guesses. It swaps the shipped tree for a dev-only hub-and-spoke diagnostic tree over every real upgradeable stat, lets bots with different buy policies play the real game headless, calibrates one price curve per chapter, measures each upgrade's worth by leave-one-out, and writes balance.json, the data each real tree is built from. It also covers strategy advocates, fun-band sweeps, a measured buy order, dead-node audits, spend gates, upgrade cues and human playtests. Use it whenever someone wants to balance, tune, price or playtest a tech tree, upgrade path, shop or currency economy, or asks which upgrades matter, what the best buy order is, whether prices or the buy order make players stall at a boss, why they have currency but nothing to buy, or whether an upgrade is felt. For a boss stall with no upgrade or economy cause, use bot-balance-loop.
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.
An upgrade tree that is priced by hand drifts into walls, dead nodes and one dominant path, and nobody can say which upgrade matters. This method replaces the shipped tree, in a dev-only mode, with the simplest tree that still touches every real upgrade, and lets bots with different priorities play the real game. A report turns their traces into balance.json, and the designer builds each real tree from it, then checks the result with human playtests. It works because the diagnostic tree removes every choice except "which stat next", so the time a bot loses without a stat is that stat's worth.
Terms: the diag tree (diagnostic tree) is the dev-only tree, and diag mode is the game running with it. A chapter is a section of the game that ends with a major boss (a level, zone, biome or act). A class is any character, vehicle or loadout with its own upgrades. A policy is a bot's buy rule.
The shape of the diagnostic tree is deliberate:
Rules: game:game-balance-auditor holds the rules for progression and reward balance; this skill is the Godot method to measure against them.
bot-balance-loop).bot-balance-loop.balance-model-data.Check each one first. Report a missing one as a blocker.
value x level into named stats, and 1 function builds a run's stats from the owned levels. The diagnostic tree hooks in there.--delta-smoothing disable beside --fixed-fps 60; else the frame delta follows the wall clock.Work in phases. Each phase ends with a check. The game side, the bot and the report can run in parallel once the contract exists.
references/contract-template.md: the data file, the runtime API, the versioned trace schema (diag-trace/1), the wall probe schema (wall-probe/1) and the policy file. Check: the game side, the bot and the report each name only fields the contract defines.price block. A runtime holds levels, the tier rule, closed spokes, the price, rarest-first spend, its own save and the trace writer. Add only 2 hooks to shared files: the stat pipeline reads diag levels in diag mode, and the shipped shop refuses buys in diag mode. Check: a test proves that diag mode off gives the shipped stats exactly, computed from live data, not from pinned numbers.base from the first chapter, then each stage multiplier from the chapter where that class arrives. Each try resumes from the chapter-start snapshot and stops when the next chapter opens. Run 5 tries at once (for example the value x 1/9, 1/3, 1, 3, 9), then 4 inside the bracket. Cut a try at a run or time cap, and mark it invalid on any script error line. Check: each chapter is OK (within about 15 % of its target minutes), FAST or WALL. WALL means a fight gates the pace, which is a finding for the designer, not a price to force. Sweep the growth factor 1 value at a time after that.scripts/make_policies.py. Check: every trace exists, every log has 0 script errors, and the baseline seed spread is known.scripts/report.py on the sweep root with --json, the wall files and the targets. It writes report.md, report.html and balance.json (schema in references/balance-json.md). If your traces name the group or the chapter field differently, add --group-key and --chapter-key. If you rebuild the report for your own trace format, build it from small fixture traces with unit tests first, then run it on 1 real trace.
Check: the report has no WARNING about traces with different stop rules, or you report 1 sweep at a time.notes line.Use this when you must learn which play style or buy order is best, with each style pushed to its best. A fixed balanced bot buys in data order, so its order is an input, not a result; advocates make the order a result.
Use this when global tuning (price base, caps, curves, capstone spikes, stage multipliers) must be chosen by a stated fun target with a panel of bot player types.
A difference of 2 pairs in 30 is inside seed noise. A chapter that every config finishes too fast is a design finding, not a tuning fault. If price alone cannot set a chapter's pace, stop the price grid and report it.
Use this when you want the game itself, not a person or a weight list, to say which upgrade is worth most at each shop.
Read saturated rows as ties: when 1 level kills the boss, every candidate scores the same. Buys can come in blocks as a tool artifact; say so when you read the order. Plan the wall time for the real slot queue, not for 1 free core.
Use this to judge a group (a wing) of nodes: what each node really changes, which are dead, where cost walls are, and whether the player can feel each node.
Use this when players report currency with nothing to buy, or a new node that maxes out at once.
Put gate nodes on the main currency. A gate in a rare currency can hold back a whole branch of another currency.
Use this when each upgrade must show on screen and in sound, and later classes must reuse the cues.
Use this when people must play a build to answer design questions, and their play must be compared with the bots.
Use this when a design question or a large redesign request needs evidence and options before the owner decides.
Number tuning, behaviour-neutral bug fixes and perf fixes can go ahead. A new or removed mechanic, verb, behaviour or cue is a proposal, not a build. A help or coach text that changes how players fight counts as gameplay.
The ask-and-wait protocol for a team of agents is in fleet-game-dev.
| Symptom | Cause | Fix |
|---|---|---|
| Every theme bought the same first spokes | A level / weight score ties at level 0 | Score (level + 1) / weight; break a tie by the higher weight |
| No buy for hundreds of runs | Weight 0 on more than about 20 % of spokes; the cap share can never be met | Keep weights above 0, or report the deadlock as a finding of the cap rule |
| A spoke takes levels with no effect | A game cap holds the derived stat | Close a spoke when 1 more level changes no derived stat; count it as at the cap; log the closing level |
| About 100 levels sold in 1 shop | 1 price curve plus an income jump at a class unlock | A stage multiplier per unlocked class, fitted per chapter |
| A clean trace, but no boss ever rose | A tool script failed to compile; the trace keys still filled | The smoke check proves key events; a SCRIPT ERROR line makes a try invalid |
| Every calibration try was invalid | A tool script did not compile | The same marker; fix the compile before more tries |
| A chapter ends too fast at every price | A metric is missing (for example shop spend) | Stop and add the metric before you go on |
| Replays of 1 snapshot drift | Frame delta smoothing, or bot state not in the snapshot | --delta-smoothing disable; save the bot's own state (try count, skill seed) with the snapshot |
| Boss fights still vary after both fixes | Cause not confirmed; threads timed by machine load are a suspect | 3 seeds per policy, 3 replays per probe with the median, no claim smaller than the seed spread |
| A finalist mean mixed 2 data versions | A peer change regenerated the data file between rounds | Store the data file each round played; compare it; score old and new seeds apart |
| A fast policy looked best | Its trace had a run cap, so a different stop rule | Rank only traces with the same stop rule; the report warns |
| A last-chapter rule counted an old kill | The kill was before the chapter start | Count only kills after the chapter begins |
Run numbers became 12.0, seeds printed 0.0 | Godot's JSON parser returns floats | Cast counts to integers at load, in the game and in the report |
| A new sweep wrote into an old trace folder | A saved path beat the explicit argument | An explicit argument or environment value always wins |
| Buys before the first run were lost | A restarted bot had no current run row | On load, make the last finished run row current again |
| Files kept changing after a test | Signal handlers outlived diag mode | Check active at the top of every handler |
| Once-only events fired every run | A beaten mini boss came back each run | Gate the event on the game's own first-kill flag |
| The report test could not import its module | The test dir was not on the import path | Add the test dir to sys.path; delete __pycache__ before review |
| The contract and a test disagreed on valid stats | The rule was not written | Ask; write the rule into the contract |
| A "wall" in the diag tree | It came from the diag tree only | Check the encounter on the shipped tree before you report a game fact |
| 2 events always fell in the same run | One is the reward of the other | Check that before you claim a cause |
| A skill wall was really a resource wall | The bot always ran out of fuel or health first | Read the failure reasons before you exclude a boss or plan a coach |
| All panel playthroughs failed | zsh did not split a list variable | Use an array or an explicit list; delete the failed rows |
| A wait loop ended at once | Its process pattern matched nothing | Test the pattern with pgrep -fl first |
A pkill -f killed your own monitor | The pattern matched the monitor command | A narrow pattern such as tune[.]py --configs |
| A task notice came, but the play still ran | The notice came from a short wrapper | Wait for the watcher of the real job |
| Progress showed 0 for a long time | The log printed in job order | Count finished result files |
| The notes held wrong claims | Claims written from memory | Recompute each claim from the result data before you report |
| A pinned test failed after a cap change | The test asserted the old value | Update pinned tests with the generator change |
| A sandboxed agent could not play | It could not write the save folder | Give bot runs to an agent that can write the save folder |
| Probes took close to 1 hour per seed | Shared slots, high load | Plan wall time for the slot queue |
| A lean build failed | The wing gave power and income but none of the run resource (for example fuel) | Report the cause; cost cuts alone do not fix it |
| 2 captures were the same | The upgrade changed only hidden numbers | Report a feedback finding |
| A capstone did nothing of its own | No own effect in code | Report it |
| 2 audit runs corrupted each other | They shared 1 save slot | A slot argument per run |
| Audit runs ended in seconds after a merge | A stale class cache | Import the project first |
| A cue layout cost too much in 1 frame | All cues were timed together | Time only the new part |
| A rare-currency gate blocked a whole branch | The gate node was in another currency | Move gate nodes to the main currency |
| A coach was planned for an unwinnable fight | The bot lost every try with an empty resource | Measure first; a coach cannot teach a fight the resource always ends |
| Nodes counted only in the model | They were in no tree | Audit model rows against tree rows |
| A search returned nothing | The search tool did not support the pattern | Test a search on a known hit before you trust an empty list |
| Tester traces showed "seed 0" and "skill strong" | No human flag in the trace | Add the flag |
| A tester build ran in script mode | It started from a secondary working copy | Run the play command from the main checkout |
| The telemetry held 1.7 s of test data | The log was not from real play | Check the log; use the video |
| The report grouped sessions, not testers | Logs were grouped by file | Group by tester folder |
| Pass marks had no telemetry event | The question was not observable | An observer check on the same sheet |
| Interview asked about missing systems | The questions were generic | Ask only about this build |
| The model paid strips, the game paid areas | The model and the game differed | Note the gap for the model owner |
| A redesign reversed an earlier decision | Nobody checked the decision history | Name the decision with its date; offer fixes |
| An answer box held a worker report | Pasted text looked like direction | Only the owner's own words are direction |
price block; the data export runs it; after a cull it writes the culled tree as active and the full tree beside it.references/contract-template.md; its own save and state file.--diag-policy, a snapshot per chapter start, per boss try, per shop.scripts/make_policies.py writes the set.scripts/report.py with fixtures and tests; writes report.md, report.html, balance.json.wall.json.references/contract-template.md: the contract to fill in (method step 3).references/balance-json.md: the balance.json and wall.json schemas and every definition (steps 10 and 11).scripts/report.py: the report and balance.json writer, standard library only. Tests: scripts/test_report.py with scripts/fixtures/. Run python3 -I -m unittest discover -s scripts -p 'test_*.py'.scripts/make_policies.py: the policy set generator (step 7).bot-balance-loop: builds the headless bot, its determinism and the wall diagnosis that this skill drives.balance-model-data: owns the scripted balance model, its export and its parity with the game.headless-godot-runs: tool script rules, save isolation and run cleanup for every bot run here.visual-verification: windowed captures for the felt-effect checks and cue captures.godot-perf: frame budgets, shader warm-up and hitch maps for upgrade cues.release-and-store: the exports that a human playtest build uses.feature-seams-and-saves: the data seams and dev-mode flags that keep diag mode out of the shipped game.fleet-game-dev: long background waits, parallel units, and the ask-and-wait protocol for owner decisions.references/balance-json.md (opens in a new tab)references/contract-template.md (opens in a new tab)scripts/fixtures/balanced-s1.json (opens in a new tab)scripts/fixtures/balanced-s2.json (opens in a new tab)scripts/fixtures/fight.json (opens in a new tab)scripts/fixtures/no-speed.json (opens in a new tab)scripts/fixtures/targets.json (opens in a new tab)scripts/fixtures/wall-sample.json (opens in a new tab)scripts/make_policies.py (opens in a new tab)scripts/report.py (opens in a new tab)scripts/test_report.py (opens in a new tab)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./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".