Skip to content

Guide · Agent skill

How to use the WebGL 3D Object agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The webgl-3d-object skill is a set of instructions that teaches an AI agent to build one real three-dimensional object with WebGL and Three.js for a web page, such as a faceted hero shape with lighting, shadows and depth. It is for front-end developers and designers who want more than CSS transform tricks. After reading this guide you will know what the skill does, how to install it, how to phrase a request so it triggers, and what to check in the result.

WebGL 3D ObjectMengTo/Skills · MIT

Quick start

  1. 1Download the ZIP. Download the webgl-3d-object ZIP from this page and unzip it.
  2. 2Place the skill folder. Put the folder in ~/.claude/skills/ for personal use or in a project's .claude/skills/ folder. In the Claude apps, upload it under Settings → Capabilities → Skills instead.
  3. 3Install Three.js in your project. The generated code imports the library as 'three', so your project needs Three.js set up before the object will run.
  4. 4Prepare a canvas. Add the wrapper div and canvas with the webgl-object-shell and webgl-object-canvas classes and the data-webgl-3d-object attribute.
  5. 5Ask for the object. Request the object by naming $webgl-3d-object and describing the placement, shape, colour and mood.
  6. 6Review and test. Check the object against the skill's quick checks, including resizing and reduced motion.

What the skill makes the agent do

When the skill is active, the agent writes the HTML, CSS and JavaScript for a single 3D object drawn on a canvas. The skill's rules call for real geometry such as IcosahedronGeometry, DodecahedronGeometry, BoxGeometry, custom BufferGeometry or a glTF mesh, viewed through a perspective camera.

The object is lit with PBR material (MeshStandardMaterial or MeshPhysicalMaterial), at least one directional light, and ambient or hemisphere fill. It moves only through transforms: subtle rotation, gentle floating and optional parallax. The generated code also handles resizing and disposes of geometry, material and renderer on teardown.

  • Real geometry, lighting, highlights and edges instead of flat gradients or SVG illusions
  • Tunable metalness, roughness and emissive values to match a brand mood
  • Reduced-motion handling: a still frame or direct interaction only
  • Cleanup code that removes event listeners, animation frames and GPU resources

Install the webgl-3d-object skill

Download the ZIP for this skill from this page and unzip it. The skill folder contains SKILL.md, which holds the instructions, plus a demo folder with index.html, PROMPT.md and source.json.

For a personal install, place the unzipped skill folder in ~/.claude/skills/. To limit it to one project, place it in that project's .claude/skills/ folder instead.

If you use the Claude apps, you can instead upload the skill under Settings → Capabilities → Skills.

  • Personal: ~/.claude/skills/
  • Single project: the project's .claude/skills/ folder
  • Claude apps: Settings → Capabilities → Skills, then upload

Requirements before you start

The output is not a file you drop onto a page unchanged. The skill's code imports the Three.js library as 'three', so your project must have Three.js installed and integrated with your bundler or import setup.

The target page needs a canvas element and a browser that supports WebGL. The skill's HTML uses a wrapper div with the class webgl-object-shell and a canvas with the class webgl-object-canvas and the attribute data-webgl-3d-object.

You also need a coding environment where the agent can write HTML, CSS and JavaScript.

  • Three.js library, imported as 'three'
  • A page with a canvas element and WebGL support in the browser
  • A coding environment the agent can write files into

Trigger the skill with a natural request

Name the skill with $webgl-3d-object or describe the need in plain language. The skill's description matches requests for a faceted 3D hero object or a product-like visual with real lighting, as opposed to CSS transform effects.

Good requests say where the object goes, what it should look like and what the mood is. Mention the brand colour and whether it should be metallic, ceramic or glowing. Say if the object must sit beside foreground copy or calls to action, so the agent keeps it secondary.

  • Use $webgl-3d-object to build a faceted gem-like hero object for our landing page, in a cool blue with a brand-tinted rim light.
  • Use $webgl-3d-object to make a metallic product-style 3D element beside the pricing headline, with subtle floating and reduced-motion support.

Tune material, light and motion

The skill gives starting ranges you can ask the agent to apply. Premium metal uses metalness between 0.45 and 0.7 with roughness between 0.25 and 0.45. Soft ceramic uses metalness between 0.0 and 0.15 with roughness between 0.38 and 0.62. A glow-tinted tech object uses low emissive with emissiveIntensity between 0.12 and 0.35.

For faceted objects set flatShading to true. For a smooth product object set it to false. Keep ambient fill low so shadows stay visible, and use a cool rim light from behind to reveal edges.

Floating should move the object between 0.04 and 0.12 units on the Y axis. Keep rotation slow and secondary to the page content.

  • Metal: metalness 0.45 to 0.7, roughness 0.25 to 0.45
  • Ceramic: metalness 0.0 to 0.15, roughness 0.38 to 0.62
  • Floating: 0.04 to 0.12 units on Y

Check the result

Run the page and compare it to the checklist in the skill. The object should show visible form, edges, highlights and shadows. Resize the browser window and confirm the object does not stretch. Turn on the operating system's reduced-motion setting and confirm the motion stops.

Check that the code removes its listeners, cancels the animation frame and disposes of the renderer when the cleanup function runs.

  • Visible form, edges, highlights and shadows
  • Camera is perspective
  • Resizing does not stretch the object
  • Reduced-motion preference respected
  • Cleanup runs on teardown

What people use it for

  • A faceted gem-like hero object above a SaaS landing page headline
  • A metallic product-style element beside a pricing section
  • A tech-styled glowing shape as a feature block visual
  • A reusable WebGL object pattern shared across a team's pages

Frequently asked questions

Is the webgl-3d-object skill free?

The skill is published under the MIT licence, as stated on this page. Check the licence file in the download for the full terms before you use it in a commercial project.

What do I need to use the webgl-3d-object skill?

You need the Three.js library imported as 'three', a web page with a canvas element, a browser that supports WebGL, and a coding environment where the agent can write HTML, CSS and JavaScript. The skill does not run scripts and does not use the network.

How do I install the webgl-3d-object skill?

Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder. In the Claude apps you can upload it under Settings → Capabilities → Skills.

Can I just embed the generated file on my site?

Not directly. The output needs the Three.js library installed and integrated into your project, so it is not a ready-made embeddable file.

Does the 3D object work on mobile and respect reduced motion?

The skill warns that high pixel ratios and large shadow maps can hurt performance on low-end mobile, so it suggests keeping DPR moderate and shadow maps modest. Its code checks the prefers-reduced-motion setting and renders a still frame when it is on.

When should I use CSS instead of this skill?

Use CSS when you only need flat images or simple effects, because the WebGL code adds weight and complexity. The skill is aimed at pages that need one strong object with real lighting and depth.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Choose this skill if you are a front-end developer or designer who wants a striking, lit 3D hero object built in code with cleanup and reduced-motion handling already covered. Skip it if your page only needs flat images or simple CSS effects, or if you have no coding setup to integrate Three.js.

Download the skill