Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 the unity-cli and unity-pipeline skills for each step.
  • Run C# with unity command script eval --code '<snippet>'. Don't use using directives or unqualified types in the snippet. The compiler reads using UnityEngine and a bare AssetDatabase, Volume, or Object causes errors (CS0246 / CS0103 / CS0104). return what you want to read; it arrives at data.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:

  1. 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.
  2. 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.6 or @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.

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.

  1. Use the unity-cli skill to check the installed package version.
  2. 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 page href (e.g. href: api/UnityEditor.ShaderGraph.html => https://docs.unity3d.com/Packages/com.unity.shadergraph@<VERSION>/api/UnityEditor.ShaderGraph.html).
  3. 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

  1. Get the Shader Graph version from com.unity.shadergraph in Packages/packages-lock.json. If you can't find it, assume Sha
Полный SKILL.md на GitHub

Установить shader-graph-create-custom-node в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SECURITY.mdreferences/all_hints.hlsl

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), без исполняемых скриптов.

Похожие скиллы

Сравнить shader-graph-create-custom-node с