一键导入
rss-daily-report
从 OPML 格式的 RSS 订阅源抓取 24 小时内更新的文章,访问原文获取完整内容,然后由 Agent 生成 300-500 字中文摘要、分类和编者观察,最终输出格式化的 Markdown 日报。适用于需要从 RSS 订阅源生成高质量中文日报的场景。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
从 OPML 格式的 RSS 订阅源抓取 24 小时内更新的文章,访问原文获取完整内容,然后由 Agent 生成 300-500 字中文摘要、分类和编者观察,最终输出格式化的 Markdown 日报。适用于需要从 RSS 订阅源生成高质量中文日报的场景。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Validate and publish Bubble daily diary entries to the bubble-build Git repository on the Mac mini. Use when Bubble or another agent needs to turn a day's diary into a JSON entry, enforce the Bubble entry contract, and commit/push it to entries/YYYY/YYYY-MM-DD.json in bubble-build.
将 Markdown 格式的 RSS 日报转换为适合小红书/小绿书的 3:4 比例网页卡片。采用杂志风印刷质感设计,支持合欢红+银白配色、噪点滤镜、深色模式穿插等视觉效果。集成 Playwright 自动截图,一键生成 PNG 图片。
| name | rss-daily-report |
| description | 从 OPML 格式的 RSS 订阅源抓取 24 小时内更新的文章,访问原文获取完整内容,然后由 Agent 生成 300-500 字中文摘要、分类和编者观察,最终输出格式化的 Markdown 日报。适用于需要从 RSS 订阅源生成高质量中文日报的场景。 |
从 OPML 文件定义的 RSS 订阅源抓取更新,访问原文获取完整内容,由 Agent 生成中文摘要和分类,输出结构化 Markdown 日报。
skill 加载时会显示 Base directory for this skill: /path/to/skill,将该路径存为变量供后续所有命令使用:
SKILL_DIR="<skill 加载时显示的 Base directory 路径>"
# 例:SKILL_DIR="/Users/void/.claude/skills/rss-daily-report"
后续所有脚本调用均使用 $SKILL_DIR/scripts/generate_report.py,不得硬编码绝对路径。
OPML → RSS 抓取 → 时效过滤 → 原文抓取 → 内容过滤 → [评分筛选] → 摘要生成 → 双格式输出
{日期}_articles_raw.json{日期}_articles_filtered.json{日期}_articles_top10.jsonagent_result.json{日期} AI热点日报.md 和 {日期} AI热点日报.json{日期} AI热点日报.md (例: 2026-02-17 AI热点日报.md)# YYYY-MM-DD - AI热点日报> AI热点信源资讯汇总 | 共 N 条更新字数要求:
内容要求:
分类选择(必须为每篇文章选择一项): AI、编程、Web、开源、安全、产品、创业、数据、其他
编者观察要求(100-200 字):
本 skill 内置了 RSS 数据源,无需额外指定 OPML 文件即可运行。内置数据源位于 assets/ 目录下。
如需使用自定义 OPML 文件,可在 fetch 命令后指定路径。
使用内置数据源(推荐):
uvx --with feedparser python "$SKILL_DIR/scripts/generate_report.py" fetch
选项:
--hours 48: 抓取 48 小时内的文章--max-articles 20: 最多处理 20 篇文章(默认)-o output.json: 指定输出文件名输出:{日期}_articles_raw.json
uvx --with feedparser python "$SKILL_DIR/scripts/generate_report.py" filter {日期}_articles_raw.json
选项:
--min-length 500: 最小内容长度(默认 500 字符)-o output.json: 指定输出文件名输出:{日期}_articles_filtered.json,并提示是否需要评分筛选。
若过滤后文章数仍 > 10,Agent 读取 filtered JSON,对每篇文章按以下维度评分(各 1-10 分):
取综合分最高的 10 篇,保存为:
{
"date": "2026-02-18",
"article_count": 10,
"articles": [
{
"title": "文章标题",
"link": "原文链接",
"source": "来源",
"published": "发布时间",
"content": "正文内容",
"score": 27,
"score_detail": {"技术深度": 9, "信息价值": 9, "话题热度": 9}
}
]
}
文件名:{日期}_articles_top10.json
Agent 读取 filtered/top10 JSON(取文章数较少的那个),为每篇文章生成摘要。
重要:每次只处理 3-5 篇文章,避免上下文过长导致超时。将结果合并后保存为 agent_result.json:
{
"articles": [
{
"title": "原文标题",
"category": "AI",
"summary": "300-500字中文摘要...",
"link": "原文链接"
}
],
"editor_note": "编者观察内容(100-200字)..."
}
uvx --with feedparser python "$SKILL_DIR/scripts/generate_report.py" generate \
{日期}_articles_filtered.json agent_result.json \
-o "{日期} AI热点日报.md"
同时输出:
{日期} AI热点日报.md — Markdown 格式{日期} AI热点日报.json — JSON 格式(自动生成,与 .md 同名)fetch: 抓取 RSS 和文章全文
uvx --with feedparser python "$SKILL_DIR/scripts/generate_report.py" fetch [opml_path] [--hours 24] [--max-articles 20]
filter: 过滤内容过短的文章
uvx --with feedparser python "$SKILL_DIR/scripts/generate_report.py" filter {日期}_articles_raw.json [--min-length 500]
generate: 基于 Agent 处理结果生成日报(同时输出 .md 和 .json)
uvx --with feedparser python "$SKILL_DIR/scripts/generate_report.py" generate articles_filtered.json agent_result.json [-o output.md]
文章全文抓取工具:
# 测试抓取单篇文章
python "$SKILL_DIR/scripts/fetch_article.py" "https://example.com/article"
格式验证器:
python "$SKILL_DIR/scripts/validate_report.py" "2026-02-18 AI热点日报.md"
验证项:
# 0. 初始化路径变量(从 skill 加载时显示的 Base directory 获取)
SKILL_DIR="/Users/void/.claude/skills/rss-daily-report" # 替换为实际路径
# 1. 抓取文章数据
uvx --with feedparser python "$SKILL_DIR/scripts/generate_report.py" fetch
# 输出: 2026-02-18_articles_raw.json
# 2. 过滤短文章
uvx --with feedparser python "$SKILL_DIR/scripts/generate_report.py" filter 2026-02-18_articles_raw.json
# 输出: 2026-02-18_articles_filtered.json
# 若文章数 > 10,Agent 进行评分筛选,输出: 2026-02-18_articles_top10.json
# 3. Agent 生成摘要(每次处理 3-5 篇,分批完成)
# 保存为: agent_result.json
# 4. 生成最终日报
uvx --with feedparser python "$SKILL_DIR/scripts/generate_report.py" generate \
2026-02-18_articles_filtered.json agent_result.json \
-o "2026-02-18 AI热点日报.md"
# 同时输出: 2026-02-18 AI热点日报.md 和 2026-02-18 AI热点日报.json
# 5. 验证格式
uvx --with feedparser python "$SKILL_DIR/scripts/validate_report.py" "2026-02-18 AI热点日报.md"
uvx --with feedparser python scripts/validate_report.py "2026-02-18 AI热点日报.md"
## 依赖安装
```bash
# 使用 uv(推荐)
uvx --with feedparser python scripts/generate_report.py fetch
# 可选:安装 trafilatura 以获得更好的正文提取效果
uv pip install trafilatura
json.dump() 输出,示例:import json
articles = [{"title": "...", "summary": "含「引号」的摘要", "category": "AI", "link": "..."}]
data = {"articles": articles, "editor_note": "..."}
with open("agent_result.json", "w", encoding="utf-8") as f:
json.dump(data, f, ensure_ascii=False, indent=2)