Neo4j Genai Plugin Skill
neo4j-contrib/neo4j-skills
Use Neo4j GenAI Plugin ai.text. An agent skill from neo4j-contrib/neo4j-skills.
A comprehensive knowledge graph memory system with semantic search, episodic memory, working memory, automatic context injection, and per-agent isolation.
$ npx skills add LeoYeAI/openclaw-master-skills --skill surrealdb-memory -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills surrealdb-memory --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/surrealdb-knowledge-graph-memory .claude/skills/surrealdb-memory && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "surrealdb-memory" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/surrealdb-knowledge-graph-memory into .claude/skills/surrealdb-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "surrealdb-memory", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/surrealdb-knowledge-graph-memoryType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LeoYeAI/openclaw-master-skills --skill surrealdb-memory -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills surrealdb-memory --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/surrealdb-knowledge-graph-memory .agents/skills/surrealdb-memory && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "surrealdb-memory" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/surrealdb-knowledge-graph-memory into .agents/skills/surrealdb-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "surrealdb-memory", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill surrealdb-memory -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills surrealdb-memory --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/surrealdb-knowledge-graph-memory .cursor/skills/surrealdb-memory && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "surrealdb-memory" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/surrealdb-knowledge-graph-memory into .cursor/skills/surrealdb-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "surrealdb-memory", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LeoYeAI/openclaw-master-skills.git --path skills/surrealdb-knowledge-graph-memory--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LeoYeAI/openclaw-master-skills --skill surrealdb-memory -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills surrealdb-memory --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/surrealdb-knowledge-graph-memory .gemini/skills/surrealdb-memory && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "surrealdb-memory" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/surrealdb-knowledge-graph-memory into .gemini/skills/surrealdb-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "surrealdb-memory", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LeoYeAI/openclaw-master-skills surrealdb-memoryInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LeoYeAI/openclaw-master-skills --skill surrealdb-memory -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/surrealdb-knowledge-graph-memory .github/skills/surrealdb-memory && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "surrealdb-memory" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/surrealdb-knowledge-graph-memory into .github/skills/surrealdb-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "surrealdb-memory", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill surrealdb-memory -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills surrealdb-memory --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/surrealdb-knowledge-graph-memory .opencode/skills/surrealdb-memory && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "surrealdb-memory" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/surrealdb-knowledge-graph-memory into .opencode/skills/surrealdb-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "surrealdb-memory", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
surrealdb-memoryA comprehensive knowledge graph memory system with semantic search, episodic memory, working memory, automatic context injection, and per-agent isolation.
Surrealdb Memory is an agent skill from LeoYeAI/openclaw-master-skills. A comprehensive knowledge graph memory system with semantic search, episodic memory, working memory, automatic context injection, and per-agent isolation.
Its SKILL.md is about 5.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 38 other files, including scripts and reference files (for example `CHANGELOG.md`, `INSTRUCTIONS.md` and `README.md`).
It sits in Knowledge Management, covering Knowledge graphs and Embeddings. It works with SurrealDB and OpenAI. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (TypeScript and Python, from the files we listed), which the agent can run.
Shell commands in SKILL.md call:
python3pythonpipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
OPENAI_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Surrealdb Memory loads about 5.6k tokens when it runs, and up to ~9.1k if it reads all its reference files. Until then it costs about 43 tokens; SKILL.md has 1,821 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 1,821 words, ~5,553 tokens.
.claude/skills/surrealdb-memory/SKILL.md (or your agent's skills folder). This skill also uses 33 other files; get the full folder from GitHub.A comprehensive knowledge graph memory system with semantic search, episodic memory, working memory, automatic context injection, and per-agent isolation — enabling every agent to become a continuously self-improving AI.
Use this skill for:
Triggers: "remember this", "store fact", "what do you know about", "memory search", "find similar tasks", "learn from history"
Security: This skill reads workspace memory files and sends their content to OpenAI for extraction. It registers two background cron jobs and (optionally) patches OpenClaw source files. All behaviors are opt-in or documented. See SECURITY.md for the full breakdown before enabling.
Required:
OPENAI_API_KEY,surrealbinary,python3≥3.10
This is the core concept: every agent equipped with this skill improves itself automatically, with no manual intervention required. Two scheduled cron jobs — knowledge extraction and relationship correlation — run on a fixed schedule and continuously grow the knowledge graph. Combined with auto-injection, the agent gets progressively smarter with each conversation.
[Agent Conversation]
↓ stores important facts via knowledge_store_sync
[Memory Files] ← agent writes to MEMORY.md / daily memory/*.md files
↓ every 6 hours — extraction cron fires
[Entity + Fact Extraction] ← LLM reads files, extracts structured facts + entities
↓ facts stored with embeddings + agent_id tag
[Knowledge Graph] ← SurrealDB: facts, entities, mentions
↓ daily at 3 AM — relation discovery cron fires
[Relationship Correlation] ← AI finds semantic links between facts
↓ relates_to edges created between connected facts
[Richer Knowledge Graph] ← facts are no longer isolated; they form a web
↓ on every new message — auto-injection reads the graph
[Context Window] ← relevant facts + relations + episodes injected automatically
↓
[Better Responses] ← agent uses accumulated knowledge to respond more accurately
↑ new insights written back to memory files → cycle repeatsScript: scripts/extract-knowledge.py extract
MEMORY.md and all memory/YYYY-MM-DD.md files in the workspacetext-embedding-3-small) for semantic searchconfidence score (defaults to 0.9)agent_id tag so facts stay isolated to the right agentsource metadata pointing back to the originating fileScript: scripts/extract-knowledge.py discover-relations
relates_to edges in SurrealDB linking related factsScript: scripts/extract-knowledge.py dedupe --threshold 0.92
Script: scripts/extract-knowledge.py reconcile --verbose
When auto-injection is enabled, every new conversation starts with the most relevant slice of the accumulated knowledge graph. As the agent:
...the agent effectively gets smarter with every cycle. It learns from its own outputs, grounds future responses in its accumulated history, and avoids repeating mistakes (via episodic memory and outcome calibration).
The skill requires 5 cron jobs for full self-improving operation. All run as isolated background sessions with no delivery:
| Job Name | Schedule | What it runs |
|---|---|---|
| Memory Knowledge Extraction | Every 6 hours (0 */6 * * *) | extract-knowledge.py extract — extracts facts from memory files |
| Memory Relation Discovery | Daily at 3 AM (0 3 * * *) | extract-knowledge.py discover-relations — AI-powered relationship finding |
| Memory Deduplication | Daily at 4 AM (0 4 * * *) | extract-knowledge.py dedupe --threshold 0.92 — removes duplicate/near-duplicate facts |
| Memory Reconciliation | Weekly Sun 5 AM (0 5 * * 0) | extract-knowledge.py reconcile --verbose — prunes stale facts, applies confidence decay, cleans orphans |
All jobs use
sessionTarget: "isolated"withdelivery: none. They run in fully isolated background sessions and never fire into the main agent session. A bottom-right corner toast notification appears in the Control UI when each job starts and completes.
Setup commands (run after installation):
# 1. Knowledge Extraction — every 6 hours
openclaw cron add \
--name "Memory Knowledge Extraction" \
--cron "0 */6 * * *" \
--agent main --session isolated --no-deliver \
--timeout-seconds 300 \
--message "Run memory knowledge extraction. Execute: cd SKILL_DIR && source .venv/bin/activate && python3 scripts/extract-knowledge.py extract"
# 2. Relation Discovery — daily at 3 AM
openclaw cron add \
--name "Memory Relation Discovery" \
--cron "0 3 * * *" --exact \
--agent main --session isolated --no-deliver \
--timeout-seconds 300 \
--message "Run memory relation discovery. Execute: cd SKILL_DIR && source .venv/bin/activate && python3 scripts/extract-knowledge.py discover-relations"
# 3. Deduplication — daily at 4 AM
openclaw cron add \
--name "Memory Deduplication" \
--cron "0 4 * * *" --exact \
--agent main --session isolated --no-deliver \
--timeout-seconds 120 \
--message "Run knowledge graph deduplication. Execute: cd SKILL_DIR && source .venv/bin/activate && python3 scripts/extract-knowledge.py dedupe --threshold 0.92"
# 4. Reconciliation — weekly on Sundays at 5 AM
openclaw cron add \
--name "Memory Reconciliation" \
--cron "0 5 * * 0" --exact \
--agent main --session isolated --no-deliver \
--timeout-seconds 180 \
--message "Run knowledge graph reconciliation. Execute: cd SKILL_DIR && source .venv/bin/activate && python3 scripts/extract-knowledge.py reconcile --verbose"Replace
SKILL_DIRwith your actual skill path.
To check job status:
openclaw cron listWhen spawning a new agent that should self-improve, register its own extraction job:
# OpenClaw cron add (via Koda) — example for a 'scout-monitor' agent
# Schedule: every 6h, extract facts tagged to scout-monitor
python3 scripts/extract-knowledge.py extract --agent-id scout-monitorThe --agent-id flag ensures extracted facts are isolated to that agent's pool and don't pollute the main agent's knowledge. Each agent self-improves independently while still reading shared scope='global' facts.
| Feature | Description |
|---|---|
| Semantic Facts | Vector-indexed facts with confidence scoring |
| Episodic Memory | Task histories with decisions, problems, solutions, learnings |
| Working Memory | YAML-based task state that survives crashes |
| Outcome Calibration | Facts used in successful tasks gain confidence |
| Auto-Injection | Relevant facts/episodes injected into prompts automatically |
| Entity Extraction | Automatic entity linking and relationship discovery |
| Confidence Decay | Stale facts naturally decay over time |
| Agent Isolation | Each agent has its own scoped memory pool; scope='global' facts are shared across all agents |
| Self-Improving Loop | Scheduled extraction + relation discovery automatically grow the graph |
Each agent in OpenClaw has its own scoped memory pool. Facts are tagged with agent_id on write; all read queries filter to (agent_id = $agent_id OR scope = 'global').
Agent A (main) Agent B (scout-monitor)
┌──────────┐ ┌──────────┐
│ 391 facts│ │ 0 facts│ ← isolated pools
└──────────┘ └──────────┘
↑ ↑
└──── scope='global' ─────┘ ← shared facts visible to bothAll knowledge_store / knowledge_store_sync calls accept agent_id:
# Stored to scout-monitor's pool only
mcporter call surrealdb-memory.knowledge_store \
content="API is healthy at /ping" \
agent_id='scout-monitor'
# Stored globally (visible to all agents)
mcporter call surrealdb-memory.knowledge_store \
content="Project uses Python 3.12" \
agent_id='main' scope='global'With references/enhanced-loop-hook-agent-isolation.md applied to src/agents/enhanced-loop-hook.ts, the enhanced loop automatically extracts the agent ID from the session key and passes it to memory_inject. No manual configuration needed — each agent's auto-injection is silently scoped to its own facts.
Pass --agent-id to extract-knowledge.py so cron-extracted facts are correctly tagged:
python3 scripts/extract-knowledge.py extract --agent-id scout-monitorDefault is "main". Update cron jobs accordingly for non-main agents.
Existing facts without an explicit agent_id are treated as owned by "main". Nothing is lost on upgrade to v2.2.
The Memory tab in the Control dashboard provides a two-column layout:
📥 Knowledge Extraction
🔧 Maintenance
💡 Tips — Quick reference for operations
When the system needs setup, an Installation section appears with manual controls.
SurrealDB installed and running:
# Install (one-time)
./scripts/install.sh
# Start server
surreal start --bind 127.0.0.1:8000 --user root --pass root file:~/.openclaw/memory/knowledge.dbPython dependencies (use the skill's venv):
cd /path/to/surrealdb-memory
python3 -m venv .venv
source .venv/bin/activate
pip install surrealdb openai pyyamlOpenAI API key for embeddings (set in OpenClaw config or environment)
mcporter configured with this skill's MCP server
Add to your config/mcporter.json:
{
"servers": {
"surrealdb-memory": {
"command": ["python3", "/path/to/surrealdb-memory/scripts/mcp-server-v2.py"],
"env": {
"OPENAI_API_KEY": "${OPENAI_API_KEY}",
"SURREAL_URL": "http://localhost:8000",
"SURREAL_USER": "root",
"SURREAL_PASS": "root"
}
}
}
}| Tool | Description |
|---|---|
knowledge_search | Semantic search for facts |
knowledge_recall | Get a fact with full context (relations, entities) |
knowledge_store | Store a new fact |
knowledge_stats | Get database statistics |
| Tool | Description |
|---|---|
knowledge_store_sync | Store with importance routing (high importance = immediate write) |
episode_search | Find similar past tasks |
episode_learnings | Get actionable learnings from history |
episode_store | Record a completed task episode |
working_memory_status | Get current task state |
context_aware_search | Search with task context boosting |
memory_inject | Intelligent context injection for prompts |
The memory_inject tool returns formatted context ready for prompt injection:
# Scoped to a specific agent (returns only that agent's facts + global facts)
mcporter call surrealdb-memory.memory_inject \
query="user message" \
max_facts:7 \
max_episodes:3 \
confidence_threshold:0.9 \
include_relations:true \
agent_id='scout-monitor'Output:
## Semantic Memory (Relevant Facts)
📌 [60% relevant, 100% confidence] Relevant fact here...
## Related Entities
• Entity Name (type)
## Episodic Memory (Past Experiences)
✅ Task: Previous task goal [similarity]
→ Key learning from that taskWhen enabled, memory is automatically injected into every agent turn:
Enable in Mode UI:
How it works:
memory_inject is called automaticallyreferences/enhanced-loop-hook-agent-isolation.md applied, the active agent's ID is automatically extracted from the session key and passed as agent_id — each agent's injection is silently scoped to its own factsConfiguration (in Mode settings):
| Setting | Default | Description |
|---|---|---|
| Auto-Inject Context | Off | Master toggle |
| Max Facts | 7 | Maximum semantic facts to inject |
| Max Episodes | 3 | Maximum episodic memories |
| Confidence Threshold | 90% | Include episodes when below this |
| Include Relations | On | Include entity relationships |
# Activate venv
source .venv/bin/activate
# Store a fact
python scripts/memory-cli.py store "Important fact" --confidence 0.9
# Search
python scripts/memory-cli.py search "query"
# Get stats
python scripts/knowledge-tool.py stats
# Run maintenance
python scripts/memory-cli.py maintain
# Extract from files (incremental)
python scripts/extract-knowledge.py extract
# Extract for a specific agent
python scripts/extract-knowledge.py extract --agent-id scout-monitor
# Force full extraction (all files, not just changed)
python scripts/extract-knowledge.py extract --full
# Discover semantic relationships
python scripts/extract-knowledge.py discover-relationsfact — Semantic facts with embeddings and confidenceentity — Extracted entities (people, places, concepts)relates_to — Relationships between factsmentions — Fact-to-entity linksepisode — Task histories with outcomesworking_memory — Active task snapshotscontent — The fact textembedding — Vector for semantic searchconfidence — Base confidence (0-1)success_count / failure_count — Outcome trackingscope — global, client, or agentagent_id — Which agent owns this fact (v2.2)goal — What was attemptedoutcome — success, failure, abandoneddecisions — Key decisions madeproblems — Problems encountered (structured)solutions — Solutions applied (structured)key_learnings — Extracted lessonsEffective confidence is calculated from:
The self-improving loop runs via 4 registered OpenClaw cron jobs:
Every 6h → extract-knowledge.py extract (extract facts from memory files)
Daily 3 AM → extract-knowledge.py discover-relations (find relationships between facts)
Daily 4 AM → extract-knowledge.py dedupe (remove duplicate facts)
Weekly Sun → extract-knowledge.py reconcile (prune stale, decay, clean orphans)See the "OpenClaw Cron Jobs (Required)" section above for setup commands.
To verify they're active:
openclaw cron listTo manually trigger any job:
cd SKILL_DIR && source .venv/bin/activate
python3 scripts/extract-knowledge.py extract
python3 scripts/extract-knowledge.py discover-relations
python3 scripts/extract-knowledge.py dedupe --threshold 0.92
python3 scripts/extract-knowledge.py reconcile --verboseUse the Maintenance section in the Memory tab:
| File | Purpose |
|---|---|
mcp-server-v2.py | MCP server with all 11 tools |
mcp-server.py | Legacy v1 MCP server |
episodes.py | Episodic memory module |
working_memory.py | Working memory module |
memory-cli.py | CLI for manual operations |
extract-knowledge.py | Bulk extraction from files (supports --agent-id) |
knowledge-tools.py | Higher-level extraction |
schema-v2.sql | v2 database schema |
migrate-v2.py | Migration script |
| File | Purpose |
|---|---|
openclaw-integration/gateway/memory.ts | Gateway server methods |
openclaw-integration/ui/memory-view.ts | Memory dashboard UI |
openclaw-integration/ui/memory-controller.ts | UI controller |
"Connection refused"
→ Start SurrealDB: surreal start --bind 127.0.0.1:8000 --user root --pass root file:~/.openclaw/memory/knowledge.db
"No MCP servers configured"
→ Ensure mcporter is run from a directory containing config/mcporter.json with the surrealdb-memory server defined
Memory injection returning null
→ Check that OPENAI_API_KEY is set in the environment
→ Verify SurrealDB is running and schema is initialized
Empty search results
→ Run extraction from the UI or via CLI: python3 scripts/extract-knowledge.py extract
"No facts to analyze" on relation discovery → This is normal if all facts are already related — the graph is well-connected. Run extraction first if the graph is empty.
Progress bar not updating → Ensure the gateway has been restarted after UI updates → Check browser console for polling errors
Facts from wrong agent appearing
→ Check that agent_id is being passed correctly to all store/search calls
→ Verify references/enhanced-loop-hook-agent-isolation.md is applied for auto-injection scoping
# Apply v2 schema (additive, won't delete existing data)
./scripts/migrate-v2.sh
# Or manually:
source .venv/bin/activate
python scripts/migrate-v2.pyAll existing facts without an agent_id are treated as owned by "main" — backward compatible.
Check your knowledge graph via UI (Dashboard section) or CLI:
mcporter call surrealdb-memory.knowledge_statsExample output:
{
"facts": 379,
"entities": 485,
"relations": 106,
"episodes": 3,
"avg_confidence": 0.99
}v2.2 — Agent isolation, self-improving loop, cron-based extraction & relationship correlation
© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 33 other files (scripts, references) in skills/surrealdb-knowledge-graph-memory of LeoYeAI/openclaw-master-skills.
Open the folder on GitHubat commit e5199b5
Surrealdb Memory next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Surrealdb Memory this skillLeoYeAI/openclaw-master-skills | 2.2k | — | ~5.6k | Automated safety check: Pass | MIT | |
| Neo4j Genai Plugin Skillneo4j-contrib/neo4j-skills | 114 | — | ~3k | Automated safety check: Notes | MIT | |
| Project Orchestratorthis-rs/project-orchestrator | 140 | — | ~2.6k | Automated safety check: Pass | Custom licence | |
| Cortexdbliliang-cn/cortexdb | 274 | — | ~18k | Automated safety check: Warn | MIT | |
| Open Second Brain Embeddings Setupitechmeat/open-second-brain | 467 | — | ~2.6k | Automated safety check: Warn | MIT | |
| Hyperspacedb GraphYARlabs/hyperspace-db | 162 | — | ~1.4k | Automated safety check: Pass | MIT |
neo4j-contrib/neo4j-skills
Use Neo4j GenAI Plugin ai.text. An agent skill from neo4j-contrib/neo4j-skills.
this-rs/project-orchestrator
AI agent orchestrator with Neo4j knowledge graph, Meilisearch search, and Tree-sitter parsing.
liliang-cn/cortexdb
Use CortexDB for local-first AI memory, vector search, RAG, knowledge graphs, SPARQL/RDFS/SHACL, corpus-to-graph workflows, external structured-data import (CSV / SQL dumps), and MCP/tool calling.
itechmeat/open-second-brain
Walks through turning on semantic search in Open Second Brain: embedding key, sqlite-vec extension, first reindex and an optional periodic refresh, starting from o2b search check.
YARlabs/hyperspace-db
Graph traversal, Lorentz hierarchy, and concept relationship operations for HyperspaceDB.
liliang-cn/cortexdb
Use CortexDB for local-first AI memory, vector search, RAG, knowledge graphs, SPARQL/RDFS/SHACL, corpus-to-graph workflows, and MCP/tool calling.
LeoYeAI/openclaw-master-skills
Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.
LeoYeAI/openclaw-master-skills
Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.
LeoYeAI/openclaw-master-skills
Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.
LeoYeAI/openclaw-master-skills
Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.
LeoYeAI/openclaw-master-skills
Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.
LeoYeAI/openclaw-master-skills
Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.
Categories
A comprehensive knowledge graph memory system with semantic search, episodic memory, working memory, automatic context injection, and per-agent isolation. Surrealdb Memory is an agent skill from LeoYeAI/openclaw-master-skills. A comprehensive knowledge graph memory system with semantic search, episodic memory, working memory, automatic context injection, and per-agent isolation.
Surrealdb Memory fits situations like: tasks that involve Knowledge graphs; tasks that involve Embeddings.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill surrealdb-memory -a claude-code`. Or copy the skill folder (skills/surrealdb-knowledge-graph-memory in LeoYeAI/openclaw-master-skills) into .claude/skills/surrealdb-memory in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill surrealdb-memory -a codex`. Or copy the skill folder (skills/surrealdb-knowledge-graph-memory in LeoYeAI/openclaw-master-skills) into .agents/skills/surrealdb-memory in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill surrealdb-memory -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/surrealdb-memory, .gemini/skills/surrealdb-memory, .github/skills/surrealdb-memory and .opencode/skills/surrealdb-memory in your project.
Going by SKILL.md and its folder, Surrealdb Memory needs TypeScript and Python for the scripts in its folder, the command-line tools its instructions call (python3, python and pip) and credentials named OPENAI_API_KEY. Our summary lists: Python 3; Node.js; A credential in OPENAI_API_KEY.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Surrealdb Memory is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 5.6k tokens (SKILL.md is roughly 22k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.6k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Surrealdb Memory: Neo4j Genai Plugin Skill (neo4j-contrib/neo4j-skills, 114 stars), Project Orchestrator (this-rs/project-orchestrator, 140 stars), Cortexdb (liliang-cn/cortexdb, 274 stars) and Open Second Brain Embeddings Setup (itechmeat/open-second-brain, 467 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,161 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.
Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.