返回顶部
o

openclaw-docs-searchOpenClaw文档搜索

Search OpenClaw official docs and return concise Markdown. Invoke when users ask about OpenClaw docs, config, CLI, channels, or skills.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.3
安全检测
已通过
121
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

openclaw-docs-search

openclaw-docs-search

用于检索 OpenClaw 官方文档,并将结果整理为适合 LLM 阅读的 Markdown。

⚡ 快速使用(必读)

前置条件:安装依赖

首次使用前需要安装依赖:
bash
cd ~/.openclaw/workspace/skills/openclaw-docs-search
npm install

命令一:搜索文档

bash
node ~/.openclaw/workspace/skills/openclaw-docs-search/dist/search.js search <英文关键字> en

  • - 英文搜索(推荐): ... search multi agent en
  • 中文搜索: ... search 多代理 zh-Hans

示例:
bash
node ~/.openclaw/workspace/skills/openclaw-docs-search/dist/search.js search create multiple agents en

返回格式化的 Markdown 搜索结果,包含页面路径(page 字段),后续可用于获取详情。

命令二:获取文档详情

从搜索结果中获取 page 路径后,使用此命令获取完整内容:

bash
node ~/.openclaw/workspace/skills/openclaw-docs-search/dist/search.js doc

示例:
bash
node ~/.openclaw/workspace/skills/openclaw-docs-search/dist/search.js doc concepts/multi-agent

返回干净的 Markdown 正文(自动提取 #content-area 并转换为 Markdown)。



适用场景

  • - 用户询问 OpenClaw 的安装、配置、CLI、渠道接入、Skills、Gateway、诊断或运维问题
  • 需要快速定位某个官方文档页面并返回简洁摘要
  • 需要进一步读取单篇文档正文,并尽量减少噪音与 Token 消耗

⚠️ 重要提示:
由于官方英文文档的搜索命中率远高于中文文档,请在发起搜索前,务必将用户的中文查询意图翻译为英文关键字进行搜索。接口默认语言已设置为 en。如果确实需要查阅中文结果,再显式将 language 指定为 zh-Hans。


工作原理

搜索流程

  1. 1. 向 OpenClaw 官方搜索 API 发送请求
  2. 获取 JSON 结果,提取 page、breadcrumbs、content 等字段
  3. 清理 HTML 标签(如 高亮),格式化为 Markdown

返回示例:
markdown

1. Agents > Multi-agent > Multi-Agent Routing


  • - 路径: concepts/multi-agent
  • 内容: Multi-Agent Routing Goal: multiple isolated agents...

获取详情流程

  1. 1. 拼接 URL:https://docs.openclaw.ai/
  2. 获取 HTML 页面
  3. 提取 id=content-area 元素
  4. 使用 turndown 转换为 Markdown
  5. 添加来源标识:> 来源: https://docs.openclaw.ai/...

输出要求

  • - 搜索结果优先返回精简 Markdown,而不是原始 JSON
  • 删除搜索高亮标签、冗余元数据、重复标题和无关噪音
  • 详情页只保留 #content-area 主内容,不返回整页导航、页脚或脚本内容
  • 在结果中尽量保留来源路径,便于后续继续深挖

约束

  • - 不批量镜像整个站点
  • 不请求与文档正文无关的敏感页面
  • 不返回真实密钥、令牌或用户私密信息
  • 优先以按需查阅的方式工作,减少不必要请求

常见问题

搜索无结果?

  1. 1. 尝试用更通用的英文关键词
  2. 使用官方文档目录探索:https://docs.openclaw.ai/llms.txt

依赖安装失败?

确保 Node.js 版本 >= 18,然后重试:
bash
cd ~/.openclaw/workspace/skills/openclaw-docs-search
rm -rf node_modules package-lock.json
npm install

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openclaw-docs-search-1775938211 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openclaw-docs-search-1775938211 技能

通过命令行安装

skillhub install openclaw-docs-search-1775938211

下载

⬇ 下载 openclaw-docs-search v1.0.3(免费)

文件大小: 18.02 KB | 发布时间: 2026-4-12 10:49

v1.0.3 最新 2026-4-12 10:49
openclaw-docs-search v1.0.3

- Added a quick-start guide and explicit CLI usage instructions for searching and retrieving documentation content.
- Revised documentation for clearer steps on search and detail retrieval, with code examples for both.
- Added a FAQ section covering common issues (e.g., search and installation problems).
- Provided instructions for dependency installation and troubleshooting (now included in the docs).
- Minor clarifications and structural improvements in SKILL.md for ease of understanding.
- Added a _meta.json file.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部