game-state-and-rendering

game-state-and-rendering is a skill for Claude Code, Codex from vucinatim/air-jam. It costs 40 tokens per session (297 once invoked), scanned A, original, MIT.

A guide for managing game state, frame-by-frame logic, and rendering in an Air Jam project.

In plain words
What is it for?
Choosing between replicated state, local UI state, refs, signals, and domain modules when changing stores, gameplay logic, React code, or 3D rendering.
Why use it?
It prevents frequent gameplay updates from causing unnecessary React redraws and keeps shared game truth separate from input, interface state, and temporary runtime values.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Choosing between replicated state, local UI state, refs, signals, and domain modules when changing stores, gameplay logic, React code, or 3D rendering.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vucinatim/air-jam/game-state-and-rendering
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vucinatim/air-jam --skill game-state-and-rendering
Clone the repo
git clone --depth 1 https://github.com/vucinatim/air-jam

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for game-state-and-rendering

README.md
[![agentmods](https://agentmods.dev/badge/skills/vucinatim/air-jam/game-state-and-rendering/github.svg)](https://agentmods.dev/skills/vucinatim/air-jam/game-state-and-rendering)
Your own site
<a href="https://agentmods.dev/skills/vucinatim/air-jam/game-state-and-rendering"><img src="https://agentmods.dev/badge/skills/vucinatim/air-jam/game-state-and-rendering/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for game-state-and-rendering

Your own site · 80×15
<a href="https://agentmods.dev/skills/vucinatim/air-jam/game-state-and-rendering"><img src="https://agentmods.dev/badge/skills/vucinatim/air-jam/game-state-and-rendering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 297 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00297
Opus 5 $0.00020 $0.00148
Sonnet 5 $0.00008 $0.00059
Haiku 4.5 $0.00004 $0.00030

Measured 12d ago against content hash c9b88300f6a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

game-state-and-rendering scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/cli/template-assets/bootstrap/skills/game-state-and-rendering/SKILL.md · 45 lines

What it actually says

Game State And Rendering

Use this skill when a task touches state ownership, per-frame updates, or rendering hot paths.

Read First

  1. docs/airjam/generated/state-and-rendering.md
  2. docs/airjam/generated/input-system.md
  3. docs/airjam/generated/networked-state.md

Core Rules

  1. keep input in the input lane
  2. keep authoritative shared truth in replicated state
  3. keep coarse UX/system events in signals
  4. keep per-frame mutable values out of React state when React rendering is not needed
  5. use narrow Zustand selectors

Decision Guide

Use:

  1. replicated state for replayable shared truth
  2. local UI state for local view concerns
  3. refs for hot mutable runtime values
  4. pure domain modules for rules and calculations

R3F / Three Guidance

  1. avoid per-frame React rerenders
  2. mutate refs in frame handlers when appropriate
  3. keep scene integration separate from domain decisions

Anti-Patterns

  1. using store actions for high-frequency input
  2. using React state as the simulation engine
  3. selecting whole stores throughout the tree
  4. mixing debug state into hot loops
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 45 lines · 40 tokens per session scan A c9b88300f6a2

Subscribe to this mod's changes

game-state-and-rendering is a skill published in the GitHub repository vucinatim/air-jam (6 stars, last pushed 3d ago), licensed MIT. It adds 40 tokens to every session and 297 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.