Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

workspace-local-retrieval工作区本地检索

Agent Skill

用于搭建或维护带检索增强的 RAG 工作流,适合让 Agent 处理知识库问答、向量检索、来源引用和事实核查。它可以辅助整理数据接入、Embedding、向量库、召回参数和回答生成流程。使用时需要确认数据来源、更新频率、召回阈值和引用展示方式,避免把未命中的资料或过期内容包装成确定事实。

总安装

3,834

周安装

163

GitHub Stars

公开资料未说明

下载量

1,343
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:workspace-local-retrieval(工作区本地检索)
来源仓库:https://github.com/ys-c-23/workspace-local-retrieval
安装命令:
openclaw skills install workspace-local-retrieval
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install workspace-local-retrieval

简介

工作区本地检索为 OpenClaw 构建边界优先的 RAG 系统。

  • 使用显式语料库和拒绝代理访问默认策略。
  • 支持向量检索和来源引用展示。
  • 需手动维护语料库更新频率。workspace-local-retrieval 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 避免将未命中结果包装为确定事实。

SKILL.md

name
workspace-local-retrieval
description
Build a local-first retrieval architecture for an OpenClaw workspace with explicit corpus boundaries, deny-by-default agent access, separate personal-memory vs workspace-knowledge layers, stable agent-facing search interfaces, and maintenance-aware refresh workflows. Use when a user wants to: (1) add local RAG without indexing everything, (2) separate personal memory from reusable workspace retrieval, (3) define agent-scoped access to different corpora, (4) package a retrieval system as a reusable skill rather than private glue code, (5) add explainable status / refresh workflows, or (6) turn a one-off local search setup into a safer multi-agent retrieval pattern.

Workspace Local Retrieval

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:

  • what should be searchable
  • which agent should see which corpus
  • what belongs in personal memory versus workspace knowledge
  • how freshness should be maintained over time

Prefer this skill when the goal is workspace knowledge retrieval, not personal memory recall. Keep those layers separate.

Single-command npm install

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.

Core workflow

  1. Run a preflight gate before any retrieval work

- Run scripts/check_retrieval_prereqs.py before bootstrap, indexing, embedding refresh, or search. - Classify findings into: - required: must exist before execution - recommended: may proceed with warning - optional: capability upgrade only - Treat missing required prerequisites as a hard stop. - Do not continue into retrieval execution when the environment is not ready. - Read references/dependencies-and-platforms.md when deciding what is required on the current OS.

  1. Decide the boundary model first

- Use built-in memory tools for personal continuity (MEMORY.md, memory/*.md). - Use this skill's retrieval pattern for workspace knowledge, docs, skills, plans, schemas, and agent-specific materials. - Do not merge personal notes into a general retrieval corpus unless the user explicitly wants that and understands the privacy tradeoff.

  1. Design corpora before indexing

- Split knowledge into small allowlisted corpora. - Prefer domain or workspace boundaries over one giant corpus. - Exclude runtime state, secrets, private notes, vector DB artifacts, build outputs, and caches. - Read references/privacy-and-boundaries.md before writing config.

  1. Define agent access explicitly

- Use deny-by-default agent retrieval policy. - Allow each agent to see only the corpora it needs. - Use separate memory-boundary rules for personal memory vs domain memory. - Read references/agent-scoping.md when creating agent rules.

  1. Bootstrap templates safely

- Run scripts/bootstrap_workspace_retrieval.py --dest <dir> to generate sanitized starter templates. - The script creates template config files only. It does not read external services, call the network, or ingest private data. - Read references/runtime-layout.md and references/dependencies-and-platforms.md before claiming the setup is runnable. - Run scripts/check_retrieval_prereqs.py before wiring indexing or embedding backends.

  1. Implement retrieval entrypoints

- Keep one stable wrapper for agent-facing search. - Make the wrapper responsible for corpus allowlist checks. - Keep indexing / embeddings / scoring internals behind the wrapper. - Read references/interface-contract.md for a recommended contract.

  1. Add freshness + maintenance

- Track corpus fingerprints or file signatures. - Prefer selective refresh when only a small set of files changed. - Fall back to full rebuild only when needed. - Read references/maintenance-patterns.md for a production-friendly approach.

  1. Validate with smoke tests

- Test at least: - one broad query - one corpus-specific query - one agent allowlist denial - one changed-file refresh path - Do not claim retrieval is ready because indexing succeeded once.

  1. Handle missing prerequisites explicitly

- If a required prerequisite is missing and the user has not authorized installation or environment changes: - stop - say the skill is currently unavailable - list the missing prerequisites - tell the user what must be installed or configured first - If a required prerequisite is missing and the user does want the environment prepared: - create a task plan first - make the plan OS-specific when needed - install or configure dependencies - update config and documentation to reflect the chosen backend and runtime - rerun scripts/check_retrieval_prereqs.py - continue only after the required checks pass - Use this rule consistently for macOS, Linux, and Windows. Do not pretend portability removes the need for explicit checks.

Recommended file layout

Use 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.

Defaults worth keeping

  • local-first storage
  • allowlisted corpora
  • deny-by-default agent access
  • personal memory separate from workspace retrieval
  • minimal indexed file extensions
  • explicit exclude globs
  • incremental refresh before full rebuild
  • one stable wrapper for agent-facing search

When to read references

  • Read references/privacy-and-boundaries.md for safe corpus design and exclusions.
  • Read references/agent-scoping.md when mapping corpora and memory roots to agents.
  • Read references/interface-contract.md when building or reviewing the agent-facing search wrapper.
  • Read references/maintenance-patterns.md when adding status checks, selective refresh, and smoke tests.
  • Read references/example-templates.md when you need sanitized starter JSON examples.
  • Read references/dependencies-and-platforms.md when the user wants concrete runtime dependencies, embedding backend choices, or cross-platform guidance.
  • Read references/preflight-and-install-policy.md when deciding whether the skill is runnable now, blocked, or should first produce an installation task plan.
  • Read references/runtime-layout.md when the user wants a more runnable implementation footprint.
  • Read references/design-rationale.md when the user needs the architectural thesis, tradeoffs, or public-facing positioning.
  • Read references/sanitized-demo.md when the user wants a safe walkthrough or publishable example.
  • Read references/publish-readiness-checklist.md before packaging or publicly promoting the skill.

Practical guidance

  • Prefer fewer, clearer corpora over many overlapping ones.
  • Avoid indexing secrets, credentials, private journals, logs, and generated artifacts.
  • If two agents need different trust levels, separate their corpora even if the docs overlap.
  • If retrieval results look noisy, improve corpus design before tuning ranking weights.
  • If privacy matters, treat boundary design as a first-class feature, not cleanup later.
  • Treat prerequisite checks as part of the runtime contract, not as optional setup advice.
  • The npm-friendly CLI is the simplest user entry point: 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.
  • No required prerequisites, no execution.
  • If installation is needed, prefer a short task plan over ad-hoc shell improvisation.
  • After installation or config changes, rerun preflight checks before claiming the skill is ready.

Output expectations

When using this skill for a user request, produce some or all of the following depending on scope:

  • sanitized corpus config
  • agent allowlist config
  • memory-boundary config
  • search wrapper contract
  • maintenance workflow
  • smoke-test checklist
  • packaging-ready skill contents when the user wants distribution

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

90.98%
按下载量换算1,222

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills