{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/ragtop-planner",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ragtop-planner",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/error_handling.md",
      "references/prompts.md",
      "references/workflow.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/ragtop-planner",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "ragtop-planner Skill",
        "body": "该 Skill 将达人推广方案制定流程改造为外部可执行编排，外部服务无需改后端即可调用。"
      },
      {
        "title": "Configuration",
        "body": "必须配置以下环境变量：\n\nRAGTOP_API_TOKEN：API Token（必填）\nRAGTOP_API_URL：API Base URL（可选，默认 http://10.71.10.71:9380）"
      },
      {
        "title": "可用工具（tool_cli）",
        "body": "统一前缀：${RAGTOP_API_URL}/api/v1/ragtop/tool"
      },
      {
        "title": "1) list_kb",
        "body": "方法：POST\n路径：/list_kb\n认证：Authorization: Bearer ${RAGTOP_API_TOKEN}\n返回（关键字段）：data.kbs[]、data.total\n\ncurl -L -X POST \"${RAGTOP_API_URL}/api/v1/ragtop/tool/list_kb\" \\\n  -H \"Authorization: Bearer ${RAGTOP_API_TOKEN}\" \\\n  -H \"Content-Type: application/json\""
      },
      {
        "title": "2) list_doc",
        "body": "方法：POST\n路径：/list_doc\n必填：knowledge_id\n返回（关键字段）：data.docs[]、data.total\n\ncurl -L -X POST \"${RAGTOP_API_URL}/api/v1/ragtop/tool/list_doc\" \\\n  -H \"Authorization: Bearer ${RAGTOP_API_TOKEN}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"knowledge_id\":\"YOUR_KB_ID\"}'"
      },
      {
        "title": "3) retrieval",
        "body": "方法：POST\n路径：/retrieval\n必填：knowledge_id + (query 或 queries)\n可选：doc_ids、retrieval_setting.top_k、retrieval_setting.score_threshold\n返回：records[]（注意该接口直接返回 records，不是 data.records）\n\ncurl -L -X POST \"${RAGTOP_API_URL}/api/v1/ragtop/tool/retrieval\" \\\n  -H \"Authorization: Bearer ${RAGTOP_API_TOKEN}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"knowledge_id\":\"YOUR_KB_ID\",\n    \"queries\":[\"查询A\",\"查询B\"],\n    \"retrieval_setting\":{\"top_k\":16,\"score_threshold\":0.3}\n  }'"
      },
      {
        "title": "FH Workflow（外部执行）",
        "body": "请按顺序执行以下四步：\n\nRULES_SUMMARY：从名称为“方案”的知识库召回规则并总结执行清单。\nCASE_SUMMARY：从名称为“案例”的知识库召回并总结成功模式。\nKOL_SELECTOR：从名称为“价格”的知识库召回候选达人并生成 HTML 筛选表。\nPLAN_GENERATION：融合规则、案例、达人表和用户需求生成最终方案。\n\n详细步骤见：\n\nreferences/workflow.md\nreferences/prompts.md\nreferences/error_handling.md"
      },
      {
        "title": "执行规则",
        "body": "必须先 list_kb，并匹配三个知识库名称：方案、案例、价格。\n优先使用 queries 多路召回；仅在简单请求时用单 query。\n如用户指定文件范围，先调用 list_doc，再把 doc_ids 传给 retrieval。\n最终回答必须做预算合规检查（总价 <= 用户预算）。\n所有关键结论必须可追溯到召回来源（文档名或记录来源）。\n输出中统一使用 ragtop 命名。"
      },
      {
        "title": "推荐默认参数",
        "body": "规则召回：top_k=24，score_threshold=0.2\n案例召回：top_k=8，score_threshold=0.2\n价格召回：top_k=100，score_threshold=0.1"
      },
      {
        "title": "失败与降级",
        "body": "鉴权失败：提示用户检查 Token 是否有效或是否过期。\n知识库缺失：明确指出缺少 方案/案例/价格 中的哪个库。\n召回为空：建议用户细化关键词、指定文档或降低阈值后重试。\n预算冲突：要求剔除低优先级达人，直至满足预算。"
      }
    ],
    "body": "ragtop-planner Skill\n\n该 Skill 将达人推广方案制定流程改造为外部可执行编排，外部服务无需改后端即可调用。\n\nConfiguration\n\n必须配置以下环境变量：\n\nRAGTOP_API_TOKEN：API Token（必填）\nRAGTOP_API_URL：API Base URL（可选，默认 http://10.71.10.71:9380）\n可用工具（tool_cli）\n\n统一前缀：${RAGTOP_API_URL}/api/v1/ragtop/tool\n\n1) list_kb\n方法：POST\n路径：/list_kb\n认证：Authorization: Bearer ${RAGTOP_API_TOKEN}\n返回（关键字段）：data.kbs[]、data.total\ncurl -L -X POST \"${RAGTOP_API_URL}/api/v1/ragtop/tool/list_kb\" \\\n  -H \"Authorization: Bearer ${RAGTOP_API_TOKEN}\" \\\n  -H \"Content-Type: application/json\"\n\n2) list_doc\n方法：POST\n路径：/list_doc\n必填：knowledge_id\n返回（关键字段）：data.docs[]、data.total\ncurl -L -X POST \"${RAGTOP_API_URL}/api/v1/ragtop/tool/list_doc\" \\\n  -H \"Authorization: Bearer ${RAGTOP_API_TOKEN}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"knowledge_id\":\"YOUR_KB_ID\"}'\n\n3) retrieval\n方法：POST\n路径：/retrieval\n必填：knowledge_id + (query 或 queries)\n可选：doc_ids、retrieval_setting.top_k、retrieval_setting.score_threshold\n返回：records[]（注意该接口直接返回 records，不是 data.records）\ncurl -L -X POST \"${RAGTOP_API_URL}/api/v1/ragtop/tool/retrieval\" \\\n  -H \"Authorization: Bearer ${RAGTOP_API_TOKEN}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"knowledge_id\":\"YOUR_KB_ID\",\n    \"queries\":[\"查询A\",\"查询B\"],\n    \"retrieval_setting\":{\"top_k\":16,\"score_threshold\":0.3}\n  }'\n\nFH Workflow（外部执行）\n\n请按顺序执行以下四步：\n\nRULES_SUMMARY：从名称为“方案”的知识库召回规则并总结执行清单。\nCASE_SUMMARY：从名称为“案例”的知识库召回并总结成功模式。\nKOL_SELECTOR：从名称为“价格”的知识库召回候选达人并生成 HTML 筛选表。\nPLAN_GENERATION：融合规则、案例、达人表和用户需求生成最终方案。\n\n详细步骤见：\n\nreferences/workflow.md\nreferences/prompts.md\nreferences/error_handling.md\n执行规则\n必须先 list_kb，并匹配三个知识库名称：方案、案例、价格。\n优先使用 queries 多路召回；仅在简单请求时用单 query。\n如用户指定文件范围，先调用 list_doc，再把 doc_ids 传给 retrieval。\n最终回答必须做预算合规检查（总价 <= 用户预算）。\n所有关键结论必须可追溯到召回来源（文档名或记录来源）。\n输出中统一使用 ragtop 命名。\n推荐默认参数\n规则召回：top_k=24，score_threshold=0.2\n案例召回：top_k=8，score_threshold=0.2\n价格召回：top_k=100，score_threshold=0.1\n失败与降级\n鉴权失败：提示用户检查 Token 是否有效或是否过期。\n知识库缺失：明确指出缺少 方案/案例/价格 中的哪个库。\n召回为空：建议用户细化关键词、指定文档或降低阈值后重试。\n预算冲突：要求剔除低优先级达人，直至满足预算。"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/qbs784/ragtop-planner",
    "publisherUrl": "https://clawhub.ai/qbs784/ragtop-planner",
    "owner": "qbs784",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}