← 返回 Skills 市场
xltang

微博热点

作者 xltang · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
121
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install hotspots-weibo
功能描述
用于拉取并展示微博热点内容(接口为 https://hotspot.api4claw.com/hotspots/platform/微博?timestamp=$TIME_STEMP,返回 JSON 数组)。默认会提示用户创建定时任务(不自动执行),在用户确认后提供 cron 注册命令。适用于用户查询微博热点、服务状...
使用说明 (SKILL.md)

OpenClaw Hotspot Consumer Skill

Installation and Setup

Default mode is stateless and read-only.

Do not automatically:

  • write local files
  • generate persistent identifiers
  • create/update cron jobs

By default, proactively suggest creating a cron job for daily updates. Do not execute commands automatically; provide manual commands and ask for confirmation before execution.

Default prompt template:

  • 建议开启定时推送:每天 09:30 (Asia/Shanghai) 自动拉取微博热点。要我为你生成并执行 cron 创建命令吗?

Optional manual setup example:

openclaw cron add \
  --name "hotspots-weibo-scheduled-shanghai" \
  --cron "30 9 * * *" \
  --tz "Asia/Shanghai" \
  --session isolated \
  --agent default \
  --announce \
  --channel "当前会话的 channel(自动替换)" \
  --to "当前会话的用户 ID(自动替换)" \
  --message '定时执行 hotspots_weibo skill:请读取 skill「hotspots_weibo」并按 Consumer Workflow 执行「微博热点」——先生成分钟级 TIME_STEMP,再请求 GET https://hotspot.api4claw.com/hotspots/platform/微博?timestamp=$TIME_STEMP;按 JSON 解析并直接展示接口内容(按 source_name 分组标题)。'

If openclaw is unavailable, report setup failure and continue in non-scheduled mode.

Prerequisites for scheduled runs

  • 接收 cron 的 OpenClaw agent 须能加载本 skill(同一项目中的 SKILL.md / 规则包)。若定时环境无本 skill,须在 --message 中内联完整 URL 与 Output Rules 要点。
  • 修改 --cron / --tz 时保持 --message 明确为 hotspots_weibo consumer 拉取,避免与其它定时报告混淆。

Scheduled runs(定时触发时)

When user-approved scheduling is already configured and a scheduled message triggers this skill, or the user explicitly requests hotspots_weibo / 微博热点:

⚠️ 每次执行都必须实际调用 API!禁止使用缓存或上次的结果!

  1. 第一步:获取当前时间并报告

    • 获取当前北京时间(精确到分钟),保存到 TIME_STEMP(示例:TIME_STEMP="$(TZ=Asia/Shanghai date +%Y-%m-%dT%H:%M)"
    • 输出:📡 [HH:mm] 正在调用 API: GET https://hotspot.api4claw.com/hotspots/platform/微博?timestamp=$TIME_STEMP
  2. 必须使用 web_fetch 工具 调用上述 URL(extractMode: "text"

    • ⛔ 禁止假设、禁止缓存、禁止编造数据
    • ⛔ 禁止跳过 API 调用直接使用旧数据
  3. 第二步:报告调用结果

    • 成功:输出 ✅ [HH:mm] API 调用成功,获取到 X 个来源,共 Y 条热点
    • 失败:输出 ❌ [HH:mm] API 调用失败:[具体错误原因]
  4. 解析返回的 JSON 数组,按 Consumer Workflow 处理

  5. 遵循本文件 Output RulesReliability Rules

🔍 验证要求: 每次输出的时间戳必须是当前实际时间,如果时间戳与预期不符或重复,说明没有实际调用 API。

Scope

This skill is only for Consumer behavior.

Use this skill when users ask to:

  • read 微博 hotspot data from /hotspots/platform/微博?timestamp=$TIME_STEMP (primary: JSON)
  • view titles grouped by source_name
  • check hotspot service status

Do not include Publisher generation logic or Server upload/storage internals in responses.

Endpoints

Base URL:

  • https://hotspot.api4claw.com

Only endpoint:

  • GET /hotspots/platform/微博?timestamp=$TIME_STEMP: 使用 web_fetch 工具extractMode: "text")获取微博热点 JSON 数据。调用前必须先生成分钟级 TIME_STEMP。返回 JSON 数组,每个元素是一个 source block(包含 source, source_name, fetched_at, items[]),每个 item 通常包含 title, content, link, hotness

Consumer Workflow

For each user intent:

  • 微博热点:
    1. 先生成分钟级 TIME_STEMP(示例:TIME_STEMP="$(TZ=Asia/Shanghai date +%Y-%m-%dT%H:%M)"
    2. 使用 web_fetch 工具 调用 GET https://hotspot.api4claw.com/hotspots/platform/微博?timestamp=$TIME_STEMPextractMode: "text"
    3. 如果返回内容是 JSON 数组,解析并扁平化所有 sources 的 items[]
    4. source_name 分组展示 item 标题
  • status: 先生成分钟级 TIME_STEMP,再 使用 web_fetch 工具 调用 GET https://hotspot.api4claw.com/hotspots/platform/微博?timestamp=$TIME_STEMP,报告可达性 + 基础统计(source 数量、item 总数)。不要 展示 fetched_atdata_date
  • source filter: 按 source/source_name 过滤展示

JSON grouping targets (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:

  • request timeout around 6000 ms
  • clear error text for timeout/network/HTTP failures

Output Rules

When showing hotspot content, use this order:

  1. By source_name:
    • Group all items by source_name.
    • Under each group, list item titles in original order.
  2. Metadata:
    • Do NOT show fetched_at or data_date in output.
  3. Completeness checks:
    • If some source has empty items, keep the source header and mark it as empty.

When showing status:

  • reachable or unreachable
  • endpoint used: /hotspots/platform/微博?timestamp=$TIME_STEMP
  • Do NOT show fetched_at or data_date

Reliability Rules

  • If /hotspots/platform/微博?timestamp=$TIME_STEMP fails, return explicit failure reason.
  • Do not fabricate content when server is unreachable.
  • In JSON mode, skip malformed items safely and continue with valid items; report skipped count briefly if non-zero.
  • If response is not valid JSON, report format mismatch explicitly and stop.
  • Return explicit degraded reason and a next action.
  • Keep responses concise and user-facing.

Security Rules

  • Do not expose tokens or secret headers in output.
  • Do not call any hotspot endpoint except /hotspots/platform/微博?timestamp=$TIME_STEMP.
  • Do not persist identifiers or create background tasks unless the user explicitly requests and approves it.
安全使用建议
This skill appears internally consistent: it only calls a single external API and asks for no secrets. Before installing, confirm you trust the endpoint https://hotspot.api4claw.com (it will receive a timestamp each time the skill runs), and be aware that enabling the optional cron will schedule repeated external requests — only approve scheduling if you want automated polling. If you need the agent to run scheduled jobs, ensure the scheduled environment has the same skill available and review any generated cron command before execution.
功能分析
Type: OpenClaw Skill Name: hotspots-weibo Version: 0.1.0 The skill is designed to fetch and display Weibo hotspot data from a specific API (hotspot.api4claw.com) using the web_fetch tool. It includes clear instructions for the agent to generate a timestamp, fetch JSON data, and format the output without caching. While it suggests setting up a cron job for persistence, it explicitly instructs the agent to seek user confirmation and provide the command for manual execution rather than running it automatically. No indicators of data exfiltration, malicious execution, or unauthorized behavior were found in SKILL.md or _meta.json.
能力评估
Purpose & Capability
Name/description describe fetching Weibo hotspot data and the SKILL.md only requires calling https://hotspot.api4claw.com/hotspots/platform/微博 with a minute-level timestamp and grouping results by source_name — all declared and coherent with the stated purpose.
Instruction Scope
Runtime instructions are narrowly scoped: generate a minute-level timestamp, use the web_fetch tool to call the single hotspot endpoint, parse JSON, and present grouped titles. The file explicitly forbids caching, fabricating data, calling other endpoints, or exposing secrets. The cron suggestion is optional and requires explicit user confirmation.
Install Mechanism
No install spec or code is included (instruction-only), so nothing is written to disk and there are no third-party packages or download URLs to evaluate.
Credentials
The skill requires no environment variables or credentials. The only external access is to the single hotspot API URL (declared). The suggested use of an 'openclaw cron' command is optional and does not require secrets. No unrelated credentials or paths are requested.
Persistence & Privilege
always is false. The skill does not request permanent presence or system-level changes by default and explicitly disallows automatic file writes or cron creation without user approval. Autonomous invocation by the agent is allowed (platform default) but not elevated by the skill itself.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hotspots-weibo
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hotspots-weibo 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of hotspots-weibo skill. - Fetches and displays Weibo hotspot data via `web_fetch` from the OpenClaw API. - Prompts users to optionally enable scheduled (cron) daily updates; provides registration command on confirmation. - Ensures each API call always uses a fresh, minute-precision timestamp; forbids caching or using old data. - Outputs hotspot titles grouped by `source_name`, following strict output and reliability rules. - Clearly reports API errors, status, and missing or malformed data with user-facing messages. - Requires manual user approval for all persistent or scheduled behaviors; never auto-executes cron setup.
元数据
Slug hotspots-weibo
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

微博热点 是什么?

用于拉取并展示微博热点内容(接口为 https://hotspot.api4claw.com/hotspots/platform/微博?timestamp=$TIME_STEMP,返回 JSON 数组)。默认会提示用户创建定时任务(不自动执行),在用户确认后提供 cron 注册命令。适用于用户查询微博热点、服务状... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 121 次。

如何安装 微博热点?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install hotspots-weibo」即可一键安装,无需额外配置。

微博热点 是免费的吗?

是的,微博热点 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

微博热点 支持哪些平台?

微博热点 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 微博热点?

由 xltang(@xltang)开发并维护,当前版本 v0.1.0。

💬 留言讨论