unity-shader
Installation
SKILL.md
Unity Shader Skills
Work with .shader HLSL/ShaderLab files: create from templates, read source, list, find, inspect keywords, properties and variants, check errors, delete, and toggle global keywords. Parameters come from the schema (GET /skills/schema?names=<skill>&wire=v2); execution and dryRun rules: root SKILL.md. For node-based graphs use the shadergraph module.
When to use
- Creating or editing handwritten shaders
- Listing or finding
.shaderfiles - Inspecting properties and keywords
Rules
shader_createtakestemplateas raw ShaderLab/HLSL source, written verbatim. It is not a preset name:template="Standard"writes the wordStandardinto the file. For a URP preset useshader_create_urpwithtype"Unlit"or"Lit".- Shader names are case-sensitive and path-like:
"Standard"or"Universal Render Pipeline/Lit", not"standard"or"URP Lit". shader_get_propertiesreturns property definitions (name, type, range), not current values. For a material's values usematerial_get_properties.- Material property changes belong to the material module; per-material keywords use
material_set_keyword.shader_set_global_keywordtoggles a global keyword.
Pitfalls
shader_set_property,shader_applyandshader_assigndo not exist. To change a material's shader usematerial_set_shader; to set a material value usematerial_set_float,material_set_colorand the othermaterial_set_*skills.