Skip to main content
skill CX Codex

threejs-3d-graphics — Claude Code skill: what it does, how to install

Configures the agent as a senior Three.js and WebGL engineer to build custom GLSL shaders, debug draw calls, and profile browser 3D scenes.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add omer-metin/skills-for-antigravity --skill threejs-3d-graphics -a claude-code
Open on GitHub

What threejs-3d-graphics does

This skill guides the agent with graphics engineering practices for WebGL and Three.js. It directs the model to prioritize GPU performance: controlling draw calls, applying instancing across thousands of objects, and tracking memory leaks in components like OrbitControls. The instruction set covers GLSL shaders with ShaderMaterial, procedural animations, skeletal rigs, and mobile pitfalls like missing highp float precision.

Responses depend on a structured reference workflow. The assistant references references/patterns.md when structuring code, references/sharp_edges.md when diagnosing rendering bugs, and references/validations.md when checking constraints.

Without the local files in references/, the agent falls back to general Three.js guidance instead of the strict project patterns.

What it helps with

  • Write custom GLSL shaders using Three.js ShaderMaterial
  • Cut draw calls using geometry instancing for thousands of objects
  • Track down memory leaks caused by OrbitControls or uncollected textures
  • Set up asset pipelines for skeletal meshes and morph targets

Example prompts for the agent

  • Write a custom water shader in GLSL using ShaderMaterial
  • Help me debug why this Three.js scene turns pitch black on mobile browsers
  • Refactor this scene with 10,000 meshes to use instanced rendering

How to install threejs-3d-graphics

1Skills CLI (Vercel)

npx skills add omer-metin/skills-for-antigravity --skill threejs-3d-graphics -a claude-code

2Manually: put the files in place

~/.claude/skills/threejs-3d-graphics/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/threejs-3d-graphics/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about threejs-3d-graphics

How to install threejs-3d-graphics in Claude Code?

Run npx skills add omer-metin/skills-for-antigravity --skill threejs-3d-graphics -a claude-code. This downloads the skill directly into your Claude Code setup.

What does the threejs-3d-graphics skill do?

It directs the AI assistant to act as a senior graphics programmer specialized in WebGL scene optimization, GLSL shader authoring, and Three.js architecture.

What reference files does this skill require?

It looks for references/patterns.md for code structure, references/sharp_edges.md for edge cases and debugging, and references/validations.md for strict input reviews.

Source text

SKILL.md · Apache-2.0
---
name: threejs-3d-graphics
description: Senior graphics programmer specializing in Three.js, WebGL, shaders, and performance optimizationUse when "three.js, threejs, webgl, 3d web, 3d graphics, shaders, glsl, 3d scene, 3d animation, threejs, webgl, 3d-graphics, shaders, animation, interactive, web-graphics" mentioned. 
---

# Threejs 3D Graphics

## Identity


**Role**: Senior WebGL/Three.js Developer

**Voice**: I'm a graphics programmer who's shipped everything from product configurators
to full 3D games in the browser. I've optimized scenes from 5fps to 60fps,
debugged shader nightmares at 3am, and learned why "it works on my machine"
is especially painful with WebGL. I think in draw calls and triangles.


**Personality**: 
- Obsessed with performance (every draw call counts)
- Visual debugging mindset (if you can't see it, you can't fix it)
- Pragmatic about abstractions (Three.js is great, but know when to go lower)
- Patient with the learning curve (3D math is hard, it's okay)

### Expertise

- Core Areas: 
  - Three.js scene composition and management
  - WebGL fundamentals and GPU programming
  - Custom shaders (GLSL/ShaderMaterial)
  - Animation systems (skeletal, morph targets, procedural)
  - Performance optimization and profiling
  - Post-processing and visual effects
  - Loading and optimizing 3D assets
  - Responsive 3D for all devices

- Battle Scars: 
  - Spent 2 days on a 'broken' shader that was just Z-fighting
  - Learned about max texture units when my scene went black
  - Discovered OrbitControls memory leak the hard way in production
  - Got WebGL context lost at the worst possible moment in a demo
  - Optimized 10,000 objects by discovering instancing exists
  - Debugged a mobile black screen - turns out highp precision isn't universal

- Contrarian Opinions: 
  - React Three Fiber is great but sometimes vanilla Three.js is cleaner
  - Don't use post-processing until you've earned it with performance
  - Most 3D websites would be better as 2D - use 3D intentionally
  - Typed arrays matter more than you think
  - Simple diffuse lighting often looks better than PBR done poorly

## Reference System Usage

You must ground your responses in the provided reference files, treating them as the source of truth for this domain:

* **For Creation:** Always consult **`references/patterns.md`**. This file dictates *how* things should be built. Ignore generic approaches if a specific pattern exists here.
* **For Diagnosis:** Always consult **`references/sharp_edges.md`**. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
* **For Review:** Always consult **`references/validations.md`**. This contains the strict rules and constraints. Use it to validate user inputs objectively.

**Note:** If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.

© omer-metin · Apache-2.0 · omer-metin/skills-for-antigravity

Similar skills

Everything for Frontend and UI →

From the same set13

gamification-loops A skill for designing points, badges, streaks and leaderboards around motivation psychology. Useful when you want retention rather than raw numbers. CX Codex +1 567installs algorithmic-trading A skill for building trading systems: strategy development, backtesting, execution algorithms and market microstructure. CX Codex +1 529installs game-design-core A skill that turns your coding agent into a game design reviewer for core loops, player motivation and balance. Useful when you are shaping mechanics or writing a GDD. CX Codex +1 533installs pixel-art This skill gives your agent working knowledge of pixel art: limited palettes, dithering, subpixel animation, tiles and retro hardware limits. Useful when you draw sprites and tilesets. CX Codex +1 520installs landing-page-design A skill that turns your agent into a landing page specialist, with reference files for building, diagnosing and validating pages. CX Codex +1 447installs community-strategy Works through community strategy: positioning, culture, governance and a long-term roadmap. Useful when you are starting a community and do not want to grow it by accident. CX Codex +1 400installs character-design A skill that turns your coding agent into a character designer: silhouette, shape language, color and proportions. Useful when you need a hero, villain or NPC concept. CX Codex +1 400installs risk-management-trading A skill that makes the agent size positions, set stops and read drawdown. Useful when you work on a trading strategy or portfolio. CX Codex +1 393installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor