← ClaudeAtlas

pdfkit-generationlisted

Generate professional PDFs with PDFKit in Node.js. Use when creating pitch decks, reports, or styled documents with AGNT branding. Covers large script handling, Unicode-safe characters, and brand design patterns.
agnt-gg/agnt · ★ 270 · Data & Documents · score 76
Install: claude install-skill agnt-gg/agnt
--- name: "PDFKit Generation" description: "Generate professional PDFs with PDFKit in Node.js. Use when creating pitch decks, reports, or styled documents with AGNT branding. Covers large script handling, Unicode-safe characters, and brand design patterns." category: "document-processing" icon: "fas fa-file-pdf" allowed-tools: - file_operations - execute_javascript_code - execute_shell_command --- # PDFKit Generation ## Description Generate professional PDFs using PDFKit in a Node.js environment, with AGNT brand styling and proper handling of large scripts. This skill covers the critical workflow for bypassing command-line size limits, Unicode-safe character usage, and reusable design patterns. ## Source agnt (custom) ## When to Use Use this skill when: - Creating pitch decks, reports, or styled PDF documents - Generating PDFs with AGNT brand colors and styling - Working with large PDF generation scripts that exceed CLI limits - You need Unicode-safe alternatives to emojis in PDFs - Building multi-page documents with consistent theming --- # PDFKit Generation Guide ## Critical Pattern: Large Script Handling ### The Problem `execute_javascript_code` passes code via command line, which has ~8KB limit on Windows. Large PDF generation scripts (often 20KB+) will fail with: ``` Error: spawn ENAMETOOLONG ``` ### The Solution: 3-Step Pattern ``` +-------------------------------------------------------------+ | 1. file_operations: WRITE compact script to .js/.cjs