Skip to content

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
View on GitHub

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 @export wiring over get_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 -y

Installs 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

  1. Single Responsibility: One script = One job.
  2. Encapsulation: Components are "selfish." They handle their internal logic but don't know who owns them.
  3. The Orchestrator: The root script (e.g., player.gd) does no logic. It only manages state and passes data between components.
  4. Decoupling: Components communicate via Signals (up) and Methods (down).

Decision Tree — Composition vs Autoload vs Inheritance

SituationChoose
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

Similar to Godot Composition

More Game Development