← Back to Skills Marketplace
jihefanlan-art

dabai/finance-news-brief

by jihefanlan-art · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
283
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install finance-news-brief
Description
搜集过去 24 小时全球重要财经新闻,生成中文简报,输出为 Markdown 和正式 PDF 文件(含封面)。 覆盖全球宏观(美联储、汇率、大宗商品)、美股、港股、A股四大板块。 当用户提到"财经简报"、"财经新闻"、"市场资讯"、"今日行情"、"最新财经"、"生成财经报告" 等关键词时,必须使用此 skill。...
README (SKILL.md)

财经新闻简报生成器

目标

搜集过去 24 小时内全球重要财经新闻,整理为结构清晰的中文简报,并输出为 Markdown 文档和带封面的正式 PDF 文件。


第一步:搜集新闻

使用 WebSearch 工具,依次执行以下搜索。每次搜索时,在关键词后加上当天日期,确保结果是最新的。

搜索清单(按板块执行)

宏观经济 & 央行政策

  • Federal Reserve interest rate decision 2024
  • 美联储 货币政策 最新
  • global inflation GDP economic outlook

汇率 & 大宗商品

  • USD CNY exchange rate 美元 人民币 汇率
  • crude oil gold price commodity market
  • 大宗商品 原油 黄金 价格

美股

  • US stock market S&P 500 Nasdaq today
  • 美股 道琼斯 纳斯达克 最新

港股

  • Hong Kong stock market Hang Seng Index
  • 港股 恒生指数 最新行情

A股

  • A股 上证指数 沪深 最新
  • 中国股市 A股 市场动向

优先信源(按可信度排序)

  1. 英文财经媒体:Bloomberg、Reuters、Financial Times、Wall Street Journal、CNBC
  2. 中文财经媒体:财新网、第一财经、21世纪经济报道、证券时报、上海证券报、东方财富

搜到原始信息后,判断每条新闻的重要性:影响面广、数据具体、来源权威的优先选取。每个板块提取 3-5 条最重要的新闻。


第二步:整理内容

将搜集到的信息整理成以下结构。每条新闻写成一段简明中文摘要(100-200 字),包含:

  • 核心事件或数据
  • 市场影响或分析人士观点(如有)
  • 带超链接的信息来源(必须可点击跳转原文)

来源格式要求:每个板块结尾使用以下格式,确保读者能点击查看原文:

*来源:[文章标题 — 媒体名称](原文URL) · [文章标题 — 媒体名称](原文URL)*

这很重要——读者需要能够核实信息、查看完整报道。WebSearch 返回的结果中包含完整 URL,务必将其嵌入 Markdown 链接,不要只写媒体名称。

报告结构模板

# 全球财经简报
**报告日期**:YYYY年MM月DD日
**覆盖时段**:过去 24 小时
**数据来源**:Bloomberg、Reuters、财新等主流财经媒体

---

## 执行摘要

[3-4 句话总结当天最重要的 2-3 个市场主题]

---

## 一、全球宏观 & 央行动态

### 1.1 美联储 & 货币政策
[摘要]
*来源:[文章标题 — Reuters](https://reuters.com/...) · [文章标题 — Bloomberg](https://bloomberg.com/...)*

### 1.2 汇率市场
[摘要]
*来源:[文章标题 — 媒体名](URL)*

### 1.3 大宗商品
[摘要]
*来源:[文章标题 — 媒体名](URL)*

---

## 二、美股市场

### 2.1 [新闻标题]
[摘要]
*来源:[文章标题 — 媒体名](URL)*

(每个板块 3-5 条,每条均须附可点击的原文链接)

---

## 三、港股市场

...

---

## 四、A 股市场

...

---

## 风险提示

本简报内容仅供参考,不构成投资建议。市场有风险,投资需谨慎。

第三步:输出 Markdown 文件

将完整报告保存为 Markdown 文件:

  • 文件名格式:finance_brief_YYYYMMDD.md
  • 保存位置:用户当前工作目录,或用户指定目录

第四步:生成 PDF

使用 Glob 工具搜索 **/finance-news-brief/scripts/generate_pdf.py 找到脚本路径,然后运行:

python \x3Cgenerate_pdf.py的完整路径> \
  --input \x3Cmarkdown文件路径> \
  --output \x3Cpdf输出路径>

脚本会自动:

  1. 检测并安装所需 Python 依赖(markdownweasyprint
  2. 生成封面页(含标题、日期、免责声明)
  3. 应用正式排版样式(中文字体、页眉页脚、页码)
  4. 输出 PDF 文件

PDF 文件名格式:finance_brief_YYYYMMDD.pdf


完成后告知用户

输出完成后,告知用户:

  • Markdown 文件路径
  • PDF 文件路径
  • 本次简报覆盖的主要新闻数量和板块
  • 如有搜索失败的板块,说明原因

注意事项

  • 时效性优先:确保所有新闻都来自过去 24 小时,过时内容不采用
  • 中立客观:摘要中不加入主观判断,忠实呈现原始信息
  • 数据准确:涉及价格、涨跌幅等数字时,务必如实引用,不要估算
  • 来源链接必填:每条新闻必须附上可点击的原文超链接,格式为 [标题 — 媒体名](URL),直接使用 WebSearch 返回的 URL,不要省略或伪造
  • 如某板块搜索结果不足(不足 2 条有效新闻),在该板块注明"暂无重要动态"
Usage Guidance
This skill appears coherent and implements exactly what it advertises: collect news via WebSearch, produce a Markdown brief with links, and convert it to a styled PDF using the included script. Before installing/using it, consider: (1) the bundled Python script will attempt to pip-install missing packages (network access to PyPI) — run it in a virtualenv or isolated environment if you don't want packages added to your system Python; (2) the script launches a headless Chrome and opens a localhost debug port — ensure Chrome is installed and be comfortable with a local process briefly listening on 127.0.0.1; (3) review the generate_pdf.py source (included) if you have workplace policies about running third-party scripts. If you want stronger isolation, execute the PDF step manually or inside a container/VM.
Capability Analysis
Type: OpenClaw Skill Name: finance-news-brief Version: 1.0.0 The skill exhibits high-risk behaviors including dynamic Python package installation (pip install) and the execution of a headless browser (Chrome/Chromium) with the '--no-sandbox' flag in 'scripts/generate_pdf.py'. It also launches a local HTTP server and uses a custom WebSocket implementation to communicate with the browser's DevTools Protocol for PDF generation. While these actions support the stated goal of generating financial reports, the lack of input sanitization for web-searched content before rendering it in a browser creates a vulnerability for XSS-based attacks, such as local file disclosure or SSRF.
Capability Assessment
Purpose & Capability
The skill says it will gather recent financial news and produce Markdown + PDF. The SKILL.md instructs the agent to use a WebSearch tool to collect links and create a Markdown report, and the repo includes a PDF-generation script and HTML template to render the Markdown. The presence of the PDF-generation script and template is appropriate and proportionate.
Instruction Scope
SKILL.md confines runtime actions to using a WebSearch tool to find news, assemble summaries with source links, save a Markdown file, and run the included Python script to generate a PDF. It does not instruct reading unrelated system files, asking for credentials, or sending data to external endpoints beyond WebSearch results. It does instruct running local commands (python script) and using a WebSearch tool, which matches the skill's purpose.
Install Mechanism
No external install spec is declared (instruction-only), but the bundled scripts/generate_pdf.py will attempt to pip-install Python packages (e.g., 'markdown', and later the user's environment may need weasyprint if used) at runtime if missing. That implies network access to PyPI and execution of installer code in the user's environment. The script also launches a local headless Chrome and implements a raw DevTools WebSocket handshake to control printing. These behaviors are functional for PDF generation but worth noting because they perform runtime package installation and spawn a browser process.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. The actions in SKILL.md and the script do not require secrets. Runtime operations are limited to local file writes, starting a localhost HTTP server, launching Chrome, and contacting localhost for DevTools — all proportionate to PDF generation.
Persistence & Privilege
The skill does not request persistent/always-on presence and does not modify other skills or system-wide agent settings. It runs only when invoked and writes output files to user-specified or current directories. It launches transient processes (HTTP server, Chrome) without claiming elevated privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install finance-news-brief
  3. After installation, invoke the skill by name or use /finance-news-brief
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
finance-news-brief 1.0.0 Changelog Initial release, enabling fully automated collection and briefing generation of important global financial news over the past 24 hours. Supports generating structured Chinese financial briefings covering sections such as Macro & Central Banks, U.S. Equities, Hong Kong Equities, and A-shares. Automatically outputs a Markdown file with original source hyperlinks and a formal PDF report (with cover page). Clearly defines section categorization, data source selection, summary format, and output file naming conventions. Supports local or specified directory storage and one-click PDF generation. If news volume is insufficient, the system provides timely notifications to ensure accuracy, neutrality, and timeliness of information. - 初始版本发布,实现 24 小时全球重要财经新闻的全自动搜集与简报生成。 - 支持生成结构化中文财经简报,涵盖宏观&央行、美股、港股、A股等板块。 - 自动输出带原文来源超链接的 Markdown 文件和正式 PDF 报告(含封面)。 - 明确板块分类、数据库选择、摘要格式和输出文件命名规范。 - 支持本地或指定目录文件保存及一键 PDF 生成。 - 如新闻不足及时提示,保证信息准确、中立、时效。
Metadata
Slug finance-news-brief
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is dabai/finance-news-brief?

搜集过去 24 小时全球重要财经新闻,生成中文简报,输出为 Markdown 和正式 PDF 文件(含封面)。 覆盖全球宏观(美联储、汇率、大宗商品)、美股、港股、A股四大板块。 当用户提到"财经简报"、"财经新闻"、"市场资讯"、"今日行情"、"最新财经"、"生成财经报告" 等关键词时,必须使用此 skill。... It is an AI Agent Skill for Claude Code / OpenClaw, with 283 downloads so far.

How do I install dabai/finance-news-brief?

Run "/install finance-news-brief" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is dabai/finance-news-brief free?

Yes, dabai/finance-news-brief is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does dabai/finance-news-brief support?

dabai/finance-news-brief is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created dabai/finance-news-brief?

It is built and maintained by jihefanlan-art (@jihefanlan-art); the current version is v1.0.0.

💬 Comments