godot-shaders-basics — Claude Code skill: install and overview
Supplies Godot shader patterns for draw-call batching, post-processing, and foliage. Useful when building hit-flashes or screen passes without depth glitches.
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-shaders-basics -a claude-codeWhat godot-shaders-basics does
This skill equips coding agents with practical rules for Godot Shading Language. It focuses on engine rendering bottlenecks rather than introductory color math. The model learns to configure instance uniforms for enemy nodes. This preserves single draw calls.
Included shader templates handle foliage wind sway and world position reconstruction from depth textures. Full-screen screen-space passes account for Godot 4.3 requirements. Because the engine uses Reversed-Z depth, screen quads require POSITION = vec4(VERTEX.xy, 1.0, 1.0) to prevent unwanted clipping.
Dynamic if/else checks are replaced by hardware-friendly functions like step() and mix(). Invariant calculations move to the vertex stage so fragment code remains lean.
What it helps with
- implement damage flashes on instanced meshes without breaking batches
- render screen-space post-process quads correctly in Godot 4.3 Reversed-Z
- reconstruct world coordinates using scene depth textures
- build foliage wind motion while preserving shadow casting via alpha scissor
Example prompts for the agent
- Write a Godot hitflash shader using instance uniforms to preserve draw call batching
- Generate a full-screen quad shader compatible with Godot 4.3 Reversed-Z depth
- Build a dissolve shader that keeps shadows and depth prepass using alpha scissor
How to install godot-shaders-basics
1Skills CLI (Vercel)
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-shaders-basics -a claude-code2Manually: put the files in place
~/.claude/skills/godot-shaders-basics/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/godot-shaders-basics/
1Skills CLI (Vercel)
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-shaders-basics -a codex2Manually: put the files in place
.agents/skills/godot-shaders-basics/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-shaders-basics -a cursor2Manually: put the files in place
.cursor/skills/godot-shaders-basics/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install thedivergentai/Game-Dev-Agentic-Skills godot-shaders-basics2Manually: put the files in place
.github/skills/godot-shaders-basics/SKILL.md1Skills CLI (Vercel)
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-shaders-basics -a gemini-cli2Platform CLI
gemini skills install https://github.com/thedivergentai/Game-Dev-Agentic-Skills --path skills/godot-shaders-basicsManually: put the files in place
.devin/skills/godot-shaders-basics/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-shaders-basics -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about godot-shaders-basics
How to install godot-shaders-basics in Claude Code?
Run npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-shaders-basics -a claude-code in your terminal.
What does godot-shaders-basics do?
It adds production Godot shading templates and optimization rules for batch-safe effects to your AI assistant.
Why does the skill avoid unconditional discard operations?
Using discard prevents hardware depth prepass optimizations from functioning. The skill enforces ALPHA_SCISSOR or hash dithering so geometry still casts proper shadows.