agentleFS
gosomeagosomea/dsh-godot-ai/skills/godot-resources/SKILL.md

godot-resources

Skill9 starsChanged 3 months agoMITView on GitHub

用 Godot Resource、.tres 与 ResourceLoader/Saver 做数据驱动设计,管理共享/独立资源、UID 和序列化边界。

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Godot Resources

  • Resource 保存数据和可复用配置,Node 保存运行时行为与树关系。物品、技能、敌人配置和曲线优先自定义 Resource。
  • typed @export 字段构成编辑器数据契约;不要把 live Node、Callable 或场景瞬态状态直接持久化。
  • 明确资源是共享还是每实例唯一。修改共享 .tres 会影响所有引用者;需要独立状态时 duplicate 并确认 subresources。
  • 保留 res:// 路径、UID 与 ext_resource/sub_resource 引用完整性,不手工猜 UID。
  • 存档只保存可重建的纯数据和 schema version,运行时从资源模板恢复对象。

用 resource_manage(op="search|get_info|load|create|assign") 发现和操作资源;曲线、环境、碰撞形状、渐变和噪声使用对应专用 op。赋值后回读节点属性与资源信息,再保存/运行验证引用能够加载。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.