Skip to content
Conduit

skill

surreal-skills

Expert SurrealDB 3 skill for AI coding agents (Claude, Codex, Amp, Gemini CLI, Copilot, Cursor). SurrealQL, multi-model data modeling, graph queries, vector search, WASM extensions, and full ecosystem

24601/surreal-skillscommunitylistedunreviewednot running here yet

Set up

Skills are installed by placing their folder where your agent loads skills.

Install instructions come from the README

Skills do not use an MCP config. Follow the steps in the README below; one-click install arrives with accounts.

README

synced Oct 14, 2026

surreal-skills

CI License: MIT Version skills.sh

Expert SurrealDB 3 skill for AI coding agents. Tracks SurrealDB v3.1.4+. Complete coverage of SurrealQL, multi-model data modeling, graph traversal, vector search (HNSW + DiskANN), security, deployment, performance tuning, SDK integration, WASM extensions, built-in MCP (v3.1+), standalone SurrealMCP, SurrealKit, Surrealist, n8n, CodeMirror, and agent-skill workflows.

Features

  • SurrealQL mastery -- Complete language reference with statements, functions, operators, and idioms
  • Multi-model data modeling -- Document, graph, vector, relational, time-series, and geospatial patterns in a single schema
  • Graph queries -- First-class edge creation and traversal without JOINs
  • Vector search -- HNSW and DiskANN indexes, similarity functions, and RAG pipeline patterns
  • Built-in MCP (v3.1+) -- surreal mcp stdio and HTTP /mcp for AI agent hosts; standalone surrealmcp for extended tools
  • Security -- Row-level permissions, JWT auth, namespace/database/record-level access control
  • Deployment -- Storage engine selection, Docker, Kubernetes, production hardening
  • Performance -- Index strategies, EXPLAIN analysis, batch operations, connection pooling
  • 12+ SDK integrations -- JavaScript/TypeScript, Python, Go, Rust, Java, Kotlin, .NET, C, PHP, Swift (iOS/macOS/visionOS), Ruby
  • Surrealism WASM extensions -- Custom functions and analyzers compiled from Rust (new in v3)
  • SurrealML scope coverage -- .surml artifact format (preview/unstable), PyPI-vs-GitHub release boundary, and native-library download warning
  • SurrealMCP for AI agents -- Built-in MCP in SurrealDB 3.1+ plus standalone surrealdb/surrealmcp v0.4.0
  • Editor tooling pointers -- first-party surrealql-language-server v0.1.6, tree-sitter grammar, CodeMirror v1.0.6, and discoverability pointers for VS Code / Cursor / Windsurf / VSCodium, JetBrains, Neovim, Helix, Sublime Text, Zed extensions
  • LangChain integration (Python only) -- langchain-surrealdb 0.2.1 (Python) -- vector store usage; @langchain/surrealdb JS package was retracted in v1.4.1 (does not exist on npm)
  • surrealdb/setup-surreal@v2 GitHub Action -- Official Action for running SurrealDB inside CI workflows (the v1.4.0 documentation that described setup-surreal as a CLI bootstrap was retracted in v1.4.2)
  • Full ecosystem -- Surrealist IDE, Surreal-Sync CDC, SurrealFS agent filesystem, SurrealKit schema tooling, n8n community node, official Agent Skills repo, and Spectron roadmap boundary
  • Health checks and introspection -- Doctor script and schema introspection for any SurrealDB instance
  • Universal agent support -- Works with 30+ AI coding agents via skills.sh

Installation

Claude Code (recommended)

Option 1 -- Install as a Claude Code skill (global)

npx skills add 24601/surreal-skills -a claude-code -g -y

This installs the skill globally so it is available in every Claude Code session. The -g flag installs globally, -y auto-confirms prompts.

Option 2 -- Install per-project via CLAUDE.md

Clone the repo and reference it from your project's CLAUDE.md:

git clone https://github.com/24601/surreal-skills.git ~/.claude/skills/surrealdb

Then add to your project's CLAUDE.md (or ~/.claude/CLAUDE.md for global):

# SurrealDB Skill

@import ~/.claude/skills/surrealdb/AGENTS.md

Or inline the reference:

# SurrealDB Skill

For SurrealDB work, read the rules at ~/.claude/skills/surrealdb/rules/ and
use the scripts at ~/.claude/skills/surrealdb/scripts/ for health checks
and schema introspection.

Option 3 -- Add as a Claude Code custom slash command

Create ~/.claude/commands/surrealdb.md:

Load the SurrealDB 3 skill from ~/.claude/skills/surrealdb/AGENTS.md
and use its rules for all SurrealDB architecture, development, and operations tasks.
Available rules: surrealql, data-modeling, graph-queries, vector-search, security,
deployment, performance, sdks, surrealism, surrealist, surreal-sync, surrealfs,
surrealkit, surrealmcp, surrealml, editor-tooling, langchain, ecosystem-integrations, gotchas.

Then invoke with /surrealdb in any Claude Code session.

Option 4 -- Project-scoped slash commands

Add SurrealDB-specific commands to your project:

mkdir -p .claude/commands

Create .claude/commands/surreal-doctor.md:

Run the SurrealDB health check: uv run ~/.claude/skills/surrealdb/scripts/doctor.py
Report any issues found and suggest fixes based on the deployment rules.

Create .claude/commands/surreal-schema.md:

Introspect the current SurrealDB schema: uv run ~/.claude/skills/surrealdb/scripts/schema.py introspect
Analyze the output using the data-modeling rules and suggest improvements.

Other AI Agents

# skills.sh (universal -- works with all supported agents)
npx skills add 24601/surreal-skills

# Amp
npx skills add 24601/surreal-skills -a amp -g -y

# Codex
npx skills add 24601/surreal-skills -a codex -g -y

# Gemini CLI
npx skills add 24601/surreal-skills -a gemini-cli -g -y

# OpenCode
npx skills add 24601/surreal-skills -a opencode -g -y

# Pi (badlogic/pi-mono)
npx skills add 24601/surreal-skills -a pi -g -y

# OpenClaw / Clawdbot
npx skills add 24601/surreal-skills -a openclaw -g -y

GitHub Copilot (native agent skills)

Copilot supports the Agent Skills standard natively in VS Code, Copilot CLI, and the Copilot coding agent. This skill ships a Copilot-native .github/skills/surrealdb/SKILL.md that Copilot auto-loads when your prompt is SurrealDB-related.

Option 1 -- Project-level (recommended for teams)

Copy the entire skill into your project's .github/skills/ directory:

# From the surreal-skills repo
cp -r .github/skills/surrealdb <your-project>/.github/skills/surrealdb
cp -r rules/ <your-project>/.github/skills/surrealdb/rules/

Copilot discovers this automatically -- no config needed. Type /surrealdb in chat or let Copilot auto-load it when it detects SurrealQL context.

Option 2 -- Personal (all projects)

Clone into ~/.copilot/skills/:

git clone https://github.com/24601/surreal-skills.git ~/.copilot/skills/surrealdb

Or add a custom search location in VS Code settings:

{
  "chat.agentSkillsLocations": [
    "~/.copilot/skills"
  ]
}

Option 3 -- Use /skills menu

Type /skills in Copilot chat to open the Configure Skills menu, then browse to the cloned surrealdb directory.

Other IDE Integrations

# Cursor -- add skill to .cursor/skills/ (same Agent Skills standard)
cp -r .github/skills/surrealdb <your-project>/.cursor/skills/surrealdb

# Windsurf -- append AGENTS.md to .windsurfrules
cat AGENTS.md >> .windsurfrules

# Cline / Continue -- reference in your config
# Add the AGENTS.md path to your system prompt configuration

Manual installation

# Clone to any location
git clone https://github.com/24601/surreal-skills.git ~/.claude/skills/surrealdb

# Verify installation
uv run ~/.claude/skills/surrealdb/scripts/doctor.py --check

Quick Start

Credential warning: Examples below use root/root for local development only. Never use default credentials against production or shared instances.

# Start SurrealDB in-memory for LOCAL DEVELOPMENT ONLY
surreal start memory --user root --pass root --bind 127.0.0.1:8000

# Connect via CLI REPL (local dev)
surreal sql --endpoint http://localhost:8000 --user root --pass root --ns test --db test

# Create records with SurrealQL
CREATE person:alice SET name = 'Alice', email = 'alice@example.com';
CREATE person:bob SET name = 'Bob', email = 'bob@example.com';

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

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

# Run the health check
uv run scripts/doctor.py

Architecture

