surrealdb

surrealdb is a skill for Claude Code from 24601/surreal-skills. It costs 108 tokens per session (1,394 once invoked), scanned A, original, MIT.

A specialised guide for SurrealDB 3, a database that supports documents, graphs, vectors, time-series data, and geographic data. It covers queries, schemas, security, deployment, and software integrations.

In plain words
What is it for?
Use it when writing SurrealQL, designing schemas, querying graph relationships, adding vector search, configuring permissions or deployment, or connecting SurrealDB to an application.
Why use it?
It helps an agent choose correct SurrealQL syntax and database designs instead of guessing from older or unrelated database patterns.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run scripts/doctor.py.

Good fit Use it when writing SurrealQL, designing schemas, querying graph relationships, adding vector search, configuring permissions or deployment, or connecting SurrealDB to an application.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/24601/surreal-skills
agentmods
npx agentmods add skills/24601/surreal-skills/surrealdb

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for surrealdb

README.md
[![agentmods](https://agentmods.dev/badge/skills/24601/surreal-skills/surrealdb/github.svg)](https://agentmods.dev/skills/24601/surreal-skills/surrealdb)
Your own site
<a href="https://agentmods.dev/skills/24601/surreal-skills/surrealdb"><img src="https://agentmods.dev/badge/skills/24601/surreal-skills/surrealdb/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for surrealdb

Your own site · 80×15
<a href="https://agentmods.dev/skills/24601/surreal-skills/surrealdb"><img src="https://agentmods.dev/badge/skills/24601/surreal-skills/surrealdb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,394 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00108 $0.01394
Opus 5 $0.00054 $0.00697
Sonnet 5 $0.00022 $0.00279
Haiku 4.5 $0.00011 $0.00139

Measured 11d ago against content hash 454e9309a1a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

surrealdb scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/surrealdb/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 File When to Load Domain
surrealql.md Writing or debugging SurrealQL queries Full SurrealQL language reference
data-modeling.md Designing schemas, choosing field types, record IDs Multi-model schema design patterns
graph-queries.md RELATE, graph traversal, path expressions Graph edge and traversal patterns
vector-search.md HNSW indexes, similarity search, embeddings Vector search and RAG pipelines
security.md Permissions, auth, JWT, access control Row-level security and auth flows
deployment.md Installing, configuring, running SurrealDB Storage engines, Docker, Kubernetes
performance.md Slow queries, index strategy, EXPLAIN Performance tuning and optimization
sdks.md Using SurrealDB from application code JS, Python, Go, Rust, Java, Kotlin, .NET, C, PHP, Swift, Ruby patterns
surrealism.md Writing WASM extensions Rust to WASM extension development
surrealml.md Working near SurrealML Preview .surml boundary and native dependency warning
surrealmcp.md Connecting AI hosts MCP tool catalog and deployment
editor-tooling.md Editor / IDE support LSP, tree-sitter, CodeMirror, editor extensions
langchain.md LangChain RAG Python vector store API
ecosystem-integrations.md n8n / framework pointers n8n, AI framework docs, Spectron boundary, Agent Skills
surrealist.md Using the Surrealist IDE/GUI IDE features and schema designer
surreal-sync.md Migrating from other databases CDC sync from Postgres, Mongo, etc.
surrealfs.md AI agent filesystem operations Virtual FS backed by SurrealDB
surrealkit.md Schema sync, rollouts, seeds, and declarative tests Desired-state schema management for SurrealDB apps

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 107 lines · 108 tokens per session scan A 454e9309a1a4

Subscribe to this mod's changes

surrealdb is a skill published in the GitHub repository 24601/surreal-skills (34 stars, last pushed 2mo ago), licensed MIT. It adds 108 tokens to every session and 1,394 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.