Install
openclaw skills install @bowen-aijishu/jishudb-searchSearch existing JishuDB documents, list files, read text, and check import status; answer with source citations. No public-web research. / 查询JishuDB已有资料、文件清单、文档正文和导入进度,依据真实结果标注来源,不用于公网研究。
openclaw skills install @bowen-aijishu/jishudb-searchRetrieve facts from existing JishuDB documents and answer with source citations. Use the actual inventory, document, search, or job tools for each request.
先检索JishuDB已有资料,再依据真实结果回答并标注来源;清单、正文和任务进度使用对应工具。
| Item | Details |
|---|---|
| Use when | Questions concern documents, file inventory, or import status already in JishuDB. |
| Delivers | Answers with source filenames, verified inventories, document text, or observed job status. |
| Requires | An authorized JishuDB connection; the HTTP helper needs Bash and curl and only lists KBs or searches. |
| Does not | Import new material, research the public web, or infer file counts from search passages. |
/kb as a search request.Do not use this skill to import new material or research the public web.
Use jishudb for setup or connection repair, research-report-hunter to discover
external reports, and jishudb-plaud-import to archive selected Plaud material.
The /kb field is a legacy hint, not a portable command registration; use the
host's supported Skill loader if no such command exists.
kb_list and use this run's results.kb_list_documents and follow every nextCursor.
List only returned documents; search passages and job records are not file inventories.kb_list_documents, then call kb_get_document.kb_read_document_text; snippets do not reconstruct a full document.kb_search, synthesize returned passages, and cite sources.kb_list_jobs or kb_get_job. Jobs are processing attempts,
so one document may have several jobs; do not equate job count with file count.The packaged kb-search.sh helper uses curl for the KB HTTP API. Set JISHUDB_URL
for the actual backend; JishuShell panel bindings inject it automatically. The
helper's default is http://host.docker.internal:18089. Set JISHUDB_TOKEN
through the approved environment when authentication is enabled.
These examples use repository-root paths. For a separately installed package,
resolve kb-search.sh relative to the loaded Skill directory.
bash skills/jishudb-search/kb-search.sh list
Use a relevant returned ID; the output includes names and chunk counts.
bash skills/jishudb-search/kb-search.sh search "question or keywords" <kb-id>
An optional third argument sets topK (default 6). When a panel binding supplies
JISHUDB_DEFAULT_KB, the KB ID may be omitted:
bash skills/jishudb-search/kb-search.sh "question or keywords"
Synthesize the returned passages and cite their actual source filenames. If the
helper returns No matching passages found, report no matches for this search;
try other keywords or a relevant KB from list without inventing evidence.
Treat low-relevance passages cautiously and disclose uncertainty.
The helper is read-only and can be called for several relevant queries. Keep a missing curl dependency distinct from a backend connectivity failure; verify the backend's actual running state and configured address. Complete the answer only to the extent supported by observed tool output.
kb_list,只按本轮工具结果回答。kb_list_documents;若返回 nextCursor,继续翻页直到结束。只列返回的 documents,不得从检索片段、正文、历史对话或任务记录补出文件名。kb_list_documents 确认文件,再调用 kb_get_document。kb_read_document_text;不要仅凭搜索摘要还原全文。kb_search,只依据返回片段综合,并标注来源。搜索结果不是完整文件清单。kb_list_jobs 或 kb_get_job。任务是处理尝试,同一文件可能对应多条任务,任务数不能当作文件数。本技能目录里有一个零依赖脚本 kb-search.sh(用 curl 调 KB 的 HTTP API)。KB 地址由环境变量 JISHUDB_URL 配置(JishuShell 面板绑定时会自动注入;独立使用时自行 export,默认 http://host.docker.internal:18089);若 KB 开了鉴权,另设 JISHUDB_TOKEN。
bash skills/jishudb-search/kb-search.sh list
输出每个库的 id / 名称 / 块数。挑一个相关的 id 用于检索。
bash skills/jishudb-search/kb-search.sh search "用户的问题或关键词" <kb-id>
topK(默认 6)。JISHUDB_DEFAULT_KB),可省略 <kb-id>,直接:
bash skills/jishudb-search/kb-search.sh "用户的问题"
返回形如:
Top 6 passages (cite the source filename in your answer):
[1] 01-quick-start.md (relevance: high)
JishuShell 是面向 Arm 边缘设备的 AI Agent 管理面板 …
[2] README.md (relevance: medium)
…
01-quick-start.md…」),或在末尾列出来源。No matching passages found,如实告知知识库里没有相关内容,不要编造;可建议换关键词或换一个库(先 list)。low 的片段要谨慎使用,必要时说明置信度不高。kb-search: curl not found / 无法连接:说明运行环境缺 curl 或网络不通 KB,提示用户检查 KB 应用是否在面板里处于运行状态。kb-search.sh: Use the read-only HTTP helper for knowledge-base listing or passage search when its documented environment is available; other operations require host MCP tools.jishudb.research-report-hunter.