game-balance · diff

git:20261114.b353ad0 to git:20261114.81815b5

73 added, 159 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

---
name: game-balance
- description: Analyzes a game system against design principles — economy health metrics, difficulty curve, reward schedules, and progression cost curves. Flags imbalances with severity levels. Use after creating an MVP plan with game-architect. Extract the analysis scope (economy/difficulty/progression/rewards/all) from the user's message.
+ description: Analyzes the economy, difficulty curve, progression costs and reward schedules in docs/mvp-first-draft.md and reports imbalances by severity. Use when the MVP plan exists and you want it checked for balance before building. It takes a scope in `$ARGUMENTS` (economy, difficulty, progression, rewards or all) and falls back to the user's message.
argument-hint: '"economy", "difficulty", "progression", "rewards", or "all" (default: all)'
---
- # Game Balance — Balance Analyzer
+ # Game Balance: Balance Analyzer
## Requires
- `game-economy-design`
- `game-design-fundamentals`
- `skill-progression-trees`
+ - `stripe-game-payments`
+ - `quest-narrative-coherence`
+ - `ui-ux-game`
- Before you apply a skill listed here, check that it is installed. If it is not, name it, give this install line, and stop: `bunx skills add fcsouza/agent-skills --skill <name>`.
+ Before you apply a skill listed here, check that it appears in your available skills list. If it is not, name it, give this install line, and stop: `bunx skills add fcsouza/agent-skills --skill <name>`.
## Prerequisites
- - Requires `docs/mvp-first-draft.md` in the project (run the `game-architect` skill (`/game-architect`) first)
-
- ---
+ - `docs/mvp-first-draft.md` exists in the project (run `/game-architect` first to create it)
- ## Phase 0 — Context Load (silent, mandatory)
+ ## Phase 0: Load context
Input: `$ARGUMENTS`. If it is empty, take it from the user's message.
- Execute in this exact order:
-
- 1. READ `docs/mvp-first-draft.md`
- - If it does NOT exist: output `⛔ Cannot proceed. docs/mvp-first-draft.md not found. Run the game-architect skill (/game-architect) first to generate the MVP plan before running a balance analysis.` and stop.
- 2. Determine scope from the input:
- - If no scope specified or "all": analyze all systems (Phases 1–4)
- - If "economy": run Phase 1 only
- - If "difficulty": run Phase 2 only
- - If "progression": run Phases 2 + 3
- - If "rewards": run Phases 1 + 4
- 3. Load skills based on scope:
- - economy or all → Apply the `game-economy-design` skill
- - difficulty or progression or all → Apply the `game-design-fundamentals` skill
- - progression or all → Apply the `skill-progression-trees` skill
- 4. READ `docs/build-registry.md` if it exists
- 5. READ `docs/quest-registry.md` if it exists (for reward cross-reference in Phase 4)
-
- Extract from `docs/mvp-first-draft.md`:
- - Game genre and core loop description
- - Currency types and economy parameters (faucets, sinks, amounts)
- - Difficulty settings and intended player progression
- - Progression system details (skill trees, level gates, cost tables)
- - Reward tables and schedules
-
- ## Phase 1 — Economy Health Check
-
- *Skip this phase entirely if scope is "difficulty" or "progression".*
-
- Apply the Economy Health Metrics table from `game-economy-design`. For each metric, find the relevant value in `docs/mvp-first-draft.md` (or flag as "not defined"):
-
- | Metric | Target Range | Found in Plan | Status |
- |--------|------------|--------------|--------|
- | Daily currency earn/spend ratio | 0.8–1.2 | [value or "not defined"] | 🟢/🟡/🔴 |
- | Median player currency held | 2–5× avg purchase cost | [value or "not defined"] | 🟢/🟡/🔴 |
- | Premium conversion rate | 2–5% of active players | [value or "not defined"] | 🟢/🟡/🔴 |
- | Time to first meaningful purchase | 5–15 minutes | [value or "not defined"] | 🟢/🟡/🔴 |
-
- Status legend:
- - 🟢 Within target range
- - 🟡 Outside range but recoverable — specific fix suggested
- - 🔴 Critical imbalance or not defined at all — blocks healthy launch
-
- Also check for these anti-patterns from the skill:
- - **Hyperinflation** — unlimited currency faucets with no corresponding sinks → 🔴 CRITICAL
- - **Pay-to-win** — premium currency or IAP that grants direct gameplay power → 🔴 CRITICAL
- - **Currency confusion** — more than 3 currency types without clear differentiation → 🟡 WARNING
- - **Dead economy** — currency accumulates with nothing interesting to buy → 🟡 WARNING
- - **Early abundance** — excessive rewards in first 10 minutes that devalue later rewards → 🟡 WARNING
- - **Exploitable loops** — crafting or trading paths that generate infinite value → 🔴 CRITICAL
-
- For each flagged issue, cite the specific skill principle: e.g., `[→ game-economy-design: every faucet needs a sink]`
-
- ## Phase 2 — Difficulty & Flow Channel Check
-
- *Skip this phase entirely if scope is "economy" or "rewards".*
-
- Apply the flow channel framework from `game-design-fundamentals` (Csikszentmihalyi principle: challenge must scale with skill).
-
- Analyze the intended difficulty curve from mvp-first-draft.md against the four progression phases:
-
- | Phase | Expected Pattern | Found in Plan | Assessment |
- |-------|----------------|--------------|------------|
- | Early game | Rapid unlocks, teaching mechanics, high success rate | [from plan] | 🟢/🟡/🔴 |
- | Mid game | Meaningful choices, branching paths, ~65% success rate | [from plan] | 🟢/🟡/🔴 |
- | Late game | Mastery optimization, meaningful challenge | [from plan] | 🟢/🟡/🔴 |
- | Endgame | Social/competitive/infinite scaling | [from plan] | 🟢/🟡/🔴 |
-
- Check for these anti-patterns from the skill:
- - **Flat difficulty curve** — no meaningful challenge increase → 🔴 (players master and leave)
- - **Punishing failure** — harsh penalties that discourage experimentation → 🟡
- - **Tutorial as separate experience** — tutorial feels disconnected from core gameplay → 🟡
- - **Single player-type focus** — designed exclusively for one Bartle type → 🟡
- - **Boredom cliff** — player masters the game too quickly → 🔴
-
- The getDifficultyMultiplier formula from the skill: `1 + (playerSuccessRate - targetSuccessRate) * 0.3` — note if the plan accounts for adaptive difficulty or not.
-
- For each flagged issue, cite the skill: `[→ game-design-fundamentals: flow channel — challenge must scale with skill]`
-
- ## Phase 3 — Progression Cost Curve Check
+ 1. Read `docs/mvp-first-draft.md`. If it does not exist, output "Cannot proceed: docs/mvp-first-draft.md not found. Run /game-architect first to create the MVP plan." and stop.
+ 2. Pick the phases from the scope:
+ - empty or "all": Phases 1 to 4
+ - "economy": Phase 1
+ - "difficulty": Phase 2
+ - "progression": Phases 2 and 3
+ - "rewards": Phases 1 and 4
+ 3. Apply the skills the chosen phases need: `game-economy-design` for Phases 1 and 4, `game-design-fundamentals` for Phases 2 and 4, `skill-progression-trees` for Phase 3.
+ 4. Read `docs/build-registry.md` and `docs/quest-registry.md` if they exist. Phase 4 cross-checks quest rewards against the economy.
+ 5. From the plan, extract the genre and core loop, currencies with their faucets and sinks, difficulty settings, progression systems with cost tables, and reward tables and schedules.
- *Skip this phase entirely if scope is "economy", "difficulty", or "rewards".*
+ A value the plan does not define is a gap, not a pass. Record it as "not defined" and report it in Phase 5.
- Apply the cost scaling principles from `skill-progression-trees`.
+ ## Phase 1: Economy
- **Expected formula:** `cost = baseCost × tier^exponent` where exponent should be 1.5–2.0.
+ Apply `game-economy-design`. That skill gives no universal target ranges, so do not invent any. Judge each value against the plan's own intent and against the simulation below.
- Analyze the plan's progression costs:
+ 1. For each currency, list the faucets and sinks the plan defines. Mark a currency with a faucet and no sink as a finding.
+ 2. Simulate. Turn the plan's per-stage rates into stages with `hours`, `faucetPerHour` and `sinkPerHour`. Run `simulateStages` from `game-economy-design/boilerplate/economy-simulator.ts`, or edit the example stages in that file and run `bun boilerplate/economy-simulator.ts` from that skill's directory. Read each stage's `net`, `balanceRatio` and `endBalance`. A stage with a high positive `balanceRatio` inflates, and a negative one drains the player. Compare both with what the plan intends for that stage. If the plan has no per-hour rates, say so and ask the user for them instead of guessing.
+ 3. Check the pitfalls listed in `game-economy-design`: hyperinflation, dead economy, currency confusion, early abundance, exploit loops (stack splits, trades, craft-sell-buy cycles, uncapped offline activity). For premium currency or purchases that sell power, apply its monetization step and `stripe-game-payments`.
- | Progression System | Cost Structure in Plan | Expected Formula Applied? | Issue |
- |-------------------|----------------------|--------------------------|-------|
- | [system 1 from plan] | [flat / linear / exponential] | 🟢/🟡/🔴 | [if flagged] |
- | [system 2 from plan] | ... | ... | ... |
+ ## Phase 2: Difficulty
- Check for these anti-patterns from the skill:
- - **Flat cost curves** — every node/level costs the same → 🟡 (endgame nodes become trivially cheap as income scales)
- - **Missing respec mechanic** — players locked into bad choices permanently → 🟡
- - **All nodes visible upfront** — full tree shown immediately, spoiling discovery → 🟡
- - **Client-side tree state** — plan mentions client-side unlock validation → 🔴 CRITICAL
- - **Hardcoded effects** — effects in code instead of data config → 🟡
+ Apply `game-design-fundamentals` (Difficulty section).
- For each flagged issue, cite the skill: `[→ skill-progression-trees: cost = baseCost * tier^exponent]`
+ 1. From the plan, write down how challenge rises across early, mid, late and endgame. Check that challenge rises after successes, that rests exist, and that the first levels are easy.
+ 2. Check the pitfalls in that skill: flat difficulty curve, penalties that permanently remove long-earned power, no selectable difficulty where the plan relies on dynamic difficulty, and dominant strategies in skill-challenge steps.
+ 3. Onboarding belongs to `ui-ux-game`. If the plan treats the tutorial as a separate mode, report it and point there.
- ## Phase 4 — Reward Schedule Check
+ ## Phase 3: Progression costs
- *Skip this phase entirely if scope is "difficulty" or "progression".*
+ Apply `skill-progression-trees`.
- Apply reward schedule principles from `game-design-fundamentals` (variable ratio > fixed ratio — B.F. Skinner principle).
+ 1. List each progression system and its cost structure (flat, linear, exponential, other).
+ 2. Flag flat costs: late nodes get cheap as income grows. The skill gives `cost = baseCost * tier^exponent` and says to tune the exponent against player income per tier. Compare the plan's income per tier with its costs. If the plan has no income figures, report that gap.
+ 3. Flag a missing respec, unlock state held on the client, and effects hardcoded in code instead of data. The server must validate unlocks: the client can be edited and drifts from the server.
- Analyze the reward structure:
+ ## Phase 4: Reward schedules
- | Reward Type | Schedule in Plan | Variable? | Assessment |
- |-------------|----------------|-----------|------------|
- | Quest rewards | [fixed / variable] | [yes/no] | 🟢/🟡/🔴 |
- | Daily login | [fixed / variable] | [yes/no] | 🟢/🟡/🔴 |
- | Loot drops | [fixed / variable] | [yes/no] | 🟢/🟡/🔴 |
- | Achievement rewards | [fixed / variable] | [yes/no] | 🟢/🟡/🔴 |
+ Apply `game-design-fundamentals` (Rewards and punishment section).
- If `docs/quest-registry.md` exists, cross-reference quest reward amounts against the economy metrics from Phase 1.
+ 1. For quest rewards, daily login, loot drops and achievements, record the schedule and whether it varies. Check that reward types are mixed and that reward value rises as play proceeds.
+ 2. Flag too many rewards too fast (each one weakens), forced daily streaks (a penalty for not playing), and rewards with nothing to spend them on (a Phase 1 dead economy).
+ 3. Drop tables and pity counters follow `game-economy-design`. Quest coherence follows `quest-narrative-coherence`.
+ 4. If `docs/quest-registry.md` exists, compare quest reward amounts with the Phase 1 simulation.
- Check for these anti-patterns:
- - **Reward inflation** — too many rewards too fast; all future rewards feel devalued → 🟡
- - **Predictable schedules** — fixed ratio rewards sustain engagement much less than variable → 🟡
- - **Nothing to spend on** — rewards accumulate with no meaningful sink → connects to Phase 1 dead economy → 🔴
+ ## Phase 5: Report
- For each flagged issue, cite the skill: `[→ game-design-fundamentals: variable ratio reward schedules sustain engagement longer]`
+ Severity levels:
- ## Phase 5 — Balance Report
+ - Critical: blocks a healthy launch. Examples: a faucet with no sink, an exploitable loop, unlock state on the client, a parameter the plan needs but does not define.
+ - Warning: recoverable, fix before launch.
+ - Note: optional improvement.
- Output the complete report:
+ Give every Critical and Warning finding a specific fix and name the skill and the rule behind it. Do not state a finding the skills do not support. Output:
```markdown
- # Balance Report — [game name from mvp-first-draft.md] — [current date]
-
- ## Executive Summary
- 🔴 Critical issues: [count]
- 🟡 Warnings: [count]
- 🟢 Healthy systems: [count]
-
- [If 0 critical issues]: ✅ No blockers found — safe to proceed with current design.
- [If critical issues exist]: ⛔ [count] critical issue(s) must be resolved before launch.
+ # Balance Report: [game name] ([current date])
- ---
+ ## Summary
+ Critical: [count]
+ Warnings: [count]
+ Healthy systems: [count]
- ## Economy Health [only if analyzed]
- [metrics table from Phase 1]
- [anti-pattern findings]
+ [No critical issues: "No blockers found."]
+ [Critical issues: "[count] critical issue(s) to resolve before building."]
- ## Difficulty Curve [only if analyzed]
- [phase table from Phase 2]
- [anti-pattern findings]
+ ## Economy [only if analyzed]
+ [stage table from the simulation, pitfall findings]
- ## Progression Costs [only if analyzed]
- [table from Phase 3]
- [anti-pattern findings]
+ ## Difficulty [only if analyzed]
+ [curve summary, findings]
- ## Reward Schedules [only if analyzed]
- [table from Phase 4]
- [anti-pattern findings]
+ ## Progression costs [only if analyzed]
+ [table: system, cost structure, issue]
- ---
+ ## Reward schedules [only if analyzed]
+ [table: reward type, schedule, varies, assessment]
- ## Recommended Actions
+ ## Recommended actions
- ### 🔴 Critical (resolve before building)
- 1. [Issue description] — [specific fix] `[→ skill-name: principle]`
- ...
+ ### Critical
+ 1. [Issue]: [fix] (skill-name: rule)
- ### 🟡 Warnings (address before launch)
- 1. [Issue description] — [specific fix] `[→ skill-name: principle]`
- ...
+ ### Warnings
+ 1. [Issue]: [fix] (skill-name: rule)
- ### 🟢 Notes (optional improvements)
- 1. [Suggestion] `[→ skill-name: principle]`
- ...
+ ### Notes
+ 1. [Suggestion] (skill-name: rule)
```
- ---
+ ## Tasks for the user
- ## Hard Constraints
+ These need a person. List them in the report when the plan leaves a gap you cannot fill:
- 1. **Always cite the skill** for every flagged issue — no undocumented opinions
- 2. **Never flag "not defined" as healthy** — undefined parameters are 🔴 by default (you can't launch without them)
- 3. **Pay-to-win is always 🔴 CRITICAL** — no exceptions
- 4. **Client-side game state is always 🔴 CRITICAL** — server-authoritative is non-negotiable
- 5. **Provide a specific fix** for every 🔴 and 🟡 finding — do not just flag without recommendation
+ - Real faucet and sink rates per hour, if the plan has none.
+ - Playtests at several skill levels. A short test cannot confirm flow, and one tester's verdict on feel is not enough (`game-design-fundamentals`).
+ - Target ranges for money supply, price index and wealth spread, set from playtest data.