Install
openclaw skills install @ys-c-23/workspace-local-retrievalBuild boundary-first local retrieval for OpenClaw with explicit corpora, deny-by-default agent access, separate memory layers, and a validated minimal demo p...
openclaw skills install @ys-c-23/workspace-local-retrievalPackage retrieval as architecture, not ad-hoc glue.
This skill exists for a common failure mode in local RAG systems: indexing grows faster than boundary discipline. The result is usually a system that can sometimes retrieve relevant text, but cannot clearly answer:
Prefer this skill when the goal is workspace knowledge retrieval, not personal memory recall. Keep those layers separate.
This skill also ships as an npm-friendly CLI. Install it with one line (npm install -g workspace-local-retrieval) or run it on-demand via npx workspace-local-retrieval install. The CLI wraps the existing Python helpers (scripts/check_retrieval_prereqs.py + scripts/bootstrap_workspace_retrieval.py), so the install command performs a safety check, writes the retrieval/config templates, and hints at the next refresh/index steps. Run workspace-local-retrieval check anytime for a standalone prerequisite report.
Run a preflight gate before any retrieval work
scripts/check_retrieval_prereqs.py before bootstrap, indexing, embedding refresh, or search.references/dependencies-and-platforms.md when deciding what is required on the current OS.Decide the boundary model first
MEMORY.md, memory/*.md).Design corpora before indexing
references/privacy-and-boundaries.md before writing config.Define agent access explicitly
references/agent-scoping.md when creating agent rules.Bootstrap templates safely
scripts/bootstrap_workspace_retrieval.py --dest <dir> to generate sanitized starter templates.references/runtime-layout.md and references/dependencies-and-platforms.md before claiming the setup is runnable.scripts/check_retrieval_prereqs.py before wiring indexing or embedding backends.Implement retrieval entrypoints
references/interface-contract.md for a recommended contract.Add freshness + maintenance
references/maintenance-patterns.md for a production-friendly approach.Validate with smoke tests
Handle missing prerequisites explicitly
scripts/check_retrieval_prereqs.pyUse this skill as a pattern, not a rigid requirement.
retrieval/
config/
corpora.json
agent_corpora.json
agent_memory.json
backend.json
scripts/
workspace_search.mjs
build_index.py
build_embeddings.mjs
retrieval_status.py
refresh_incremental.py
indexes/
workspace_retrieval.sqlite
If the workspace already has a retrieval system, adapt the layout instead of forcing a rewrite.
references/privacy-and-boundaries.md for safe corpus design and exclusions.references/agent-scoping.md when mapping corpora and memory roots to agents.references/interface-contract.md when building or reviewing the agent-facing search wrapper.references/maintenance-patterns.md when adding status checks, selective refresh, and smoke tests.references/example-templates.md when you need sanitized starter JSON examples.references/dependencies-and-platforms.md when the user wants concrete runtime dependencies, embedding backend choices, or cross-platform guidance.references/preflight-and-install-policy.md when deciding whether the skill is runnable now, blocked, or should first produce an installation task plan.references/runtime-layout.md when the user wants a more runnable implementation footprint.references/design-rationale.md when the user needs the architectural thesis, tradeoffs, or public-facing positioning.references/sanitized-demo.md when the user wants a safe walkthrough or publishable example.references/publish-readiness-checklist.md before packaging or publicly promoting the skill.workspace-local-retrieval install bootstraps the templates, workspace-local-retrieval check reports missing requirements, and both commands accept --dest, --workspace-root, and --force switches for customization.When using this skill for a user request, produce some or all of the following depending on scope: