/visual-effects:threejs-animated-3dfrom visual-effects
Builds, animates, troubleshoots, and validates Three.js/WebGL 3D scenes and galleries. Use when Codex needs browser-rendered 3D visuals, animated camera or object motion, particle fields, 3D data views, material and lighting studies, interactive canvas scenes, or a Three.js example page that should be verified with Playwright canvas-pixel checks.
Ships in visual-effects. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
When a task names a specific output file, treat that path as fixed. Before coding, capture it:
$OutputHtml = "scene.html"
Replace the example value with the exact requested path. Do not substitute descriptive names such as portable-3d-scene.html, three-scene.html, or index.html, even if the task description says "portable" or "3D scene". When the task forbids network access or package installation, run scripts/build_standalone_threejs.py with the exact output path. The builder inlines the bundled Three.js module and core into the HTML, so the artifact remains portable from nested output directories without CDN scripts, remote fonts, package installation, or copied vendor files.
references/visual-tokens.md before styling. Default to colorset1: allocate distinct category materials from primary red #9e1b32, then the bundled dark/middle interleave of grays including black, white, and the remaining colors, excluding only the actual canvas token. Preserve ordered-value scales and named semantic materials. Pink is a last-resort category after the preceding usable colors, never an automatic secondary color. Use colorset2 only for explicit extended color. Use white lights so objects retain their hue.references/scene-patterns.md: read when choosing scene types, structuring a Three.js gallery, or implementing cameras, lights, materials, particles, and resize-safe renderers.references/validation.md: read when writing Playwright checks, canvas pixel probes, movement checks, replay checks, or screenshot verification for Three.js output.scripts/build_standalone_threejs.py: run for portable no-network HTML at an exact path. Use --scene vector-field --token-count 20 for the directed cone/cylinder field; read its compact recipe in references/scene-patterns.md.scripts/validate_standalone_threejs.py: run after the standalone builder; it performs static, desktop/mobile canvas, animation, replay, pointer, overflow, and browser-error checks in one fail-closed command.assets/templates/self-contained-token-orbit.html: builder source template; do not copy it directly because its runtime marker must be expanded.assets/vendor/three.module.min.js and assets/vendor/three.core.min.js: bundled inputs that the builder embeds into the standalone HTML.Create a no-network runtime scene with an exact output path:
The builder uses colorset1 and compact spacing by default. Pass --colorset colorset2 only for an explicit extended palette; --density comfortable is
available for requested larger spacing. Use --title "Scene heading" for the
visible heading and --token-count 12 for a different orbit count (1–24), reusing
role colors as the count grows. Keep generated files outside the skill directory.
$OutputHtml = "scene.html"
uv run --script skills/threejs-animated-3d/scripts/build_standalone_threejs.py $OutputHtml
if (!(Test-Path -LiteralPath $OutputHtml)) { throw "Missing requested Three.js HTML output path." }
if (Test-Path -LiteralPath "portable-3d-scene.html") { throw "Wrong output filename: use the exact requested path." }
if (Test-Path -LiteralPath "three.module.min.js") { throw "Standalone build must not copy vendor files to the workspace root." }
Select-String -Path $OutputHtml -Pattern "https?://|//cdn|unpkg|jsdelivr|esm.sh" -Quiet | ForEach-Object { if ($_) { throw "External network reference found." } }
uv run --script skills/threejs-animated-3d/scripts/validate_standalone_threejs.py $OutputHtml --report scene-validation.json --screenshot scene.png
The validator declares Playwright dependencies: always run it with
uv run --script, never bare python. It can reuse installed Edge/Chrome on
Windows when managed Chromium is absent. Use the bundled validator instead of probing Playwright object internals or
issuing an unguarded grep whose expected no-match exit code becomes a tool
error. Treat its nonzero exit as the validation failure and fix the artifact.
For repository acceptance-fixture maintenance only, set <skill-root> to the full threejs-animated-3d source directory. The commands below require assets/examples/, which is intentionally excluded from the normal runtime payload.
Install and verify the included Three.js gallery fixture:
npm install --prefix <skill-root>/assets/examples/threejs-animated-3d
npm run build --prefix <skill-root>/assets/examples/threejs-animated-3d
npm run verify --prefix <skill-root>/assets/examples/threejs-animated-3d
Run the example page locally:
npm run dev --prefix <skill-root>/assets/examples/threejs-animated-3d
Read references/visual-tokens.md before creating or updating examples, galleries, captures, or user-facing controls. Use Open Sans for page text, Material Symbols Rounded for replay/reset icons, and the documented brand palette for editable scene materials, page chrome, controls, highlights, and replay states.
When a Three.js scene, material setup, camera move, interaction, or replay behavior proves reusable, update references/scene-patterns.md before finishing. Capture the scene pattern name, trigger, geometry/data contract, camera and lighting setup, animation clock, replay/reset API, responsive sizing rules, and validation checks. Put browser and canvas-pixel verification lessons in references/validation.md.
After changing this skill, its references, or examples, run:
uv run --script scripts/validate-skills.py
uv run --script skills/threejs-animated-3d/scripts/validate_standalone_threejs.py <artifact.html> --report <report.json> --screenshot <preview.png>
When changing the example gallery, also run the Common Commands build and verify steps. Inspect generated screenshots under projects/threejs-animated-3d-validation/artifacts/screenshots/ and confirm all canvases are nonblank, animated, color-tokened, responsive, and interactive.
Use opaque, single-token filled marks without decorative borders first. Read
solidSequence and textOnFill from assets/palettes/colorsets.json. Reuse a
fill for the same semantic role; when roles must be distinct, exhaust every
usable distinct token in the preferred sequence, excluding the actual canvas,
before creating outline or tint combinations. Soft tokens occur late. For text
on a fill, use exactly black or white with the larger WCAG contrast computed
from the actual background; composite opacity before evaluating translucent
backgrounds. Do not infer text color from a hue name.
Keep connectors, axes, signal traces, open line art, physical geometry and
explicit source-fidelity modes. A stroke that depicts a relationship or is the
geometry itself is meaningful. Reserve decorative outlines for a documented
palette overflow or an explicit requested style; mark SVG overflow treatments
with data-outline-tier="overflow". A transient keyboard focus ring remains an
interaction affordance. Use position, whitespace and direct labels for ordinary
selection and grouping.
agents/openai.yaml (opens in a new tab)assets/examples/threejs-animated-3d/index.html (opens in a new tab)assets/examples/threejs-animated-3d/package-lock.json (opens in a new tab)assets/examples/threejs-animated-3d/package.json (opens in a new tab)assets/examples/threejs-animated-3d/scripts/verify-gallery.mjs (opens in a new tab)assets/examples/threejs-animated-3d/src/main.js (opens in a new tab)assets/examples/threejs-animated-3d/src/styles.css (opens in a new tab)assets/examples/threejs-animated-3d/vite.config.js (opens in a new tab)assets/palettes/colorsets.json (opens in a new tab)assets/templates/self-contained-token-orbit.html (opens in a new tab)assets/vendor/three.core.min.js (opens in a new tab)assets/vendor/three.module.min.js (opens in a new tab)references/scene-patterns.md (opens in a new tab)references/validation.md (opens in a new tab)references/visual-tokens.md (opens in a new tab)scripts/build_standalone_threejs.py (opens in a new tab)scripts/validate_standalone_threejs.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gvillarroel/plugins --plugin visual-effects5 skills in this plugin
/kornia-artistic-transformsApplies reproducible Kornia and PyTorch artistic transformations to supplied raster images, including adaptive engraving, pigment regions, halftones, stitches, ink strata and cellular mosaics. Supports ordered combinations, comparison galleries and feedback-led iteration while preserving image proportions. Use for algorithmic image reinterpretation and technique exploration; generative image creation, SVG tracing and measured depth reconstruction are separate tasks./one-bit-dither-svgTransforms local SVGs and raster images into self-contained pixel SVGs, or restyles declarative animated SVGs and animated raster images as palette-optimized GIFs, with a one-bit dithered engraving aesthetic. Includes Obra Dinn-inspired black-and-white, custom-color-and-white, and region-aware source-color modes. Use for retro 1-bit, stippled, or high-contrast treatment of illustrations, photos, screenshots, logos, diagrams, SVG/CSS/SMIL animation, and animated GIF/WebP/APNG files; not when source editability, JavaScript-driven motion, or interaction must remain intact./pixel-art-image-videoConverts local raster or SVG images and local videos or animated rasters into crisp pixel art with adaptive, custom, or exact source colors. Use for retro game-style PNG/WebP stills, MP4/GIF motion, lossless MKV video, and image-dependent pixel-density tuning; do not use when the source must remain editable vector art or JavaScript-driven SVG motion needs direct capture.Other plugins' skills for the same job