compiling-wgsl

compiling-wgsl is a skill for Claude Code, Codex from oaustegard/claude-skills. It costs 206 tokens per session (5,234 once invoked), scanned A, original, MIT.

A toolchain for converting GLSL graphics and compute shaders to WGSL, the shader language used by WebGPU, and for shrinking WGSL code. It checks converted shaders against WebGL and checks that minification preserves the result.

In plain words
What is it for?
Use it to convert WebGL, Shadertoy, Vulkan GLSL, or compute shaders, or to minify WGSL shaders for WebGPU.
Why use it?
It helps move shader code between graphics systems and reduce shader size while checking that the output remains unchanged.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to convert WebGL, Shadertoy, Vulkan GLSL, or compute shaders, or to minify WGSL shaders for WebGPU.

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

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 compiling-wgsl

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/compiling-wgsl"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/compiling-wgsl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 206 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,234 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.00206 $0.05234
Opus 5.5 $0.00082 $0.02094
Sonnet 5.5 $0.00041 $0.01047
Haiku 4.5 $0.00021 $0.00523

Measured 5d ago against content hash 670b26af11ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

compiling-wgsl 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 5d ago.

The scan reads SKILL.md. This mod also ships 21 executable files (references/example_scene.py, scripts/forge/__init__.py, scripts/forge/__main__.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

compiling-wgsl/SKILL.md · 313 lines

How it starts

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

Compiling WGSL

scripts/forge is a pure-Python WGSL toolchain (numpy is the only dependency): a parser that follows the spec's template-list rules, a minifier, a shape compiler, and a GLSL front end that rewrites WebGL and Shadertoy GLSL for naga (and glslang) to translate. It came from oaustegard/experiments/wgsl-forge, whose RESULTS.md holds the measurements quoted here. Set SKILL=/mnt/skills/user/compiling-wgsl (or this directory) and run every command with PYTHONPATH=$SKILL/scripts.

When NOT to use this skill

Situation Use instead
A raster image (photo, PNG) should become vector shapes image-to-svg, then this skill on its SVG
The output is a PNG, PDF or SVG file rather than a shader drawing-with-pycairo
Charts or dashboards charting, charting-vega-lite
HLSL or Metal not covered; naga reads SPIR-V (naga in.spv out.wgsl), so HLSL can go through DXC to SPIR-V first
GLSL for desktop OpenGL with #version 330 or older, or code using iChannel buffers (multi-pass Shadertoy) converts, but the multi-pass plumbing (render targets, feedback) is host code you write
A shader whose host reads names back by reflection (a binding library that matches struct member or function names) run with --keep name1,name2, or do not rename

Setup

export SKILL=/mnt/skills/user/compiling-wgsl
pip install --break-system-packages numpy pillow          # pillow only for --png
command -v naga || cargo install naga-cli                  # validator; required for GLSL, ~3 min
command -v glslangValidator || apt-get install -y glslang-tools   # GLSL fallback route
node -e "require('playwright')" && echo playwright-ok      # GPU checks need it
python3 $SKILL/scripts/selftest.py                         # ~20 s: every route on bundled fixtures

selftest.py prints missing tools: first if naga, glslang or node is absent. Every other line must read ok.

The GPU checks run headless Chromium on SwiftShader. On claude.ai and Claude Code on the web, Playwright's Chromium is already installed. Elsewhere, point CHROME_PATH at a Chromium binary.

Read the full file on GitHub · 313 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. 5d ago Changed · +23 lines 670b26af11ef
  2. 6d ago First seen · 290 lines · 206 tokens per session scan A 8e28d84cb356

Subscribe to this mod's changes

compiling-wgsl is a skill published in the GitHub repository oaustegard/claude-skills (158 stars, last pushed yesterday), licensed MIT. It adds 206 tokens to every session and 5,234 once invoked, about $0.0008 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-11-02.

Related

compiling-wgsl compared with skills from other repositories

compiling-wgsl next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
compiling-wgsloaustegard/claude-skillsSkill158yesterdayMITA206Claude Code, Codex
superdesignsuperdesigndev/superdesign-skillSkill9562mo agoMITA115Claude Code, Codex
figma-to-codescoobynko/claude-code-design-skillsSkill401mo agoMITA0Claude Code, Codex
Linearwrsmith108/linear-claude-skillSkill1403mo agoMITA32Claude Code
bpmn-xml-generatorstateway-io/bpmn-xml-generatorSkill412d agoApache-2.0A177Claude Code
smb-sales-boostTomsonx232/smb-sales-boost-skillSkill524d agoMITA200Claude Code, Codex
free-public-rest-apisaisenseapi/aisense-free-public-rest-apisSkill1todayMITA366Claude Code, Codex