uloop-get-hierarchy — скилл для Claude Code: иерархия Unity
Скилл uloop-get-hierarchy для Claude Code отдаёт иерархию сцены Unity деревом: целиком, от корневого объекта или от текущего выделения. Помогает понять, из чего собрана сцена.
MIT 1 установок ★ 602 обновлён 2026-10-29
npx skills add hatayama/unity-cli-loop --skill uloop-get-hierarchy -a claude-codeЧто делает uloop-get-hierarchy
Скилл оборачивает команду uloop get-hierarchy и отдаёт дерево сцены Unity: от корня, от заданного пути или от текущего выделения. Глубину задаёт --max-depth, по умолчанию -1, то есть без ограничения.
Компоненты и неактивные объекты попадают в выгрузку по умолчанию, флаги --no-include-components и --no-include-inactive их убирают. Есть --include-paths для полных путей и --use-components-lut со значениями auto, true и false. Если нужны детали выделенного объекта или его компоненты, берите find-game-objects --search-mode selected.
Само дерево в ответ не приходит: в JSON лежат Message и HierarchyFilePath, читать нужно файл по этому пути. С --use-selection параметр --root-path игнорируется, так что одно из двух выбирают заранее.
Какие задачи решает
- увидеть, из чего собрана сцена целиком
- разобрать поддерево выбранного объекта
- выгрузить дерево без неактивных объектов и компонентов
- получить полные пути объектов для дальнейших скриптов
- ограничить обход сцены по глубине
Примеры запросов агенту
- Покажи иерархию сцены от
Canvasна два уровня вниз - Выгрузи дерево объектов под текущим выделением, без неактивных
- Нужны полные пути всех объектов, запусти
uloop get-hierarchy --include-paths
Как установить uloop-get-hierarchy
1Через Skills CLI (Vercel)
npx skills add hatayama/unity-cli-loop --skill uloop-get-hierarchy -a claude-code2Вручную: положить файлы
~/.claude/skills/uloop-get-hierarchy/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/uloop-get-hierarchy/
1Через Skills CLI (Vercel)
npx skills add hatayama/unity-cli-loop --skill uloop-get-hierarchy -a codex2Вручную: положить файлы
.agents/skills/uloop-get-hierarchy/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add hatayama/unity-cli-loop --skill uloop-get-hierarchy -a cursor2Вручную: положить файлы
.cursor/skills/uloop-get-hierarchy/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install hatayama/unity-cli-loop .claude/skills/uloop-get-hierarchy2Вручную: положить файлы
.github/skills/uloop-get-hierarchy/SKILL.md1Через Skills CLI (Vercel)
npx skills add hatayama/unity-cli-loop --skill uloop-get-hierarchy -a gemini-cli2Командой платформы
gemini skills install https://github.com/hatayama/unity-cli-loop --path .claude/skills/uloop-get-hierarchyВручную: положить файлы
.devin/skills/uloop-get-hierarchy/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add hatayama/unity-cli-loop --skill uloop-get-hierarchy -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об uloop-get-hierarchy
Как установить uloop-get-hierarchy в Claude Code?
Выполните npx skills add hatayama/unity-cli-loop --skill uloop-get-hierarchy -a claude-code. Файл скилла окажется по пути ~/.claude/skills/uloop-get-hierarchy/SKILL.md.
Что делает uloop-get-hierarchy?
Вызывает uloop get-hierarchy и сохраняет дерево сцены Unity в файл, путь к которому лежит в ответе. В параметрах можно задать корень, глубину и фильтры по компонентам и неактивным объектам.
Чем он отличается от find-game-objects?
Здесь вы получаете структуру связей между объектами. Для свойств компонентов и подробностей по выделенному объекту в скилле указан find-game-objects --search-mode selected.
Исходный текст
SKILL.md · MIT
--- name: uloop-get-hierarchy toolName: get-hierarchy description: "Get the Unity scene hierarchy as a structured tree. Use for parent-child structure, descendants, roots, or subtrees under objects the user currently selected." --- # uloop get-hierarchy Get Unity Hierarchy structure from the whole scene, a root path, or selected Hierarchy objects. Use this for hierarchy structure, especially descendants under the current selection. Use `find-game-objects --search-mode selected` when you need selected object details or component properties. ## Usage ```bash uloop get-hierarchy [options] ``` ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `--root-path` | string | - | Root GameObject path to start from | | `--max-depth` | integer | `-1` | Maximum depth (-1 for unlimited) | | `--no-include-components` | flag | - | Exclude component information | | `--no-include-inactive` | flag | - | Exclude inactive GameObjects | | `--include-paths` | flag | - | Include full path information | | `--use-components-lut` | string | `auto` | Use LUT for components (`auto`, `true`, `false`) | | `--use-selection` | flag | - | Use selected GameObject(s) as root(s). When set, `--root-path` is ignored. | ## Output Returns JSON with: - `Message` (string): Human-readable guidance pointing at the saved file - `HierarchyFilePath` (string): Filesystem path to the JSON file that contains the actual hierarchy data The hierarchy itself is **not** in the response — it is written to the file at `HierarchyFilePath`. Open that file to read the `Context` and `Hierarchy` payload (GameObject tree, components, etc.).
© hatayama · MIT · hatayama/unity-cli-loop