Godot Composition
Composition-based architecture kit for Godot games that splits gameplay entities into focused, reusable components.
- CCM score
- 51 of 100
- skills.sh installs
- 598
- GitHub stars
- 1K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers entity design for player controllers, NPCs, enemies, weapons, and gameplay systems using Entity-Component "Has-A" relationships
- Includes 9 component scripts (
health_component.gd,hit_box_component.gd,velocity_component.gd,state_component_vsm.gd, and 5 more) plus an orchestrator template,composition_root_init.gd - Enforces typed
@exportwiring overget_node()or$lookups, and bans deep inheritance chains and components that reference their parent - Designed for Godot developers building RPGs, platformers, and shooters who want scalable gameplay code
Install
$ npx -y skills add thedivergentai/game-dev-agentic-skills --skill godot-composition -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Core Philosophy
This skill enforces Composition over Inheritance ("Has-a" vs "Is-a"). In Godot, Nodes are components. A complex entity (Player) is simply an Orchestrator managing specialized Worker Nodes (Components).
The Golden Rules
- Single Responsibility: One script = One job.
- Encapsulation: Components are "selfish." They handle their internal logic but don't know who owns them.
- The Orchestrator: The root script (e.g.,
player.gd) does no logic. It only manages state and passes data between components. - Decoupling: Components communicate via Signals (up) and Methods (down).
Decision Tree — Composition vs Autoload vs Inheritance
| Situation | Choose |
|---|---|
| Gameplay entity behaviors (HP, hitbox, move, interact) | Composition — child components + orchestrator (composition_root_init.gd) |
| Cross-scene services (audio bus, save, net, economy ledger) | Autoload — not a component on the player |
| True is-a engine specialization (custom Control/Node with shared lifecycle) | Inheritance exception — rare; never for "adds a gun" / "adds HP" |
Details
- Repository
- github.com/thedivergentai/game-dev-agentic-skills
- Category
- Game Development
- First seen
- Jun 3, 2026
Questions
What does the godot-composition skill do?
godot-composition enforces composition over inheritance for Godot game entities such as player controllers, NPCs, enemies and weapons. It has the root script act only as an orchestrator that wires specialized component nodes together through typed exports and signals.
Who is the godot-composition skill for?
godot-composition is aimed at developers building scalable Godot games such as RPGs, platformers and shooters who want an Entity-Component architecture. It suits anyone designing gameplay systems where each entity is built from reusable parts.
How do I install the godot-composition skill?
Run npx -y skills add thedivergentai/game-dev-agentic-skills --skill godot-composition -y inside your project. Once installed, godot-composition gives the agent its component scripts, such as health, hitbox, velocity and state components, to build from.
Which skills lead the godot-composition skill in the Game Development category?
godot-composition is listed in the Game Development category alongside higgsfield-game-generation, game-feel, game-ui-ux, godot-gdscript-patterns and level-design. Its distinct focus is the Entity-Component architecture for Godot gameplay entities.
More from thedivergentai/game-dev-agentic-skills
All 49- Godot Audio Systems591
- Godot State Machine Advanced591
- Godot Procedural Generation588
- Godot Resource Data Patterns588
- Godot 2d Physics580
- Godot Tweening577
- Godot 3d Lighting562
- Godot Debugging Profiling558
- Godot Economy System553
- Godot Scene Management543
- Godot Platform Mobile534
- Godot Autoload Architecture530
- Godot Tilemap Mastery526
- Godot 3d Materials524
- Godot Navigation Pathfinding519
- Godot Dialogue System518
- Godot Rpg Stats518
- Godot Inventory System514
- Godot Animation Player513
- Godot Export Builds513
- Godot Physics 3d511
- Godot Animation Tree Mastery510
- Godot Genre Roguelike500
- Godot Ability System494
Similar to Godot Composition
More Game Developmentgodot-combat-systemthedivergentai/game-dev-agentic-skills613 installsExpert combat-system patterns for Godot covering hitboxes, damage payloads, health, and combo flows.
godot-masterthedivergentai/game-dev-agentic-skills5.6K installsConsolidated Godot 4.7 hub that routes development tasks to 92 domain skill references and anti-pattern catalogs.
godot-developmentzate/cc-godot1.5K installsExpert Godot Engine guidance covering scenes, nodes, GDScript, and project structure, backed by MCP tools.
godot-gdscript-patternswshobson/agents19.3K installsComprehensive GDScript patterns for Godot 4 covering signals, scenes, state machines, and optimization.
godot-uizate/cc-godot2.7K installsExpert Godot UI guide covering Control nodes, themes, responsive layouts, and menu, HUD, inventory, and dialogue patterns.
game-enginespluginagentmarketplace/custom-plugin-game-developer209 installsCross-engine guide to Unity, Unreal, and Godot covering architecture, lifecycles, and production patterns.