/godot-agent-skills:godot-shaders-vfxfrom godot-agent-skills
Guides writing and debugging Godot 4.7 shaders (.gdshader) and VFX: spatial/canvas_item/particles/sky/fog types, uniforms, screen reads, stencil mode, GPU particles, compositor effects, and headless validation via shader_check.py.
Ships in godot-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Validate after every edit: python scripts/shader_check.py [paths] compiles each .gdshader with the engine's shader compiler, headless, and returns {file, line, msg}. Errors inside #included .gdshaderinc files point at the include. Looks still need a real GPU, so ask the user to check them visually.
shader_type spatial | canvas_item | particles | sky | fog;. Entry points are vertex(), fragment(), light() (custom lighting) and start()/process() (particles).render_mode (spatial): unshaded, cull_disabled, depth_draw_always, blend_add, diffuse_toon, specular_toon, world_vertex_coords, … An invalid mode is a compile error, so the checker catches it.source_color (required on color and albedo textures, or colors come out wrong), hint_range(a, b, step), hint_normal, hint_default_white/black, filter_nearest, repeat_enable. Group them in the inspector with group_uniforms Name; … group_uniforms;.uniform sampler2D s : hint_screen_texture, filter_linear_mipmap;, hint_depth_texture and hint_normal_roughness_texture (Forward+). They replace SCREEN_TEXTURE/DEPTH_TEXTURE from Godot 3. canvas_item screen reads need a BackBufferCopy only when several effects stack.instance uniform float flash; set with set_instance_shader_parameter("flash", 1.0) (3D). Project-wide values: global uniform vec4 wind; declared in Project Settings → Shader Globals and set with RenderingServer.global_shader_parameter_set.varying passes data from vertex to fragment. #include "res://shaders/lib.gdshaderinc", #define and #ifdef work. Godot shaders are GLSL-like but not GLSL: there are no in/out globals, and built-ins are UPPERCASE (ALBEDO, UV, VERTEX, NORMAL, TIME, SCREEN_UV, MODEL_MATRIX, INV_VIEW_MATRIX).stencil_mode write, compare_always, 1; on the mask material, stencil_mode read, compare_equal, 1; on the revealed one (portals, x-ray, outlines). StandardMaterial3D has ready-made STENCIL_MODE_OUTLINE/XRAY presets..gdshader files: they're diffable and checkable.GPUParticles2D/3D + ParticleProcessMaterial by default (they work on all renderers in 4.x). Use CPUParticles* only for exact CPU control or many tiny emitters in the Compatibility renderer (convert with convert_from_particles).one_shot = true, explosiveness = 1, emitting = true, then free on finished. Pre-warm ambient effects with preprocess.emission_shape, color_ramp (Gradient), scale_curve, turbulence_enabled, sub-emitters (on collision or end) and trails (trail_enabled + ribbon or tube mesh). 4.7 adds 3D particle scale and rotation: use_scale_3d, use_rotation_3d.collision_mode on the material, plus GPUParticlesCollisionBox3D/Sphere3D/SDF3D/HeightField3D nodes in the level. Attractors: GPUParticlesAttractor*3D.visibility_aabb/visibility_rect large enough, or particles pop out of view (Particles menu → Generate AABB). Use amount_ratio to scale intensity without a restart.emit_particle(xform, velocity, color, custom, flags) with amount as the pool size, for impacts at arbitrary points.ColorRect (canvas_item shader with hint_screen_texture) on a CanvasLayer. That's enough for vignettes, CRT and color grading LUTs.Compositor + CompositorEffect (experimental; Forward+ and Mobile) running a compute shader through RenderingDevice at EFFECT_CALLBACK_TYPE_POST_TRANSPARENT and similar points. See the reference skeleton.shader_baker/enabled per preset (api_lookup.py --search shader_baker). It pre-compiles for the target driver, with much faster first loads on D3D12 and Metal.#define-style features at runtime creates new pipelines. Uniform changes are free.dissolve with an edge glow, hit flash (instance uniform), 2D outline, spatial rim and fresnel, scrolling-UV water with depth fade, toon light(), vertex wind sway with a global uniform, full-screen vignette, stencil x-ray.
Shader library (validated by shader_check in the tests): references/shaders.md. VFX scripts (impact burst, flash driver, compositor effect skeleton): references/vfx.md
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
godot-shaders, vfx, gdshader, shader-validation, gpu-particles
27 skills in this plugin
/godot-2d2D games in Godot 4.7 - pixel-art and HD setup, TileMapLayer (cells, terrains, custom data, runtime tiles, physics chunking), Parallax2D, Camera2D (limits, smoothing, shake), y-sort and z-index, 2D lights and normal maps, AnimatedSprite2D, one-way platforms, custom drawing, many-sprite performance. Use for platformers, top-down, tile-based or any 2D scene./godot-3d-gameplayBuilding 3D games in Godot 4.7 - third-person and orbit cameras (SpringArm3D), camera-relative movement, lock-on, top-down/RTS/isometric cameras, GridMap + MeshLibrary levels, CSG blockout and baking, modular kit import hints, Path3D rails, interactables, spawners, world-space UI, large worlds and LOD. Use for 3D player controllers, cameras or level building./godot-npx claudepluginhub el4cteo/godot-skills --plugin godot-agent-skillsOther plugins' skills for the same job