pdf-creator

pdf-creator is a skill for Claude Code, Codex from daymade/claude-code-skills. It costs 132 tokens per session (5,567 once invoked), scanned A, original, MIT.

A tool for turning Markdown files into formatted PDF documents, including themes, Chinese font support, and visual checks.

In plain words
What is it for?
Use it to create printable, mobile-friendly, or Chinese-language PDFs from one file or from a batch of Markdown files.
Why use it?
It avoids manually formatting documents for printing or phone reading and helps catch layout problems before delivery.

Skill for Claude CodeCodex

Part of the daymade-docs plugin — 10 skills shipped together

About the project

Claude Code Skills Marketplace is a collection and marketplace of skills, plugins, agents, and instructions that extend Claude Code with specialized development workflows. It is for developers who want to install existing workflows or create, validate, and package their own Claude Code skills.

daymade/claude-code-skills · 1,375 stars · on GitHub

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.

agentmods
npx agentmods add skills/daymade/claude-code-skills/pdf-creator
Any agent
npx skills add daymade/claude-code-skills --skill pdf-creator
Clone the repo
git clone --depth 1 https://github.com/daymade/claude-code-skills

Made for: Claude Code, Codex.

Or install daymade-docs, the plugin that ships this one along with the rest of its 10 skills.

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 pdf-creator

README.md
[![agentmods](https://agentmods.dev/badge/skills/daymade/claude-code-skills/pdf-creator.svg)](https://agentmods.dev/skills/daymade/claude-code-skills/pdf-creator)
Your own site
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/pdf-creator"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/pdf-creator.svg" alt="Measured on agentmods" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,567 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00132 $0.05567
Opus 5 $0.00066 $0.02783
Sonnet 5 $0.00026 $0.01113
Haiku 4.5 $0.00013 $0.00557

Measured 5d ago against content hash 7075c52510a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pdf-creator 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 5d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (scripts/batch_convert.py, scripts/check_table_borders.py, scripts/md_to_pdf.py, …), 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.

daymade-docs/pdf-creator/SKILL.md · 239 lines

How it starts

The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PDF Creator

Create professional PDF documents from markdown with Chinese font support and theme system.

Quick Start

Every scripts/… path below is relative to this skill's own directory — run the commands from there, or substitute the absolute path. Running them from the directory holding your markdown fails with Failed to spawn: 'scripts/md_to_pdf.py'. Omitting the output path is allowed and derives it from the input's basename (input.mdinput.pdf, in the input's directory).

# Default theme (formal: Songti SC + black/grey, A4 print)
uv run --with weasyprint scripts/md_to_pdf.py input.md output.pdf

# Warm theme (training: PingFang SC + terra cotta)
uv run --with weasyprint scripts/md_to_pdf.py input.md --theme warm-terra

# Mobile theme (narrow page, large font — for phone reading / WeChat sharing)
uv run --with weasyprint scripts/md_to_pdf.py input.md --theme mobile

# Batch convert all markdown files with a specific theme
uv run --with weasyprint scripts/batch_convert.py *.md --theme warm-terra --no-preview

# No weasyprint? Use Chrome backend (auto-detected if weasyprint unavailable)
python scripts/md_to_pdf.py input.md --theme warm-terra --backend chrome

# List available themes
python scripts/md_to_pdf.py --list-themes dummy.md

Themes

Stored in themes/*.css. Each theme is a standalone CSS file.

Theme Page Size Font Color Best for
default A4 Songti SC + Heiti SC Black/grey Legal docs, contracts, formal reports
cjk-auto A4 Songti SC + Heiti SC Black/grey Tables with uneven column content (course schedules, itemized lists)
warm-terra A4 PingFang SC Terra cotta (#d97756) + warm neutrals Course outlines, training materials, workshops
warm-terra-menu A4 PingFang SC Terra cotta (#d97756) + warm neutrals warm-terra variant hardened for module menus/lists: 2-column long-text tables wrap without first-column overflow + Menlo unicode-range keeps CJK inline-code from rendering blank in Preview/Adobe
mobile 148mm × 210mm PingFang SC Terra cotta + warm neutrals Phone reading, WeChat sharing, on-the-go reference

Read the full file on GitHub · 239 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. 5d ago First seen · 239 lines · 132 tokens per session scan A 7075c52510a0

Subscribe to this mod's changes

pdf-creator is a skill published in the GitHub repository daymade/claude-code-skills (1,375 stars, last pushed yesterday), licensed MIT. It adds 132 tokens to every session and 5,567 once invoked, about $0.0007 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-08-30.