unity-shadergraph

Create and edit Unity Shader Graph assets through constrained node and blackboard operations.

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-shadergraph-ethanjpope
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-shadergraph
Source: https://github.com/ethanJPope/Our-Main-Hackathon-Game/tree/main/.agents/skills/unity-skills/skills/shadergraph
Command: npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-shadergraph-ethanjpope

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Editing Unity Shader Graph assets programmatically is fragile because the ShaderGraph package exposes internal editor APIs that change between versions. This Skill provides a controlled set of operations to create graphs, inspect their live structure, and make safe node and blackboard edits without guessing internal type or slot identifiers. ## Core Features & Use Cases - Graph Creation and Inspection: Create Shader Graph and Sub Graph assets from templates or blank fallbacks, then inspect live structure including nodeIds, slots, edges, properties, and keywords. - Constrained Node Editing: Add, move, connect, disconnect, and configure nodes using a version-pinned whitelist of supported node types and settings. - Blackboard Management: Add, update, and remove blackboard properties and keywords that PropertyNodes bind to. - Use Case: You need to build a toon shading graph in Unity 2022.3. First list supported nodes, create the graph, add blackboard properties for colors, then add and connect nodes using the real nodeId and slotId values returned by structure inspection. ## Quick Start Create a new Shader Graph asset named ToonShading in my Unity project and show me its structure.

Frequently Asked Questions about unity-shadergraph

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

FAQPage Schema
How do I create a Shader Graph asset in Unity programmatically?

Use shadergraph_create_graph to create a Shader Graph from a package template or a blank fallback. On Unity 2022.3 with shadergraph 14.0.12, templates are not shipped, so creation falls back to a blank graph automatically.

How do I connect nodes in a Unity Shader Graph?

Call shadergraph_get_structure first to obtain real nodeId and slotId values, then use shadergraph_connect_nodes with the output slot and input slot four-tuple. Never invent slot names or node ids from memory.

Which Unity versions does Shader Graph editing support?

The supported node whitelist and slot layouts are pinned to com.unity.shadergraph 14.0.x on Unity 2022.3, with limited Unity 6 coverage. The shared validated node set is 28 nodes, with AppendVectorNode currently Unity 6 only.

Why does a Shader Graph edit fail after a package update?

The module uses reflection into internal UnityEditor.ShaderGraph types, so a package update can change internal types or the MultiJson schema and cause failures. If you see a reflection or type lookup error, report the version mismatch instead of retrying with different arguments.

Can I delete nodes or properties from a Shader Graph automatically?

Remove operations for nodes, properties, and keywords are auto-forbidden in Approval and Auto modes. They only run under Bypass mode or through a user-managed allowlist, while other mutators require a grant in Approval mode.