Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add huangrichao2020/pretty-skills --skill huashu-book-pdf-skillgit clone --depth 1 https://github.com/huangrichao2020/pretty-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/huangrichao2020/pretty-skills/huashu-book-pdf-skill)<a href="https://agentmods.dev/skills/huangrichao2020/pretty-skills/huashu-book-pdf-skill"><img src="https://agentmods.dev/badge/skills/huangrichao2020/pretty-skills/huashu-book-pdf-skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/huangrichao2020/pretty-skills/huashu-book-pdf-skill"><img src="https://agentmods.dev/badge/skills/huangrichao2020/pretty-skills/huashu-book-pdf-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00187 | $0.05325 |
| Opus 5 | $0.00093 | $0.02662 |
| Sonnet 5 | $0.00037 | $0.01065 |
| Haiku 4.5 | $0.00019 | $0.00532 |
Grade A, and why
huashu-book-pdf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 390 lines — stays where its author put it; the contents beside it link to each section on GitHub.
橙皮书全流程:从主题到成书
从一个陌生主题到一本完整的电子书,五个阶段:调研 → 规划 → 写作 → 审校 → 构建。 核心不是「出书」,是用写一本书的方法快速搞懂一个陌生领域。
写一本书只是这条流水线最费功夫的一个出口;「快速搞懂一个陌生领域」这个能力本身,谁都用得上。
适用边界
适合用这个 skill:
- 想系统搞懂一个陌生行业、工具、赛道、领域
- 想做一份能交付给别人(同事/客户/读者)的系统化资料
- 想沉淀团队/项目的知识库为可分发的书籍级成果
- 有几万字的长内容生产需求,但不想一个人硬扛
不适合用这个 skill:
- 几页的快速参考(→ 直接 markdown 即可)
- 单页海报 / PPT(→ 用对应 skill)
- 实时更新的内部 wiki(→ 走 docs 系统)
拿到这个 skill 你能做什么
- 30 分钟内搭起一本书的项目骨架 — 一条命令生成完整目录、CSS、构建脚本、模板
- 多个 Agent 并行写章节 — 不再一个人熬几万字,按章节拆给 sub-agent 写
- 四遍审校流水线 — 内容/风格/细节/事实核查,解决「写得对」「写得好」两个问题
- 一次生成三种产物 — PDF(免费分发)/ DOCX(出版社交稿)/ EPUB(电子阅读器)
- 版本化管理 —
vYYMMDD日期版本,每次更新自动 +1 build 号
前置依赖
| 依赖 | 用途 | 安装 |
|---|---|---|
| Node.js >= 16 | 运行构建脚本 | https://nodejs.org/ |
| Playwright + Chromium | HTML → PDF 渲染 | npm install playwright && npx playwright install chromium |
| pandoc >= 3.0 | HTML → DOCX | brew install pandoc |
| Python 3 + ebooklib | HTML → EPUB | pip install ebooklib |
| Python 3 + lxml | DOCX 后处理 | pip install lxml |
| docx (npm) | DOCX 样式模板 | npm install docx |
参考资料导航
| 需要时读取 | 路径 | 内容 |
|---|---|---|
| 写 HTML 片段时 | references/design-system.md | CSS 变量、HTML 组件速查、视觉红线 |
| 改封面规范时 | references/cover-system.md | 企鹅三段式封面 + Prompt 模板 + 禁忌 |
| 写事实核查时 | references/fact-check-sop.md | 怀疑者三问 + 易错场景清单 |
| 审校风格时 | references/style-guide.md | 降 AI 味检查清单 + 加个性化语感 |
| 新建项目时 | scripts/init-project.sh | 一键生成项目骨架 |
| 写作模板 | templates/ | 可直接复制的 styles.css / build.js / 片段 |
项目结构
[书名]/
├── README.md # 项目简介(状态、定位、章节结构)
├── PROJECT.md # 详细项目规划(大纲+进度+数据速查)
├── version.json # {"version":"260403","build":0,"lastUpdate":"2026-04-03","title":"..."}
├── CHANGELOG.md
├── fragments/ # HTML 章节片段(纯 HTML,不含 <html><head>)
│ ├── 00-cover.html / 01-toc.html
│ ├── part{N}-{名称}.html 或 ch{NN}-{名称}.html
│ └── 99-backpage.html
├── output/ # 构建产物(HTML/PDF/DOCX/EPUB)
├── 封面/ # 封面设计稿(PNG/JPG)
├── research/ # 调研资料
├── build.js # HTML 合并脚本(编辑 FRAGMENT_ORDER)
├── build-pdf.js # Playwright → PDF
├── build-epub.py # HTML → EPUB(含表格自动截图)
├── build-docx.js # HTML → DOCX(出版社交稿)
├── styles.css # 共享 CSS
├── fix-docx-pagebreaks.py # DOCX 后处理(分页符、表格美化)
└── versions/ # 历史版本存档
What ships with it
15 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- manifest.json 4.7 KB
- placeholder-config.json 2.3 KB
- README.md 6.0 KB
- references/cover-system.md 3.5 KB
- references/design-system.md 7.4 KB
- references/fact-check-sop.md 4.6 KB
- references/style-guide.md 5.4 KB
- scripts/init-project.sh 6.2 KB runs code
- scripts/render-placeholders.py 3.4 KB runs code
- templates/build-pdf.js 1.3 KB runs code
- templates/build.js 3.2 KB runs code
- templates/fragments/00-cover.html 772 B
- templates/fragments/99-backpage.html 1.5 KB
- templates/styles.css 12 KB
- templates/update.sh 2.5 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 390 lines · 187 tokens per session scan A a35d1ee0a409
huashu-book-pdf is a skill published in the GitHub repository huangrichao2020/pretty-skills (54 stars, last pushed today), licensed MIT. It adds 187 tokens to every session and 5,325 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.
Other skills, from other repositories
liteparse
Use this skill when the user asks to parse, perform multi-format document conversion or spatially extract text from an unstructured file (PDF, DOCX, PPTX, XLSX, images, etc.) locally without cloud dependencies.
omh-report-package
This is a Hermes-native report-package workflow skill.
treatment-plans
Generate concise (3-4 page), focused medical treatment plans in LaTeX/PDF format for all clinical specialties. Supports general medical treatment, rehabilitation therapy, mental health care, chronic disease management, perioperative care, and pain management. Includes SMART goal frameworks, evidence-based…
markitdown
Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.
paper2wechat
A process for turning an academic paper PDF into a long, illustrated article for WeChat. WeChat is a Chinese messaging and publishing platform; the article explains the paper for researchers, engineers, and students.
paper2xhs
A process for turning an academic paper PDF into an illustrated multi-image post for Xiaohongshu, a Chinese social-media platform. It combines a plain-language explanation with a cover, paper figures, and tags.