Skip to content
Skills Library
Documents & office · Writing

write-book

/write-book

Research a topic and produce a polished multi-chapter PDF book/report. Use when the user asks to write a book, booklet, report, brief, guide, ebook, whitepaper, or 'turn X into a PDF document'. Runs a research → outline → write → render pipeline and calls the render_pdf tool to produce a downloadable PDF. Triggers on mentions of write a book, make a PDF, booklet, report, brief, guide, ebook, whitepaper, 写一本书, 写本书, 生成PDF, 做一本电子书, 写一份报告, 小册子, 出一本书, 制作PDF.

Repository
microclaw ↗
Licence
MIT
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Research a topic and produce a polished multi-chapter PDF book/report. Use when the user asks to write a book, booklet, report, brief, guide, ebook, whitepaper, or 'turn X into a PDF document'. Runs a research → outline → write → render pipeline and calls the render_pdf tool to produce a downloadable PDF. Triggers on mentions of write a book, make a PDF, booklet, report, brief, guide, ebook, whitepaper, 写一本书, 写本书, 生成PDF, 做一本电子书, 写一份报告, 小册子, 出一本书, 制作PDF.

Triggers from the description

turn X into a PDF document
Original author description

Research a topic and produce a polished multi-chapter PDF book/report. Use when the user asks to write a book, booklet, report, brief, guide, ebook, whitepaper, or 'turn X into a PDF document'. Runs a research → outline → write → render pipeline and calls the render_pdf tool to produce a downloadable PDF. Triggers on mentions of write a book, make a PDF, booklet, report, brief, guide, ebook, whitepaper, 写一本书, 写本书, 生成PDF, 做一本电子书, 写一份报告, 小册子, 出一本书, 制作PDF.

How it works

  1. When to use
  2. Method
  3. Calling renderpdf
  4. Quality bar
Original SKILL.md headings · 61 lines, 461 words
SKILL.md preview
---
name: write-book
description: "Research a topic and produce a polished multi-chapter PDF book/report. Use when the user asks to write a book, booklet, report, brief, guide, ebook, whitepaper, or 'turn X into a PDF document'. Runs a research → outline → write → render pipeline and calls the render_pdf tool to produce a downloadable PDF. Triggers on mentions of write a book, make a PDF, booklet, report, brief, guide, ebook, whitepaper, 写一本书, 写本书, 生成PDF, 做一本电子书, 写一份报告, 小册子, 出一本书, 制作PDF."
license: Proprietary. LICENSE.txt has complete terms
compatibility: "Uses web_search/web_fetch (no API key) and the render_pdf tool (requires media.book.enabled). PDF rendering is pure-Rust and self-contained. Works on macOS, Linux, and Windows."
---

# Write a Book (PDF)

Turn a topic into a structured, well-researched PDF — a short book or report — and
deliver it to the user as a file. This mirrors a clarify → plan → research → write →
edit → render pipeline.

## When to use

The user wants a *document*, not a chat answer: "write me a book about…", "make a PDF
report on…", "出一本关于…的小册子". The deliverable is a PDF produced by the
`render_pdf` tool.

## Method

1. **Scope it.** If the topic is broad or ambiguous, ask 1–3 quick clarifying questions
   (depth, audience, language, how many chapters). If the user said "use your best
   judgment", skip and choose sensible defaults (6 chapters, ~800–1200 words each).
2. **Plan the outline.** Decide a title, optional subtitle, and an ordered list of
   chapters — each with a one-line intent and a rough word budget. Keep chapters in the
   user's language.
3. **Research** with `web_search` then `web_fetch` on the most credible hits. Cross-check
   key facts against a second source. If search yields little, fall back to your own
   knowledge but don't fabricate specifics (names, numbers, dates).
4. **Write chapter by chapter**, in order. Feed yourself the tail of the previous chapter
   so voice and terminology stay consistent. For a long book you may spawn a `sub_agent`
   per chapter to draft in parallel, then stitch. Write real prose with Markdown
   structure (`##` sub-headings, `-` lists, `` `code` ``) — the renderer understands it.
5. **Edit once** for a single consistent voice, terminology, and no repetition.
6. **Render** by calling `render_pdf` (see below). Then tell the user what you produced
   (title, chapter count) — the PDF is delivered as an attachment automatically.

## Calling render_pdf

Pass a `title` (+ optional `subtitle`, `author`) and an ordered `sections` array. Each
section is one chapter: a `heading` and a `body_markdown`.

```json
{
  "title": "A Short History of the Quartz Watch",
  "subtitle": "From lab curiosity to wrist ubiquity",
  "author": "MicroClaw",
  "sections": [
    {"heading": "1. The Mechanical World Before Quartz", "body_markdown": "In the 1960s...\n\n- point\n- point"},
    {"heading": "2. The Breakthrough", "body_markdown": "## The oscillator\n\nText..."}
  ]
}
```

- Put the chapter title in `heading`; do **not** repeat it as an `#` heading inside the body.
- `level` (1–3) controls heading size; default 1 for top-level chapters.
- A cover page and table of contents are generated automatically (`cover`/`toc` default true).

## Quality bar

- Aim for the page20 shape: ~6 chapters × ~1000 words for a full book; fewer/shorter for a
  quick brief. State the target you chose.
- Concrete and sourced beats vague and padded. Lead each chapter with its point.
- For CJK output, the operator may need to set `media.book.font_path` to a CJK font; if a
  render fails with "no usable font", relay that hint.

Versions

The database has no other skills named write-book.

Database snapshot: 13.11.2026 · package version 0401ef30dfa1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100ebook-whitepaper-writer
    Writes a whitepaper, ebook, guide or playbook in full, from a brief or by compiling your best blog posts picked by Search Console clicks and GA4 key events, with an evidence ledger and a layout brief for the designer. Use when asking to write a whitepaper or ebook, or turn blog posts into a guide.
  • 100whitepaper
    Creates professional PDF whitepapers from Markdown files. Use when the user wants to create a whitepaper, technical document, or PDF with professional formatting and typography.
  • 100pdf-create
    Generate a beautiful, brand-themed, multi-page PDF — report, research doc, six-pager, or playbook — from structured content using a bundled @react-pdf/renderer pipeline (direct rendering, no headless browser). Use when the user asks to create, generate, build, export, or design…
  • 100ni-poetry-book
    把诗词、文赋、年谱、史料或技术文章整理为编年诗传、主题文集、图文专题或课程讲义,生成宋代文人审美的简体横排 LaTeX PDF。用户说“用 Poetry Book 成书”“把这些资料排成书”“编年诗集 PDF”“把 Markdown 技术文章做成图文样张”“选择烟雨、青瓷、墨禅、朱砂、月夜或竹影模板”时使用。保留来源、图片和未系年状态,内置六套主题,并输出逐页校验报告和预览图。
  • 100report-pdf
    Render a dev-team Markdown report to a polished, shareable PDF. Use when the user says "make a PDF of the report", "export the code-review report as PDF", "turn .dev-team-reports/code-review.md into a PDF", or wants any .dev-team-reports or reports Markdown file as a styled…
  • 100distill-book
    Distill a long book into a concise, structured set of learnings by processing it chapter by chapter with parallel subagents, then synthesizing the result -- optionally into a Claude Code skill. Works for any format the book comes in -- PDF, EPUB, Markdown, HTML, plain text. Use…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.