Command Palette

Search for a command to run...

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

godot-composition-apps

БесплатноЗапускает вложенные скриптыНе проверен

Expert architectural standards for scalable Godot Apps, Tools, EditorPlugins, and Control-heavy UIs using Composition (Has-A Orchestrator + components). Use…

thedivergentaiот thedivergentai★ 1 019 звёзд на GitHub

Об этом скилле

Godot Composition & Architecture (Apps & UI)

Decision Gate — App vs Gameplay Entity

Root node / task Route
Control, EditorPlugin, tool window, settings dock, form UI Stay here — Orchestrator + components
Player, Enemy, Weapon, Hitbox, gameplay CharacterBody godot-composition — not this skill

App-only gate: If the node is a gameplay actor (Player/Enemy/Weapon/Hitbox), use godot-composition. This skill owns Control / EditorPlugin / tool composition.

The Core Philosophy

The Litmus Test (Rock Test)

Before writing a script, ask: "If I attached this script to a literal rock, would it still function?"

  • Pass: An AuthComponent on a rock allows the rock to log in. (Context Agnostic)
  • Fail: A LoginForm script on a rock tries to grab text fields the rock doesn't have. (Coupled)

MANDATORY: Validate new components with comp_rock_test_boilerplate.gd.

The Backpack Model (Has-A > Is-A)

Treat the Root Node as an empty Backpack.

  • Wrong: SubmitButton extends AnimatedButton extends BaseButton.
  • Right: Root HAS-A AnimationComponent and HAS-A NetworkRequestComponent.

The Hierarchy of Power (Communication Rules)

Direction Source → Target Method Reason
Downward Orchestrator → Component Function Call Manager owns the workers.
Upward Component → Orchestrator Signals Workers are blind.
Sideways Component A ↔ Component B FORBIDDEN Siblings never talk directly.

Sideways Fix: Component A signals the Orchestrator; Orchestrator calls Component B.

Available Scripts

MANDATORY: Read the matching script before implementing the pattern. Do not reinvent Orchestrator wiring inline.

comp_rock_test_boilerplate.gd

MANDATORY first read — Attach-candidate-to-literal-rock harness that fails hard-coupled components early.

comp_orchestrator_base.gd

MANDATORY when creating any App/UI root — Signal-up / call-down wiring skeleton (0% business math).

comp_logic_visual_syncer.gd

MANDATORY for VLS — Logic emits state_changed; visuals/animations react without logic knowing AnimationPlayer/Theme.

comp_base_component.gd

Shared component lifecycle + dependency validation for app workers.

comp_dependency_injector.gd

Typed export / registry injection so Orchestrators avoid brittle $ paths.

clipboard_copier.gd

Context-agnostic clipboard worker — pairs with orchestrator toast pattern (see references).

comp_data_driven_config.gd

Resource-backed config for tool settings and form defaults.

comp_persistence_component.gd

MANDATORY for saveable UI/tool state — Registers Saveable group + get_save_data() without putting I/O in visuals.

comp_ability_sequencer.gd

Ordered multi-step tool workflows (wizard pages, export pipelines) as child steps.

comp_health_component.gd / comp_hitbox_component.gd

Only when an app/tool simulates entities; prefer godot-composition for real games.

The Orchestrator Pattern

Root script (LoginScreen.gd, UserProfile.gd, EditorPlugin dock root) is an Orchestrator:

  • Math/Logic: 0% · State wiring: 100%
  • Job: listen to component signals → call other component methods

MANDATORY: Extend patterns from comp_orchestrator_base.gd.

Concept App/UI Example
Orchestrator UserProfile.gd / Editor dock root
Logic component AuthValidator
VLS AuthVisualSyncer via comp_logic_visual_syncer.gd
Theme ownership Separate theme component — never mutated inside form logic
Focus ownership Orchestrator grants/releases Control focus; components never steal siblings' focus

Implementation Standards

  1. Type Safety — class_name on components; no untyped core architecture.
  2. Dependency Injection — @export var auth: AuthComponent (Inspector / %UniqueNames). NEVER get_node("Path/To/Child") for components.
  3. Stateless workers — Orchestrator passes data into functions; components do not scrape sibling Controls.

NEVER Do (Expert Architectural Rules)

Hierarchy & Dependencies

  • NEVER use get_parent() to fetch data — Inject via @export or function args.
  • NEVER talk sideways — Signal up; Orchestra
Полный SKILL.md на GitHub

Установить godot-composition-apps в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/app-orchestrator-examples.mdreferences/migration-notes.mdresources/auth_component.gdresources/theme_manager.gdscripts/clipboard_copier.gdscripts/comp_ability_sequencer.gdscripts/comp_base_component.gdscripts/comp_data_driven_config.gdscripts/comp_dependency_injector.gdscripts/comp_health_component.gdscripts/comp_hitbox_component.gdscripts/comp_logic_visual_syncer.gdscripts/comp_orchestrator_base.gdscripts/comp_persistence_component.gdscripts/comp_rock_test_boilerplate.gd

FAQ

Что делает скилл godot-composition-apps?

Expert architectural standards for scalable Godot Apps, Tools, EditorPlugins, and Control-heavy UIs using Composition (Has-A Orchestrator + components). Use when building dashboards, tool windows, forms, settings panels, or EditorPlugin UIs. Do NOT use for gameplay entities (Player/Enemy/Weapon/Hitbox) — route those to godot-composition. Trigger keywords: Control, EditorPlugin, tool UI, Orchestrator, VLS, rock test, AuthComponent, ThemeManager, Saveable component, dependency injection.

Как установить скилл godot-composition-apps?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл godot-composition-apps запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить godot-composition-apps с