{
  "slug": "shader-art-coding",
  "skill": "shader-art-coding",
  "upstream": "gokayfem/shader-skills@a56e7738d3f22698e795f036b4919f0734ab621d",
  "upstreamSha": "a56e7738d3f22698e795f036b4919f0734ab621d",
  "date": "2026-11-09",
  "engine": "WebGL2 (GLSL ES 3.00) in Chrome headless + glslang 16.6.0",
  "env": [
    "Node v22.23.4",
    "Python 3 standard library for scripts/glsl_tools.py (the skill installs nothing)",
    "glslangValidator 16.6.0 (Khronos release build) on PATH for compile checks",
    "puppeteer-core 24 from package-lock.json (test only)",
    "Google Chrome headless, WebGL2 through SwiftShader"
  ],
  "trigger": "static",
  "passed": 43,
  "total": 43,
  "commands": [
    "(cd examples && sh -c npm ci --silent --no-audit --no-fund && GLSLANG_BIN=${GLSLANG_BIN:-/home/box/tools/glslang/bin} node tests/run_tests.mjs)",
    "(cd examples && sh -c GLSLANG_BIN=${GLSLANG_BIN:-/home/box/tools/glslang/bin} node tests/run_tests.mjs ../screenshot.png > /dev/null)"
  ],
  "checks": [
    {
      "criterion": "trigger",
      "name": "SKILL.md description says when to use it",
      "pass": true,
      "detail": "Writes, debugs, and art-directs procedural GLSL fragment shaders (Shadertoy mainImage, WebGL2 / GLSL ES 3.00): SDF rayma"
    },
    {
      "criterion": "trigger",
      "name": "triggers on: \"Write a GLSL shader for an animated title screen background in my web game, Shadertoy style\"",
      "pass": true,
      "detail": "rank 1/128, overlap 3"
    },
    {
      "criterion": "trigger",
      "name": "triggers on: \"My raymarching SDF shader works on my GPU but is black on others, fix it\"",
      "pass": true,
      "detail": "rank 1/128, overlap 6"
    },
    {
      "criterion": "trigger",
      "name": "triggers on: \"Make a procedural fBm noise and domain warping fragment shader for a portal effect in WebGL2\"",
      "pass": true,
      "detail": "rank 1/128, overlap 8"
    },
    {
      "criterion": "trigger",
      "name": "does not trigger on: \"Write the save system for my Godot RPG\"",
      "pass": true,
      "detail": "rank 49/128, overlap 0"
    },
    {
      "criterion": "trigger",
      "name": "does not trigger on: \"Balance the economy of my idle game\"",
      "pass": true,
      "detail": "rank 6/128, overlap 0"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: glsl_tools.py check passes the whole library and templates",
      "pass": true,
      "detail": "compiled 186 unit(s) with glslangValidator | 0 error(s), 0 warning(s)"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: glslangValidator compiled all 186 library units",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: references/library-index.md is up to date with the library",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: search finds sdStar by a word",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: bundle inlines the library into one paste-ready file",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: bundle output is deterministic (equals the shipped crystal-ring.bundled.glsl)",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: every library function the shader calls is inlined",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: nothing unused is inlined (no raymarch, normals, boxes, water or clouds)",
      "pass": true,
      "detail": "35 functions"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: check passes our bundled shader (lint + glslang compile)",
      "pass": true,
      "detail": "0 error(s), 0 warning(s)"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: check reports a planted sine hash",
      "pass": true,
      "detail": "ERROR   /tmp/sac-uYp2e2/bad.bundled.glsl: sine hash: its pattern differs across GPUs and d"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: check reports a planted gl_FragColor",
      "pass": true,
      "detail": "ERROR   /tmp/sac-uYp2e2/bad.bundled.glsl: gl_FragColor is WebGL1; Shadertoy uses mainImage"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: check reports a planted #version line",
      "pass": true,
      "detail": "ERROR   /tmp/sac-uYp2e2/bad.bundled.glsl: do not add #version; Shadertoy (and the bundler'"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: check reports a planted integer literal in float maths",
      "pass": true,
      "detail": "ERROR   /tmp/sac-uYp2e2/bad.bundled.glsl: glslang: ERROR: 0:359: 'assign' :  cannot conver"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: 11 templates ship with the skill",
      "pass": true,
      "detail": "11"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: template alpine-valley.glsl compiles and renders in WebGL2",
      "pass": true,
      "detail": "mean 143, std 31.3, black 0.0%"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: template coastal-water.glsl compiles and renders in WebGL2",
      "pass": true,
      "detail": "mean 160, std 15.3, black 0.0%"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: template noise-progression.glsl compiles and renders in WebGL2",
      "pass": true,
      "detail": "mean 116, std 68.0, black 4.1%"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: template noise-terrain-map.glsl compiles and renders in WebGL2",
      "pass": true,
      "detail": "mean 138, std 25.1, black 0.0%"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: template ocean.glsl compiles and renders in WebGL2",
      "pass": true,
      "detail": "mean 114, std 62.4, black 0.0%"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: template pattern-swatches.glsl compiles and renders in WebGL2",
      "pass": true,
      "detail": "mean 121, std 59.3, black 0.0%"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: template procedural-city.glsl compiles and renders in WebGL2",
      "pass": true,
      "detail": "mean 113, std 19.7, black 0.0%"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: template raymarch-sdf.glsl compiles and renders in WebGL2",
      "pass": true,
      "detail": "mean 180, std 17.7, black 0.0%"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: template sdf-2d-poster.glsl compiles and renders in WebGL2",
      "pass": true,
      "detail": "mean 57, std 53.6, black 0.0%"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: template terrain.glsl compiles and renders in WebGL2",
      "pass": true,
      "detail": "mean 169, std 26.8, black 0.0%"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: template volumetric-clouds.glsl compiles and renders in WebGL2",
      "pass": true,
      "detail": "mean 186, std 22.1, black 0.0%"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: Crystal Ring compiles and renders (not flat, no black holes)",
      "pass": true,
      "detail": "mean 43, std 40.8, black 0.00%"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: the same time renders the same frame (no hidden state)",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: the ring and mist move over time (t=1 differs from t=3)",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: DEBUG_MODE 1 compiles and shows a different view",
      "pass": true,
      "detail": "mean 148, std 42.5"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: DEBUG_MODE 5 compiles and shows a different view",
      "pass": true,
      "detail": "mean 38, std 41.4"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: the player reports a compile error instead of a black screen",
      "pass": true,
      "detail": "ERROR: 0:348: 'assign' : cannot convert from 'const int' to 'highp 3-component vector of f"
    },
    {
      "criterion": "runs",
      "name": "self-check, our Crystal Ring bundled and checked, planted mistakes, 11 templates and our shader rendered in WebGL2: exits 0 with no script errors",
      "pass": true,
      "detail": "exit 0"
    },
    {
      "criterion": "output",
      "name": "screenshot screenshot.png rendered",
      "pass": true
    },
    {
      "criterion": "output",
      "name": "self-check list has at least 3 items",
      "pass": true,
      "detail": "6 items"
    },
    {
      "criterion": "single",
      "name": "one job per skill (reviewed)",
      "pass": true,
      "detail": "One job: write, debug and art-direct procedural GLSL fragment shaders (Shadertoy mainImage / WebGL2) from a tested function library, bundled and checked. Engine shading languages (Godot, Unity), pixel sprite effects and compute work are left to other skills."
    },
    {
      "criterion": "bilingual",
      "name": "English SKILL.md from upstream",
      "pass": true
    },
    {
      "criterion": "bilingual",
      "name": "Chinese guide written",
      "pass": true,
      "detail": "1581 chars"
    }
  ]
}