surreal-skills/
  SKILL.md              # Skill manifest (frontmatter + body)
  AGENTS.md             # Structured agent briefing
  README.md             # This file
  LICENSE               # MIT license
  scripts/
    onboard.py          # Setup wizard / capabilities manifest
    doctor.py           # Health check (CLI, server, auth, storage)
    schema.py           # Schema introspection and export
  rules/
    surrealql.md        # SurrealQL language reference
    data-modeling.md    # Multi-model schema design patterns
    graph-queries.md    # Graph traversal and RELATE patterns
    vector-search.md    # Vector indexes, similarity search, RAG
    security.md         # Permissions, auth, access control
    deployment.md       # Storage engines, Docker, K8s, production, setup-surreal GitHub Action
    performance.md      # Indexes, EXPLAIN, optimization
    sdks.md             # Official SDK integration (12+ languages)
    surrealism.md       # WASM extension system (new in v3)
    surrealml.md        # SurrealML preview scope and package boundaries
    surrealmcp.md       # Model Context Protocol server
    editor-tooling.md   # LSP, tree-sitter, IDE extensions
    langchain.md        # LangChain Python integration
    ecosystem-integrations.md # n8n, CodeMirror, Agent Skills, Spectron boundary
    surrealist.md       # Surrealist IDE/GUI
    surreal-sync.md     # CDC migration tool
    surrealfs.md        # AI agent filesystem
    surrealkit.md       # Desired-state schema sync and rollouts
  skills/
    surrealism/
    surreal-sync/
    surrealfs/
    surrealkit/
    surrealmcp/

Rules

RuleDescription
surrealql.mdComplete SurrealQL language reference: CREATE, SELECT, UPDATE, DELETE, RELATE, INSERT, UPSERT, LIVE SELECT, DEFINE, REMOVE, INFO, subqueries, transactions, futures, all built-in functions, v2-to-v3 migration notes
data-modeling.mdSchema design patterns: record IDs (typed, generated, composite), field types, schemafull vs schemaless, normalization strategies, multi-model design (document + graph + vector in one schema), time-series and geospatial data
graph-queries.mdGraph edge creation with RELATE, traversal operators (-> outgoing, <- incoming, <-> bidirectional), path expressions, recursive queries, filtering and aggregation on edges, graph-specific DEFINE TABLE TYPE RELATION
vector-search.mdVector field definitions, HNSW and brute-force index creation, distance metrics (cosine, euclidean, manhattan, minkowski), vector::similarity functions, RAG pipeline patterns, hybrid search combining vector + metadata filtering
security.mdRow-level permissions with WHERE predicates, DEFINE ACCESS for JWT and record-based auth, DEFINE USER for system users, namespace/database/table permission scoping, $auth and $session runtime variables, authentication flow patterns
deployment.mdInstallation methods (package manager, Docker, binary), storage engine selection (memory, RocksDB, SurrealKV with time-travel, TiKV for distributed), Docker Compose and Kubernetes Helm charts, production hardening, backup/restore, log levels, monitoring, surrealdb/setup-surreal@v2 GitHub Action for CI
performance.mdIndex strategies (unique, full-text search analyzers, HNSW vector), EXPLAIN statement for query analysis, batch operations, connection pooling, storage engine trade-offs by workload, parallel queries, resource limits, compute-to-storage ratios
sdks.mdOfficial SDK usage for JavaScript/TypeScript (Node, Deno, Bun, browser), Python, Go, Rust, Java, Kotlin, .NET, C, PHP, Swift (iOS / macOS / visionOS), Ruby: connection setup (HTTP vs WebSocket), authentication flows, CRUD operations, live query subscriptions, typed record handling, error patterns
surrealism.mdSurrealism WASM extension system introduced in SurrealDB 3: Rust SDK for authoring, custom function registration, custom analyzer creation, module compilation to wasm32-unknown-unknown, deployment to running instances, versioning, testing
surrealml.mdSurrealML scope summary (preview/unstable; GitHub v0.1.2 vs PyPI 0.0.4 boundary; setup-time native-library download warning). .surml artifact format, supported pip extras, stable patterns that don't depend on the unstable ML surface
surrealmcp.mdSurrealMCP Model Context Protocol server: verified install (Cargo from source / Docker; not on crates.io or npm), surrealmcp start CLI shape, env-var conventions, tool catalog grouped per upstream README, host-config pointers for Claude Desktop / Cursor / Copilot / Zed / n8n
editor-tooling.mdFirst-party surrealql-language-server v0.1.3, surql-lsp community boundary, surrealql-tree-sitter, CodeMirror packages, and editor-extension discoverability pointers
langchain.mdLangChain integration: langchain-surrealdb 0.2.1 (Python) -- verified deps (langchain-core ~= 1.1.0, surrealdb ~= 1.0.8), constructor-based vector store API, custom_filter kwarg. JS section was retracted in v1.4.1 (@langchain/surrealdb not on npm)
ecosystem-integrations.mdn8n community node (@surrealdb/n8n-nodes-surrealdb), official AI framework docs index, Spectron roadmap boundary, CodeMirror, and upstream Agent Skills repo
surrealist.mdSurrealist IDE and GUI: schema designer with visual table editing, query editor with syntax highlighting and auto-complete, graph visualizer for relationships, table explorer, connection profiles, import/export, embedding in applications
surreal-sync.mdSurreal-Sync CDC migration tool: source connectors (PostgreSQL, MySQL, MongoDB, etc.), SurrealDB as target, incremental change data capture, schema translation rules, migration workflow orchestration, conflict resolution, monitoring
surrealfs.mdSurrealFS AI agent filesystem: file storage backed by SurrealDB, metadata management with SurrealQL queries, directory structures, file versioning, agent-friendly API patterns, integration with AI agent frameworks
surrealkit.mdSurrealKit schema management for SurrealDB apps: desired-state sync for dev, rollout-based migrations for shared/prod, seeds, and declarative schema/permission/API tests
gotchas.mdCross-domain gotchas and footguns verified against v3.1.4+: migration, permissions, graph, vector, SurrealQL, MCP, SDKs

Scripts

ScriptUsageDescription
onboard.pyuv run scripts/onboard.py --checkVerify prerequisites (surreal CLI, Python, uv, server connectivity)
onboard.pyuv run scripts/onboard.py --agentOutput JSON capabilities manifest for agent integration
doctor.pyuv run scripts/doctor.pyFull health check: CLI version, server reachability, auth, namespace, database, storage engine
doctor.pyuv run scripts/doctor.py --checkQuick pass/fail (exit code 0 = healthy, 1 = issues)
doctor.pyuv run scripts/doctor.py --endpoint URLCheck a specific SurrealDB endpoint
schema.pyuv run scripts/schema.py introspectFull schema dump of all tables, fields, indexes, events, accesses
schema.pyuv run scripts/schema.py tablesList all tables with field/index counts
schema.pyuv run scripts/schema.py table <name>Inspect a single table in detail
schema.pyuv run scripts/schema.py export --format surqlExport schema as reproducible DEFINE statements
schema.pyuv run scripts/schema.py export --format jsonExport schema as structured JSON
check_upstream.pyuv run scripts/check_upstream.pyCompare upstream repos against skill snapshot; shows what changed
check_upstream.pyuv run scripts/check_upstream.py --staleOnly show repos with new commits since snapshot
check_upstream.pyuv run scripts/check_upstream.py --jsonJSON-only output (no Rich table)

All scripts follow the dual-output convention: stderr for Rich-formatted human output, stdout for machine-readable JSON.

Sub-Skills

Surrealism (WASM Extensions)

New in SurrealDB 3. Extend the database with custom functions and analyzers written in Rust, compiled to WebAssembly, and deployed to running instances. The rules/surrealism.md rule covers the full Surrealism SDK, module authoring, compilation, deployment, and testing workflow.

Surreal-Sync (CDC Migration)

Change Data Capture tool for migrating data from external databases (PostgreSQL, MySQL, MongoDB, and others) into SurrealDB. Supports incremental sync, schema translation, and conflict resolution. See rules/surreal-sync.md.

SurrealFS (AI Agent Filesystem)

A filesystem abstraction built on SurrealDB, designed for AI agent workflows. Store files with rich metadata queryable via SurrealQL, version files automatically, and integrate with agent frameworks. See rules/surrealfs.md.

SurrealKit (Schema Sync and Rollouts)

SurrealDB schema management for application teams. Use desired-state sync for disposable environments, rollout manifests for shared and production databases, seed for fixture data, and test for declarative schema, permission, and API checks. See rules/surrealkit.md.

SurrealMCP (Model Context Protocol Server)

Built-in (SurrealDB 3.1+): surreal mcp stdio or HTTP POST /mcp — no separate install. Standalone: official surrealdb/surrealmcp v0.4.0 for extended tools and cloud helpers. Install standalone from source (cargo install --path .) or Docker; not on crates.io or npm. See rules/surrealmcp.md and skills/surrealmcp/SKILL.md.

SurrealML (In-Database ML Inference) -- preview / unstable

