threejs

threejs is a skill for Claude Code, Codex from kyh/vibedgames. It costs 42 tokens per session (3,890 once invoked), scanned A, original, MIT.

A toolkit for making 3D browser apps and games with Three.js, a JavaScript library for displaying 3D graphics. It covers scenes, objects, lighting, animation, models, physics, cameras, and performance.

In plain words
What is it for?
Use it to build 3D scenes, interactive browser experiences, and games with character movement, collisions, follow cameras, animation, and physics.
Why use it?
It provides patterns for the graphics setup and reusable code for common game systems. It also explains why a rendered 3D scene alone is not yet a working game.

Skill for Claude CodeCodex

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

Good fit Use it to build 3D scenes, interactive browser experiences, and games with character movement, collisions, follow cameras, animation, and physics.

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

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 threejs

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kyh/vibedgames/threejs"><img src="https://agentmods.dev/badge/skills/kyh/vibedgames/threejs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,890 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 30
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
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.00042 $0.03890
Opus 5.5 $0.00017 $0.01556
Sonnet 5.5 $0.00008 $0.00778
Haiku 4.5 $0.00004 $0.00389

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

Security

Grade A, and why

threejs 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 2d 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.

skills/threejs/SKILL.md · 396 lines

How it starts

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

Three.js

Build performant 3D browser apps and games with Three.js using modern ES module patterns (r150+). This file covers scene setup inline; physics, controllers, gameplay architecture, and deep topics live in references/.

Core principles:

  1. Scene Graph First: everything added to scene renders. Use Group for hierarchical transforms (parent transforms affect children).
  2. Primitives as building blocks: built-in geometries (Box, Sphere, Torus) cover most simple cases.
  3. Animation as transformation: change position/rotation/scale over time in renderer.setAnimationLoop.
  4. Performance through simplicity: fewer objects, fewer draw calls, reusable geometries/materials.
  5. A scene is not a game: gameplay needs a fixed-timestep loop, a controller driven by input, collision, and a follow camera — see the Reference Files below before building one.

Prebuilt Modules — copy the hard parts, generate the rest

modules/ holds a small set of TypeScript files, one per .md (copy the code block into src/modules/), for the parts of a 3D game that are hard to get right and the same across games: framerate-independent smoothing + a deterministic PRNG (math.ts), Y-up orientation-frame helpers + a grounded character controller (character-movement.ts), a Rapier kinematic character-collision resolver (kinematic-resolver.ts), and effect plumbing — beat envelope, timeline cues, depth prepass for soft particles, camera-facing strips, lightning, a shockwave pass (vfx.ts). Copy these into the project rather than re-deriving them — inverted axes, framerate-dependent smoothing, and mis-wired Rapier controllers are the classic ways this goes wrong.

Everything else — camera rigs, enemy waves, pathfinding, steering, minimaps, input schemes — is not prebuilt on purpose: it differs per game and is cheap to write, so generate it live against the references below. Read modules/summary.md before pulling anything in.

Reference Files

Read the full file on GitHub · 396 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. 2d ago Changed 76cbe87584a1
  2. 3d ago Changed 978e70da8619
  3. 6d ago Changed · +2 lines 1f9f0cc239e0
  4. 7d ago Changed d920bbfd62c7
  5. 1mo ago Changed b19ff7a15220
  6. 2mo ago Changed · +1 lines · -238 tokens per session aafa01a4add6
  7. 3mo ago First seen · 393 lines · 280 tokens per session scan A 6bdb1659bc5c

Subscribe to this mod's changes

threejs is a skill published in the GitHub repository kyh/vibedgames (62 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 3,890 once invoked, about $0.0002 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-08-30.

Related

threejs compared with skills from other repositories

threejs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
threejskyh/vibedgamesSkill62todayMITA42Claude Code, Codex
inspector-workbenchCopilotKit/CopilotKitSkill39ktodayMITA112Claude Code
verifymeursyphus/ssgoiSkill1.0kyesterdayMITA26Claude Code
incident-hotfixHoangNguyen0403/agent-skills-standardSkill597yesterdayMITA27Codex
cyber-triageHoangNguyen0403/agent-skills-standardSkill597yesterdayMITA27Codex
verify-bugHoangNguyen0403/agent-skills-standardSkill597yesterdayMITA37Codex
dev-fixHoangNguyen0403/agent-skills-standardSkill597yesterdayMITA43Codex