memory-lancedb-pro — Claude Code skill: plugin maintenance guide
A reference skill for the memory-lancedb-pro long-term memory plugin: how its retrieval pipeline, scopes and CLI fit together when you extend it.
npx skills add win4r/memory-lancedb-pro-skill --skill memory-lancedb-pro -a claude-codeWhat memory-lancedb-pro does
memory-lancedb-pro is a long-term memory plugin for OpenClaw that replaces the built-in memory-lancedb. Retrieval is hybrid: vector search plus BM25, RRF fusion, cross-encoder reranking, scope isolation, a noise filter and adaptive retrieval. The skill maps that system file by file so you can debug and extend it.
Each subsystem gets its own section. src/store.ts covers LanceDB storage and FTS indexing, src/embedder.ts handles embedding providers with an LRU cache, src/retriever.ts holds the full scoring pipeline, src/scopes.ts does access control, src/tools.ts defines the agent tools, and cli.ts wires up the management commands. Separate reference files go deeper into the retrieval pipeline, storage schema, plugin lifecycle and common gotchas. There are also step-by-step workflows: adding an embedding provider, a rerank provider, a scoring stage, an agent tool or a CLI command.
The plugin is TypeScript (ESM) running on Node.js through the OpenClaw Gateway, so this skill assumes you already work in that stack. The reranker in the pipeline has a 5s timeout guard — touch the request format or response parsing and you should test against real API calls. Session distillation lives in scripts/jsonl_distill.py and needs Python.
What it helps with
- understand the plugin architecture before changing it
- fix the retrieval pipeline: vector, BM25, RRF, reranking
- wire up a new embedding or rerank provider
- cut noise and duplicates out of memory results
- migrate data off the legacy
memory-lancedb
Example prompts for the agent
- Walk me through the retrieval pipeline in memory-lancedb-pro and where reranking kicks in
- Add a new embedding provider in
src/embedder.tsand check the vector dimensions - Why does memory return duplicates? Trace the scoring stages and the noise filter
How to install memory-lancedb-pro
1Skills CLI (Vercel)
npx skills add win4r/memory-lancedb-pro-skill --skill memory-lancedb-pro -a claude-code2Manually: put the files in place
~/.claude/skills/memory-lancedb-pro/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/memory-lancedb-pro/
1Skills CLI (Vercel)
npx skills add win4r/memory-lancedb-pro-skill --skill memory-lancedb-pro -a codex2Manually: put the files in place
.agents/skills/memory-lancedb-pro/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add win4r/memory-lancedb-pro-skill --skill memory-lancedb-pro -a cursor2Manually: put the files in place
.cursor/skills/memory-lancedb-pro/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install win4r/memory-lancedb-pro-skill memory-lancedb-pro2Manually: put the files in place
.github/skills/memory-lancedb-pro/SKILL.md1Skills CLI (Vercel)
npx skills add win4r/memory-lancedb-pro-skill --skill memory-lancedb-pro -a gemini-cli2Platform CLI
gemini skills install https://github.com/win4r/memory-lancedb-pro-skillManually: put the files in place
.devin/skills/memory-lancedb-pro/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add win4r/memory-lancedb-pro-skill --skill memory-lancedb-pro -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about memory-lancedb-pro
How do I install memory-lancedb-pro in Claude?
Run npx skills add win4r/memory-lancedb-pro-skill --skill memory-lancedb-pro -a claude-code. The skill lands at ~/.claude/skills/memory-lancedb-pro/SKILL.md.
What does the memory-lancedb-pro skill do?
It documents the memory-lancedb-pro plugin: architecture per file, the hybrid retrieval pipeline, agent tools and CLI commands. Use it when you are modifying the plugin or chasing memory quality issues.
What does the plugin need to run?
It is TypeScript (ESM) on Node.js via the OpenClaw Gateway. The session distillation script scripts/jsonl_distill.py requires Python.