Tooluck logoTooluck
SKILL.md

godot-resources

Agent skill fromgamedev-skills/awesome-gamedev-agent-skills

Design data-driven Godot 4.7 games with custom Resource classes: define typed data with class_name + @export, save/load .tres/.res files, instance and duplicate resources, and load on demand with ResourceLoader (incl. threaded loading). Use when modeling items/stats/configs as data in a Godot project, creating .tres resources, or working with custom Resource subclasses and ResourceLoader/ResourceSaver.

How to install godot-resources

install godot-resources
# install the awesome-gamedev-agent-skills pack with the skills CLI
npx skills add gamedev-skills/awesome-gamedev-agent-skills

# or add only this skill to Claude Code: copy the folder

skills/godot/godot-resources/

# into

~/.claude/skills/godot-resources/ (all projects)

.claude/skills/godot-resources/ (one project)

skills/godot/godot-resources/SKILL.md

Apache-2.0Full file
1# Godot Resources (4.x)
2
3Model game data as reusable, Inspector-editable `Resource` objects instead of hard-coded
4values, and load/save them as `.tres`/`.res`. Targets **Godot 4.7**.
5
6## When to use
7
8- Use when representing items, stats, enemy configs, dialogue lines, or level metadata as
9 data; authoring `.tres` files in the Inspector; or loading/saving custom resources.
10
11**When *not* to use:** nodes/scene structure → `godot-nodes-scenes`; saving the player's
12*runtime progress* (engine-agnostic save format/slots) → `save-systems`; the C# variant of
13this pattern → `godot-csharp`.
14
15## Core workflow
16
171. **Subclass `Resource`** with `class_name` and `@export` fields. It now appears in the
18 "New Resource" dialog and as an `@export` type, editable in the Inspector.
192. **Create instances as `.tres`** files in the FileSystem dock (text, diff-friendly) or
20 `.res` (binary, smaller/faster). Edit their fields in the Inspector — no code needed.
213. **Reference resources from nodes** via `@export var data: ItemResource`, or arrays
22 `@export var loot: Array[ItemResource]`.
234. **Load at runtime** with `preload` (constant path) or `load`/`ResourceLoader.load`
24 (variable path). Use threaded loading for large assets.
255. **Duplicate before mutating** a shared resource at runtime, or every node using it
26 changes too (resources are shared references).
276. **Save generated/edited resources** with `ResourceSaver.save`.
28
29## Patterns
30
31### 1. A custom data resource
32
33```gdscript
34# item.gd
35…

Excerpt shown under the repository's Apache-2.0 license.

More skills in awesome-gamedev-agent-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Leonxlnx /

taste-skill
113k

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

CCCXCU1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates