fixed-income-morning-report

Automatically generate a 960×540 bond market morning-report PPT based on a fixed-income daily template (white background + #D52F33 red title bar + Noto Sans SC). Covers 14 sections and outputs a PPTX after page-by-page quality checks.

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 "fixed-income-morning-report" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-47036fe2791b5feddbc75b452175f35bb866a868b9c5a7b17dfe10194bdeaff2. Verify the upstream source and version against https://skillhub.cn/skills/user_37656543/fixed-income-morning-report 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

Automatically generate a 960×540 bond market morning-report PPT based on a fixed-income daily template (white background + #D52F33 red title bar + Noto Sans SC). Covers 14 sections and outputs a PPTX after page-by-page quality checks.

0 Downloads

Introduction source: third_party · user_37656543 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: fixed-income-morning-report
slug: fixed-income-morning-report
displayName: "债市早报"
display_name: "债市早报"
display_name_en: "Bond Market Morning Report"
version: "1.0.0"
author: "Yao ZHOU"
license: MIT
category: professional
description: "基于固定收益日报模板,自动生成 960×540 的债市早报 PPT(白底 + #D52F33 红色标题条 + Noto Sans SC)。覆盖 14 个板块,逐页质检后输出 PPTX。"
agent_created: true

固定收益日报 PPT

把「固定收益早报」定时任务固化为可复用技能:内容规则 + 视觉规范 + 渲染脚本三件套。 任何一次执行都产出同一套版式的 24 页级日报,不需要每次重新描述排版。

何时使用

  • 「做一份固定收益早报 / 债市早报 / 固定收益日报 / 债市日报 / 固收日报」
  • 「按固定收益日报的模板出今天/昨天的报告」
  • 定时任务「固定收益早报」被手工触发重跑

工作流

1. 确定数据口径

references/content-rules.md 第一节。核心:国内用前一人民币债券市场交易日, 海外用距执行时间最近的一次成交行情;休市期国内沿用休市前最后一个交易日并在封面注明。 先把「国内数据基准日 / 海外数据基准日」写下来,后面每一页都用它。

2. 取数

优先 Sumscope / qeubee;不可用则降级到公开权威来源,并如实标注。 取不到的字段宁可换口径重查,也不许留「未披露」「—」。

3. 组织内容

按 content-rules.md 的 14 个板块顺序写;①②③⑤⑩ 至少 2 页且每页正文 ≥400 字。 建议页序:封面 → 目录 → 政经要闻 2 页 → 货币+一级 2–3 页 → 二级 2 页 → 信用舆情 2 页 → 国债期货/利率互换 2 页 → 债券ETF → ABS → 票据 → REITs → A股 → 港股 → 外汇与商品 → 美日国债 → 美股 → 中美经济数据 → 数据来源与说明(约 20–26 页)。

4. 填 deck.json

结构见 references/deck-schema.md,可先复制 examples/deck_sample.json 改。 不要在 JSON 里写坐标,渲染器自己排版;涨跌用 {r|} / {g|} 标记,语义见 content-rules.md 第三节。

5. 渲染

python <skill>/scripts/build_deck.py deck.json 固定收益日报(国内X月X日_海外X月X日).pptx

装不下时脚本会整体降号(最低 0.72 倍)并在终端报告 scale / used / avail; 如果打印 OVERFLOW,说明该页真的塞不下——拆页,不要删正文、不要手改字号。

6. 质检(必做)

python <skill>/scripts/export_png.py <成品.pptx> preview 960 540

逐页看:文字溢出、元素重叠、表头是否红底白字、交替行是否正确、涨跌配色是否写反、页码是否连续。 再跑一遍跨页数据一致性校验(同一个数字前后不能打架)。

硬规则速查

项 规则
画布 / 字体 960×540pt,Noto Sans SC
标题条 红 D52F33,高 52,白色加粗 20pt 标题
表格 表头红底白字;正文行白 / #F8F8F8 交替;无框线
利率类资产 上行绿、下行红
其它资产 涨红、跌绿
图片 一律禁止,只有文字 / 数字 / 表格
日期 每处行情都写具体日期,杜绝「今日」「当日」
单元格 不许留「—」,写实际值或「无发行」

完整参数在 references/visual-spec.md,内容规则在 references/content-rules.md。

踩过的坑

  1. WPS COM 会被并发任务抢:build_deck.py 用 python-pptx 直接生成,不碰 WPS; export_png.py 也故意不 taskkill 掉 wpp.exe,避免杀掉别人正在跑的自动化。
  2. 中文掉字体:必须同时写 latin 与 eastAsia typeface,脚本已处理。
  3. 标题压到日期药丸:标题宽度由药丸左边界反推,脚本已处理;不要手动加宽标题。
  4. 表格填不满/撑爆:列宽用相对权重 cols,行高按折行自动撑开,不要手算。
  5. 源稿常见的排版缺陷:表格与正文重叠、页脚越界、封面标题溢出——本渲染器按度量重排,天然免疫。
  6. 涨跌配色最容易写反:写完后专门过一遍所有 {r|} / {g|},利率类与其它类是相反的。
  7. 行高系数(最容易静默踩到):PPT 的 line_spacing 百分比是乘在字体自然行高上的,不是乘在字号上。 Noto Sans SC 的 (ascent+descent)/em = 1.20,所以 14pt × 1.30 实际行距是 21.8pt 而非 18.2pt。 渲染器早期漏掉这个 1.20,整页高度低估 20%,正文会直接压到页脚上——measure_text 里必须用 line_pitch()(= 字号 × 行距倍数 × LINE_RATIO),不要自己写 size * ls。
  8. 宽度也要按真字体量:nlines() 用 PIL 读 NotoSansSC-VF.ttf 逐 token 量宽,ASCII 词/数字整体不拆, 否则中英混排会低估行数。改字号/换字体后务必重跑 export_png.py 目视复核。
  9. 空药丸:pills 里混进空串会渲染成没有文字的胶囊,取药丸一律走 page_pills() 过滤。

依赖

  • Python 3.10+,python-pptx(构建必需)
  • pywin32(仅导 PNG 质检时需要,本机已有 WPS 12+)

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 面向金融从业者提供标准化债市早报生成能力,解决重复排版痛点
  • 覆盖 14 个专业板块并内置数据口径规则,确保内容一致性
Trigger Precision80/100

Areas to improve

  • trigger_phrases 未显式提炼 Reported severity: Minor

    触发词分散在 '何时使用' 段落,未以列表形式集中呈现

    Recommendation: 建议在 frontmatter 或 skill_body 顶部添加独立的 trigger_phrases 字段,提升匹配效率

Highlights

  • 支持多句式触发(早报/日报/定时任务重跑等),边界清晰
Structure and Standards85/100

Areas to improve

  • 章节层级可优化 Reported severity: Minor

    '何时使用' 建议升级为二级标题并使用加粗或列表强化识别

    Recommendation: 将触发条件以 bullet list 形式置于文档开头,便于用户快速理解适用范围

Highlights

  • 工作流六步法逻辑清晰,含端到端命令示例
  • 硬规则速查表 + 踩坑清单显著降低执行门槛
Execution Reliability80/100

Areas to improve

  • WPS COM 不可用时的 fallback 方案缺失 Reported severity: Minor

    export_png.py 依赖本地 WPS,但未说明无 GUI 环境或 WPS 缺失时的替代方案

    Recommendation: 补充 headless 模式说明或提供基于 python-pptx 的纯文本校验选项

Highlights

  • 明确标注数据来源降级策略,杜绝留空占位符
  • 渲染器内置防溢出机制(自动降字号+拆页),保障输出完整性
Evidence Verifiability (mean of the first four)80/100

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.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.