gamedev-threejs

gamedev-threejs is a command for Claude Code from JoasASantos/ClaudeAdvancedPlugins. It costs 0 tokens per session (3,003 once invoked), scanned A, original, MIT.

A development guide for building browser games with Three.js, a JavaScript 3D graphics library, and React Three Fiber, a React tool for Three.js.

In plain words
What is it for?
Use it to create or structure browser-based 2D or 3D games, including their core runtime and rendering setup.
Why use it?
It gives the coding agent a defined approach for organizing game scenes, cameras, rendering, and the game loop instead of starting from scratch.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to create or structure browser-based 2D or 3D games, including their core runtime and rendering setup.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/joasasantos/claudeadvancedplugins/gamedev-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.

Clone the repo
git clone --depth 1 https://github.com/JoasASantos/ClaudeAdvancedPlugins

Made for: Claude Code.

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 gamedev-threejs

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/joasasantos/claudeadvancedplugins/gamedev-threejs"><img src="https://agentmods.dev/badge/commands/joasasantos/claudeadvancedplugins/gamedev-threejs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,003 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.00000 $0.03003
Opus 5.5 $0.00000 $0.01201
Sonnet 5.5 $0.00000 $0.00601
Haiku 4.5 $0.00000 $0.00300

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

Security

Grade A, and why

gamedev-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 2mo 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.

plugins/gamedev-threejs/commands/gamedev-threejs.md · 406 lines

How it starts

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

Three.js Game Development Plugin

You are an expert game developer specializing in browser-based games using Three.js, React Three Fiber, and related web technologies. You create performant, engaging games that run in any modern browser.

Game Architecture

Game Loop

class Game {
  private scene: THREE.Scene;
  private camera: THREE.PerspectiveCamera;
  private renderer: THREE.WebGLRenderer;
  private clock: THREE.Clock;
  private systems: GameSystem[] = [];
  private entities: Map<string, Entity> = new Map();
  private isRunning = false;

  constructor(canvas: HTMLCanvasElement) {
    this.clock = new THREE.Clock();
    this.scene = new THREE.Scene();
    this.camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
    this.renderer = new THREE.WebGLRenderer({ canvas, antialias: true, powerPreference: 'high-performance' });
    this.renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
    this.renderer.shadowMap.enabled = true;
    this.renderer.shadowMap.type = THREE.PCFSoftShadowMap;
    this.renderer.outputColorSpace = THREE.SRGBColorSpace;
    this.renderer.toneMapping = THREE.ACESFilmicToneMapping;
  }

  start() {
    this.isRunning = true;
    this.clock.start();
    this.loop();
  }

  private loop = () => {
    if (!this.isRunning) return;
    requestAnimationFrame(this.loop);

    const delta = this.clock.getDelta();
    const elapsed = this.clock.getElapsedTime();

    // Fixed timestep physics
    this.accumulator += delta;
    while (this.accumulator >= this.fixedStep) {
      this.fixedUpdate(this.fixedStep);
      this.accumulator -= this.fixedStep;
    }

    // Variable timestep rendering
    this.update(delta, elapsed);
    this.renderer.render(this.scene, this.camera);
  };

  private update(delta: number, elapsed: number) {
    for (const system of this.systems) {
      system.update(delta, elapsed, this.entities);
    }
  }

  private fixedUpdate(step: number) {
    for (const system of this.systems) {
      system.fixedUpdate?.(step, this.entities);
    }
  }
}

Read the full file on GitHub · 406 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. 2mo ago First seen · 406 lines · 0 tokens per session scan A dbf82f72d66a

Subscribe to this mod's changes

gamedev-threejs is a command published in the GitHub repository JoasASantos/ClaudeAdvancedPlugins (160 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,003 tokens. 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

gamedev-threejs compared with commands from other repositories

gamedev-threejs next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gamedev-threejsJoasASantos/ClaudeAdvancedPluginsCommand1608mo agoMITA0Claude Code
tech-debtstriderZA/OpenCodeGameStudiosCommand114yesterdayMITA9Claude Code
simHorizonRobotics/EmbodiedGenCommand7182mo agoApache-2.0A11Claude Code
team-uistriderZA/OpenCodeGameStudiosCommand114yesterdayMITA11Claude Code
cert-checkMRCalderon3D/everything-game-dev-codeCommand10428d agoMITA11Claude Code
combat-designMRCalderon3D/everything-game-dev-codeCommand10428d agoMITA14Claude Code
ui-flow-reviewMRCalderon3D/everything-game-dev-codeCommand10428d agoMITA15Claude Code