Agent skill · data analytics · aiskillstore

surrealdb-python

Master SurrealDB 2.3.x with Python for multi-model database operations including CRUD, graph relationships, vector search, and real-time queries. Use when working with SurrealDB databases, implementing graph traversal, semantic search with embeddings, or building RAG applications.

Why this skill is useful

Provides specific commands and patterns for working with SurrealDB's multi-model capabilities that the AI wouldn't reliably generate on its own.

What it needs

Requires sentence-transformers, surrealdb installed locally. About 5k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

SurrealDB Python Overview SurrealDB is a multi-model database that combines document, graph, and vector search capabilities in a single system. This skill provides comprehensive guidance for working with SurrealDB 2.3.x using the Python SDK, covering standard database operations, graph relationships, vector similarity search, and real-time data subscriptions. When to Use This Skill Apply this skill when: Setting up SurrealDB connections and performing CRUD operations Implementing graph databases with the RELATE statement and traversal queries Building semantic search or RAG (Retrieval-Augmented Generation) applications with vector embeddings Creating real-time applications with live queries Designing multi-model schemas that combine documents, graphs, and vectors Core Capabilities 1. Connection and Authentication Establish connections to SurrealDB using the Python SDK with proper authentication: 2. CRUD Operations Perform standard database operations using intuitive Python methods: create() - Insert new records with specific or auto-generated IDs select() - Retrieve single records or entire tables update() - Replace entire record contents merge() - Partially update records by merging new fields patch() - Apply JSON Patch operations for precise modifications upsert() - Create if absent, update if present delete() - Remove records or entire tables query() - Execute raw SurrealQL for complex operations Example workflow: 3. Graph Database Operations Leverage SurrealDB's native graph capabilities to model and traverse relationships without JOINs: Creating Relationships: Traversing Graphs: Key Graph Features: RELATE statement for creating edges between nodes Arrow syntax (->, <->) for intuitive traversal Recursive patterns with @.{depth} notation Graph clauses for filtering during traversal Edge tables that store relationship metadata For comprehensive graph patterns, schema definitions, and best practices, see references/graphoperations.md. 4. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/surrealdb-python

View the source on GitHub

Browse the @skills marketplace