threejs-syntax-controls

threejs-syntax-controls is a skill for Claude Code, Codex from Impertio-Studio/Three.js-Claude-Skill-Package. It costs 114 tokens per session (3,346 once invoked), scanned A, original, MIT.

A guide for adding camera controls to Three.js scenes, such as orbiting around a model, panning, zooming, flying, or moving objects.

In plain words
What is it for?
Use it for model viewers, maps, free-flight scenes, first-person interfaces, and object manipulation tools.
Why use it?
It helps choose the appropriate control type and avoid update, cleanup, and control-mixing mistakes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it for model viewers, maps, free-flight scenes, first-person interfaces, and object manipulation tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/impertio-studio/three.js-claude-skill-package/threejs-syntax-controls
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 Impertio-Studio/Three.js-Claude-Skill-Package --skill threejs-syntax-controls
Clone the repo
git clone --depth 1 https://github.com/Impertio-Studio/Three.js-Claude-Skill-Package

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-syntax-controls

README.md
[![agentmods](https://agentmods.dev/badge/skills/impertio-studio/three.js-claude-skill-package/threejs-syntax-controls.svg)](https://agentmods.dev/skills/impertio-studio/three.js-claude-skill-package/threejs-syntax-controls)
Your own site
<a href="https://agentmods.dev/skills/impertio-studio/three.js-claude-skill-package/threejs-syntax-controls"><img src="https://agentmods.dev/badge/skills/impertio-studio/three.js-claude-skill-package/threejs-syntax-controls.svg" alt="Measured on agentmods" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,346 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.00114 $0.03346
Opus 5 $0.00057 $0.01673
Sonnet 5 $0.00023 $0.00669
Haiku 4.5 $0.00011 $0.00335

Measured 7d ago against content hash 3e73759aa0e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

threejs-syntax-controls 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.

skills/source/threejs-syntax/threejs-syntax-controls/SKILL.md · 336 lines

How it starts

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

threejs-syntax-controls

Quick Reference

Control Selection Decision Tree

Use Case Control Why
Inspect a 3D model from all angles OrbitControls Orbit/pan/zoom around a target point
Top-down map or 2D-style navigation MapControls Left-drag pans, right-drag rotates
Free-flight editor or space scene FlyControls Six degrees of freedom, WASD + mouse
First-person game with pointer lock PointerLockControls Hides cursor, captures mouse movement
First-person without pointer lock FirstPersonControls Mouse-look without browser lock API
Move/rotate/scale objects via gizmo TransformControls Interactive translate/rotate/scale handles
Drag objects along a plane DragControls Click-and-drag object repositioning
Unconstrained rotation (no gimbal lock) ArcballControls Full spherical rotation with animation
Unconstrained rotation (simpler) TrackballControls Like OrbitControls but no pole constraint

Import Paths (Three.js r160+)

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
import { MapControls } from 'three/addons/controls/MapControls.js';
import { FlyControls } from 'three/addons/controls/FlyControls.js';
import { FirstPersonControls } from 'three/addons/controls/FirstPersonControls.js';
import { PointerLockControls } from 'three/addons/controls/PointerLockControls.js';
import { TransformControls } from 'three/addons/controls/TransformControls.js';
import { TrackballControls } from 'three/addons/controls/TrackballControls.js';
import { ArcballControls } from 'three/addons/controls/ArcballControls.js';
import { DragControls } from 'three/addons/controls/DragControls.js';

ALWAYS use 'three/addons/controls/...' for r160+. The legacy path 'three/examples/jsm/controls/...' still works but is deprecated.

Critical Warnings

ALWAYS call controls.update() in the animation loop when enableDamping or autoRotate is true. Failing to do so causes the camera to freeze after user interaction ends.

Read the full file on GitHub · 336 lines

Files

What ships with it

4 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.

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. 7d ago First seen · 336 lines · 114 tokens per session scan A 3e73759aa0e5

Subscribe to this mod's changes

threejs-syntax-controls is a skill published in the GitHub repository Impertio-Studio/Three.js-Claude-Skill-Package (11 stars, last pushed 2mo ago), licensed MIT. It adds 114 tokens to every session and 3,346 once invoked, about $0.0006 per session on Opus 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

Other skills, from other repositories