Package 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.
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.MEMORY.md, memory/*.md).references/privacy-and-boundaries.md before writing config.references/agent-scoping.md when creating agent rules.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.references/interface-contract.md for a recommended contract.references/maintenance-patterns.md for a production-friendly approach.If a required prerequisite is missing and the user has not authorized installation or environment changes:
If a required prerequisite is missing and the user does want the environment prepared:
scripts/check_retrieval_prereqs.pyUse this rule consistently for macOS, Linux, and Windows. Do not pretend portability removes the need for explicit checks.
Use this skill as a pattern, not a rigid requirement.
text
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: