# Game balance and bots

> Game balance and bots is an open-source agent skill for developer tools. Headless seeded bot sims that measure and tune difficulty in React Native games. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/zakariaf/ReactNative-Skills/tree/main/skills/game-balance-and-bots
- **Repository:** https://github.com/zakariaf/reactnative-skills
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** game-balance-and-bots
- **Collection:** https://github.com/zakariaf/ReactNative-Skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [game design](https://ai-powered.com/categories/game-design)
- **Listing updated:** 2026-12-04

## About

This skill sets up a harness that plays a game thousands of times without a UI, using seeded bots that drive only the pure engine functions. The sims report the difficulty curve, whether player skill makes a measurable difference, how soon the first payoff arrives and whether a designated twist event happens, all compared against a bands file that records what balanced means for the game.

Each game gets a single tuning file holding every balance number, read through a per-difficulty lookup on a 0 to 100 scale. Three standard players (random, a reasonable player and a lookahead bound) are compared, and a checker script verifies determinism, hard move caps, the sim fingerprint and band contracts. Reports are fingerprinted against the code they measured, so stale numbers are flagged after rule changes.

It expects a React Native project in TypeScript with Jest, a pure game engine contract (create, listMoves, applyMove, outcome) and a seeded random number generator. Real-time games are covered through fixed-tick simulations rather than display frames.

## When your agent uses it

> Tunes game difficulty with seeded headless bots: sim reports, balance bands, tuning knobs, a fun-in-seconds test. Use when balancing, tuning pacing or adding bots or sims. Not for solvers or par (level-generation-and-solvers).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript and TypeScript scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/game-balance-and-bots)
- [No network calls found in its scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/game-balance-and-bots)
- [License: MIT](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/game-balance-and-bots)

## Features

- **Seeded headless bot sims:** Bots play the pure engine contract in plain Node, producing identical reports on every rerun.
- **Three-player skill comparison:** Random, reasonable and lookahead players confirm that skill changes the outcome.
- **Balance bands contract:** A bands file records the accepted difficulty curve, skill gap and early payoff limits.
- **Single tuning file:** All balance numbers sit in one documented file read through a difficulty lookup.
- **Fun-in-seconds kill test:** Checks that the first payoff and twist arrive early enough on the easiest level.
- **Fingerprinted reports:** Reports are tied to the code they measured so stale numbers are caught after changes.

## Good for

- Measure how hard a puzzle game is at each difficulty level
- Add a reasonable bot that plays a dice game without peeking at rolls
- Tune the difficulty curve one knob at a time and compare reports
- Check that a real-time arena game reaches its first payoff quickly
- Write a balance bands file for a new game before release

## Install

### Claude Code

This skill ships in the `react-native-games` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add zakariaf/ReactNative-Skills
/plugin install react-native-games@react-native-skills
```

Or copy only this skill to `~/.claude/skills/game-balance-and-bots`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/game-balance-and-bots &&
cp -R "$tmp/skills/game-balance-and-bots" ~/.claude/skills/game-balance-and-bots &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/game-balance-and-bots` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/game-balance-and-bots` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/game-balance-and-bots &&
cp -R "$tmp/skills/game-balance-and-bots" ~/.agents/skills/game-balance-and-bots &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/game-balance-and-bots` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/game-balance-and-bots` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/game-balance-and-bots &&
cp -R "$tmp/skills/game-balance-and-bots" ~/.cursor/skills/game-balance-and-bots &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/game-balance-and-bots` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/game-balance-and-bots
```

Or copy the folder to `~/.gemini/skills/game-balance-and-bots` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/game-balance-and-bots`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/game-balance-and-bots &&
cp -R "$tmp/skills/game-balance-and-bots" ~/.copilot/skills/game-balance-and-bots &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/game-balance-and-bots` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git
```

Then copy `ReactNative-Skills/skills/game-balance-and-bots` into your agent's skills folder as `game-balance-and-bots`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Game balance and bots need before it can run?

It depends on the game kit from game-rules-engine (src/core/game and the sfc32 PRNG) and a Jest setup with a plain-Node sim config. The check script reports which harness files are missing.

### Does Game balance and bots change the game itself?

It adds bot hooks, a tuning file, a sim test and a bands JSON per game, and it moves balance numbers out of the rules into the tuning file. It does not change the game's appearance or UI.

### Do the sims run inside npm test?

No. They run through a separate npm run test:sim script using a plain-Node Jest config.

### When does Game balance and bots trigger?

It is meant for balancing, tuning pacing, or adding bots and simulations. Solver and par work is covered by level-generation-and-solvers instead.

### How do I install Game balance and bots in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/game-balance-and-bots to use it in all your projects, or to .claude/skills/game-balance-and-bots in one project. Or install the react-native-games plugin, which includes it: /plugin marketplace add zakariaf/ReactNative-Skills, then /plugin install react-native-games@react-native-skills.

### Does Game balance and bots run scripts?

Yes. It runs JavaScript and TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Game balance and bots?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Game balance and bots?

The closest alternatives to Game balance and bots are Game rules engine, Game session host, Game mechanics balancing, React native best practices and Design visual parity.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Game rules engine](https://ai-powered.com/skills/game-rules-engine): Game rules engine is an open-source agent skill for developer tools.
- [Game session host](https://ai-powered.com/skills/game-session-host): Game session host is an open-source agent skill for developer tools.
- [Game mechanics balancing](https://ai-powered.com/skills/game-mechanics-balancing): Game mechanics balancing is an open-source agent skill for developer tools.
- [React native best practices](https://ai-powered.com/skills/react-native-best-practices): React native best practices is an open-source agent skill for developer tools.
- [Design visual parity](https://ai-powered.com/skills/design-visual-parity): Design visual parity is an open-source agent skill for developer tools.
- [Autoresearch](https://ai-powered.com/skills/autoresearch): Autoresearch is an open-source agent skill for developer tools.
- [Evolve](https://ai-powered.com/skills/evolve): Evolve is an open-source agent skill for developer tools.
- [Debug menu and test hooks](https://ai-powered.com/skills/debug-menu-and-test-hooks): Debug menu and test hooks is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/game-balance-and-bots
