pdf-document — Claude Code skill: what it does, how to install
The pdf-document skill for Claude Code builds formatted PDF documents by writing HTML and CSS and printing them via a headless browser. The agent runs it when requested to generate invoices, quotes, reports, or CVs.
The agent writes a self-contained HTML file with inline CSS and system fonts, then runs a terminal command to print the document into PDF. The output gets verified through text extraction and rendering the first page into a PNG image for visual review. The source HTML stays intact for future edits.
The setup requires a server headless browser, which can be updated with a root command if missing. Secret keys and bank details are excluded from documents unless explicitly provided by the user.
What it helps with
generate a PDF report from HTML and CSS
create an invoice or price quote in PDF
compile a resume or guide into a printable PDF
convert a page layout into a PDF document
Example prompts for the agent
Make a CV in PDF format for my profile
Generate an invoice PDF for the order
Create a project report PDF document
How to install pdf-document
1Skills CLI (Vercel)
npx skills add makushingu/harness-maxxing --skill pdf-document -a claude-code
2Manually: put the files in place
~/.claude/skills/pdf-document/SKILL.md
Copy the whole skill folder; for one project use .claude/skills/pdf-document/
1Skills CLI (Vercel)
npx skills add makushingu/harness-maxxing --skill pdf-document -a codex
2Manually: put the files in place
.agents/skills/pdf-document/SKILL.md
For all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add makushingu/harness-maxxing --skill pdf-document -a cursor
2Manually: put the files in place
.cursor/skills/pdf-document/SKILL.md
Cursor also reads .agents/skills/ and .claude/skills/