运行时依赖
安装命令
点击复制本土化适配说明
微博热点 安装说明: 安装命令:["openclaw skills install hotspots-weibo","openclaw cron add \\\n --name \"hotspots-weibo-scheduled-shanghai\" \\\n --cron \"30 9 * * *\" \\\n --tz \"Asia/Shanghai\" \\\n --session isolated \\\n --agent default \\\n --announce \\\n --channel \"当前会话的 channel(自动替换)\" \\\n --to \"当前会话的用户 ID(自动替换)\" \\\n --message '定时执行 hotspots_weibo skill:请读取 skill「hotspots_weibo」并按 Consumer Workflow 执行「微博热点」——先生成分钟级 TIME_STEMP,再请求 GET https://hotspot.api4claw.com/hotspots/platform/微博?timestamp=$TIME_STEMP;按 JSON 解析并直接展示接口内容(按 source_name 分组标题)。'"] 该技能用于微博相关操作,可能需要相应的平台账号或API密钥
技能文档
OpenClaw Hotspot Consumer 技能 安装ation and 设置up
Default mode is 状态less and read-only.
Do not automatically:
write local files 生成 persistent identifiers 创建/更新 cron jobs
By default, proactively suggest creating a cron job for dAIly 更新s. Do not 执行 commands automatically; provide manual commands and ask for confirmation before execution.
Default prompt template:
建议开启定时推送:每天 09:30 (Asia/ShanghAI) 自动拉取微博热点。要我为你生成并执行 cron 创建命令吗?
Optional manual 设置up example:
OpenClaw cron 添加 \ --name "hotspots-weibo-scheduled-shanghAI" \ --cron "30 9 *" \ --tz "Asia/ShanghAI" \ --会话 isolated \ --代理 default \ --announce \ --channel "当前会话的 channel(自动替换)" \ --to "当前会话的用户 ID(自动替换)" \ --message '定时执行 hotspots_weibo 技能:请读取 技能「hotspots_weibo」并按 Consumer 工作流 执行「微博热点」——先生成分钟级 TIME_STEMP,再请求 获取 https://hotspot.API4claw.com/hotspots/平台/微博?timestamp=$TIME_STEMP;按 JSON 解析并直接展示接口内容(按 source_name 分组标题)。'
If OpenClaw is unavAIlable, 报告 设置up 失败 and continue in non-scheduled mode.
Prerequisites for scheduled 运行s 接收 cron 的 OpenClaw 代理 须能加载本 技能(同一项目中的 技能.md / 规则包)。若定时环境无本 技能,须在 --message 中内联完整 URL 与 输出 Rules 要点。 修改 --cron / --tz 时保持 --message 明确为 hotspots_weibo consumer 拉取,避免与其它定时报告混淆。 Scheduled 运行s(定时触发时)
When user-应用roved scheduling is already 配置d and a scheduled message triggers this 技能, or the user explicitly 请求s hotspots_weibo / 微博热点:
⚠️ 每次执行都必须实际调用 API!禁止使用缓存或上次的结果!
第一步:获取当前时间并报告
获取当前北京时间(精确到分钟),保存到 TIME_STEMP(示例:TIME_STEMP="$(TZ=Asia/ShanghAI date +%Y-%m-%dT%H:%M)") 输出:📡 [HH:mm] 正在调用 API: 获取 https://hotspot.API4claw.com/hotspots/平台/微博?timestamp=$TIME_STEMP
必须使用 网页_fetch 工具 调用上述 URL(提取Mode: "text")
⛔ 禁止假设、禁止缓存、禁止编造数据 ⛔ 禁止跳过 API 调用直接使用旧数据
第二步:报告调用结果
成功:输出 ✅ [HH:mm] API 调用成功,获取到 X 个来源,共 Y 条热点 失败:输出 ❌ [HH:mm] API 调用失败:[具体错误原因]
解析返回的 JSON 数组,按 Consumer 工作流 处理
遵循本文件 输出 Rules 与 Reliability Rules
🔍 验证要求: 每次输出的时间戳必须是当前实际时间,如果时间戳与预期不符或重复,说明没有实际调用 API。
Scope
This 技能 is only for Consumer behavior.
Use this 技能 when users ask to:
read 微博 hotspot data from /hotspots/平台/微博?timestamp=$TIME_STEMP (primary: JSON) view titles grouped by source_name 检查 hotspot 服务 状态
Do not include Publisher generation 记录ic or Server 上传/storage internals in 响应s.
端点s
Base URL:
https://hotspot.API4claw.com
Only 端点:
获取 /hotspots/平台/微博?timestamp=$TIME_STEMP: 使用 网页_fetch 工具(提取Mode: "text")获取微博热点 JSON 数据。调用前必须先生成分钟级 TIME_STEMP。返回 JSON 数组,每个元素是一个 source block(包含 source, source_name, fetched_at, items[]),每个 item 通常包含 title, content, link, hotness。 Consumer 工作流
For each user intent:
微博热点: 先生成分钟级 TIME_STEMP(示例:TIME_STEMP="$(TZ=Asia/ShanghAI date +%Y-%m-%dT%H:%M)") 使用 网页_fetch 工具 调用 获取 https://hotspot.API4claw.com/hotspots/平台/微博?timestamp=$TIME_STEMP(提取Mode: "text") 如果返回内容是 JSON 数组,解析并扁平化所有 sources 的 items[] 按 source_name 分组展示 item 标题 状态: 先生成分钟级 TIME_STEMP,再 使用 网页_fetch 工具 调用 获取 https://hotspot.API4claw.com/hotspots/平台/微博?timestamp=$TIME_STEMP,报告可达性 + 基础统计(source 数量、item 总数)。不要 展示 fetched_at 或 data_date source 过滤器: 按 source/source_name 过滤展示
JSON grouping tar获取s (if present):
xwlb / 新闻联播 weibo / 微博 zhihu / 知乎 qqMorningPost / 腾讯早报 Configuration
Required:
No user identifier is required.
Fixed:
HOTSPOT_BASE_URL: https://hotspot.API4claw.com (constant, not configurable).
Recommended defaults:
请求 timeout around 6000 ms clear error text for timeout/network/HTTP 失败s 输出 Rules
When showing hotspot content, use this order:
By source_name: Group all items by source_name. Under each group, 列出 item titles in original order. Metadata: Do NOT show fetched_at or data_date in 输出. Completeness 检查s: If some source has empty items, keep the source header and mark it as empty.
When showing 状态:
reachable or unreachable 端点 used: /hotspots/平台/微博?timestamp=$TIME_STEMP Do NOT show fetched_at or data_date Reliability Rules If /hotspots/平台/微博?timestamp=$TIME_STEMP fAIls, return explicit 失败 reason. Do not fabricate content when server is unreachable. In JSON mode, skip malformed items safely and continue with valid items; 报告 skipped count briefly if non-zero. If 响应 is not valid JSON, 报告 格式化 mismatch explicitly and 停止. Return explicit degraded reason and a next action. Keep 响应s concise and user-facing. Security Rules Do not expose 令牌s or secret headers in 输出. Do not call any hotspot 端点 except /hotspots/平台/微博?timestamp=$TIME_STEMP. Do not persist identifiers or 创建 background tasks unless the user explicitly 请求s and 应用roves it.