Create Dojo models for storing game state with proper key definitions, trait derivations, and ECS patterns. Use when defining game entities, components, or state structures.
78
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
Player model with nested struct
dojo::model attribute
100%
100%
Drop trait derived
100%
100%
Serde trait derived
100%
100%
Key field present
100%
100%
Keys before data fields
100%
100%
ContractAddress key type
100%
100%
Nested struct Introspect
100%
100%
ContractAddress import
100%
100%
Introspect import
0%
100%
Nested struct not a model
100%
100%
Without context: $0.3107 · 1m 9s · 20 turns · 26 in / 3,871 out tokens
With context: $0.3815 · 1m 16s · 23 turns · 25 in / 4,142 out tokens
Composite key model and system read/write
Composite key fields
100%
100%
Keys before data fields
100%
100%
Drop and Serde derived
100%
100%
dojo::model attribute
100%
100%
ModelStorage import
100%
100%
World storage call
100%
100%
write_model usage
100%
100%
read_model usage
100%
100%
Tuple for composite read
100%
100%
world.uuid() usage
78%
100%
Without context: $0.2908 · 1m 7s · 17 turns · 22 in / 3,913 out tokens
With context: $0.4077 · 1m 17s · 23 turns · 277 in / 4,444 out tokens
ECS composition and global singleton
Enum derives Introspect
100%
100%
ECS separation
100%
100%
dojo::model on each model
100%
100%
Drop and Serde on all models
100%
100%
Key field in each model
100%
100%
Keys before data
100%
100%
Global singleton constant key
50%
100%
Singleton model has single key field
100%
100%
No monolithic entity struct
100%
100%
Copy trait on primitive-only models
100%
100%
Without context: $0.2700 · 1m 24s · 13 turns · 18 in / 4,783 out tokens
With context: $0.4428 · 1m 35s · 23 turns · 31 in / 5,081 out tokens
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.