skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
besty0728/unity-skills100 installs

unity-shader

Manage HLSL/ShaderLab .shader files

How do I install this agent skill?

npx skills add https://github.com/besty0728/unity-skills --skill unity-shader
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill facilitates Unity shader management and contains an indirect prompt injection surface because it reads and processes shader source code from the project environment, which could be manipulated to include malicious instructions.

  • Socketpass

    No alerts

  • Snykwarn

    Risk: MEDIUM · 1 issue

  • Runlayerpass

    1 file scanned · No issues

What does this agent skill do?

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 .shader files
  • Inspecting properties and keywords

Rules

  • shader_create takes template as raw ShaderLab/HLSL source, written verbatim. It is not a preset name: template="Standard" writes the word Standard into the file. For a URP preset use shader_create_urp with type "Unlit" or "Lit".
  • Shader names are case-sensitive and path-like: "Standard" or "Universal Render Pipeline/Lit", not "standard" or "URP Lit".
  • shader_get_properties returns property definitions (name, type, range), not current values. For a material's values use material_get_properties.
  • Material property changes belong to the material module; per-material keywords use material_set_keyword. shader_set_global_keyword toggles a global keyword.

Pitfalls

  • shader_set_property, shader_apply and shader_assign do not exist. To change a material's shader use material_set_shader; to set a material value use material_set_float, material_set_color and the other material_set_* skills.

Skills

shader_create

Create a shader file.

ParameterTypeRequiredDefaultDescription
shaderNamestringYes-Name written into the Shader "..." declaration (e.g. "Custom/MyShader")
savePathstringYes-Save path (e.g. "Assets/Shaders/My.shader")
templatestringNonullFull ShaderLab/HLSL source. When omitted, a built-in Unlit template (_MainTex and _Color, single CGPROGRAM pass) is used. There are no other built-in presets.

shader_create_urp

Create a URP shader from a template.

ParameterTypeRequiredDefaultDescription
shaderNamestringYes-Shader name (e.g. "Custom/MyURPShader")
savePathstringYes-Save path (e.g. "Assets/Shaders/MyURP.shader")
typestringNo"Unlit"Template type: "Unlit" or "Lit"

Returns: {success, shaderName, path, type}

shader_read

Read shader source code.

ParameterTypeRequiredDescription
shaderPathstringYesShader asset path

Returns: {path, lines, content}

shader_list

List the shaders in the project.

ParameterTypeRequiredDefaultDescription
filterstringNonullName filter
limitintNo100Max results

Returns: {count, shaders: [{path, name, propertyCount}]}

shader_find

Find a shader by name.

ParameterTypeRequiredDescription
searchNamestringYesShader name to find

Returns: {found, name, path}

shader_delete

Delete a shader file.

ParameterTypeRequiredDescription
shaderPathstringYesShader asset path

shader_get_properties

Get the properties defined in a shader.

ParameterTypeRequiredDescription
shaderNameOrPathstringYesShader name or asset path

Returns: {success, shaderName, propertyCount, properties: [{name, type, description}]}

shader_check_errors

Check a shader for compilation errors.

ParameterTypeRequiredDescription
shaderNameOrPathstringYesShader name or asset path (e.g. "Custom/MyShader" or "Assets/Shaders/My.shader")

Returns: {shaderName, hasErrors, messageCount}

shader_get_keywords

Get the keyword list of a shader.

ParameterTypeRequiredDescription
shaderNameOrPathstringYesShader name or asset path

Returns: {shaderName, keywordCount, keywords: [{name, type}]}

shader_get_variant_count

Get the shader variant count for performance analysis.

ParameterTypeRequiredDescription
shaderNameOrPathstringYesShader name or asset path

Returns: {shaderName, subshaderCount, totalPasses}

shader_set_global_keyword

Enable or disable a global shader keyword.

ParameterTypeRequiredDescription
keywordstringYesGlobal shader keyword name
enabledboolYestrue to enable, false to disable

Returns: {success, keyword, enabled}

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/besty0728/unity-skills/unity-shader">View unity-shader on skillZs</a>