godot-composition

Installation
SKILL.md

Godot Composition Architecture

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).

Available Scripts

health_component.gd

Specialized Node for managing lifespan, damage logic, and death signals across any entity.

Related skills

More from thedivergentai/gd-agentic-skills

Installs
151
GitHub Stars
165
First Seen
Feb 10, 2026