html-report-zh
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 "html-report-zh" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7224a4954c697a948d209e610cc715104bfb6d7ea7dc51de4769637577ca2cc4. Verify the upstream source and version against https://skillhub.cn/skills/user_ccf3b41a/html-report-zh 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
Turn any content into a self-contained, well-formatted HTML report that can be previewed and exported to PDF/PPT. Domain-agnostic—suitable for business proposals, technical analyses, project postmortems, and research reports. The process produces an HTML preview first for review, then exports the final PDF or PPT as needed. Use when you request “produce an HTML first, then convert to PDF/PPT.”
Introduction source: third_party · user_ccf3b41a · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: html-report
description: 把任意内容变成排版精美、可预览、可导出 PDF/PPT 的自包含 HTML 报告。领域无关——商业方案、技术分析、项目复盘、调研报告都能用。先产出 HTML 交你预览确认,再按需要导出最终交付物。当你说"出一份报告/方案/复盘,先做 HTML 给我看,再转 PDF/PPT"时使用。
version: 2.1.0
category: 文档生成
platforms:
- WorkBuddy
tags:
- 报告
- 汇报
- 方案
- 复盘
- HTML
- PDF
- PPT
- 文档导出
- 美观
agent_created: truehtml-report — 通用美观报告生成引擎(L0-L3 分层流水线)
本技能只做"呈现与交付"一件事,但把它做到可复用、可控、视觉一致。内部按 L0-L3 分层流水线(输入 → 版式 → 生成 → 审核)组织,物理分层(见下方文件结构与 ARCHITECTURE.md)。
L0 输入 ──▶ L1 版式 ──▶ L2 生成 ──▶ L3 审核(人闸 + 视觉校验)
原料层 结构层 产出层 门禁层
本技能不负责替用户决定"讲什么、什么结构"。 内容主题与章节由需求决定(必要时先调用分析技能或向用户澄清)。本技能是"呈现与交付层",不是"分析层"。
文件结构(物理分层 = L0-L3)
html-report/
├── SKILL.md # 编排层(本文件):触发 + 流程 + 令牌锁 + 指针
├── ARCHITECTURE.md # L0-L3 分层说明 + 检查点
└── references/
├── l0-input.md # L0 输入:输入素材规范(来源/主题/结构化 citing)
├── l1-aesthetic-template.html # L1 版式:视觉版式(HTML 模板,设计令牌在 :root)
├── l1-layout-commercial.md # L1 版式:结构方法论示例(市场驱动主线,仅灵感)
├── l2-export-guide.md # L2 生成:导出执行(PDF / PPT 路径与命令)
├── l2-pptx-token-mirror.py # L2 生成:PPT 令牌镜像脚手架(python-pptx)
└── l3-publish-pack.md # L3 审核:上架包装 + 检查清单 + 免费→付费软钩子
各层细节见对应文件;下方只给编排视角。
设计令牌:HTML 与 PPT 必须同源(L1 视觉锁)
"PPT 像 HTML" 的关键是两者用同一套令牌。改主题只改 HTML 的 :root,PPT 端照表取色。完整表见 ARCHITECTURE.md 与 l1-aesthetic-template.html。
| 语义 | HTML 变量 | PPT 十六进制 |
|---|---|---|
| 正文主色 | --ink #1a2332 |
0x1A2332 |
| 正文次级 | --ink-soft #3d4a5c |
0x3D4A5C |
| 弱化/说明 | --muted #6b7686 |
0x6B7686 |
| 描边线 | --line #e3e8ef |
0xE3E8EF |
| 卡片底 | --bg-soft #f6f8fb |
0xF6F8FB |
| 标题海军蓝 | --navy #10233f |
0x10233F |
| 主强调钢蓝 | --steel #2c6cb0 |
0x2C6CB0 |
| 钢蓝亮 | --steel-bright #3b82d6 |
0x3B82D6 |
| 琥珀强调 | --accent #e08a3c |
0xE08A3C |
| 琥珀底 | --accent-soft #fbf1e6 |
0xFBF1E6 |
| 绿/红(风险) | --green #2f9e6f / --red #c8503e |
0x2F9E6F / 0xC8503E |
| 封面渐变 | #0c1d36 → #16335c → #1b3f72 |
0x0C1D36 → 0x1B3F72 |
| 字体 | "PingFang SC","Microsoft YaHei",… |
Microsoft YaHei(同时写 a:ea) |
编排流程(L0 → L3)
- L0 输入:确认输入材料是否齐、事实是否有来源(见
l0-input.md)。缺材料先去做分析,本技能只接管呈现。 - L1 版式:复制
l1-aesthetic-template.html作底,锁定视觉系统(令牌在:root);结构参考l1-layout-commercial.md(仅灵感,不强制)。 - L2 生成:按蓝图填模板生成自包含美观 HTML;用户经 L3 闸门确认后,按
l2-export-guide.md镜像导出 PDF / PPT(PPT 用l2-pptx-token-mirror.py镜像令牌)。 - L3 审核:
present_files交用户预览、明确停下等确认;视觉校验 + 导出前检查(见l3-publish-pack.md);通过后在对话末尾附免费→付费软钩子(不进报告正文)。
硬性规范(L1 视觉锁,导出前必查):
- HTML 必须含
*{-webkit-print-color-adjust:exact;print-color-adjust:exact;}—— 否则深色封面在 PDF 里变白底白字整页不可见。 - PDF 导出一律用 Playwright
page.pdf(print_background=True)(见l2-export-guide.md)。不要用 Edge--print-to-pdf当主力:它不打印 CSS 背景,渐变封面会变白底白字。中文源路径需先复制成 ASCII 临时名再urllib.parse.quote编码file://。 - 字体用系统栈
"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;图表用内联 SVG(不依赖字体)。 @page { size: A4; margin: 18mm; };单一自包含 .html(无 CDN、无外链)。- PPT 端除
run.font.name外必须同时写a:ea东亚字体,否则中文变方框。
导出 PDF / PPT(L2 交付物,已并入本技能)
当用户说"把报告导出为 PDF/PPT""导出报告""转成 PDF/PPT"时,由本技能直接完成,无需再调独立导出技能(原 html-report-export 已合并退役)。
- PDF:一律用 Playwright
page.pdf(print_background=True)(带背景,含渐变封面)。中文源路径先shutil.copy成 ASCII 临时名 →urllib.parse.quote编码file://→ 输出后再os.replace成中文名。详见references/l2-export-guide.md。 - PPT:复用
references/l2-pptx-token-mirror.py脚手架(python-pptx 镜像 HTML:root令牌,PPT 与 HTML 同色系;set_cell已容错空表头)。 - 关键避坑(完整版见
l2-export-guide.md末尾「导出常见坑」):① PDF 勿用 Edge--print-to-pdf(丢背景);② 路径 ASCII 中转;③ PPT 空表头容错;④ 验证取全页统计;⑤ 工具开头预检。
输出物
<报告名>.html—— L2 产物,交用户预览(L3 闸门)。<报告名>.pdf/<报告名>.pptx—— L3 确认后 L2 导出产物。
适用
- "出一份报告/方案/复盘,先做 HTML 给我看"
- "把这个内容做成好看的页面,再转 PDF"
- 任何需要"美观呈现 + 人工审核 + 多格式导出"的文档场景
不适用
- 纯分析/调研(本技能不做内容,先做分析再交过来)
- 需要复杂交互的 Web 应用
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 支持多领域文档生成(商业方案、技术分析、项目复盘等),适用场景广泛
- 提供 HTML 预览 + PDF/PPT 导出完整工作流,显著提升文档交付效率
Highlights
- 触发描述清晰完整,覆盖'出一份报告''转 PDF/PPT'等典型用户表达
- 边界明确,区分了内容生成与呈现交付的职责
Highlights
- L0-L3 分层流水线结构清晰,流程完整
- 包含设计令牌规范、导出避坑指南等工程化细节
- frontmatter 完整,文档自包含性强
Areas to improve
-
引用文件缺失 Reported severity: Minor
SKILL.md 中引用了 references/ 目录下的多个文件(如 ARCHITECTURE.md、l0-input.md、l1-aesthetic-template.html 等),但实际传入内容仅包含 SKILL.md,其余文件缺失。
Recommendation: 请补全所有被引用的文件,或调整 SKILL.md 中的引用说明以避免误导用户。
Highlights
- 导出流程严谨,明确指定 Playwright 带背景打印,避免常见 PDF 背景丢失问题
- PPT 导出实现令牌镜像,确保 HTML 与 PPT 视觉一致性
- L3 审核闸门机制保障交付质量
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.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
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.