# pdf-document

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 285 repo stars
- Author: makushingu
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/makushingu/harness-maxxing/tree/HEAD/skills/pdf-document/SKILL.md
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/pdf-document

## What it does

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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add makushingu/harness-maxxing --skill pdf-document -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/pdf-document/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/pdf-document/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add makushingu/harness-maxxing --skill pdf-document -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/pdf-document/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add makushingu/harness-maxxing --skill pdf-document -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/pdf-document/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install makushingu/harness-maxxing skills/pdf-document
```

2. **Manually: put the files in place**
- File: `.github/skills/pdf-document/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add makushingu/harness-maxxing --skill pdf-document -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/makushingu/harness-maxxing --path skills/pdf-document
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/pdf-document/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/makushingu/harness-maxxing/tree/HEAD/skills/pdf-document/SKILL.md

## When to use it
- 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
- Make a CV in PDF format for my profile
- Generate an invoice PDF for the order
- Create a project report PDF document

## Similar
- [Fullbleed PDF Engine](https://affpapa.org/en/nevibecode/mcp/fullbleed-pdf-engine.md) — MCP server · ★ 174 repo stars
- [document-generation-pdf](https://affpapa.org/en/nevibecode/skills/document-generation-pdf.md) — skill · 283 installs
- [onepage-pdf](https://affpapa.org/en/nevibecode/skills/onepage-pdf.md) — skill · 214 installs
- [html-to-pdf](https://affpapa.org/en/nevibecode/skills/html-to-pdf.md) — skill · 1300 installs
- [kami-document-design](https://affpapa.org/en/nevibecode/skills/kami-document-design.md) — skill · 394 installs
- [pdf-design](https://affpapa.org/en/nevibecode/skills/pdf-design.md) — skill · 556 installs

From the same set: [makushingu/harness-maxxing](https://affpapa.org/en/nevibecode/by/makushingu/harness-maxxing.md) — 21 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
