Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add lossless-group/lossless-agent-skills --skill surrealdb-canonical-layergit clone --depth 1 https://github.com/lossless-group/lossless-agent-skillsWrote 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.
[](https://agentmods.dev/skills/lossless-group/lossless-agent-skills/surrealdb-canonical-layer)<a href="https://agentmods.dev/skills/lossless-group/lossless-agent-skills/surrealdb-canonical-layer"><img src="https://agentmods.dev/badge/skills/lossless-group/lossless-agent-skills/surrealdb-canonical-layer/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.
<a href="https://agentmods.dev/skills/lossless-group/lossless-agent-skills/surrealdb-canonical-layer"><img src="https://agentmods.dev/badge/skills/lossless-group/lossless-agent-skills/surrealdb-canonical-layer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00249 | $0.03570 |
| Opus 5.5 | $0.00100 | $0.01428 |
| Sonnet 5.5 | $0.00050 | $0.00714 |
| Haiku 4.5 | $0.00025 | $0.00357 |
Grade A, and why
surrealdb-canonical-layer 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 260 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SurrealDB Canonical-Layer Verification
A SurrealDB-backed canonical layer (persons/organizations/affiliations plus a
schemaless observations log, all multi-tenant via client_access) is
first live in augment-it, and the pattern — canonical entities + an
append-only observation log + client-scoped visibility — is the kind of
shape other Lossless projects (dididecks-ai, memopop-ai) are likely to
reach for too. This skill is the discipline for querying that layer
directly to verify a batch of writes landed correctly, replacing the
previous habit of writing a fresh disposable Node script
(connect → signin → use → query, deleted after) for every check.
Companion piece: search-lossless-corpus does the same job for the Chroma
corpus (MCP for raw access, a skill for the discipline on top). This skill
copies that shape for SurrealDB.
Prerequisite — the surrealdb MCP server
Each project that wants this skill needs its own project-scoped .mcp.json
entry pointing at surrealmcp, the
official SurrealDB MCP server. It's a Rust binary with exactly two
distribution paths — build from source (cargo install --path .) or the
surrealdb/surrealmcp:latest Docker image. There's no npm/PyPI package, so
it can't be invoked the one-line uvx/npx way the chroma MCP server is.
augment-it's wiring (the reference implementation — copy this shape into a new project rather than re-deriving it):
augment-it/scripts/mcp-surrealdb.sh— a wrapper script that sources.envrelative to its own location ($(dirname "${BASH_SOURCE[0]}")), not$PWDand not the launching shell's exported environment, then execsdocker run --rm -i --pull always -e SURREALDB_URL=... surrealdb/surrealmcp:latest start. This matters because Claude Code's${VAR}expansion in.mcp.jsononly reads variables already exported in the shell that launchedclaude— it does not read.envfiles — and this repo's habit is sourcing.envper-command (set -a; source ./.env; set +a), not exporting at shell startup. The wrapper script sidesteps that dependency entirely.augment-it/.mcp.json:{ "mcpServers": { "surrealdb": { "command": "${CLAUDE_PROJECT_DIR:-.}/scripts/mcp-surrealdb.sh" } } }${CLAUDE_PROJECT_DIR:-.}(not a hardcoded absolute path) keeps this portable across machines — Claude Code sets that variable to the project root when spawning the server.- Env vars the wrapper maps from this project's existing
SURREAL_*names (.env) to surrealmcp's expectedSURREALDB_*names:SURREAL_URL→SURREALDB_URL,SURREAL_NS→SURREALDB_NS,SURREAL_DB→SURREALDB_DB,SURREAL_USER→SURREALDB_USER,SURREAL_PASS→SURREALDB_PASS. - After adding or editing
.mcp.json, the tools don't appear in an already-running Claude Code session — reconnect (/mcp) or start a new session.claude mcp listfrom a shell confirms connectivity independently of whether the current chat session has picked up the new tools yet.
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.
- 3mo ago First seen · 260 lines · 249 tokens per session scan A 94d6c2990f3f
surrealdb-canonical-layer is a skill published in the GitHub repository lossless-group/lossless-agent-skills (4 stars, last pushed 2d ago), licensed MIT. It adds 249 tokens to every session and 3,570 once invoked, about $0.0010 per session on Opus 5.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-31.
surrealdb-canonical-layer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| surrealdb-canonical-layerlossless-group/lossless-agent-skills | Skill | 4 | 2d ago | MIT | A | 249 | Claude Code |
| ddia-systemswondelai/skills | Skill | 2.8k | today | MIT | A | 138 | Claude Code |
| acme-arch-reviewbmad-code-org/BMAD-METHOD | Skill | 56k | yesterday | none | A | 39 | Claude Code, Codex |
| migration-patternssoftspark/ai-toolkit | Skill | 180 | 13d ago | Apache-2.0 | A | 41 | Claude Code |
| airtablediillson/chatcli | Skill | 94 | yesterday | Apache-2.0 | A | 57 | Claude Code |
| bitrix-performancebxmaximum/bitrix-framework-skills | Skill | 75 | 13d ago | MIT | A | 51 | Claude Code, Codex |
| bitrix-postgresqlbxmaximum/bitrix-framework-skills | Skill | 75 | 13d ago | MIT | A | 51 | Claude Code, Codex |