Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

clawkbclawkb 搜索

Agent Skill

clawkb 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,928

周安装

167

GitHub Stars

公开资料未说明

下载量

1,376
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install clawkb

简介

该技能通过 HTTP 接口操作 ClawKB 知识库服务器,支持条目创建、更新与搜索。

  • 适用于构建和管理结构化知识库,供智能体查询参考。
  • 支持图像上传、评论管理及不记名令牌认证。
  • 使用前需部署 ClawKB 服务端并配置访问令牌。
  • clawkb 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
clawkb
description
Use this skill when an agent needs to work with a ClawKB server over HTTP: register itself, obtain or use a Bearer token, upload images, create or update entries, search entries, read entry detail, or inspect plugin-backed API flows.

ClawKB

Overview

This skill is for operating ClawKB as an API client. Use it when the task is to register an agent account, authenticate with a Bearer token, upload images to MinIO through ClawKB, create or edit entries, or search and read stored knowledge.

Assume the server base URL is provided by the user. If not, ask for it. Prefer curl examples unless the user requests another client.

Quick Start

  1. Get a base URL, for example http://localhost:3500.
  2. If you do not already have a token, register an agent with POST /api/auth/register-agent.
  3. Store the returned apiToken.
  4. Send authenticated requests with Authorization: Bearer <token>.

Example:

BASE_URL="http://localhost:3500"

curl -sS "$BASE_URL/api/auth/register-agent" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "OpenClaw Recon Agent",
    "avatarUrl": "https://example.com/agent-avatar.png"
  }'

Successful response fields to retain:

  • user.id
  • user.username
  • apiToken
  • token.prefix
  • token.type

Authentication

Use Bearer token auth for API automation.

TOKEN="clawkb_..."

curl -sS "$BASE_URL/api/me" \
  -H "Authorization: Bearer $TOKEN"

If the response is 401, the token is invalid or revoked. If the response is 403, the token exists but the user does not have enough permission for that route.

Create Entries

Use POST /api/entries.

Required fields:

  • type
  • source
  • title

Common optional fields:

  • summary
  • content
  • status
  • url
  • tags
  • metadata
  • images

Example:

curl -sS "$BASE_URL/api/entries" \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "type": "report",
    "source": "nightly-recon",
    "title": "GPU cluster pricing moved lower this week",
    "summary": "Spot market pricing softened across three vendors.",
    "content": "## Notes\
Observed lower prices in APAC and US regions.",
    "status": "new",
    "tags": ["gpu", "cloud-pricing"],
    "metadata": {
      "region": ["us", "apac"],
      "confidence": "medium"
    }
  }'

The response includes:

  • entry core fields
  • author
  • tags
  • images

Edit Entries

Use PATCH /api/entries/:id.

Editors can update their own entries. Admins can update any entry.

ENTRY_ID=123

curl -sS -X PATCH "$BASE_URL/api/entries/$ENTRY_ID" \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "summary": "Updated summary after analyst review.",
    "status": "interested",
    "tags": ["gpu", "cloud-pricing", "capacity"]
  }'

Delete uses DELETE /api/entries/:id and is typically admin-only.

Upload Images

Use POST /api/upload with multipart/form-data.

For entry images:

curl -sS "$BASE_URL/api/upload" \
  -H "Authorization: Bearer $TOKEN" \
  -F "kind=entry" \
  -F "file=@/path/to/image.png"

For avatar images:

curl -sS "$BASE_URL/api/upload" \
  -H "Authorization: Bearer $TOKEN" \
  -F "kind=avatar" \
  -F "file=@/path/to/avatar.png"

Upload response fields:

  • url
  • key
  • filename
  • mimeType
  • size

To attach uploaded images when creating or editing an entry, include:

{
  "images": [
    {
      "url": "https://minio.example/entries/user-7/...",
      "key": "entries/user-7/...",
      "filename": "image.png",
      "mimeType": "image/png",
      "size": 12345,
      "caption": "Optional caption"
    }
  ]
}

Search And Read

List or search entries with GET /api/entries.

Useful query params:

  • search
  • type
  • status
  • source
  • tag
  • page
  • limit
  • sort

Examples:

curl -sS "$BASE_URL/api/entries?search=gpu&limit=10" \
  -H "Authorization: Bearer $TOKEN"
curl -sS "$BASE_URL/api/entries?tag=cloud-pricing&status=interested" \
  -H "Authorization: Bearer $TOKEN"

Read one entry:

curl -sS "$BASE_URL/api/entries/$ENTRY_ID" \
  -H "Authorization: Bearer $TOKEN"

Entry detail may include pluginRender, which indicates plugin-provided UI or related blocks.

Comments

To comment on another user's entry, use:

curl -sS "$BASE_URL/api/entries/$ENTRY_ID/comments" \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"content":"Flagging this for follow-up next week."}'

List comments:

curl -sS "$BASE_URL/api/entries/$ENTRY_ID/comments" \
  -H "Authorization: Bearer $TOKEN"

API Reference

  • POST /api/auth/register-agent

Registers an agent user and returns a new API token.

  • GET /api/me

Returns the authenticated principal.

  • POST /api/upload

Uploads an entry image or avatar.

  • GET /api/entries

Lists and searches entries.

  • POST /api/entries

Creates an entry.

  • GET /api/entries/:id

Reads one entry.

  • PATCH /api/entries/:id

Updates one entry.

  • DELETE /api/entries/:id

Deletes one entry.

  • GET /api/entries/:id/comments

Lists comments for an entry.

  • POST /api/entries/:id/comments

Creates a comment.

  • GET /api/search

Uses ClawKB search endpoints if the deployment exposes them.

Working Rules

  • Prefer Bearer token auth for agent automation.
  • Preserve returned key values from image upload responses; they are needed for image references.
  • When updating entries, send only the fields that should change.
  • If the server returns plugin-related data, keep it intact unless the user explicitly wants to strip or replace it.
  • If a request fails, surface the HTTP status and the JSON error field.

Auto-Recall Plugin (Optional)

By default this skill provides manual ClawKB access — the agent must explicitly call the API to search. For automatic knowledge recall on every conversation, install the companion OpenClaw gateway plugin:

openclaw plugins install @hata1234/clawkb-openclaw

What it does:

  • Hooks into before_prompt_build — automatically searches ClawKB before the agent sees each message
  • Injects relevant knowledge entries into the agent's system context
  • Supports multiple ClawKB instances in parallel (e.g. personal KB + company KB + public KB)
  • Per-sender token mapping — different users get different access levels, controlled entirely by ClawKB server-side ACL

After installing, configure in OpenClaw settings:

  1. Add your ClawKB instance URL
  2. Create API tokens in ClawKB (Settings → API Tokens)
  3. Map sender IDs to tokens in the plugin config

Don't want it? This is completely optional. The skill works fine without the plugin — you just search manually via the API.

Internal Links (Entry Mentions)

ClawKB supports internal links between entries using a wiki-style syntax:

[[entry:ID|Display Title]]

Examples:

See point 3 in [[entry:134|Gap Analysis]]
This issue is discussed in [[entry:143|Root Cause Report]] and [[entry:145|Mitigation Plan]]

Rules:

  • The syntax is [[entry:<numeric_id>|<display_text>]]
  • display_text is typically the entry title at time of writing
  • When rendered, these become clickable links to /entries/<id> with a distinctive pill-badge style
  • The search API supports numeric ID lookup: ?search=142 will match entry #142 directly
  • Do NOT use plain #123 for entry references — that syntax is not recognized and may conflict with other uses (e.g. order numbers)
  • When creating entries that reference other entries, always use the [[entry:ID|title]] format
  • In the web UI, users can type [[ in the content editor to trigger an autocomplete popup for selecting entries

Agent usage example (creating an entry with internal links):

curl -sS "$BASE_URL/api/entries" \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "type": "knowledge",
    "source": "agent",
    "title": "Unified Root Cause Analysis",
    "content": "## Analysis\
\
Based on [[entry:143|Root Cause Report]], insufficient moisture retention was the primary factor.\
\
See [[entry:147|Mitigation Summary]] for action items.",
    "tags": ["quality", "analysis"]
  }'

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

70.89%
按下载量换算975

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills