dojo-model
OfficialDefine Dojo models for ECS-based game state.
Authordojoengine
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Create Dojo models to store and manage game state using ECS patterns, with correct key definitions and trait derivations to ensure reliable persistence and querying.
Core Features & Use Cases
- Generate Cairo model structs annotated with #[dojo::model], including required traits (Drop, Serde) and a #[key] field to define the storage key.
- Support composite keys (multiple #[key] fields) for complex relationships and ECS composition across entities and resources.
- Provide guidance on common game-state patterns (Player, Position, Health, Inventory) and how to extend to new concepts.
Quick Start
Create a Position model with player as the key and coordinates x, y.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dojo-model Download link: https://github.com/dojoengine/book/archive/main.zip#dojo-model Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.