Minimal schemas for simple operations
Purpose: Lightweight schemas containing only essential information for simple operations.
Use Case: Load these schemas when you only need basic information (ID format, existence checks, simple lookups) and don’t need complete entity data.
Available Minimal Schemas
Core Entities
When to Use Minimal Schemas
✅ Use minimal schemas for:
- ID format verification
- Existence checks
- Basic status queries
- Quick lookups
- Simple relationship checks (owner, location)
❌ Don’t use minimal schemas for:
- Complete entity data
- Detailed state information
- Complex operations
- Power/resource calculations
- Full workflow operations
Schema Structure
All minimal schemas include:
- Essential Properties Only: ID, basic relationships, key status fields
- Reference to Complete Schema:
structs:completeSchema field points to full schema
- Use Case Documentation:
structs:useCases and structs:whenToUse fields
- Size Optimization: Typically 30-50 lines vs. 200+ lines for complete schemas
Loading Strategy
Example: Simple Player Lookup
Minimal Load (30 lines):
{
"file": "schemas/minimal/player-essential.md",
"purpose": "Check if player exists, get basic info"
}
Complete Load (200+ lines):
{
"file": "schemas/entities/player.md",
"purpose": "Get complete player data with all fields"
}
Savings: 85% reduction in context window usage for simple operations.
Migration Path
If you start with a minimal schema and need more information:
- Check
structs:completeSchema field - Points to full schema
- Load complete schema - When you need detailed information
- Keep minimal in cache - Don’t reload if already loaded
Best Practices
- ✅ Start with minimal - Load minimal schemas first
- ✅ Upgrade when needed - Load complete schema only when you need detailed data
- ✅ Cache minimal - Minimal schemas rarely change, safe to cache
- ✅ Use for lookups - Perfect for existence checks and ID verification
Last Updated: January 2025