unity-shadergraph

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

2|Updated May 18, 2026
One-click install
npx skills add https://github.com/pcone-mm/NewFPG --skill unity-shadergraph-pcone-mm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-shadergraph
Source: https://github.com/pcone-mm/NewFPG/tree/main/.agents/skills/unity-skills/skills/shadergraph
Command: npx skills add https://github.com/pcone-mm/NewFPG --skill unity-shadergraph-pcone-mm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Editing Unity Shader Graph assets programmatically is fragile because the Shader Graph package exposes no stable public API for graph mutation, forcing developers to hand-edit serialized assets or click through the editor UI for every node, connection, and blackboard property change. ## Core Features & Use Cases - Graph Creation and Inspection: Create Shader Graph and Sub Graph assets from package 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 from a version-pinned whitelist, with slot-level default values and whitelisted node settings. - Blackboard Management: Add, update, list, and remove blackboard properties and keywords before binding them to PropertyNodes. - Use Case: A technical artist asks the assistant to build a lit Shader Graph with a color property and a multiply node chain; the skill reads the live structure, creates the property, adds whitelisted nodes, and connects them using real nodeId and slotId values. ## Quick Start Create a new Shader Graph asset named WaterShader, add a color property to its blackboard, and connect a multiply node chain to the base color output.

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 programmatically in Unity?

Use shadergraph_create_graph to create a Shader Graph from a package template, with a blank-graph fallback when templates are unavailable. On Unity 2022.3 with shadergraph 14.0.12, no GraphTemplates ship, so creation always falls back to a blank graph.

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, since they are version-specific.

Which Unity versions does Shader Graph editing support?

The node whitelist, slot layout, and settings keys 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, and AppendVectorNode is currently Unity 6 only.

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

The module uses reflection into UnityEditor.ShaderGraph internals, so a package update that changes internal types or the MultiJson schema can make mutators fail or silently no-op. Report the version mismatch instead of retrying with different arguments.

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

Remove operations carry SkillOperation.Delete and are auto-forbidden in Approval and Auto modes. They only run under Bypass mode or through a user-managed allowlist, while query and non-destructive edits run under standard grants.