resource-pattern

Create typed Godot Resource containers with export fields for inspector editing.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/GOODDAYDAY/Harness-Everything-Game-Framework --skill resource-pattern-gooddayday
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resource-pattern
Source: https://github.com/GOODDAYDAY/Harness-Everything-Game-Framework/tree/main/.harness/skills/resource-pattern
Command: npx skills add https://github.com/GOODDAYDAY/Harness-Everything-Game-Framework --skill resource-pattern-gooddayday

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Godot projects often scatter data across scenes and scripts, making it hard to edit, share, and reuse configuration like items, stats, and other domain data. This skill provides a structured pattern to model data as typed Resources that can be edited in the Godot Inspector and reused across scenes, reducing duplication and improving consistency.

Core Features & Use Cases

  • Typed Resources with export fields for configuration (e.g., ItemData, EnemyStats) that can be edited in the Inspector.
  • Sharing and reuse by loading resource paths, with guidance on when to duplicate for per-instance mutations.
  • Patterns for Resource collections, preloading, and saving generated resources to disk (.tres/.res) to support data-driven design.

Quick Start

Create a new Resource subclass (with class_name) and export fields for inspector editing; load and duplicate it per instance when you mutate, then save as .tres or .res for persistence.

Frequently Asked Questions about resource-pattern

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create reusable Godot Resources for game data configuration?

To create reusable Godot Resources, define a Resource subclass with class_name and export-annotated fields. This enables inspector editing and allows sharing configuration across scenes, reducing data duplication in your Godot project.

What is the best way to edit item and stat data in the Godot Inspector?

The best way to edit item and stat data in the Godot Inspector is to model it as typed Resources with export fields. This pattern allows direct inspector editing of data-driven definitions like ItemData and EnemyStats for consistent asset configuration.

When should I duplicate a Godot Resource for per-instance mutations?

You should duplicate a Godot Resource for per-instance mutations when loaded instances need independent state. Duplicating prevents shared mutations, ensuring changes to one instance do not affect others referencing the same resource path.

How do I save generated Godot Resources to disk for persistence?

To save generated Godot Resources to disk for persistence, write the resource data to a .tres or .res file. This supports data-driven design by allowing preloading and sharing resource collections across different scenes.

Does this Godot Resource pattern work for dialogue data and level metadata?

Yes, this Godot Resource pattern works for dialogue data and level metadata. It provides a consistent structure for asset-centric development, applying to any data-driven definitions like items, stats, and other domain data.

Why use Godot Resources instead of hardcoding data in scripts?

Use Godot Resources instead of hardcoding to avoid scattering data across scripts. Resources provide a structured pattern to model data, enabling inspector editing, reuse across scenes, and reducing duplication for consistent configuration.