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.
npx skills add akillness/jeo-skills --skill game-perfgit clone --depth 1 https://github.com/akillness/jeo-skillsWrote 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.
[](https://agentmods.dev/skills/akillness/jeo-skills/game-perf)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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:
- Search for
.find(,.findIndex(,.filter(,.indexOf(calls - Check if they appear inside a loop construct (for/forEach/map/reduce/while)
- Check if the outer scope is a frequently-called function (render, update, sync, tick, loop, animate, draw, onFrame)
- 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;
});
}
What ships with it
17 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .claude-plugin/plugin.json 635 B
- commands/game-perf.md 2.4 KB
- LICENSE 1.0 KB
- package.json 604 B
- README-kr.md 3.3 KB
- README.md 3.2 KB
- skills/game-perf/references/pattern-1-lookup.md 4.8 KB
- skills/game-perf/references/pattern-10-fixed-timestep.md 8.5 KB
- skills/game-perf/references/pattern-2-render-ref.md 5.9 KB
- skills/game-perf/references/pattern-3-dom-drag.md 7.2 KB
- skills/game-perf/references/pattern-4-selector.md 6.8 KB
- skills/game-perf/references/pattern-5-virtualize.md 7.4 KB
- skills/game-perf/references/pattern-6-gc-alloc.md 5.9 KB
- skills/game-perf/references/pattern-7-gpu-dispose.md 6.5 KB
- skills/game-perf/references/pattern-8-draw-calls.md 7.7 KB
- skills/game-perf/references/pattern-9-object-pool.md 8.3 KB
- skills/game-perf/SKILL.md 27 KB
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.
- 7d ago First seen · 816 lines · 33 tokens per session scan A bb54b340bde7
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.
game-perf compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| game-perfakillness/jeo-skills | Skill | 62 | yesterday | MIT | A | 33 | Claude Code |
| cli-anything-nsight-graphicsHKUDS/CLI-Anything | Skill | 69k | 10d ago | Apache-2.0 | A | 29 | Claude Code, Codex |
| minecraft-debug-mcpmoeru-ai/airi | Skill | 52k | today | MIT | A | 68 | Codex |
| performance-optimizationgamedev-skills/awesome-gamedev-agent-skills | Skill | 13k | today | Apache-2.0 | A | 97 | Claude Code |
| scenario-unity-gameplayscenario-labs/skills | Skill | 4.3k | yesterday | MIT | A | 108 | Claude Code |
| scenario-unreal-gameplayscenario-labs/skills | Skill | 4.3k | yesterday | MIT | A | 121 | Claude Code |
| scenario-unreal-performancescenario-labs/skills | Skill | 4.3k | yesterday | MIT | A | 133 | Claude Code |