Turn Claude Code into a full game dev studio — 49 AI agents, 72 workflow skills, and a complete coordination system mirroring real studio hierarchy.
Skill Test Spec: /balance-check
Skill Summary
/balance-check [system-name|path-to-data-file] identifies the balance domain
(combat, economy, progression, loot, or a data file given directly), reads the
domain's data files from assets/data/ and design/balance/, then reads the
intended values — from design/registry/entities.yaml first (its constants: and
formulas: blocks), and from the system's GDD in design/gdd/ for anything the
registry does not supply. It compares every data value with its target — a
registry constant's value, a registry formula's output_range, or the GDD's
range — then runs domain-specific checks, and prints a report with
Data Sources Analyzed, a Health Summary, an Outliers Detected table
(Item/Value | Expected Range | Actual | Issue), Degenerate Strategies, Progression
Analysis, a Priority-ranked Recommendations table and Values That Need Attention.
Inputs it cannot find make the affected section NOT ASSESSED — NO DATA, naming
the missing source and /design-system, never an estimate; a value with no
target is listed as no stated range — not judged. After the report, an
AskUserQuestion offers [A] fix now, [B] save the report to
design/balance/balance-check-[system]-[date].md, [C] stop; it writes only on
[B]. No director gates are invoked. Health Summary, first match wins: CRITICAL
ISSUES, CONCERNS, NOT ASSESSED, HEALTHY.
Static Assertions (Structural)
Checked against the SKILL.md by /skill-test spec — no fixture needed.
- Has required frontmatter fields:
name,description,argument-hint,user-invocable,allowed-tools - Has ≥2 phase headings
- Contains verdict keywords: HEALTHY, CONCERNS, CRITICAL ISSUES, NOT ASSESSED
- Has ask-before-write language: the save is an
AskUserQuestionoption that names its target path, and the Write happens only when that option is chosen - Has a next-step handoff (what to do after findings are reviewed)
Director Gate Checks
None. Balance check is an analysis skill; no gates are invoked in any review mode.
Fixture Defaults
Every case's project.yaml sets modes.rigor: minimal and
modes.automation: collaborative, with no project.local.yaml, unless its own
Fixture says otherwise. Rules: studio-tests/CLAUDE.md §
Fixture defaults.
Test Cases
Case 1: Happy Path — All balance values within their intended ranges
Fixture:
assets/data/combat-balance.jsonexists with 6 stat valuesdesign/registry/entities.yamlhas no entries (the shipped empty stub)design/gdd/combat-system.mdgives an expected range for all 6 stats- All 6 values fall inside their ranges; no degenerate strategy exists
Input: /balance-check combat
Expected behavior:
- Skill identifies the Combat domain from the argument
- Skill reads
assets/data/combat-balance.json(and any combat files indesign/balance/) - Registry has no entries, so the skill uses the GDD alone for the intended ranges
- Each of the 6 values is compared with its GDD range and none falls outside; the combat checks find no dominant option
- Report lists
assets/data/combat-balance.jsonanddesign/gdd/combat-system.mdunder Data Sources Analyzed; the Outliers Detected table has no rows - Health Summary is HEALTHY
- Phase 6
AskUserQuestionoffers [A] / [B] / [C]; nothing is written before the user chooses
Assertions:
- Data Sources Analyzed lists every file read, including the data file and the GDD
- The empty registry is skipped and the GDD supplies the intended ranges
- The Outliers Detected table has no rows
- Health Summary is HEALTHY
- No file is written before the user picks option [B]
Case 2: Outlier — Player damage far above its intended range
Fixture:
assets/data/combat-balance.jsonhasplayer_damage_base: 140design/gdd/combat-system.mdgivesplayer_damage_basean expected range of 90–110- All other stats are within range
Input: /balance-check combat
Expected behavior:
- Skill reads the data file and the GDD range for
player_damage_base, and compares each value with its range - The Outliers Detected table lists
player_damage_basewith Expected Range 90–110, Actual 140 and an Issue description - The Recommendations table has a row for it with a Priority, a Suggested Fix and an Impact
- Values That Need Attention gives a suggested adjustment with rationale
- Health Summary is CONCERNS — one outlier a tuning pass can fix, with no degenerate strategy, stalled progression or sinkless loop
- If the user picks [A] and changes
player_damage_base, which the combat GDD defines, the skill reminds them to run/propagate-design-changeon that GDD before committing
Assertions:
-
player_damage_baseappears in the Outliers Detected table with Expected Range 90–110 and Actual 140 - The Recommendations table ranks the fix with a Priority
- Health Summary is CONCERNS — not HEALTHY, and not CRITICAL ISSUES without a finding of the critical kind
- On [A], a fix to a GDD-defined value is followed by the
/propagate-design-changereminder
Case 3: No Design Targets — Data exists but no GDD or registry defines the ranges
Fixture:
assets/data/economy-balance.yamlexists with 10 plain stat values (prices and rates, no faucet/sink loop the data alone could show)design/registry/entities.yamlhas no entries- No GDD in
design/gdd/covers the economy
Input: /balance-check economy
Expected behavior:
- Skill records its inputs as FOUND / ABSENT: the data file is FOUND; the registry entries and the economy GDD are ABSENT
- Skill reads the data file and lists it under Data Sources Analyzed
- The sections that need intended values (Outliers Detected, and Progression Analysis where it needs a target) are marked
NOT ASSESSED — NO DATA, naming the missing economy GDD and the empty registry, and naming/design-systemas the skill that writes them - No expected range is invented or inferred from the data itself
- Health Summary is NOT ASSESSED — the report says the values could not be judged, not that they are fine
Assertions:
- Skill does not fabricate expected ranges when neither the registry nor a GDD supplies them
- The affected sections are marked
NOT ASSESSED — NO DATArather than shown as empty tables - Output names the missing design source (economy GDD in
design/gdd/, emptydesign/registry/entities.yaml) and/design-system - Health Summary is NOT ASSESSED — not HEALTHY, and not CONCERNS, since nothing was found wrong
Case 4: Registry First — The registry value overrides a contradicting GDD
Fixture:
design/registry/entities.yamlconstants:listsplayer_damage_basewithvalue: 100,unit: damage,source: design/gdd/combat-system.md(a registry constant carries a value, not a range)design/gdd/combat-system.mdstill saysplayer_damage_baserange 100–130 (stale)assets/data/combat-balance.jsonhasplayer_damage_base: 125
Input: /balance-check combat
Expected behavior:
- Skill greps
design/registry/entities.yaml(^ - name:with context) before reading the GDD - The target for
player_damage_baseis the registry constant'svalue, 100, not the GDD's range - 125 differs from the registry value 100, so
player_damage_baseappears in the Outliers Detected table with Expected Range 100 (the registry value) and Actual 125 — although it sits inside the stale GDD range - The GDD is still read for any value the registry does not list
- Data Sources Analyzed lists the registry, the GDD and the data file
Assertions:
- The registry is read before the GDD
-
player_damage_baseis judged against the registry value (100), not the GDD range (100–130) -
player_damage_base: 125is reported as an outlier - Data Sources Analyzed includes
design/registry/entities.yaml
Case 5: No Argument, Gate Compliance and the Save Path
Fixture:
- Combat data, registry and GDD exist; 1 stat is slightly outside its range
project.yaml:modes.review_mode: fullmodes.automationresolves tocollaborative
Input: /balance-check (no argument)
Expected behavior:
- Skill asks the user which system to check; user answers "combat"
- Skill reads data and design targets and prints the report
- No director gate is invoked
- After the report,
AskUserQuestionoffers [A] fix now, [B] save todesign/balance/balance-check-combat-[date].md, [C] stop - On [B]: the report is written to
design/balance/balance-check-combat-[YYYY-MM-DD].md(directory created if needed), the write is confirmed, and the skill ends with "Re-run/balance-checkafter fixes to verify." - On [C]: nothing is written; open issues are summarized and the same re-run line ends the output
Assertions:
- With no argument, the skill asks which system to check before reading data
- No director gate is invoked in any review mode
- The report is presented before the save option, and the save option names
design/balance/balance-check-[system]-[date].md - Option [B] writes to that path with the date in YYYY-MM-DD form; option [C] writes nothing
- Both [B] and [C] end with "Re-run
/balance-checkafter fixes to verify."
Case 6: Orphan Stat — A data value no GDD or registry defines
Fixture:
assets/data/combat-balance.jsonholds 6 stats pluslegacy_armor_mult: 1.5design/registry/entities.yamlhas no entriesdesign/gdd/combat-system.mdgives a range for the 6 stats and nothing forlegacy_armor_mult- The 6 stats are inside their ranges; no degenerate strategy exists
Input: /balance-check combat
Expected behavior:
- Every value is compared with its target; the 6 stats are in range
- No target exists for
legacy_armor_mult, so it is listed under Values That Need Attention asno stated range — not judged - It is not an Outliers Detected row, and it is not dropped from the report
- Health Summary is NOT ASSESSED, naming
legacy_armor_multas the value that could not be judged
Assertions:
-
legacy_armor_multis reported asno stated range — not judged, apart from any outlier - The orphan stat is not skipped silently and not judged against a range inferred from the data
- Health Summary is NOT ASSESSED, not HEALTHY, naming the unjudged value
Protocol Compliance
- Reads the domain's data files (Phase 2) and the registry then GDD (Phase 3) before analysis
- Compares every data value with its target (registry constant
value, registry formulaoutput_range, or GDD range); a value outside it is an Outliers Detected row, a value with none isno stated range — not judged - Outliers Detected table uses the columns Item/Value, Expected Range, Actual, Issue; Recommendations uses Priority, Issue, Suggested Fix, Impact
- A section whose inputs are absent is
NOT ASSESSED — NO DATA, never estimated, and names the missing source and/design-system - Writes only when the user picks the save option, and only to
design/balance/balance-check-[system]-[date].md - No director gates are invoked
- Health Summary, first match: CRITICAL ISSUES, CONCERNS, NOT ASSESSED, HEALTHY — HEALTHY only when every value was judged against a stated target
Coverage Notes
- The case where every input is absent (no data files, no registry entries, no
GDD) is not tested separately; the skill then stops and reports
NOT ASSESSED — NO DATAas the whole verdict, naming what was missing and which skill produces it. - CRITICAL ISSUES (a degenerate strategy, a stalled progression, a loop with no sink) is not given its own case; Case 2 pins that an outlier alone is CONCERNS.
- A data-file path argument (Phase 1 "File path given") is not tested; the domain is then inferred from the file's content.