unity-shader

Manage Unity .shader assets with create, read, list, find, and delete operations.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-shader-yiduandtdt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-shader
Source: https://github.com/YiDuandtdt/Bone-Throne/tree/main/.agents/skills/unity-skills/skills/shader
Command: npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-shader-yiduandtdt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity shader management is error-prone and tedious when creating, reading, listing, finding, and deleting .shader files, inspecting properties and keywords, checking for compilation errors, counting variants, and toggling global keywords across URP and Built-in pipelines.

Core Features & Use Cases

  • Create, read, list, find, and delete .shader files
  • Inspect shader properties, keywords, and variant counts
  • Check shader compilation errors and validate shader integrity
  • Create URP shaders from templates (Unlit or Lit) and manage global keywords
  • Read shader source and search for specific shaders by name or path
  • Use in day-to-day Unity shader development workflows to organize and validate assets

Quick Start

Create a new shader named "Custom/MyShader" at Assets/Shaders/MyShader.shader and verify its contents with a read operation.

Frequently Asked Questions about unity-shader

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new URP shader from a template in Unity?

You can create a URP shader by specifying a shaderName, savePath, and optional template type like Unlit or Lit. The tool generates the .shader asset at the target path for immediate use in your project.

How can I check Unity shader compilation errors and count variants?

You can validate shader integrity by running error checks and counting variants directly. The tool inspects the .shader file, returning structured data that includes compilation error status and total variant counts.

What is the best way to inspect Unity shader properties and keywords?

Inspecting Unity shader properties involves reading the .shader source to extract exposed properties, keywords, and variant counts. The tool parses ShaderLab and HLSL data to return structured property and keyword information.

Does this shader management approach work with both URP and Built-in pipelines?

Yes, this approach works across Unity projects using URP and Built-in pipelines. It manages ShaderLab and HLSL assets, allowing you to toggle global keywords and validate shaders regardless of the render pipeline.

How do I list and find specific .shader files in a Unity project?

You can list and find .shader files by searching with a specific shader name or file path. The tool scans your Unity project directory and returns structured paths for all located shader assets.

Why does my Unity shader fail to compile when toggling global keywords?

Shader compilation failures during global keyword toggles often stem from invalid ShaderLab syntax or unsupported HLSL variants. You can identify the exact issue by running a compilation error check to validate shader integrity.