Data modeling

From TheArcForge/UniClaude · View interactive version

Data modeling is an AI agent skill from the GitHub repository TheArcForge/UniClaude. Use when you need detailed decision frameworks for ScriptableObject patterns, runtime data management, serialization strategies, and data-driven architecture.

How to use this skill

Skill file

Data Modeling — Full Decision Framework

Use this when unity-architect's condensed data section needs more depth.

DECISION: ScriptableObject Pattern Selection

When this applies: Using SOs for game data.

Options:

  1. Data container — simple read-only config.
  1. Runtime set — tracks active objects without FindObjectsOfType.
  1. Event channel — decoupled pub/sub.
  1. Enum-like collection — replaces C# enums with SO instances.

DECISION: Runtime State Management

When this applies: Data that changes during gameplay.

Options:

  1. MonoBehaviour fields — state lives on the component.
  1. Dedicated state class (POCO) — plain C# class holding state.
  1. Static/global state — accessible from anywhere.

DECISION: Save System Architecture

When this applies: Player progression, settings, or game state that persists across sessions.

Structure:

SaveData (serializable class)
├── PlayerData (health, position, level)
├── InventoryData (list of item IDs + quantities)
├── SettingsData (volume, controls, display)
└── schemaVersion (int — for migration)

Rules:

DECISION: Inspector Exposure

When this applies: Making data editable in the Unity Inspector.

Rules:

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.