surrealml has a GitHub v0.1.2 release, but PyPI still exposes surrealml 0.0.4 as latest as of 2026-06-17. The stable local guidance remains the .surml artifact format and [sklearn], [torch], [tensorflow] extras. Current upstream Python setup can download native libraries from GitHub Releases into ~/surrealml_deps unless LOCAL_BUILD=TRUE; pin and audit before production use. See rules/surrealml.md.

Editor Tooling

First-party surrealql-language-server v0.1.6, community surql-lsp v0.1.1 boundary, tree-sitter grammar, @surrealdb/codemirror / @surrealdb/lezer v1.0.6, and pointer entries for VS Code / Cursor / Windsurf / VSCodium, JetBrains IDEs, Neovim, Helix, Sublime Text, Zed, and Emacs extensions. See rules/editor-tooling.md.

LangChain Integration (Python only)

langchain-surrealdb 0.2.1 (Python; langchain-core ~= 1.1.0, surrealdb ~= 1.0.8 v1 SDK) for LangChain 1.1+ pipelines: SurrealDB as a vector store via constructor SurrealDBVectorStore(embeddings, conn). The @langchain/surrealdb npm package, AsyncSurrealDBVectorStore, SurrealChatMessageHistory, SurrealHybridRetriever, and from_endpoint/from_client factories from v1.4.0 were retracted in v1.4.1. See rules/langchain.md.

Ecosystem Integrations

rules/ecosystem-integrations.md tracks new and pointer-level ecosystem surfaces: the official scoped n8n community node (@surrealdb/n8n-nodes-surrealdb v0.6.0), the official AI framework docs index, Spectron / Agent Memory Context as roadmap-only, CodeMirror packages, and surrealdb/agent-skills. Treat AI framework pages other than LangChain as pointers until their package/API shape is re-verified.

Use Cases

API Backend

Use SurrealDB as the primary datastore for REST or GraphQL APIs. Define tables with schemafull validation, set up row-level permissions for multi-tenant security, connect via the JavaScript or Python SDK over WebSocket for real-time live queries.

Real-Time Application

Leverage LIVE SELECT for push-based data subscriptions. Clients receive changes as they happen without polling. Combine with WebSocket SDK connections for chat applications, collaborative editors, dashboards, and notification systems.

Graph Analytics

Model complex relationships (social networks, organizational hierarchies, dependency trees, knowledge graphs) using RELATE and typed edge tables. Traverse paths of arbitrary depth with -> operators. Filter and aggregate at each hop without writing JOINs.

Vector Search and RAG

Store document embeddings alongside content. Create HNSW vector indexes with configurable distance metrics. Query with vector::similarity::cosine for semantic search. Build retrieval-augmented generation pipelines that combine vector similarity with metadata filtering in a single SurrealQL query.

IoT and Time-Series

Ingest high-volume sensor data with schemaless tables. Use datetime fields and range queries for time-series analysis. Aggregate with built-in math and time functions. SurrealKV storage engine enables time-travel queries to access historical state at any point in time.

Geospatial Applications

Store geometry types (points, polygons, multipoints) as native SurrealDB values. Use built-in geo functions (geo::distance, geo::bearing, geo::area, geo::contains) for spatial queries. Combine with other data models -- a single query can traverse a graph, filter by location, and rank by vector similarity.

Data Migration

Migrate from PostgreSQL, MySQL, MongoDB, or other databases using Surreal-Sync CDC. Translate schemas automatically, sync incrementally, and validate with schema introspection. For SurrealDB v2-to-v3 upgrades, use surreal export/import with the migration notes in rules/surrealql.md.

WASM Extensions

Extend SurrealDB with custom business logic using Surrealism. Write functions and analyzers in Rust, compile to WASM, and deploy without restarting the server. Use cases include custom validation, domain-specific scoring, proprietary tokenizers, and specialized aggregation functions.

AI Agent Filesystem

Use SurrealFS as a persistent, queryable filesystem for AI agent workflows. Agents can store and retrieve files with rich metadata, query across files with SurrealQL, and leverage SurrealDB's permissions system for multi-agent access control.

Full-Text Search

Define custom analyzers (tokenizers, filters, stemmers) and create search indexes on text fields. Query with full-text search predicates that integrate with the rest of SurrealQL -- combine text search with graph traversal, vector similarity, and relational filters in a single statement.

Configuration

Set these environment variables to configure the skill scripts. All are optional with sensible defaults.

VariableDescriptionDefault
SURREAL_ENDPOINTSurrealDB server URLhttp://localhost:8000
SURREAL_USERRoot or namespace usernameroot
SURREAL_PASSRoot or namespace passwordroot
SURREAL_NSDefault namespacetest
SURREAL_DBDefault databasetest

