huashu-book-pdf

huashu-book-pdf is a skill for Claude Code, Codex from huangrichao2020/pretty-skills. It costs 187 tokens per session (5,325 once invoked), scanned A, original, MIT.

A workflow for researching, planning, writing, reviewing, and building a complete book or guide as PDF, DOCX, and EPUB files.

In plain words
What is it for?
Use it to create structured manuals, reference guides, and electronic books, including their outlines, chapters, reviews, and output files.
Why use it?
It gives long-form document work a staged process instead of treating a book like a short piece of text.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Claude Code.

Good fit Use it to create structured manuals, reference guides, and electronic books, including their outlines, chapters, reviews, and output files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huangrichao2020/pretty-skills/huashu-book-pdf-skill
Install

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.

Any agent
npx skills add huangrichao2020/pretty-skills --skill huashu-book-pdf-skill
Clone the repo
git clone --depth 1 https://github.com/huangrichao2020/pretty-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for huashu-book-pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/huangrichao2020/pretty-skills/huashu-book-pdf-skill/github.svg)](https://agentmods.dev/skills/huangrichao2020/pretty-skills/huashu-book-pdf-skill)
Your own site
<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.

agentmods 80×15 button for huashu-book-pdf

Your own site · 80×15
<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>
Per session 187 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,325 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured today against content hash a35d1ee0a409, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/init-project.sh, scripts/render-placeholders.py, templates/build-pdf.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

橙皮书/huashu-book-pdf-skill/SKILL.md · 390 lines

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 你能做什么

  1. 30 分钟内搭起一本书的项目骨架 — 一条命令生成完整目录、CSS、构建脚本、模板
  2. 多个 Agent 并行写章节 — 不再一个人熬几万字,按章节拆给 sub-agent 写
  3. 四遍审校流水线 — 内容/风格/细节/事实核查,解决「写得对」「写得好」两个问题
  4. 一次生成三种产物 — PDF(免费分发)/ DOCX(出版社交稿)/ EPUB(电子阅读器)
  5. 版本化管理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/              # 历史版本存档

Read the full file on GitHub · 390 lines

Changes

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.

  1. today First seen · 390 lines · 187 tokens per session scan A a35d1ee0a409

Subscribe to this mod's changes

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.

Related

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.

synthetic-sciences/openscience · 49 tokens

omh-report-package

This is a Hermes-native report-package workflow skill.

rlaope/oh-my-hermes · 58 tokens

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…

synthetic-sciences/openscience · 86 tokens

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.

synthetic-sciences/openscience · 53 tokens

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.

QuZhan51496/paper2anything · 122 tokens

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.

QuZhan51496/paper2anything · 143 tokens