/xenodot:godot-compositionfrom xenodot
Provides Godot composition conventions (SOLID for Godot): component nodes over inheritance, signals up/calls down, scene-as-unit, dependency injection. Activates before entity structuring, refactors, or when inheritance is proposed.
Ships in xenodot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Build entities by composing small component nodes, not by inheriting behavior. This is the Godot-native reading of SOLID: nodes are cheap, scenes are composable, signals are the interface.
CharacterBody3D, Area3D, …) plus component children (Health, Hitbox, MoveInput). Subclass engine types directly when you need their physics/rendering; never build your own inheritance trees for shared behavior.Health, not Manager). If you can't name it without "And", split it.get_parent().something(), never uses absolute node paths, never assumes its parent's type.entities/components/<name>/ (scene + script, names match). Entity-local components stay inside the entity's folder.@export var target: Node3D-style exports wired by the composing scene; pure (non-Node) logic/model classes (RefCounted/Object) receive theirs via _init(...) constructor params. Never reach into the tree, an autoload, or a global service-locator to find a dependency — that hidden coupling is the violation, and constructor-injected pure classes stay unit-testable and engine-portable.if body.has_method("take_damage") or signal connections — not if body is Player.@export, not subclasses. A variant that differs only in data — a colour, a speed, a scene — is an @export on one script set per-scene, NOT a subclass. Two extends Enemy stubs that only assign a different tint constant collapse into @export var tint_color: Color on Enemy.Signals are the composition interface (rules 3 & 6); keep them disciplined.
is_connected(sig, callable) before disconnect(...) — disconnecting an already-disconnected signal throws. Connect idempotently the same way (if not is_connected(...): connect(...)).died, hit_confirmed, health_changed), not for the command a listener should run (update_hud). One event → one signal name, declared once on the entity that owns the event; listeners adapt to it. Don't mirror the same fact under two names or hold the same state in two places.signal health_changed(current: int, max: int), not bare signal health_changed. Emit the values a listener needs (an amount, an id, a position), not the emitter node, wherever practical — passing the node re-introduces the concrete-type coupling rule 6 removes.emit_signal / sig.emit(...) returns immediately; don't await a connected handler or assume any listener ran. The emitter announces the fact and moves on; ordering or completion across listeners is not the emitter's concern. (Signals up / calls down — rule 3.)These keep the seam decoupled without a global signal-bus / event-bus autoload. Routing every signal through one shared autoload re-creates the hidden coupling rules 5 & 6 forbid — inject the emitter via @export and connect to it directly, or reach it through a duck-typed seam. No autoload-as-message-broker.
Extract a component only when one of these is true:
Otherwise: keep the simplest thing that works. Premature extraction is scope creep in disguise — a Health component for the only entity that has health is structure paid for and not used. The framework adds components on demand, via the godot-refactor agent, not by default.
Where extraction goes. A reusable behavior with state (health, hitbox, input) is a component scene in entities/components/<name>/ (rule 4). A reusable stateless function (node-building, a tween flash, a one-shot SFX, a safe lookup) is a class_name static util in tools/lib/ (referenced by bare class name; see the DRY rule in godot-code-rules). Don't grow a component for what is really a function.
| Smell | Instead |
|---|---|
| God script on the entity root doing input + movement + combat | one component child per job |
class_name Enemy extends BaseEntity extends … behavior trees | components on a flat engine-node base |
| Autoload used to share behavior between entities | a component scene each entity instances |
Component calling get_parent() / $"../.." | signal up, or an @export injected by the parent |
| Extracting "because we might need it later" | wait for the second consumer |
Second extends MyEntity stub that only changes a constant | one script + an @export set per-scene (rule 7) |
Repeated get_tree().get_first_node_in_group(...) for one target | route through a tools/lib/ accessor, or inject via @export |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 plugins ship this exact skill · first indexed Jul 20, 2026
50 skills in this plugin
/agent-reportThe agent→orchestrator handoff protocol. A backgrounded worker's relayed result string truncates on long, tool-heavy turns, so the handoff is an artifact, not a string — the worker Writes its full report to a file, and the orchestrator reads that file directly. Load this whenever a task asks you to hand off a structured report to another agent. Any agent doing background work that must be handed off uses it — not only builders. Defines the report contract the writer follows./autonomous-main-goalThe hive's Autonomous Mode self-drive loop. When a standing Main Goal is active, evaluate it, break it into ordered slices, then on each `[Autonomous check/cavemanUltra-compressed communication mode — always active for this agent. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Drop only when interviewing the user via mcp__ui__form (labels/descriptions must be clear prose).
npx claudepluginhub arthur0n/xenodot-forge --plugin xenodotOther plugins' skills for the same job