/surrealdb:surrealql-functionsfrom surrealdb
Discovers and uses SurrealDB's built-in SurrealQL functions with version-current signatures via the SurrealQL language server (LSP) and tree-sitter grammar. Provides completions, hover info, and signature help for .surql files.
Ships in surrealdb. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
SurrealDB ships hundreds of built-in functions grouped into namespaces
(string::, array::, math::, type::, …). Function names and signatures
change between releases, so the authoritative, version-current source is the
SurrealQL tooling rather than memory:
For mapping any function to authoritative documentation, see references/catalog.md.
.surql filesInstall the language server from crates.io — the published crate bundles the grammar, so no separate tree-sitter checkout is needed:
cargo install surrealql-language-server
# -> installs the `surrealql-language-server` binary on your PATH (~/.cargo/bin)
Verify it is on your PATH:
surrealql-language-server --help
Only needed for development or to track unreleased changes. The source build requires the tree-sitter grammar checked out as a sibling directory:
git clone https://github.com/surrealdb/surrealql-language-server.git
cd surrealql-language-server
bash scripts/setup-grammar.sh # clones/updates the grammar
# ...or: export TREE_SITTER_SURREALQL_DIR=/abs/path/to/surrealql-tree-sitter
cargo build --release # -> target/release/surrealql-language-server
For browser/editor embedding, build the wasm-bindgen npm package instead with
bash scripts/build-wasm.sh (outputs to pkg/).
Point your editor's LSP client at the surrealql-language-server binary for the
.surql / surrealql language. Generic stdio LSP configuration:
surrealql-language-server (or the absolute path from a source build)*.surqlThe server then provides, against the installed grammar version:
record<table> types, and keywords.surql buffer connected to the LSP.string::) and trigger completion to enumerate
that namespace's built-in functions for the installed version.Because completions and signatures come from the installed grammar, they reflect the current SurrealDB version — preventing stale or renamed functions from older releases. To read full documentation and examples for any namespace, follow the links in references/catalog.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/surrealdb-agent-memory-docsLook up official SurrealDB Agent Memory (formerly Spectron) documentation from surrealdb.com as markdown: quickstarts, mental model, ingest, sessions, recall, reasoning, SDKs, framework integrations, MCP server, REST API, CLI, and configuration. Use when building with or answering questions about SurrealDB Agent Memory. Read-only; sends only search terms and doc paths./surrealdb-cliUse the `surreal` command-line binary to run a SurrealDB server (in-memory, RocksDB, SurrealKV, or TiKV), open an interactive or piped SQL REPL, import and export databases, check server readiness, install, switch and pin multiple database versions (`surreal +4.0.1 db …`), repair storage, and manage SurrealML models. Use this skill whenever users run, connect to, back up, restore, or operate SurrealDB from the terminal. Triggers: surreal db start, surreal db sql, surreal db import, surreal db export, surreal install, surreal cloud, surreal memory, surreal use, surreal list, surreal upgrade, surreal +VERSION, surreal fix, surreal ml, SurrealDB CLI, surreal server./surrealdb-docsLook up official SurrealDB documentation (SurrealQL, SDKs, CLI, deployment) from surrealdb.com as markdown. Read-only; sends only search terms and doc paths.npx claudepluginhub surrealdb/agent-skills --plugin surrealdbOther plugins' skills for the same job