# Send ragtop-planner to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ragtop-planner",
    "name": "ragtop-planner",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/qbs784/ragtop-planner",
    "canonicalUrl": "https://clawhub.ai/qbs784/ragtop-planner",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/ragtop-planner",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ragtop-planner",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/error_handling.md",
      "references/prompts.md",
      "references/workflow.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "ragtop-planner",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T14:23:05.685Z",
      "expiresAt": "2026-05-19T14:23:05.685Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ragtop-planner",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ragtop-planner",
        "contentDisposition": "attachment; filename=\"ragtop-planner-1.0.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "ragtop-planner"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ragtop-planner"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ragtop-planner",
    "downloadUrl": "https://openagent3.xyz/downloads/ragtop-planner",
    "agentUrl": "https://openagent3.xyz/skills/ragtop-planner/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ragtop-planner/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ragtop-planner/agent.md"
  }
}
```
## Documentation

### ragtop-planner Skill

该 Skill 将达人推广方案制定流程改造为外部可执行编排，外部服务无需改后端即可调用。

### Configuration

必须配置以下环境变量：

RAGTOP_API_TOKEN：API Token（必填）
RAGTOP_API_URL：API Base URL（可选，默认 http://10.71.10.71:9380）

### 可用工具（tool_cli）

统一前缀：${RAGTOP_API_URL}/api/v1/ragtop/tool

### 1) list_kb

方法：POST
路径：/list_kb
认证：Authorization: Bearer ${RAGTOP_API_TOKEN}
返回（关键字段）：data.kbs[]、data.total

curl -L -X POST "${RAGTOP_API_URL}/api/v1/ragtop/tool/list_kb" \\
  -H "Authorization: Bearer ${RAGTOP_API_TOKEN}" \\
  -H "Content-Type: application/json"

### 2) list_doc

方法：POST
路径：/list_doc
必填：knowledge_id
返回（关键字段）：data.docs[]、data.total

curl -L -X POST "${RAGTOP_API_URL}/api/v1/ragtop/tool/list_doc" \\
  -H "Authorization: Bearer ${RAGTOP_API_TOKEN}" \\
  -H "Content-Type: application/json" \\
  -d '{"knowledge_id":"YOUR_KB_ID"}'

### 3) retrieval

方法：POST
路径：/retrieval
必填：knowledge_id + (query 或 queries)
可选：doc_ids、retrieval_setting.top_k、retrieval_setting.score_threshold
返回：records[]（注意该接口直接返回 records，不是 data.records）

curl -L -X POST "${RAGTOP_API_URL}/api/v1/ragtop/tool/retrieval" \\
  -H "Authorization: Bearer ${RAGTOP_API_TOKEN}" \\
  -H "Content-Type: application/json" \\
  -d '{
    "knowledge_id":"YOUR_KB_ID",
    "queries":["查询A","查询B"],
    "retrieval_setting":{"top_k":16,"score_threshold":0.3}
  }'

### FH Workflow（外部执行）

请按顺序执行以下四步：

RULES_SUMMARY：从名称为“方案”的知识库召回规则并总结执行清单。
CASE_SUMMARY：从名称为“案例”的知识库召回并总结成功模式。
KOL_SELECTOR：从名称为“价格”的知识库召回候选达人并生成 HTML 筛选表。
PLAN_GENERATION：融合规则、案例、达人表和用户需求生成最终方案。

详细步骤见：

references/workflow.md
references/prompts.md
references/error_handling.md

### 执行规则

必须先 list_kb，并匹配三个知识库名称：方案、案例、价格。
优先使用 queries 多路召回；仅在简单请求时用单 query。
如用户指定文件范围，先调用 list_doc，再把 doc_ids 传给 retrieval。
最终回答必须做预算合规检查（总价 <= 用户预算）。
所有关键结论必须可追溯到召回来源（文档名或记录来源）。
输出中统一使用 ragtop 命名。

### 推荐默认参数

规则召回：top_k=24，score_threshold=0.2
案例召回：top_k=8，score_threshold=0.2
价格召回：top_k=100，score_threshold=0.1

### 失败与降级

鉴权失败：提示用户检查 Token 是否有效或是否过期。
知识库缺失：明确指出缺少 方案/案例/价格 中的哪个库。
召回为空：建议用户细化关键词、指定文档或降低阈值后重试。
预算冲突：要求剔除低优先级达人，直至满足预算。
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: qbs784
- Version: 1.0.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-12T14:23:05.685Z
- Expires at: 2026-05-19T14:23:05.685Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/ragtop-planner)
- [Send to Agent page](https://openagent3.xyz/skills/ragtop-planner/agent)
- [JSON manifest](https://openagent3.xyz/skills/ragtop-planner/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/ragtop-planner/agent.md)
- [Download page](https://openagent3.xyz/downloads/ragtop-planner)