| name | daicer-cli |
| description | API for the Agent to interact with the Daicer Backend via CLI. |
Daicer CLI Skill
"You are blind without the CLI."
This skill provides the primary interface for the Agent to perceive the backend state, inspect schemas, and query the knowledge base.
📁 Reference Library
Full command usage is available in the references/ directory:
🛠️ Usage Patterns
1. 📡 System Status
Check if the backend is alive.
yarn cli status --json
2. 🔮 Deep Schema Inspection
Understand the shape of data before writing queries.
Use this instead of guessing field names.
yarn cli schema --type "api::spell.spell" --json
yarn cli schema --list --json
3. 🔍 Data Exploration (Agentic Mode)
Fetch actual database content.
ALWAYS use --json so you receive machine-readable output.
yarn cli explore \
--type "api::spell.spell" \
--action find \
--limit 5 \
--json
yarn cli explore \
--type "api::monster.monster" \
--action findOne \
--document-id "doc_12345" \
--json
yarn cli explore \
--type "api::item.item" \
--action find \
--filters '{"rarity": "Legendary"}' \
--json
4. 🧠 Knowledge Retrieval (RAG)
Search the Vector Database.
Use this to answer questions about Game Rules, Code Context, or Lore.
yarn cli knowledge --query "How does the Entropy system work?" --json
5. ⚡ Compilation & Validation
Trigger logic pipelines for specific entities.
Useful for debugging why an entity isn't updating.
yarn cli compile \
--target "api::spell.spell" \
--id "doc_123" \
--phase "Atom" \
--json
6. 🌱 Genesis & Seeding
Reset or Hydrate the world.
⚠️ CAUTION: Genesis actions can be destructive.
yarn cli genesis atoms --json
yarn cli genesis all --json
7. 🚀 System Instantiation
Standard "Boot Up" Sequence.
Run this when the user says @instantiate or "Get ready".
yarn cli status --json
yarn cli schema --list --json
yarn cli knowledge --query "Project architecture and recent decisions" --json
🚨 Troubleshooting
| Error | Cause | Fix |
|---|
ConnectionRefused | Backend is down. | Run yarn start or check logs. |
UID Not Found | Wrong Content Type UID. | Run yarn cli schema --list to find the correct UID. |
JSON Parse Error | CLI output mixed with logs. | Ensure --json is passed and LOG_LEVEL=error if needed. |