surrealdb
Installation
SKILL.md
SurrealDB - Production-Ready Query Generator
Generate solid, high-quality, production-ready SurrealDB queries and operations using SurrealQL for multi-model database applications including document, graph, and relational patterns.
When to Use This Skill
Use this skill when the user wants to:
- Write SurrealQL queries (SELECT, CREATE, UPDATE, DELETE, UPSERT)
- Design database schemas (SCHEMAFULL/SCHEMALESS tables, field definitions)
- Model relationships (record links, graph edges with RELATE, nested data)
- Implement authentication (DEFINE ACCESS, SCOPE, permissions, RBAC)
- Create indexes for performance optimization
- Write custom functions using DEFINE FUNCTION
- Build real-time applications with LIVE queries
- Implement transactions for data consistency
- Migrate from SQL/NoSQL to SurrealDB
- Debug or optimize existing SurrealQL