game-perf

game-perf is a skill for Claude Code from akillness/jeo-skills. It costs 33 tokens per session (7,466 once invoked), scanned A, original, MIT.

A code-checking skill for finding and repairing ten common causes of dropped frames in games and interactive applications. It covers React and state-management code as well as engines and graphics systems such as Three.js, WebGL, PixiJS, and Phaser.

In plain words
What is it for?
Use it to scan a project or folder and, with the fix option, repair detected patterns after confirmation.
Why use it?
Too much work in one display update can make animation and input look jerky. The skill identifies patterns such as repeated searches in loops, unnecessary state updates, and inefficient rendering work.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the game-perf plugin — 1 skill, 1 command shipped together

Good fit Use it to scan a project or folder and, with the fix option, repair detected patterns after confirmation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/akillness/jeo-skills/game-perf
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 akillness/jeo-skills --skill game-perf
Clone the repo
git clone --depth 1 https://github.com/akillness/jeo-skills

Made for: Claude Code.

Or install game-perf, the plugin that ships this one along with the rest of its 1 skill, 1 command.

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-perf

README.md
[![agentmods](https://agentmods.dev/badge/skills/akillness/jeo-skills/game-perf/github.svg)](https://agentmods.dev/skills/akillness/jeo-skills/game-perf)
Your own site
<a href="https://agentmods.dev/skills/akillness/jeo-skills/game-perf"><img src="https://agentmods.dev/badge/skills/akillness/jeo-skills/game-perf/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-perf

Your own site · 80×15
<a href="https://agentmods.dev/skills/akillness/jeo-skills/game-perf"><img src="https://agentmods.dev/badge/skills/akillness/jeo-skills/game-perf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,466 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.00033 $0.07466
Opus 5.5 $0.00013 $0.02986
Sonnet 5.5 $0.00007 $0.01493
Haiku 4.5 $0.00003 $0.00747

Measured 7d ago against content hash bb54b340bde7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

game-perf 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 7d 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.

.agent-skills/game-perf/SKILL.md · 816 lines

How it starts

The opening of the file, as written. The whole thing — 816 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Game Performance Frame-Drop Detector

You are a game performance specialist. You detect and fix the 10 most common frame-drop patterns found in interactive applications — game engines, editors, canvas apps, and real-time UIs built with React, Zustand, Redux, Fabric.js, PixiJS, Three.js, Phaser, Canvas 2D, WebGL, etc.

Patterns 1-5: React/Zustand UI layer patterns Patterns 6-10: Game engine / GPU / runtime patterns

Arguments

Parse $ARGUMENTS:

  • path: File or directory to scan (default: current working directory)
  • --fix: If present, apply automatic fixes with user confirmation

The 5 Patterns

Pattern 1: O(n²) Lookup in Hot Loops — CRITICAL

What: .find(), .findIndex(), .filter(), .indexOf() called inside forEach, map, for, while, or reduce — creating O(n²) complexity in per-frame synchronization or game logic.

Why it kills FPS: With 1000 objects, a nested .find() runs ~1M comparisons per frame. At 60fps that's 60M comparisons/sec. Each comparison costs ~0.01ms, totaling ~10ms/frame — over half the 16.6ms budget.

Grep patterns:

forEach.*\n.*\.find\(
\.map\(.*\n.*\.find\(
for\s*\(.*\n.*\.find\(
\.forEach.*\.filter\(
\.map.*\.filter\(
\.reduce.*\.find\(
layers\.find\(
objects\.find\(
entities\.find\(
nodes\.find\(

Detection logic:

  1. Search for .find(, .findIndex(, .filter(, .indexOf( calls
  2. Check if they appear inside a loop construct (for/forEach/map/reduce/while)
  3. Check if the outer scope is a frequently-called function (render, update, sync, tick, loop, animate, draw, onFrame)
  4. False positive exclusions:
    • One-time setup functions (init, constructor, mount, useEffect with empty deps)
    • Event handlers that fire infrequently (onClick, onSubmit)
    • Arrays known to be small (< 10 items) from context

Fix: Convert to Map or object lookup built once, queried O(1).

// Before — O(n²)
function syncObjects(objects: Obj[], state: State[]) {
  state.forEach(s => {
    const obj = objects.find(o => o.id === s.id); // O(n) per iteration
    if (obj) obj.position = s.position;
  });
}

// After — O(n)
function syncObjects(objects: Obj[], state: State[]) {
  const objectMap = new Map(objects.map(o => [o.id, o])); // O(n) once
  state.forEach(s => {
    const obj = objectMap.get(s.id); // O(1) per iteration
    if (obj) obj.position = s.position;
  });
}

Read the full file on GitHub · 816 lines

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. 7d ago First seen · 816 lines · 33 tokens per session scan A bb54b340bde7

Subscribe to this mod's changes

game-perf is a skill published in the GitHub repository akillness/jeo-skills (62 stars, last pushed yesterday), licensed MIT. It adds 33 tokens to every session and 7,466 once invoked, about $0.0001 per session on Opus 5.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-11-23.

Related

game-perf compared with skills from other repositories

game-perf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
game-perfakillness/jeo-skillsSkill62yesterdayMITA33Claude Code
cli-anything-nsight-graphicsHKUDS/CLI-AnythingSkill69k10d agoApache-2.0A29Claude Code, Codex
minecraft-debug-mcpmoeru-ai/airiSkill52ktodayMITA68Codex
performance-optimizationgamedev-skills/awesome-gamedev-agent-skillsSkill13ktodayApache-2.0A97Claude Code
scenario-unity-gameplayscenario-labs/skillsSkill4.3kyesterdayMITA108Claude Code
scenario-unreal-gameplayscenario-labs/skillsSkill4.3kyesterdayMITA121Claude Code
scenario-unreal-performancescenario-labs/skillsSkill4.3kyesterdayMITA133Claude Code