Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
24601 avatar

Surrealdb

  • 229 installs
  • 34 repo stars
  • Updated June 17, 2026
  • 24601/surreal-skills

surrealdb is a Claude Code skill that gives an agent expert SurrealDB 3 knowledge for SurrealQL, multi-model data modeling, schema design, security, deployment, performance tuning, and SDK integration.

About

surrealdb is a Claude Code skill that provides expert-level SurrealDB 3 architecture, development, and operations knowledge. It covers SurrealQL, multi-model data modeling, graph traversal, vector search, security, deployment, performance tuning, and SDK integration for many languages. It ships scripts to health-check a live instance, introspect its schema, and emit an agent capabilities manifest. A developer uses it to design SurrealDB schemas, write queries, and integrate the database into an application.

  • Expert SurrealDB 3 skill covering SurrealQL, multi-model data modeling (document, graph, vector, time-series, geospatial
  • SDK integration across JS, Python, Go, Rust, Java, .NET, C, PHP, Swift, Kotlin and Ruby
  • Ships doctor.py health-check, schema.py introspection, and onboard.py agent-manifest scripts plus 20+ rule references

Surrealdb by the numbers

  • 229 all-time installs (skills.sh)
  • Ranked #214 of 911 Databases skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
At a glance

surrealdb capabilities & compatibility

Free; open-source SurrealDB CLI plus Python/uv. Scripts connect to a user-specified SurrealDB endpoint with SURREAL_USER/SURREAL_PASS.

Capabilities
database schema design · surrealql queries · vector search · graph queries · schema introspection · sdk integration
Works with
docker · github
Use cases
database · api development · devops
Platforms
macOS
IDEs
vscode · jetbrains · neovim · zed
Pricing
Free
From the docs

What surrealdb says it does

Expert-level SurrealDB 3 architecture, development, and operations.
SKILL.md
SurrealQL mastery, multi-model data modeling (document, graph, vector, time-series, geospatial), schema design, security, deployment, performance tuning
SKILL.md
npx skills add https://github.com/24601/surreal-skills --skill surrealdb

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs229
repo stars34
Last updatedJune 17, 2026
Repository24601/surreal-skills

What it does

A developer designs a SurrealDB schema, writes SurrealQL queries, and integrates the database via an SDK while health-checking a running instance.

Who is it for?

Developers designing schemas, writing SurrealQL, and integrating SurrealDB 3 into applications across many language SDKs

Skip if: Projects not using SurrealDB, or teams needing a different database system

When should I use this skill?

The user works with SurrealDB, SurrealQL, multi-model or graph/vector data modeling, or SurrealDB SDK/ecosystem integration

What you get

Correct SurrealDB 3 schemas, queries, security, and SDK integrations grounded in current (v3.1.4+) behavior.

  • SurrealDB schema designs
  • SurrealQL queries
  • schema introspection output

By the numbers

  • version 1.7.1
  • SDKs for 11 languages
  • 20+ rule reference files

Files

.github/skills/surrealdb/SKILL.mdMarkdownGitHub ↗

SurrealDB 3 Expert Skill

Expert-level SurrealDB 3 architecture, development, and operations for GitHub Copilot.

When Copilot Should Use This Skill

Activate automatically when the user:

  • Writes or asks about SurrealQL queries
  • Works with .surql files
  • Designs database schemas for SurrealDB
  • Configures SurrealDB deployment or Docker
  • Uses SurrealDB SDKs (JavaScript, Python, Go, Rust, Java, Kotlin, .NET, C, PHP, Swift, Ruby)
  • Works with graph relationships (RELATE, traversal)
  • Implements vector search or RAG patterns
  • Configures security, permissions, or access control
  • Builds Surrealism WASM extensions
  • Migrates data to SurrealDB from other databases
  • Connects SurrealDB to MCP hosts, n8n, AI frameworks, or custom editors

Rules Reference

This skill contains 18 detailed rule files. Read the relevant rule file when the user's request matches its domain:

Rule FileWhen to LoadDomain
surrealql.mdWriting or debugging SurrealQL queriesFull SurrealQL language reference
data-modeling.mdDesigning schemas, choosing field types, record IDsMulti-model schema design patterns
graph-queries.mdRELATE, graph traversal, path expressionsGraph edge and traversal patterns
vector-search.mdHNSW indexes, similarity search, embeddingsVector search and RAG pipelines
security.mdPermissions, auth, JWT, access controlRow-level security and auth flows
deployment.mdInstalling, configuring, running SurrealDBStorage engines, Docker, Kubernetes
performance.mdSlow queries, index strategy, EXPLAINPerformance tuning and optimization
sdks.mdUsing SurrealDB from application codeJS, Python, Go, Rust, Java, Kotlin, .NET, C, PHP, Swift, Ruby patterns
surrealism.mdWriting WASM extensionsRust to WASM extension development
surrealml.mdWorking near SurrealMLPreview .surml boundary and native dependency warning
surrealmcp.mdConnecting AI hostsMCP tool catalog and deployment
editor-tooling.mdEditor / IDE supportLSP, tree-sitter, CodeMirror, editor extensions
langchain.mdLangChain RAGPython vector store API
ecosystem-integrations.mdn8n / framework pointersn8n, AI framework docs, Spectron boundary, Agent Skills
surrealist.mdUsing the Surrealist IDE/GUIIDE features and schema designer
surreal-sync.mdMigrating from other databasesCDC sync from Postgres, Mongo, etc.
surrealfs.mdAI agent filesystem operationsVirtual FS backed by SurrealDB
surrealkit.mdSchema sync, rollouts, seeds, and declarative testsDesired-state schema management for SurrealDB apps

Quick Reference

SurrealQL Essentials

-- Create records
CREATE person:alice SET name = 'Alice', age = 30;

-- Graph edges
RELATE person:alice->follows->person:bob SET since = time::now();

-- Traverse graph
SELECT ->follows->person.name AS following FROM person:alice;

-- Vector search (HNSW)
DEFINE INDEX idx_embed ON document FIELDS embedding HNSW DIMENSION 1536 DIST COSINE;
SELECT * FROM document WHERE embedding <|10,40|> $query_vector;

-- Row-level permissions
DEFINE TABLE post SCHEMALESS PERMISSIONS
  FOR select WHERE published = true OR user = $auth.id
  FOR create, update WHERE user = $auth.id;

-- Live queries
LIVE SELECT * FROM person WHERE age > 25;

Key Concepts

  • Record IDs: table:id (e.g., person:alice) -- first-class citizens, no JOINs needed
  • Multi-model: Document + Graph + Vector + Time-series + Geospatial in one DB
  • Graph operators: -> (outgoing), <- (incoming), <-> (bidirectional)
  • KNN operator: <|K,EF|> where K=neighbors, EF=search parameter (NOT distance metric)
  • Storage engines: memory, RocksDB, SurrealKV (time-travel), TiKV (distributed)
  • WASM extensions: New in v3 -- write Rust, compile to WASM, register with DEFINE MODULE

Scripts

# Health check
uv run scripts/doctor.py

# Schema introspection
uv run scripts/schema.py introspect

# Check upstream for updates
uv run scripts/check_upstream.py

Security Notes

  • Examples use root/root for local development only. Use scoped credentials in production.
  • Scripts connect to user-specified endpoints only. No third-party network calls.
  • Table names are validated against [a-zA-Z_][a-zA-Z0-9_]* before query interpolation.
  • Prefer package-manager or container installs over remote shell installers.

Related skills

FAQ

What SurrealDB version does it target?

SurrealDB 3, tracking v3.1.4 and later, snapshotted 2026-06-17.

What tools does it need?

The surreal CLI, Python 3.10+, and uv; Docker and the gh CLI are optional.

Databasesdatabases

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.