Skip to content
Skill

Game session host

Runs a typed game module in a React Native app with saves, undo, pause and results

Game session host is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
JavaScript, TypeScript
Platforms
Claude Code, Codex, Cursor
GitHub stars
16
Last commit
License
MIT
Listing updated

Similar skills

About Game session host

This skill sets up one shared host for games built as typed modules in a React Native app. The game enters through a single generic factory, and each run is kept in its own store that writes the run to disk before the board animates the change. Finished runs are recorded in one repository transaction before the result appears, and screens only receive plain data and send commands such as undo, hint, pause, finish and leave.

The skill covers the surrounding behaviour: a single rescue per loss when the rules and app config allow it, finishing losses that cannot be rescued, validating saved runs when the app boots or resumes, pausing on background or full-screen ads, and guarding the Back gesture during a live run. Daily runs, practice replays and tutorial scripts are kept separate from recorded results and statistics.

It ships templates, examples and a checker script that runs the app's host modules against a small test game on iOS and Android. It expects TypeScript, React, Jest and a game whose rules are already defined. The checker is written in JavaScript and is licensed under MIT.

When your agent uses it

Hosts a game module through one typed seam: game screen, pause, undo, hints, a rescue, saved runs, results. Use when assembling a game or wiring the Game screen or registry. Not for rules (game-rules-engine).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 113 files (613 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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):

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

Or copy only this skill to ~/.claude/skills/game-session-host:

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

For one project only, put the folder in .claude/skills/game-session-host inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/game-session-host to use it in every repository:

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

For one repository only, put the folder in .agents/skills/game-session-host inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/game-session-host to use it in every project:

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

For one project only, put the folder in .cursor/skills/game-session-host inside it instead.

Cursor docs on skills

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

gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/game-session-host

Or copy the folder to ~/.gemini/skills/game-session-host yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/game-session-host:

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

For one project only, put the folder in .github/skills/game-session-host inside it instead.

VS Code docs on skills

Get the folder:

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

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

The SKILL.md format

What it does

Single game entry point
A generic factory lets the app host any typed game module while keeping the game's own types out of screens and stores.
Persist-before-publish runs
Each move is written to the saved run before the board shows it, so a killed app reopens the same position.
Atomic run recording
A finished run's result, best, statistics and saved-run clearance are written in one repository transaction.
Rescue and stranded loss handling
Controls a single rescue offer per loss and finishes losses that no rescue can reach.
Pause and Back guards
Pauses runs on background or full-screen ads and intercepts Back during live play.
Saved run validation
Checks saved runs with the game's own parsers at startup and drops only unreadable entries.
Architecture checker
A script verifies the host invariants by running the app's modules against a test game.

Good for

  • Add a new puzzle game to a React Native app using the shared host
  • Save and resume an in-progress game after the app is killed
  • Offer one rewarded-ad rescue after a loss and record the run correctly
  • Wire the Game screen so Back and backgrounding pause the run
  • Record daily challenge results without counting replays as new bests

Game session host FAQ

What does the skill need before Game session host can be used?

The app needs an existing game module, its rules and levels, and a SQLite-backed data layer. The checker prints NOT APPLICABLE until the app has a game.

Does Game session host change how a run is saved?

Yes. Each change is reduced, written to the saved run, and only then shown on screen. A finished run is recorded in one repository transaction before its result appears.

Which clients does Game session host work with?

The content presents it as a plain SKILL.md folder and a Claude Code plugin marketplace entry, so it is listed for all supported agent clients.

How do I install Game session host in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/game-session-host to use it in all your projects, or to .claude/skills/game-session-host 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 session host 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 session host?

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 session host?

The closest alternatives to Game session host are Game rules engine, Error handling typed results, Game balance and bots, Debug menu and test hooks and Background tasks.

Where this comes from

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

More from zakariaf/ReactNative-Skills

  1. Turns canvas taps, swipes and drags into typed intents hit-tested on the drawn layout

    • Open source
    • 16 GitHub stars
    • Developer tools
  2. Adds a gated debug menu, debug deep link and simulated clock and offline mode to React

    • Open source
    • 16 GitHub stars
    • Developer tools
  3. Checks React Native code for accessibility labels, touch targets, text scaling

    • Open source
    • 16 GitHub stars
    • Developer tools
  4. Sells a one-time Premium unlock through the App Store and Google Play

    • Open source
    • 16 GitHub stars
    • Finance and payments
  5. Walks an Expo app through an SDK, Xcode or Android toolchain upgrade in one commit

    • Open source
    • 16 GitHub stars
    • Developer tools
  6. Builds React Native forms with one valibot schema, catalog-key errors and keyboard-aware

    • Open source
    • 16 GitHub stars
    • Developer tools