frontend-3d

frontend-3d is a command for coding agents from JoasASantos/ClaudeAdvancedPlugins. It costs 0 tokens per session (1,811 once invoked), scanned A, original, MIT.

A guide for building interactive 3D graphics and scenes that run in a web browser, using tools such as Three.js, React Three Fiber, WebGL, and WebGPU.

In plain words
What is it for?
Use it to create 3D scenes, animations, interactive models, visual effects, shadows, environments, and React-based 3D interfaces.
Why use it?
It helps developers handle the rendering, lighting, controls, effects, and performance details needed for browser-based 3D.

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/frontend-3d
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 frontend-3d

README.md
[![agentmods](https://agentmods.dev/badge/commands/joasasantos/claudeadvancedplugins/frontend-3d.svg)](https://agentmods.dev/commands/joasasantos/claudeadvancedplugins/frontend-3d)
Your own site
<a href="https://agentmods.dev/commands/joasasantos/claudeadvancedplugins/frontend-3d"><img src="https://agentmods.dev/badge/commands/joasasantos/claudeadvancedplugins/frontend-3d.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 1,811 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.01811
Opus 5 $0.00000 $0.00905
Sonnet 5 $0.00000 $0.00362
Haiku 4.5 $0.00000 $0.00181

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

Security

Grade A, and why

frontend-3d 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.

plugins/frontend-3d/commands/frontend-3d.md · 253 lines

How it starts

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

Frontend 3D & WebGL Plugin

You are an expert in 3D web development using Three.js, React Three Fiber, WebGL, and WebGPU. You create immersive 3D experiences for the web.

Three.js Core

Scene Setup

import * as THREE from 'three';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';

// Renderer with best practices
const renderer = new THREE.WebGLRenderer({
  antialias: true,
  alpha: true,
  powerPreference: 'high-performance',
  stencil: false,
  depth: true
});
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2)); // Cap for performance
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.outputColorSpace = THREE.SRGBColorSpace;
renderer.toneMapping = THREE.ACESFilmicToneMapping;
renderer.toneMappingExposure = 1.0;
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;

React Three Fiber (R3F)

import { Canvas, useFrame, useThree } from '@react-three/fiber';
import {
  OrbitControls, Environment, Float, Text3D,
  useGLTF, useTexture, MeshTransmissionMaterial,
  Sparkles, Stars, Cloud, Sky, ContactShadows
} from '@react-three/drei';
import { Physics, RigidBody } from '@react-three/rapier';
import { EffectComposer, Bloom, ChromaticAberration } from '@react-three/postprocessing';

function Scene() {
  return (
    <Canvas
      camera={{ position: [0, 2, 5], fov: 45 }}
      shadows
      dpr={[1, 2]}
      gl={{ antialias: true, toneMapping: THREE.ACESFilmicToneMapping }}
    >
      {/* Lighting */}
      <ambientLight intensity={0.4} />
      <directionalLight
        position={[10, 10, 5]}
        intensity={1.5}
        castShadow
        shadow-mapSize={[2048, 2048]}
      />

      {/* Environment */}
      <Environment preset="sunset" background blur={0.5} />
      <Stars radius={100} depth={50} count={5000} factor={4} />
      <fog attach="fog" args={['#000', 5, 30]} />

      {/* 3D Content */}
      <Float speed={2} rotationIntensity={0.5} floatIntensity={1}>
        <AnimatedModel />
      </Float>

      {/* Physics */}
      <Physics gravity={[0, -9.81, 0]}>
        <RigidBody type="fixed">
          <mesh rotation={[-Math.PI / 2, 0, 0]} receiveShadow>
            <planeGeometry args={[50, 50]} />
            <shadowMaterial opacity={0.3} />
          </mesh>
        </RigidBody>
      </Physics>

      {/* Post-Processing */}
      <EffectComposer>
        <Bloom luminanceThreshold={0.9} intensity={0.5} />
        <ChromaticAberration offset={[0.001, 0.001]} />
      </EffectComposer>

      {/* Controls */}
      <OrbitControls enableDamping dampingFactor={0.05} />
      <ContactShadows position={[0, -0.5, 0]} opacity={0.5} />
    </Canvas>
  );
}

Read the full file on GitHub · 253 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. 4d ago First seen · 253 lines · 0 tokens per session scan A 2c5a49dfb0b0

Subscribe to this mod's changes

frontend-3d 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 1,811 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.