optimize-threejs-games

optimize-threejs-games is a skill for Claude Code, Codex from devinilabs/pro-skill. It costs 57 tokens per session (313 once invoked), scanned A, a copy of optimize-threejs-games, MIT.

A workflow for improving the performance of Three.js or WebGL games, which render 3D graphics in a web browser. It measures a repeatable gameplay scene, identifies whether the CPU or graphics processor is limiting speed, and verifies changes.

In plain words
What is it for?
Investigating frame-rate drops, draw calls, textures, geometry, particles, animations, shadows, post-processing, mobile performance, and adaptive quality settings.
Why use it?
Slow games can result from very different causes, such as too much simulation work, excessive drawing, or expensive visual effects. Measuring the same scene helps avoid changes that harm gameplay or visual correctness.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/devinilabs/pro-skill/optimize-threejs-games
Any agent
npx skills add devinilabs/pro-skill --skill optimize-threejs-games
Clone the repo
git clone --depth 1 https://github.com/devinilabs/pro-skill

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 optimize-threejs-games

README.md
[![agentmods](https://agentmods.dev/badge/skills/devinilabs/pro-skill/optimize-threejs-games.svg)](https://agentmods.dev/skills/devinilabs/pro-skill/optimize-threejs-games)
Your own site
<a href="https://agentmods.dev/skills/devinilabs/pro-skill/optimize-threejs-games"><img src="https://agentmods.dev/badge/skills/devinilabs/pro-skill/optimize-threejs-games.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 313 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00057 $0.00313
Opus 5 $0.00028 $0.00156
Sonnet 5 $0.00011 $0.00063
Haiku 4.5 $0.00006 $0.00031

Measured 4d ago against content hash d50e8c26ae81, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

optimize-threejs-games 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 4d 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.

Origin

This is a copy

100% identical to optimize-threejs-games — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agent-skills/game-development/optimize-threejs-games/SKILL.md · 27 lines

What it actually says

Optimize Three.js Games

Measure before changing behavior, then validate the same gameplay path after every optimization.

Establish a repeatable scene

Choose a deterministic representative encounter and record device, viewport, quality level, player position, enemies, active effects, frame-time sample, draw calls, triangles, texture count, and warnings. Compare like with like.

Diagnose the limiting side

  • Suspect CPU when simulation, allocations, React work, pathfinding, or per-frame scans grow with actors.
  • Suspect GPU when resolution, overdraw, shadows, transparent particles, post-processing, draw calls, geometry, or texture bandwidth dominate.
  • Inspect before optimizing; do not lower quality blindly.

Apply low-risk fixes first

Reuse geometry/materials, pool transient effects, cull inactive/offscreen work, throttle noncritical UI updates, cap particle counts, avoid per-frame allocation, and update only changed transforms. Keep render quality settings explicit and reversible. Degrade decorative effects before combat readability or controls.

Guard the result

Re-run the original encounter and verify frame time, visual correctness, collision/contact behavior, memory stability, mobile controls, reduced motion, and console health. Close temporary servers, benchmarks, and browser tabs once they are no longer needed.

Files

What ships with it

1 file 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.

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. 4d ago First seen · 27 lines · 57 tokens per session scan A d50e8c26ae81

Subscribe to this mod's changes

optimize-threejs-games is a skill published in the GitHub repository devinilabs/pro-skill (20 stars, last pushed 21d ago), licensed MIT. It adds 57 tokens to every session and 313 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to optimize-threejs-games, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

optimize-threejs-games

Profile, diagnose, and improve Three.js or WebGL game performance without regressing gameplay. Use for frame-time drops, CPU/GPU pressure, draw calls, texture and geometry budgets, animation loops, adaptive quality, mobile performance, and browser performance verification.

MengTo/Skills · 57 tokens

staggered-word-reveal

Create subtle editorial word-by-word text reveal animations where each word fades and rises into place once it enters the viewport. Use for premium portfolio headlines, hero copy, section intros, and short marketing text that needs a cinematic staggered reveal with IntersectionObserver or in-view detection.

boraoztunc/skills · 61 tokens

pexo-agent

AI video generation skill with auto model selection across Seedance 2, Kling 3.0, HappyHorse, and 10+ models. Produces finished multi-shot videos (5–120s) from text, images, URLs, scripts, or audio — including AI music, lip sync, and multi-shot sequencing. Calls Pexo's external API, manages project status and billing…

pexoai/pexo-skills · 193 tokens

acquiring-skills

Discover and install skills from Hermes, ClawHub, GitHub, and other registries. Load this skill whenever a user asks for a capability you don't already have — image generation, social media, email, calendar, finance, DevOps, search, browser automation, etc.

letta-ai/letta-code · 61 tokens

ai-voice-bots

Builds production voice bots and IVR with Python STT/TTS pipelines. Use when designing telephony, streaming audio, latency budgets, or voice quality monitoring.

vasilyu1983/AI-Agents-public · 39 tokens

performance-budget-lab

Use for website performance planning, Lighthouse/web-vitals checks, bundle/media/font budgets, Core Web Vitals triage, image/video optimization, animation performance, deployment readiness, and premium-site speed audits.

TheGoat395/Codex-Skills · 45 tokens