godot-resources
Skill by gamedev-skills
Models Godot 4.7 game data as custom Resource classes saved as .tres files. It covers shared references, duplicate_deep() and threaded loading, for developers working on items, stats or enemy configs.
Install godot-resources
Built from the published package, never by AI.
git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/godot/godot-resources ~/.claude/skills/godot-resourcesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/godot/godot-resources ~/.gemini/antigravity-cli/skills/godot-resourcesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The godot-resources skill teaches an AI assistant to model game data in Godot 4.7 as custom Resource objects saved as .tres or .res files. It covers class_name and typed @export fields, writing text .tres files by hand, and loading with preload, load or threaded requests. It also explains when resources are shared by reference and when to copy them with duplicate(true) or duplicate_deep().
The skill includes a headless test pattern that checks a .tres file loads as its class and that copies are independent. It points to a checker script in the godot-nodes-scenes skill for broken ext_resource paths and uids. It is for developers who keep items, stats or enemy configs as data, or who see edits to one enemy change every enemy. Runtime save data and the C# version are covered by other skills.
Written from the project's SKILL.md and checked against it.
What it can do
- Custom Resource classesSubclasses Resource with class_name and typed @export fields for game data.
- Hand-written .tres filesWrites text resource files directly instead of using the Inspector.
- Duplicate before mutatingExplains duplicate(true) and duplicate_deep() for per-instance copies of shared data.
- Headless data testProvides a SceneTree test that checks a resource loads and copies stay independent.
- Resource loadingCovers preload, load and ResourceLoader threaded requests for large scenes.
- Project checkerRuns the godot-nodes-scenes checker to find broken ext_resource paths and uids.
What you need
- Godot 4.x, with 4.7 as the stated target
- Godot binary on PATH as godot or godot4, or set in GODOT_BIN, for headless tests
- Python to run the checker script from the godot-nodes-scenes skill
Try asking
- Create an ItemResource with id, display name, max stack and value fields
- Write a goblin.tres enemy config and check that it loads as its class
- Fix the bug where editing one enemy's stats changes every enemy
Good to know
- res:// is read-only in exported games, so runtime data must go to user://
- Nodes stored inside a Resource do not serialize; reference scenes as PackedScene
- Cyclic references between resources can fail to save or load cleanly
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/godot/godot-resources/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
references/resource-patterns.md4 KB
Alternatives to godot-resources
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
godot-resources: common questions
Why does editing one enemy change all enemies in Godot?
Every load() of the same path returns the same cached Resource object, so a change affects every user. Duplicate the resource for per-instance state, or set resource_local_to_scene to true.
Why does a class_name error appear only in headless runs?
The global class cache in .godot/ is missing on a fresh checkout. Running godot --headless --path . --import first resolves class_name types.
What is the difference between duplicate(true) and duplicate_deep()?
duplicate(true) copies embedded sub-resources but keeps those saved in their own .tres files shared. duplicate_deep(Resource.DEEP_DUPLICATE_ALL) copies those as well.
How do I install godot-resources?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is godot-resources free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is godot-resources safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to godot-resources?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
