/godot-agent-skills:godot-architecturefrom godot-agent-skills
Structures Godot 4.7 projects for scale with feature-based folders, scene composition, autoloads, event bus, custom Resources, state machines, save/load, and dependency injection. Use when starting a project, adding a system, or refactoring.
Ships in godot-agent-skills. 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.
Read when SKILL.md points to them.
Inspect what already exists before adding anything: python ../godot-core/scripts/project_inspect.py (autoloads, input map, folders, C#). Reuse existing systems rather than adding parallel ones.
res://
game/ # cross-cutting: autoloads, event bus, save system, settings
common/ # reusable components (health, hitbox, interactable) + shared UI widgets
player/ player.tscn player.gd|Player.cs player_stats.tres sprites/ sfx/
enemies/ goblin/ ... enemy_base.tscn (inherited by each enemy)
levels/ level_01.tscn ...
ui/ hud/ menus/ theme/main_theme.tres
addons/ # third-party plugins only
Use snake_case for files and folders (they're case-sensitive in exports). C# files are named after their class (Player.cs). Keep each scene next to its script and assets.
CharacterBody3D, Area2D, Control). Instance scenes; don't build trees in code. Code only clones and drives them.HealthComponent, Hitbox, Interactable) with a class_name/[GlobalClass], typed signals and @export configuration. The parent wires them together.get_parent().get_parent().../../X paths.@export var target: Node3D or @export var stats: EnemyStats set in the inspector. Use %UniqueName inside a scene.add_to_group("enemies"), get_tree().call_group(...), get_nodes_in_group) are good for broadcast and queries. Don't use them to fetch one specific node.enemy_base.tscn → goblin.tscn) for variants. Composition for behaviors. Keep inheritance chains shallow, at most 2 levels.Good uses: an Events signal bus, SaveSystem, Settings, SceneManager, Audio. Each owns global state and never holds level nodes.
Bad uses: a "GameManager" that knows every node. Gameplay state that belongs to a level goes in the level scene.
Register autoloads in Project Settings → Globals (stored as [autoload] Name="*res://game/events.gd"), or in project.godot.
C# autoloads work the same way. Expose public static Events Instance and set it in _EnterTree.
class_name EnemyStats extends Resource (or [GlobalClass] partial class EnemyStats : Resource) with @export fields, then create .tres files in the editor. Designers edit them in the inspector.goblin_stats.tres sees the same object. Call stats.duplicate() per instance for mutable runtime state, or enable resource_local_to_scene.duplicate_deep() (4.5+) when nested sub-resources must be copied too.enum plus match in _physics_process (see the reference).RefCounted per state, driven by a small machine.AnimationTree StateMachine (godot-animation). Keep gameplay and animation state separate, and sync them through travel().get_tree().change_scene_to_file(path) / change_scene_to_packed(ps) / change_scene_to_node(node) (4.7). For large levels, load in the background with ResourceLoader.load_threaded_request behind a loading screen.ConfigFile at user://settings.cfg. Saves go in JSON (JSON.stringify/JSON.parse_string) or FileAccess.store_var(data, false) at user://save_1.json.load() .tres/.res files that users can edit or share as save files. Resources can embed scripts, so this is arbitrary code execution. Use JSON or ConfigFile for anything that leaves the machine."version": 3) and migrate on load.Both can live in one .NET project. Pick one main language for gameplay. Use the other at clear boundaries: C# for heavy systems, GDScript for quick tools and editor scripts. Talk across the boundary through signals, Call/Get, or shared Resources. Keep data in Resources so both sides can read it.
Patterns (event bus, state machine, save system, scene manager), compiled by the tests: references/patterns.md
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub el4cteo/godot-skills --plugin godot-agent-skills27 skills in this plugin
/godot-2d2D games in Godot 4.7 - pixel-art and HD setup, TileMapLayer (cells, terrains, custom data, runtime tiles, physics chunking), Parallax2D, Camera2D (limits, smoothing, shake), y-sort and z-index, 2D lights and normal maps, AnimatedSprite2D, one-way platforms, custom drawing, many-sprite performance. Use for platformers, top-down, tile-based or any 2D scene./godot-3d-gameplayBuilding 3D games in Godot 4.7 - third-person and orbit cameras (SpringArm3D), camera-relative movement, lock-on, top-down/RTS/isometric cameras, GridMap + MeshLibrary levels, CSG blockout and baking, modular kit import hints, Path3D rails, interactables, spawners, world-space UI, large worlds and LOD. Use for 3D player controllers, cameras or level building./godot-Other plugins' skills for the same job