by gokayfem
Procedural GLSL for AI coding agents. Includes 197 distinct function names across 21 modules, 27 interactive Shadertoy/WebGL2 studies, two WebGPU worlds, a shader bundler and a checker.
# Add to your Claude Code skills
git clone https://github.com/gokayfem/shader-skillsGuides for using ai agents skills like shader-skills.
shader-skills is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by gokayfem. Procedural GLSL for AI coding agents. Includes 197 distinct function names across 21 modules, 27 interactive Shadertoy/WebGL2 studies, two WebGPU worlds, a shader bundler and a checker. It has 684 GitHub stars.
shader-skills's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/gokayfem/shader-skills" and add it to your Claude Code skills directory (see the Installation section above).
shader-skills is primarily written in Rust. It is open-source under gokayfem on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh shader-skills against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Shader Skills helps coding agents write, debug and optimize procedural GLSL for Shadertoy and WebGL2. Start with an editable scene, change the lighting or geometry, and bundle it into a single shader. The skill includes 197 distinct GLSL function names across 21 modules, a dependency bundler and a checker. It works with Claude Code, Codex, Cursor, GitHub Copilot and Gemini CLI.
The full repository includes 27 interactive shader studies and two WebGPU worlds. Use the studies to isolate an effect, then explore how a swimmable kelp forest or a streamed landscape handles visibility, lighting and frame time. Offline shader viewer · WebGPU worlds · Performance guide
npx skills add gokayfem/shader-skills
Choose shader-art-coding and your coding agent in the installer. Then ask:
Create a Shadertoy shader of an alpine valley with snow, a winding river and atmospheric depth. Use the shader-art-coding skill, bundle the result into one file, and check it.
Install options · Shader gallery · Usage · GLSL library · Video-to-shader prompt · Releases · Contributing
Open the self-contained shader viewer from a local checkout, or download the HTML using GitHub’s Download raw file button. It runs offline in a WebGL2 browser. Explore 24 single-pass shaders and three multipass examples. Pause motion, inspect diagnostic views, or switch between fixed resolution and adaptive 30 or 60 fps targets.
![]() |
![]() |
![]() |
|---|---|---|
| Morpho. Change the optical period or watch the left and right wings flash as they tilt. | Comb jelly. Follow the light along eight rows of beating plates. Turn off the side light to isolate the transparent body. | Accretion disk. Lower the camera toward the disk and watch its far side arc over the shadow. Toggle light-path caching. |
![]() |
![]() |
![]() |
| Streamline press. Paper grain follows a vector field around a vermilion cylinder. Change its radius to move the stagnation points. | Reaction–diffusion. Drag to seed a two-channel feedback simulation. Change the feed and removal rates to grow a different pattern. | Cached alpine valley. Move the camera over a retained elevation texture. Three-camera comparison |
The research studies guide links the original papers, explains the approximations and gives a second shot to try for each technique.
Compare the chamber to its 80-patch feedback solver in the offline viewer. The world rendering guide gives a diagnostic experiment for each scene.
The full checkout also contains a swimmable WebGPU dive and a Rust/WebGPU landscape renderer with a browser editor. Open the worlds guide for launch instructions and subsystem walkthroughs, or browse all 541 source files and assets.
Where you spend pixels matters. On an Apple M4 in Chrome, reducing the fixed cloud study from 800 × 450 to 480 × 270 cut median image-pass time from 15.00 to 5.55 ms. The same change saved 0.70 ms on the wreck. Each figure includes a one-pixel readback and comes from 60 samples per size. Benchmark method and p95 results
The worlds show how those decisions look in a complete renderer. Trace half-resolution light shafts and distance-based kelp geometry in the dive, or follow cluster rejection and coarse-first streaming in the landscape. Rendering techniques · Frame pacing at six dive viewpoints
Inspect the grain, normals, and layer masks in the material study.
The agate shader combines filtered mineral bands with a faceted quartz pocket. Adjust BAND_COUNT to change the
spacing and BACKLIGHT to bring out the translucent center. The Voronoi crystal calculation runs inside the pocket.
Open Woodland Edge in the offline viewer to widen the wet bank or clear trees and inspect the understory response. Habitat study
Each image links to its paste-ready shader. The sources are in skills/shader-art-coding/templates/.
Coding agents can misremember formulas or skip visual checks, and WebGL rejects code that desktop GLSL accepts. Common results are struct ternaries, sine hashes that differ per GPU, SDFs with wrong signs, double gamma, and fog that ignores the sky. This skill closes those gaps:
Tested building blocks instead of recalled ones. Every SDF is checked on the GPU:
Noise derivatives are checked against finite differences, curl noise for zero divergence, color transforms for round trips, and intersectors against their SDFs.
A bundler, so the agent writes sdRoundCone(...), softShadow(...), tonemapAgX(...) by name and ships one
self-contained file.
A checker that catches WebGL1 leftovers, sine hashes, #version lines and missing mainImage, and compiles
with glslangValidator.
A workflow with a fixed debug-mode convention, so problems are inspected as fields rather than guessed at.
Routing from subjects ("a jellyfish", "snowy mountains") to techniques, templates and formulas.
Claude Code (plugin marketplace):
claude plugin marketplace add gokayfem/shader-skills
claude plugin install shader-skills@shader-skills
For a manual Claude Code installation, copy skills/shader-art-coding into ~/.claude/skills/ after cloning the repository (see below).
Codex, Cursor, Gemini CLI, GitHub Copilot and other supported agents (via skills):
npx skills add gokayfem/shader-skills
The installer requires Node.js 22.20 or later and installs into the current project by default; add -g for a
global installation. See the skills CLI documentation for supported agents.
Manual installation: clone the reposi