daily-news-briefing-pro

每日国际热点新闻简报生成器:抓取 BBC/Reuters/Bloomberg 头条,翻译成中文,渲染为竖排 HTML 并截图为 PNG 长图。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "daily-news-briefing-pro":https://skillpi.com/zh/skills/deepskill-e876152a070909a5f902455cc881f2d7c5f3f042c0dcdf7afe6f9f4fdd45f1ce。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3cdd1ed9/daily-news-briefing-pro。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

每日国际热点新闻简报生成器:抓取 BBC/Reuters/Bloomberg 头条,翻译成中文,渲染为竖排 HTML 并截图为 PNG 长图。

0 下载

介绍来源: third_party · user_3cdd1ed9 · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
User asks for today's hot news / 今日热点新闻 / 新闻简报 / daily news brief. User wants a news digest delivered as an image (PNG long image for sharing). User wants to compare headlines across multiple outlets side by side. User asks to "刷新今日新闻" / refresh the daily brief.
软件、账号及付费要求
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: daily-news-briefing-pro
slug: daily-news-briefing-pro
version: 1.0.0
displayName: Daily News Briefing
description: Generate a daily international news brief from BBC, Reuters, and Bloomberg (extensible to AP/CNBC/Al Jazeera/NPR/FT/WSJ). Fetches headlines via RSS, translates to Chinese, renders a styled vertical-stack HTML, and screenshots it to a PNG long image. Use this skill when the user asks for "今日热点新闻", "daily news", "news brief", "新闻简报", "热点新闻", or wants a news digest delivered as an image. Triggers on requests to summarize today's headlines, produce a news infographic, or compare headlines across multiple outlets.
summary: 每日国际热点新闻简报生成器 —— 抓取 BBC/Reuters/Bloomberg 头条,翻译成中文,渲染竖排 HTML 并截图为 PNG 长图。
tags:
  - news
  - briefing
  - bbc
  - reuters
  - bloomberg
  - rss
  - screenshot
license: MIT
homepage: https://skillhub.cn
agent_created: true

Daily News Briefing

Overview

Produce a daily international news brief as a Chinese-language, multi-source, vertical-stack HTML page and a screenshot PNG long image. Sources: BBC (official RSS, with descriptions) + Reuters/Bloomberg (via Google News RSS site-filter, titles only). The pipeline is: fetch → translate → render HTML → screenshot to PNG.

When To Use

  • User asks for today's hot news / 今日热点新闻 / 新闻简报 / daily news brief.
  • User wants a news digest delivered as an image (PNG long image for sharing).
  • User wants to compare headlines across multiple outlets side by side.
  • User asks to "刷新今日新闻" / refresh the daily brief.

Workflow

Step 1 — Fetch raw English headlines

Run the fetcher in dump mode to produce a JSON file for translation:

python <skill-dir>/scripts/fetch_news.py dump --out <output-dir>

This writes news_data.json containing BBC (with descriptions) + Reuters + Bloomberg (titles only). Read this JSON to get the English source content.

If the user wants English output only, run without dump to get a raw English HTML directly:

python <skill-dir>/scripts/fetch_news.py --out <output-dir>

Notes:

  • Output is English. For a Chinese brief, translate the JSON content (Step 2).
  • A single source may occasionally error (network jitter / WinError 10054). Retry once; if one source fails, proceed with the others and note the gap.
  • BBC carries descriptions (d field); Reuters/Bloomberg do not — translate titles only for those.

Step 2 — Translate to Chinese

Read news_data.json, translate each title (and BBC descriptions) into Chinese. Then render the final HTML using the template at assets/news_template.html:

  • Copy the template's <style> block verbatim — it is tuned for screenshot output (500px max-width, hidden scrollbars, bold hierarchy).
  • Write one .col block per source. BBC uses <h2 class="cat"> sub-category headers (🌍 世界 / 💼 商业 / 💻 科技); Reuters/Bloomberg use a single flat <ul>.
  • Use emoji prefixes for categories to aid scanning.
  • De-duplicate near-identical items across sources, but keep cross-source overlap when it reflects different editorial angles (e.g. "伊朗导弹击中霍尔木兹海峡船只" appearing in both Reuters and Bloomberg).
  • Footer: 来源:feeds.bbci.co.uk · news.google.com(site:reuters.com / bloomberg.com)· 中文为机辅翻译整理 · 生成于 <DATE>.

Write the result to news_daily.html in the output directory.

Step 3 — Screenshot HTML to PNG

Render the HTML to a full-page PNG that auto-fits content height (no clipping, no blank space):

node <skill-dir>/scripts/screenshot_full.js <file-url-or-html-path> <out.png> [width]
  • width defaults to 500 (CSS px); height auto-fits to the page's actual scrollHeight.
  • The script uses Microsoft Edge (or Chrome) headless via the Chrome DevTools Protocol (CDP) — zero external npm dependencies (uses Node 22+ built-in WebSocket).
  • It auto-detects the browser at standard Windows install paths. To override, set EDGE_PATH env var.
  • Output example: OK: news_daily.png (500x2650).

Step 4 — Deliver

Present both news_daily.html (for live preview) and news_daily.png (the shareable image) to the user via present_files, with the PNG listed first.

Environment Requirements

  • Python 3.11+ (stdlib only — urllib, xml.etree, json; no pip install needed).
  • Node.js 22+ (for the built-in WebSocket global used by the screenshot script).
  • Microsoft Edge (or Chrome) installed at a standard path on Windows. Set EDGE_PATH to override.
  • Internet access for RSS feeds (BBC + Google News). If behind a proxy, ensure HTTP_PROXY/HTTPS_PROXY are set.

Customization

Add a news source

Edit SOURCES in scripts/fetch_news.py — see references/sources.md for verified outlets and the one-line pattern. Adding a source = one line; the HTML columns auto-stack.

Change layout width

  • HTML: edit .page { max-width: <px> } in the template / generated HTML.
  • Screenshot: pass the width as the 3rd argument to screenshot_full.js.

Common widths: 500 (compact mobile), 750–800 (standard mobile), 1080 (social-share long image).

Change sources / categories

BBC sub-feeds are editable in BBC_FEEDS. Add health, science, entertainment by swapping the path segment. Google News sources are editable in SOURCES.

Resources

  • scripts/fetch_news.py — RSS fetcher; dump mode → JSON, default mode → English HTML.
  • scripts/screenshot_full.js — CDP full-page HTML→PNG screenshot (auto-fit height).
  • assets/news_template.html — Chinese brief layout template (500px, vertical stack, bold hierarchy).
  • references/sources.md — news source configuration reference (verified outlets, add-source pattern, failure troubleshooting).

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 提供多源国际新闻聚合与中文翻译功能,满足用户对新闻简报和可视化分享的需求
  • 支持生成 PNG 长图,便于社交分享,实用性强
触发精准90/100

亮点

  • 触发词覆盖中英文多种表达,边界清晰,能有效匹配用户意图
结构规范90/100

亮点

  • 文档结构完整,步骤清晰,包含端到端示例和环境要求说明
执行可靠85/100

亮点

  • 工具来源明确,参数说明清晰,覆盖主要异常处理机制
证据可验 (前四项均值)88/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 安装或获取外部依赖

    使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。

    主文档提及 · 第 87 行
  • 截图或屏幕采集

    只采集明确选择的窗口或区域,避开密码、客户资料等敏感信息,分享前再次检查。

    主文档提及 · 第 112 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • skillhub.cn

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。