← 返回 Skills 市场
271
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install dailynews
功能描述
每日新闻获取技能。通过 API 获取每日新闻摘要和详情,支持按日期查询、热点新闻排行、新闻详情阅读。
使用说明 (SKILL.md)
每日新闻 Skill
通过 API 获取每日新闻,支持新闻列表查询、热点新闻、新闻详情阅读等功能。
API 接口
1. 获取每日新闻列表
接口地址:
https://api.cjiot.cc/api/v1/daily?date={YYYY-MM-DD}
参数说明:
date- 日期,格式:YYYY-MM-DD(如:2026-03-10)- 如果不传日期,默认获取最新日期的新闻
返回结构:
{
"code": 200,
"data": {
"date": "2026-03-10",
"title": "3 月 10 日日知录 - 交通部约谈国际航运巨头",
"article_count": 17,
"articles": [
{
"article_id": 8533,
"title": "交通部约谈两大国际航运巨头:直指运价暴涨和乱收费",
"summary": "2026 年 3 月 9 日交通运输部就国际航运经营行为...",
"heat": 93.0,
"cover_image": "https://...",
"category_id": 2,
"is_pinned": 0,
"sort_order": 0
}
]
},
"message": "success"
}
2. 获取新闻详情
接口地址:
https://api.cjiot.cc/api/v1/articles/{article_id}
参数说明:
article_id- 文章 ID(从新闻列表中获取)
返回结构:
{
"code": 200,
"data": {
"article_id": 8533,
"title": "交通部约谈两大国际航运巨头:直指运价暴涨和乱收费",
"category_name": "时政",
"heat": 93.0,
"cover_image": "https://...",
"summary": "...",
"content": {
"story": "\x3Cp>新闻正文内容...\x3C/p>",
"impact": "\x3Cp>影响分析...\x3C/p>",
"heat": 93,
"type": "2"
},
"publish_time": "2026-03-10T15:05:49"
},
"message": "success"
}
触发条件
用户表达了以下意图之一:
- 查询今日新闻、每日新闻、新闻摘要
- 查看某日期的新闻(如"查看 3 月 10 日的新闻")
- 获取热点新闻、热门新闻
- 阅读具体新闻详情(如"看第 3 条新闻"、"读一下这条新闻")
- 包含"新闻"、"日报"、"日知录"、"头条"等关键词
使用场景
场景一:获取今日新闻列表
用户输入示例:
- "今天有什么新闻"
- "查看每日新闻"
- "来份今日日报"
处理步骤:
- 获取当前日期(格式:YYYY-MM-DD)
- 调用 API:
curl -s "https://api.cjiot.cc/api/v1/daily?date={当前日期}" - 解析返回的新闻列表
- 按热度排序展示前 10 条新闻摘要
回复模板:
📰 {日期} 每日新闻摘要
共 {article_count} 条新闻,以下是热点 TOP10:
🔥 {热度} {标题}
{摘要前 50 字}...
🔥 {热度} {标题}
{摘要前 50 字}...
...
💡 回复"新闻 1"、"新闻 2"等查看具体新闻详情
场景二:获取指定日期新闻
用户输入示例:
- "查看 3 月 10 日的新闻"
- "前天的新闻"
- "昨天的日报"
处理步骤:
- 解析用户输入的日期
- 调用 API:
curl -s "https://api.cjiot.cc/api/v1/daily?date={日期}" - 解析并展示新闻列表
回复模板:
📰 {日期} 每日新闻摘要
共 {article_count} 条新闻:
1️⃣ 🔥 {热度} {标题}
2️⃣ 🔥 {热度} {标题}
...
💡 回复"新闻 1"、"新闻 2"等查看具体新闻详情
场景三:查看新闻详情
用户输入示例:
- "看新闻 1"
- "读一下第 3 条"
- "第一条新闻详情"
处理步骤:
- 从上下文获取当前新闻列表
- 提取用户指定的文章 ID
- 调用 API:
curl -s "https://api.cjiot.cc/api/v1/articles/{article_id}" - 解析并展示新闻详情(标题、分类、热度、正文)
回复模板:
📄 {标题}
📁 分类:{category_name}
🔥 热度:{heat}
🕐 发布时间:{publish_time}
📝 新闻摘要:
{summary}
📖 详细内容:
{content.story 去除 HTML 标签后的文本}
💡 影响分析:
{content.impact 去除 HTML 标签后的文本}
场景四:按分类查看新闻
用户输入示例:
- "看时政新闻"
- "科技类新闻"
- "财经新闻有哪些"
处理步骤:
- 先获取当日新闻列表
- 根据分类 ID 筛选新闻(category_id)
- 展示该分类下的新闻
分类参考:
- 1 - 娱乐
- 2 - 时政
- 3 - 社会
- 4 - 财经
- 5 - 科技
- 7 - 体育
脚本工具
获取新闻列表
node scripts/get-daily.js [date]
示例:
# 获取今日新闻
node scripts/get-daily.js
# 获取指定日期新闻
node scripts/get-daily.js 2026-03-10
获取新闻详情
node scripts/get-article.js \x3Carticle_id>
示例:
node scripts/get-article.js 8533
注意事项
- 日期格式:必须使用 YYYY-MM-DD 格式(如:2026-03-10)
- API 限制:注意 API 调用频率,避免频繁请求
- HTML 处理:新闻详情中的 content.story 和 content.impact 包含 HTML 标签,展示时需要去除或转换
- 热度排序:新闻列表默认按 sort_order 排序,可按 heat 字段重新排序展示热点新闻
- 上下文保持:查看新闻详情时需要保持新闻列表上下文,以便用户连续查看多条新闻
- 错误处理:API 返回 code 不为 200 时,提示用户网络错误或日期无数据
相关链接
- API 文档:https://api.cjiot.cc
- 数据源:共晓天下日知录每日新闻
安全使用建议
This skill appears coherent and minimal: it fetches news from the third‑party endpoint api.cjiot.cc using https. Before installing, consider whether you trust that external provider (requests will reveal what articles/dates users ask about and the agent's IP address); verify the API's availability and privacy/terms if that matters. If you require offline or self-hosted sources, this skill does not provide them. Otherwise the included Node scripts are simple and do not access local secrets or perform unexpected actions.
功能分析
Type: OpenClaw Skill
Name: dailynews
Version: 1.0.0
The skill bundle provides a straightforward implementation for fetching daily news and article details from a specific API (api.cjiot.cc). The Node.js scripts (get-daily.js and get-article.js) use standard libraries, include basic input validation for dates, and perform no high-risk operations such as shell execution, data exfiltration, or persistence. The instructions in SKILL.md are consistent with the stated purpose and do not contain any malicious prompt injection attempts.
能力评估
Purpose & Capability
Name/description claim to fetch daily news from an API; included scripts and SKILL.md call only https://api.cjiot.cc and implement list/detail retrieval, which is consistent with the stated purpose. Required binaries (node, curl) are reasonable for this functionality.
Instruction Scope
Runtime instructions and the two Node scripts only perform HTTPS GET requests to api.cjiot.cc, parse JSON, and format output. They do not read local files, access unrelated environment variables, or transmit data to other endpoints. They require keeping a local context for list→detail navigation, which is documented.
Install Mechanism
No install spec is provided (instruction-only plus small included scripts). This minimizes risk—scripts are plain Node code using the built-in https module and are not downloaded from arbitrary URLs or archives.
Credentials
The skill lists no required environment variables or credentials. It does not request access to unrelated services or secrets. The absence of credentials is appropriate for a public-news API client.
Persistence & Privilege
The skill is not marked always:true and does not request persistent system-wide privileges or modify other skills. Autonomous invocation is allowed (platform default) but is not combined with elevated privileges or secret access.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dailynews - 安装完成后,直接呼叫该 Skill 的名称或使用
/dailynews触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
每日新闻技能(daily-news skill)初始版本发布。
通过 API 提供每日新闻摘要和详细内容。
支持按日期查询新闻、热门新闻排行以及阅读文章详情。
允许用户按类别筛选新闻,并查看特定日期的新闻内容。
内置新闻列表和文章详情的回复模板。
提供命令行脚本,用于获取新闻列表和文章详情。
元数据
常见问题
每日新闻 是什么?
每日新闻获取技能。通过 API 获取每日新闻摘要和详情,支持按日期查询、热点新闻排行、新闻详情阅读。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 271 次。
如何安装 每日新闻?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dailynews」即可一键安装,无需额外配置。
每日新闻 是免费的吗?
是的,每日新闻 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
每日新闻 支持哪些平台?
每日新闻 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 每日新闻?
由 Victoria(@vic240821)开发并维护,当前版本 v1.0.0。
推荐 Skills