Official SurrealDB agent skills for use in agentic workflows. Agent Skills are folders of instructions, scripts, and resources that agents can discover and use to do things more accurately and efficiently. Compatible with most AI agents including Claude Code, GitHub Copilot, Cursor, Cline, and many others.
The skills in this repo follow the Agent Skills format.
npx skills add surrealdb/agent-skillsnpx skills add surrealdb/agent-skills --skill surrealql
npx skills add surrealdb/agent-skills --skill surrealkit
npx skills add surrealdb/agent-skills --skill surrealdb-vector
npx skills add surrealdb/agent-skills --skill surrealdb-python-
Clone the repository:
git clone https://github.com/surrealdb/agent-skills.git
-
Copy the
skills/directory to the location where your coding agent reads its skills or context files. Refer to your agent's documentation for the correct path.
surrealql
Core SurrealQL query language reference covering syntax, best practices, schema definitions, graph relationships, and common patterns.
Use when:
- Writing SurrealQL queries (SELECT, CREATE, UPDATE, DELETE, RELATE)
- Designing schemas with DEFINE TABLE, DEFINE FIELD, and DEFINE INDEX
- Working with graph relationships and record IDs
- Migrating from traditional SQL to SurrealQL
- Setting up live queries for real-time updates
surrealkit
SurrealKit CLI for SurrealDB schema management: project scaffolding from templates, development sync, phased production rollouts, type generation, and a declarative testing framework.
Use when:
- Scaffolding a new SurrealDB project with
surrealkit initand templates - Applying schema changes in development with
surrealkit sync - Planning, executing, or rolling back production migrations with
surrealkit rollout - Generating JSON or TypeScript types from a live schema with
surrealkit typegen - Writing declarative TOML tests for schemas, permissions, and API endpoints with
surrealkit test
surrealdb-vector
Vector search with SurrealDB using HNSW indexes, KNN queries, and similarity scoring.
Use when:
- Creating HNSW vector indexes on tables
- Querying vectors with KNN distance operators
- Building semantic search, RAG pipelines, or recommendation systems
- Tuning HNSW parameters (EFC, M, M0, distance function, type)
surrealdb-python
Using SurrealDB with the Python SDK, covering both client/server mode (WebSocket) and embedded mode (in-memory or file-based persistence).
Use when:
- Connecting to SurrealDB from Python applications
- Using the
surrealdbPython package (sync or async) - Running SurrealDB embedded in Python without a server
- Performing CRUD operations from Python code
Skills are automatically available once installed. The agent will use them when relevant tasks are detected.
Examples:
Write a SurrealQL query to find all users who follow each other
Create an HNSW vector index for semantic search on my documents table
Connect to SurrealDB from my Python application
Each skill follows the Agent Skills Open Standard:
SKILL.md— Required skill manifest with frontmatter (name, description, metadata)references/— (Optional) Reference files for detailed documentation