godot-composition-apps
БесплатноЗапускает вложенные скриптыНе проверенExpert architectural standards for scalable Godot Apps, Tools, EditorPlugins, and Control-heavy UIs using Composition (Has-A Orchestrator + components). Use…
от 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
AuthComponenton a rock allows the rock to log in. (Context Agnostic) - Fail: A
LoginFormscript 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:
SubmitButtonextendsAnimatedButtonextendsBaseButton. - Right: Root HAS-A
AnimationComponentand HAS-ANetworkRequestComponent.
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
- Type Safety —
class_nameon components; no untyped core architecture. - Dependency Injection —
@export var auth: AuthComponent(Inspector /%UniqueNames). NEVERget_node("Path/To/Child")for components. - 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
@exportor function args. - NEVER talk sideways — Signal up; Orchestra
Установить godot-composition-apps в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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