daily-news-briefing-pro
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "daily-news-briefing-pro" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e876152a070909a5f902455cc881f2d7c5f3f042c0dcdf7afe6f9f4fdd45f1ce. Verify the upstream source and version against https://skillhub.cn/skills/user_3cdd1ed9/daily-news-briefing-pro before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Daily international news briefing generator: fetches headlines from BBC/Reuters/Bloomberg, translates them into Chinese, renders vertical HTML, and captures a PNG long-image screenshot.
Introduction source: third_party · user_3cdd1ed9 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- 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.
- Audience
- Translation pending; see source documentation.
- Software, accounts and paid services
- **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.
- Testing
- Not tested
Browse files
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: trueDaily 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 (
dfield); 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
.colblock 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]
widthdefaults to 500 (CSS px); height auto-fits to the page's actualscrollHeight.- 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_PATHenv 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
WebSocketglobal used by the screenshot script). - Microsoft Edge (or Chrome) installed at a standard path on Windows. Set
EDGE_PATHto override. - Internet access for RSS feeds (BBC + Google News). If behind a proxy, ensure
HTTP_PROXY/HTTPS_PROXYare 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;dumpmode → 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).
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供多源国际新闻聚合与中文翻译功能,满足用户对新闻简报和可视化分享的需求
- 支持生成 PNG 长图,便于社交分享,实用性强
Highlights
- 触发词覆盖中英文多种表达,边界清晰,能有效匹配用户意图
Highlights
- 文档结构完整,步骤清晰,包含端到端示例和环境要求说明
Highlights
- 工具来源明确,参数说明清晰,覆盖主要异常处理机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 87 -
Screenshots or screen capture
Capture only a selected window or region. Avoid secrets and private records and review captures before sharing.
Mentioned in main document · lines 112
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- skillhub.cn
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
**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.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.