shader-router
25
总安装量
25
周安装量
#14889
全站排名
安装命令
npx skills add https://github.com/bbeierle12/skill-mcp-claude --skill shader-router
Agent 安装分布
claude-code
19
opencode
17
codex
16
antigravity
15
gemini-cli
15
cursor
15
Skill 文档
Shader Router
Routes to 4 specialized GLSL shader skills based on task requirements.
Routing Protocol
- Classify â Identify what visual result is needed
- Match â Find skill(s) with highest signal match
- Combine â Most shaders need 2-3 skills together
- Load â Read matched SKILL.md files before implementation
Quick Route
Tier 1: Core (Always Consider)
| Task Type | Skill | Primary Signal Words |
|---|---|---|
| Writing shaders | shader-fundamentals |
GLSL, vertex, fragment, uniform, varying, coordinate |
| Organic patterns | shader-noise |
noise, procedural, terrain, clouds, turbulence, organic |
Tier 2: Specialized (Add When Needed)
| Task Type | Skill | Primary Signal Words |
|---|---|---|
| Shapes/geometry | shader-sdf |
shape, circle, box, boolean, union, morph, raymarch |
| Visual polish | shader-effects |
glow, bloom, chromatic, distortion, vignette, glitch |
Signal Matching Rules
Priority Order
When multiple signals present, resolve by priority:
- Explicit technique â “use simplex noise” â
shader-noise - Visual goal â “organic look” â
shader-noise - Shape need â “rounded rectangle” â
shader-sdf - Polish need â “add glow” â
shader-effects - Default â Start with
shader-fundamentals
Confidence Scoring
- High (3+ signals) â Route immediately
- Medium (1-2 signals) â Route with
shader-fundamentalsas base - Low (0 signals) â Ask: “What visual effect are you trying to achieve?”
Common Combinations
Procedural Texture (2 skills)
shader-fundamentals â Vertex/fragment setup, uniforms
shader-noise â Noise functions, FBM
Wiring: Fundamentals provides shader structure, noise generates patterns.
Stylized Shape (3 skills)
shader-fundamentals â Shader setup, UV handling
shader-sdf â Shape definition, boolean ops
shader-effects â Glow, outline, anti-aliasing
Wiring: SDF defines shape, effects add visual polish.
Terrain/Landscape (2 skills)
shader-fundamentals â Vertex displacement, lighting
shader-noise â Height generation, detail layers
Wiring: Noise generates heightmap, fundamentals handles displacement and shading.
Holographic/Cyberpunk (3 skills)
shader-fundamentals â Fresnel, scanlines base
shader-noise â Animated distortion
shader-effects â Chromatic aberration, glitch, glow
Wiring: Layer multiple effects for complex visual style.
UI/Logo Animation (3 skills)
shader-fundamentals â Animation timing, UV manipulation
shader-sdf â Shape primitives, morphing
shader-effects â Glow, dissolve, outline
Wiring: SDF creates shapes, effects add transitions.
Raymarched 3D (3 skills)
shader-fundamentals â Ray setup, lighting math
shader-sdf â 3D primitives, scene composition
shader-noise â Surface detail, displacement
Wiring: SDF defines geometry, noise adds organic detail.
Decision Table
| Visual Goal | Organic? | Shapes? | Effects? | Route To |
|---|---|---|---|---|
| Clouds | Yes | No | Maybe | fundamentals + noise |
| Logo | No | Yes | Yes | fundamentals + sdf + effects |
| Terrain | Yes | No | No | fundamentals + noise |
| Fire/smoke | Yes | No | Yes | fundamentals + noise + effects |
| UI element | No | Yes | Yes | fundamentals + sdf + effects |
| Abstract art | Yes | Maybe | Yes | all skills |
| 3D raymarch | Maybe | Yes | Maybe | fundamentals + sdf + (noise) |
Skill Dependencies
shader-fundamentals (foundation)
âââ shader-noise (extends fundamentals)
âââ shader-sdf (extends fundamentals)
âââ shader-effects (extends fundamentals)
- Always start with
shader-fundamentals shader-noiseandshader-sdfare often independentshader-effectstypically applied last
Visual Goal â Technique Mapping
| Want This | Use This |
|---|---|
| Natural/organic look | Noise (FBM, turbulence) |
| Geometric shapes | SDF primitives |
| Smooth morphing | SDF smooth operations |
| Infinite patterns | SDF repetition |
| Terrain height | Noise + vertex displacement |
| Water/caustics | Noise + Worley |
| Glow/bloom | Effects (glow functions) |
| Retro/CRT look | Effects (scanlines, grain) |
| Transitions | SDF dissolve or Effects dissolve |
| Outlines | SDF or Effects (both have methods) |
Fallback Behavior
- Unknown technique â Start with
shader-fundamentals - No clear signals â Ask: “Describe the visual you’re trying to create”
- Performance concerns â Check
shader-noiseoptimization tips
Quick Decision Flowchart
User Request
â
â¼
âââââââââââââââââââââââ
â Writing shaders? âââYesâââ¶ shader-fundamentals (always)
âââââââââââââââââââââââ
â
â¼
âââââââââââââââââââââââ
â Organic/natural? âââYesâââ¶ + shader-noise
âââââââââââââââââââââââ
â
â¼
âââââââââââââââââââââââ
â Geometric shapes? âââYesâââ¶ + shader-sdf
âââââââââââââââââââââââ
â
â¼
âââââââââââââââââââââââ
â Visual polish? âââYesâââ¶ + shader-effects
âââââââââââââââââââââââ
Reference
See individual skill files for detailed patterns:
/mnt/skills/user/shader-fundamentals/SKILL.md/mnt/skills/user/shader-noise/SKILL.md/mnt/skills/user/shader-sdf/SKILL.md/mnt/skills/user/shader-effects/SKILL.md