example-threejs

example-threejs is a skill for Claude Code, Codex from BintzGavin/helios. It costs 30 tokens per session (957 once invoked), scanned A, original, Apache-2.0.

A collection of patterns for using Helios with Three.js and React Three Fiber, tools for creating interactive 3D graphics in JavaScript and React. It covers 3D animations and WebGL scene integration.

In plain words
What is it for?
Use it when creating 3D animations or adding WebGL scenes through Three.js and React Three Fiber.
Why use it?
It helps developers combine Helios video compositions with 3D scenes rendered in the browser. It provides a starting point for handling this specific graphics setup.

Skill for Claude CodeCodex

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

Good fit Use it when creating 3D animations or adding WebGL scenes through Three.js and React Three Fiber.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bintzgavin/helios/threejs"><img src="https://agentmods.dev/badge/skills/bintzgavin/helios/threejs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 957 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.00030 $0.00957
Opus 5.5 $0.00012 $0.00383
Sonnet 5.5 $0.00006 $0.00191
Haiku 4.5 $0.00003 $0.00096

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

Security

Grade A, and why

example-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 3mo 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/examples/threejs/SKILL.md · 137 lines

How it starts

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

Three.js Composition Patterns

Integrate Helios with Three.js to drive 3D animations frame-by-frame. This ensures deterministic rendering and perfect synchronization.

Quick Start (React Three Fiber)

The key is to disable the R3F internal loop (frameloop="never") and drive the scene update manually via the advance() method in a Helios subscription.

1. Setup Component

import React, { useState, useEffect } from 'react';
import { Canvas } from '@react-three/fiber';
import { Helios } from '@helios-project/core';

// Singleton Helios instance
const helios = new Helios({
  fps: 30,
  duration: 10,
  width: 1920,
  height: 1080
});

if (typeof window !== 'undefined') {
    window.helios = helios; // Expose for Player/Renderer
}

export default function App() {
  const [r3fState, setR3fState] = useState(null);

  useEffect(() => {
    if (!r3fState) return;

    // Subscribe to Helios ticks
    const unsubscribe = helios.subscribe((state) => {
      // Calculate time in seconds
      const timeInSeconds = state.currentFrame / state.fps;

      // Manually advance R3F state
      // This updates the clock and renders the scene
      r3fState.advance(timeInSeconds);
    });

    return unsubscribe;
  }, [r3fState]);

  return (
    <Canvas
      frameloop="never" // Disable automatic loop
      onCreated={(state) => setR3fState(state)} // Capture R3F state
      gl={{ antialias: true }}
    >
      <Scene />
    </Canvas>
  );
}

2. Scene Component

Use useFrame as usual, but it will only fire when advance() is called.

import { useRef } from 'react';
import { useFrame } from '@react-three/fiber';

function Scene() {
  const meshRef = useRef();

  useFrame((state, delta) => {
    // state.clock.elapsedTime is now synced with Helios
    const time = state.clock.elapsedTime;

    if (meshRef.current) {
        meshRef.current.rotation.x = time;
        meshRef.current.rotation.y = time * 0.5;
    }
  });

  return (
    <mesh ref={meshRef}>
      <boxGeometry />
      <meshStandardMaterial color="orange" />
    </mesh>
  );
}

Read the full file on GitHub · 137 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. 3mo ago First seen · 137 lines · 30 tokens per session scan A 7ef1bc054a48

Subscribe to this mod's changes

example-threejs is a skill published in the GitHub repository BintzGavin/helios (138 stars, last pushed 22d ago), licensed Apache-2.0. It adds 30 tokens to every session and 957 once invoked, about $0.0001 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

example-threejs compared with skills from other repositories

example-threejs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
example-threejsBintzGavin/heliosSkill13822d agoApache-2.0A30Claude Code, Codex
next-bundle-optimizerdarkroomengineering/satusSkill1.0k16d agoMITA38Claude Code, Codex
page-transition-animationiart-ai/web-animation-skillsSkill12923d agoMITA106Claude Code
motion-lexiconRyan-yang125/motion-lexiconSkill511mo agoMITA157Codex
react-doctordarkroomengineering/satusSkill1.0k16d agoMITA70Claude Code, Codex
cinematic-scrollMustBeSimo/cinematic-scroll-skillSkill342mo agoMITA78Claude Code
gsap-choreographyCostumary/gsap-choreographySkill136mo agononeA52Claude Code, Codex