document-generation-pdf

document-generation-pdf is a skill for Claude Code from curiositech/some_claude_skills. It costs 99 tokens per session (5,276 once invoked), scanned A, original, MIT.

A tool for creating, filling, signing, and combining PDF documents from code, including forms, contracts, invoices, and certificates.

In plain words
What is it for?
Use it to fill government or legal forms, create invoices and certificates, assemble contracts, and produce packets containing multiple PDF files.
Why use it?
It removes the need to prepare many similar documents by hand. It also helps choose between PDF libraries and template systems for different document types.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the document-generation-pdf plugin — 1 skill shipped together

Good fit Use it to fill government or legal forms, create invoices and certificates, assemble contracts, and produce packets containing multiple PDF files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/curiositech/some_claude_skills/document-generation-pdf
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 curiositech/some_claude_skills --skill document-generation-pdf
Clone the repo
git clone --depth 1 https://github.com/curiositech/some_claude_skills

Made for: Claude Code.

Or install document-generation-pdf, the plugin that ships this one along with the rest of its 1 skill.

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 document-generation-pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/curiositech/some_claude_skills/document-generation-pdf/github.svg)](https://agentmods.dev/skills/curiositech/some_claude_skills/document-generation-pdf)
Your own site
<a href="https://agentmods.dev/skills/curiositech/some_claude_skills/document-generation-pdf"><img src="https://agentmods.dev/badge/skills/curiositech/some_claude_skills/document-generation-pdf/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 document-generation-pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/curiositech/some_claude_skills/document-generation-pdf"><img src="https://agentmods.dev/badge/skills/curiositech/some_claude_skills/document-generation-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,276 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00099 $0.05276
Opus 5 $0.00049 $0.02638
Sonnet 5 $0.00020 $0.01055
Haiku 4.5 $0.00010 $0.00528

Measured 9d ago against content hash a3ec44e09395, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

document-generation-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 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/document_assembler.ts, scripts/form_filler.ts), 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.

.claude/skills/document-generation-pdf/SKILL.md · 748 lines

How it starts

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

Document Generation & PDF Automation

Expert in generating, filling, and assembling PDF documents programmatically for legal, HR, and business workflows.

When to Use

Use for:

  • Legal form automation (expungement, immigration, contracts)
  • Invoice/receipt generation at scale
  • Certificate creation (completion, participation, awards)
  • Contract assembly from templates
  • Government form filling (IRS, court filings)
  • Multi-document packet creation

NOT for:

  • Simple PDF viewing (use browser or pdf.js)
  • Basic file conversion (use online tools)
  • OCR text extraction (use Tesseract.js or AWS Textract)
  • PDF editing by hand (use Adobe Acrobat)

Technology Selection

pdf-lib vs Puppeteer vs LaTeX

Feature pdf-lib Puppeteer LaTeX
Form filling ✅ Native ❌ Complex ❌ No
Template rendering ❌ No ✅ HTML/CSS ✅ Templates
Performance (1000 PDFs) 5s 60s 30s
File size Small Medium Small
Signature fields ✅ Yes ❌ No ❌ No
Best for Government forms Invoices, reports Academic papers

Timeline:

  • 2000s: LaTeX for academic documents
  • 2010: PDFKit (Node.js) for generation
  • 2017: Puppeteer for HTML → PDF
  • 2019: pdf-lib for pure JS form filling
  • 2024: pdf-lib is gold standard for forms

Decision tree:

Need to fill existing form? → pdf-lib
Need complex layouts? → Puppeteer (HTML/CSS)
Need academic formatting? → LaTeX
Need to merge PDFs? → pdf-lib
Need digital signatures? → pdf-lib + DocuSign API

Common Anti-Patterns

Anti-Pattern 1: Using Puppeteer for Simple Form Filling

Novice thinking: "I'll use Puppeteer for everything, it's versatile"

Problem: 12x slower, 10x more memory, can't preserve form fields.

Wrong approach:

// ❌ Puppeteer for simple form filling (SLOW!)
import puppeteer from 'puppeteer';

async function fillForm(data: FormData): Promise<Buffer> {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();

  // Load PDF in browser
  await page.goto(`file://${pdfPath}`);

  // Somehow fill form fields? (hacky)
  await page.evaluate((data) => {
    // Can't easily access PDF form fields from DOM
    // Would need to convert PDF → HTML first
  }, data);

  const pdf = await page.pdf();
  await browser.close();

  return pdf;
}

Read the full file on GitHub · 748 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 748 lines · 99 tokens per session scan A a3ec44e09395

Subscribe to this mod's changes

document-generation-pdf is a skill published in the GitHub repository curiositech/some_claude_skills (214 stars, last pushed 2d ago), licensed MIT. It adds 99 tokens to every session and 5,276 once invoked, about $0.0005 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.