gamedev-threejs

gamedev-threejs is a command for coding agents 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

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 commands/joasasantos/claudeadvancedplugins/gamedev-threejs
Clone the repo
git clone --depth 1 https://github.com/JoasASantos/ClaudeAdvancedPlugins

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00000 $0.03003
Opus 5 $0.00000 $0.01502
Sonnet 5 $0.00000 $0.00601
Haiku 4.5 $0.00000 $0.00300

Measured 5d ago against content hash dbf82f72d66a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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. 5d 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 (154 stars, last pushed 6mo 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.