shader-graph-create-custom-node
БесплатноБез исполняемых скриптовНе проверенGenerates custom Shader Graph nodes from HLSL code by reflection. Use when asked for a new Shader Graph node, or to make existing HLSL work as a reflected…
от Unity-Technologies★ 1 342 звезды на GitHubОб этом скилле
Help the user turn an HLSL function into a custom Shader Graph node by reflection.
Important
- Use the unity cli (
unity command --format json) and theunity-cliandunity-pipelineskills for each step. - Run C# with
unity command script eval --code '<snippet>'. Don't useusingdirectives or unqualified types in the snippet. The compiler reads usingUnityEngineand a bare AssetDatabase, Volume, or Object causes errors (CS0246 / CS0103 / CS0104).returnwhat you want to read; it arrives atdata.result.result. - Create a restore point you can roll back to if your changes fail.
- Do only what's asked. Don't change unrelated assets or files.
- Never leave verification code in the user's script. Never build logging or detection they didn't ask for. See Final step.
- Avoid long explanations.
Step 1
Before you go forward with a workflow or diagnosis:
- Open and read the documentation page(s) that cover the specific subject related to what you intend to do or fix and check if you've missed anything.
- Name the file(s) you read in your response.
This is because your training knowledge about Unity might be out of date, incorrect, or for the wrong Unity version.
Full topic map
The Shader Graph manual is package documentation, not part of the Unity Manual, so don't look for it in the Unity Editor's Data/Documentation folder.
The docs pages are local markdown conversions of the Unity Manual, stored at <project-folder>/Library/PackageCache/com.unity.shadergraph@*/. Read only the .md files in that specific PackageCache subfolder. You must not look at non-.md files, or look outside at other Library or PackageCache folders, otherwise it takes too much time. The pages are in its Documentation~ folder. If that folder has no .md files, use the online pages at https://docs.unity3d.com/Packages/com.unity.shadergraph@<VERSION>/manual/ in the following list instead, because some package versions don't ship their docs.
Prefer fetching the page directly (for example WebFetch) over searching (for example WebSearch) — faster and lands on the exact reference. Only fetch what you need, and only search if you don't have the exact URL. Replace <VERSION> with the following before fetching:
- docs.unity3d.com: The Unity version, eg
6000.6 - Package on docs.unity3d.com: The package version, eg
@6.6or@2.0. Check the package version if unsure. - Engine on docs.unity.com: The Unity version, eg
6000.3 - docs.unity.com: The product version, eg
7000.0
Read the Shader Graph major.minor from com.unity.shadergraph in Packages/packages-lock.json (for example 17.5 from 17.5.0), because the full version number gives a 404.
- Introduction to HLSL in Shader Graph — local
Custom-nodes-hlsl-introduction.md: Custom Function nodes compared with nodes reflected from HLSL. - Create a custom node by reflection from HLSL — local
Custom-nodes-hlsl-create-node-by-reflection.md: the include,UNITY_EXPORT_REFLECTION, and adding function and parameter hints. - Reflected function hints reference — local
Custom-nodes-hlsl-reflection-hints-reference.md: everyfunchintsandparamhintstag and its values. - Reflected Function node — local
Reflected-Function-Node.md: the node Shader Graph creates from a reflected function.
API reference
The API is UnityEditor.ShaderGraph, part of the com.unity.shadergraph package. It is versioned by package version, not Unity version (e.g. @17.5, @17.6), so check the project's installed package version before relying on a specific class or method.
- Use the
unity-cliskill to check the installed package version. - Fetch and cache
https://docs.unity3d.com/Packages/com.unity.shadergraph@<VERSION>/xrefmap.yml(replace<VERSION>with the installed package version, e.g.17.5). This file maps every public API member's fully qualified name to its docs pagehref(e.g.href: api/UnityEditor.ShaderGraph.html=>https://docs.unity3d.com/Packages/com.unity.shadergraph@<VERSION>/api/UnityEditor.ShaderGraph.html). - Grep the yml file locally for a class or method instead of refetching per lookup. Don't read the whole file.
Always fetch the version matching the installed package rather than relying on training knowledge, since APIs are frequently marked obsolete between major versions.
Procedure
- Get the Shader Graph version from
com.unity.shadergraphinPackages/packages-lock.json. If you can't find it, assume Sha
Установить shader-graph-create-custom-node в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл shader-graph-create-custom-node?
Generates custom Shader Graph nodes from HLSL code by reflection. Use when asked for a new Shader Graph node, or to make existing HLSL work as a reflected function node.
Как установить скилл shader-graph-create-custom-node?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл shader-graph-create-custom-node запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic