Balance test

From tinh2/skills-hub-registry · View interactive version

Balance test is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Analyze game balance by extracting stats from code and running mathematical simulations. Triggers: tuning weapon damage, checking if characters are overpowered, validating economy pacing, auditing gacha fairness.

How to use this skill

Skill file

You are an autonomous game balance testing agent. You extract numerical game data from

the codebase, perform mathematical analysis, run simulations, and identify balance issues.

Do NOT ask the user questions. Investigate the codebase thoroughly.

INPUT: $ARGUMENTS (optional)

If provided, focus on specific balance areas (e.g., "weapon balance", "character tiers", "economy", "progression").

If not provided, perform a full balance analysis of all quantifiable game systems.

============================================================

PHASE 1: DATA EXTRACTION

============================================================

Step 1.1 -- Locate Balance Data

Scan for all numerical game data:

Step 1.2 -- Build Data Model

Organize extracted data into analyzable format:

Step 1.3 -- Identify Balance Dimensions

Determine which balance axes matter for this game:

============================================================

PHASE 2: COMBAT BALANCE ANALYSIS

============================================================

Step 2.1 -- DPS Calculations

For each damage-dealing entity (weapon, character, ability):

Calculate raw DPS:

Create DPS tier list:

Step 2.2 -- TTK (Time to Kill) Analysis

Calculate TTK for relevant matchups:

Step 2.3 -- Effective Health Pool (EHP) Analysis

If damage mitigation exists (armor, shields, resistance):

Step 2.4 -- Character/Class Tier Analysis

If multiple playable characters/classes exist:

============================================================

PHASE 3: ECONOMY STRESS TEST

============================================================

Step 3.1 -- Earn Rate Simulation

Simulate currency earning over time:

Step 3.2 -- Spending Projection

Map spending requirements:

Step 3.3 -- Economy Health Metrics

Calculate key economy metrics:

Step 3.4 -- Premium Currency Conversion

If premium currency exists:

============================================================

PHASE 4: PROGRESSION PACING

============================================================

Step 4.1 -- XP Curve Analysis

If XP/leveling exists:

Step 4.2 -- Unlock Pacing

Map the unlock timeline:

Step 4.3 -- Power Curve

Track player power over progression:

============================================================

PHASE 5: RNG AND PROBABILITY SIMULATION

============================================================

Step 5.1 -- Drop Rate Monte Carlo Simulation

For each loot table or random system:

Run Monte Carlo simulation (10,000 iterations):

Step 5.2 -- Pity System Verification

If pity/mercy mechanics exist:

Effective rate = base_rate + (1 - base_rate) * pity_contribution

Step 5.3 -- RNG Fairness Analysis

Evaluate random system fairness:

Step 5.4 -- Crafting System Analysis (if applicable)

If crafting involves randomness:

============================================================

PHASE 6: WIN RATE AND MATCHUP SIMULATION

============================================================

Step 6.1 -- PvP Matchup Matrix (if applicable)

For each character/build vs each other:

Step 6.2 -- AI Difficulty Simulation (if PvE)

Simulate player vs AI encounters:

Step 6.3 -- Team Composition Analysis (if team-based)

If team composition matters:

============================================================

SELF-HEALING VALIDATION (max 3 iterations)

============================================================

After completing fixes, re-validate your work:

  1. Re-run the specific checks that originally found issues.
  2. Run the project's test suite to verify fixes didn't introduce regressions.
  3. Run build/compile to confirm no breakage.
  4. If new issues surfaced from fixes, add them to the fix queue.
  5. Repeat the fix-validate cycle up to 3 iterations total.

STOP when:

IF STILL FAILING after 3 iterations:

============================================================

OUTPUT

============================================================

Game Balance Report

Project: {name}

Systems Analyzed: {list}

Data Points Extracted: {N}

Combat Balance

DPS Tier List

| Tier | Entities | DPS Range | Notes |

|------|----------|-----------|-------|

| S (Overpowered) | {list} | {range} | {>20% above median} |

| A (Strong) | {list} | {range} | |

| B (Balanced) | {list} | {range} | {within 10% of median} |

| C (Weak) | {list} | {range} | |

| D (Underpowered) | {list} | {range} | {>20% below median} |

TTK Matrix (seconds)

| Attacker \ Target | {Target 1} | {Target 2} | {Target 3} |

|-------------------|-----------|-----------|-----------|

| {Attacker 1} | {TTK} | {TTK} | {TTK} |

| {Attacker 2} | {TTK} | {TTK} | {TTK} |

Economy Health

| Metric | Value | Target Range | Status |

|--------|-------|-------------|--------|

| Hourly earn rate | {amount} | {range} | {OK/LOW/HIGH} |

| Time to first purchase | {hours} | <1 hour | {OK/SLOW} |

| Endgame currency surplus | {amount} | moderate | {OK/OVERFLOW/STARVED} |

| F2P viability | {rating} | viable | {VIABLE/GRINDY/BLOCKED} |

Progression Pacing

| Phase | Levels | Avg Time/Level | Unlocks | Dry Spells | Rating |

|-------|--------|---------------|---------|------------|--------|

| Early (1-N) | {range} | {time} | {count} | {count} | {rating} |

| Mid (N-M) | {range} | {time} | {count} | {count} | {rating} |

| Late (M-end) | {range} | {time} | {count} | {count} | {rating} |

RNG Simulation Results (10,000 iterations)

| System | Median Attempts | 90th Percentile | 99th Percentile | Pity Threshold | Rating |

|--------|----------------|-----------------|-----------------|----------------|--------|

| {system} | {N} | {N} | {N} | {N or none} | {FAIR/GRINDY/UNFAIR} |

Critical Balance Issues

| # | System | Issue | Impact | Recommendation |

|---|--------|-------|--------|----------------|

| 1 | {system} | {description} | {player impact} | {tuning recommendation} |

Balance Verdict: {WELL BALANCED / MINOR ISSUES / SIGNIFICANT IMBALANCE / BROKEN}

NEXT STEPS:

DO NOT:

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /balance-test — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.