These variables are also recognized by the surreal CLI and official SurrealDB SDKs.

Source Provenance

This skill was refreshed on 2026-05-03 from these upstream sources. Use check_upstream.py to detect what changed since this snapshot for incremental updates.

RepositoryReleaseSHASnapshot DateRules Affected
surrealdb/surrealdbv3.0.5 (main toward v3.1.0-alpha)a97d3af85d792026-04-29surrealql, data-modeling, security, performance, deployment, surrealism
surrealdb/surrealistsurrealist-v3.8.53699b2d09b622026-05-01surrealist
surrealdb/surrealdb.jsv2.0.3f0fa3cd7d8fb2026-03-25sdks
surrealdb/surrealdb.pyv2.0.0 (GA)6e45a820d27c2026-05-02sdks
surrealdb/surrealdb.gov1.4.0 (main)aef39d3a439f2026-04-30sdks
surrealdb/surreal-syncv0.3.459b3166910f02026-03-11surreal-sync
surrealdb/surrealfs--0008a3a94dbe2026-01-29surrealfs
surrealdb/surrealkitv0.6.0 (pre-release)28f5a1c9d20c2026-05-03surrealkit

Documentation: surrealdb.com/docs snapshot 2026-05-03.

Machine-readable provenance: SOURCES.json.

Registries

This skill is published to multiple agent skill registries:

RegistryInstall Command
skills.shnpx skills add 24601/surreal-skills
ClawHubnpx clawhub install surrealdb
OpenClaw / Clawdbotclawhub install surrealdb
GitHubgit clone https://github.com/24601/surreal-skills.git

Contributing

See CONTRIBUTING.md for development setup, code style, and PR process.

Security

To report a vulnerability, use GitHub Security Advisories. See SECURITY.md for details.

This skill declares the following security properties in SKILL.md frontmatter:

PropertyValueMeaning
no_networkfalsedoctor.py/schema.py connect to user-specified SurrealDB endpoint (WebSocket). check_upstream.py calls GitHub API via gh CLI. No other third-party calls.
no_credentialsfalseScripts accept SURREAL_USER/SURREAL_PASS for DB auth. No credentials are stored in the skill itself.
no_env_writetrueScripts do not modify environment variables
no_file_writefalseschema.py can write schema.surql when --output-dir is used, and onboard.py --interactive can write a local .env file only after explicit user confirmation.
no_shell_execfalseScripts invoke surreal CLI and gh CLI
scripts_auditabletrueAll scripts are readable Python with no obfuscation
scripts_use_pep723trueDependencies declared inline via PEP 723, no requirements.txt
no_obfuscated_codetrueNo obfuscated, encoded, or encrypted code
no_binary_blobstrueNo compiled binaries or WASM files
no_minified_scriptstrueNo minified JavaScript or compressed code
no_curl_pipe_shtrueThe skill documents package-manager and container installs only. No pipe-to-shell installer commands are included.

Required Environment Variables

Declared in SKILL.md requires.env_vars:

VariableSensitiveDefaultPurpose
SURREAL_ENDPOINTNohttp://localhost:8000SurrealDB server URL
SURREAL_USERYesrootAuthentication username
SURREAL_PASSYesrootAuthentication password
SURREAL_NSNotestDefault namespace
SURREAL_DBNotestDefault database

Required Binaries

Declared in SKILL.md requires.binaries:

BinaryRequiredInstall
surrealYesbrew install surrealdb/tap/surreal
python3 (>=3.10)YesSystem package manager
uvYesbrew install uv or pip install uv
dockerNoOptional for containerized instances
ghNoOptional -- only used by check_upstream.py to compare upstream repo SHAs via GitHub API

Script Safety

  • All user-provided table names are validated against [a-zA-Z_][a-zA-Z0-9_]* before interpolation into SurrealQL queries (prevents SurrealQL injection)
  • doctor.py and schema.py connect only to the SurrealDB endpoint specified by the user (via env var or CLI flag)
  • check_upstream.py calls GitHub API via gh CLI to compare upstream repo SHAs (optional maintenance script, not needed for normal usage)
  • No data is sent to third-party services
  • Credential warning labels are present on all root/root examples

License

MIT

Credits

Built for the SurrealDB community. SurrealDB is created and maintained by SurrealDB Ltd.

Published on skills.sh, ClawHub, and GitHub.

↑↓ navigate openesc close