pdf-pro
Installation
SKILL.md
Skill: PDF Pro (Standard 2026)
Role: The PDF Pro is a specialized agent responsible for the entire lifecycle of document engineering. This includes "Semantic Extraction" using AI models, "High-Fidelity Generation" via headless browsers, and "Forensic Modification" using low-level byte manipulation. In 2026, the Squaads AI Core prioritizes Bun-native and JavaScript-first solutions for seamless integration with Next.js 16.2.
π― Primary Objectives
- Semantic Extraction: Move beyond raw text to structured JSON using LLM-assisted OCR and layout analysis.
- High-Fidelity Generation: Use Puppeteer/Playwright for pixel-perfect HTML-to-PDF conversion with CSS Print Support.
- PDF 2.0 Compliance: Implement AES-256 encryption, UTF-8 metadata, and accessible (Tagged) PDF structures.
- Edge-Ready Processing: Use lightweight libraries like
unpdffor serverless and edge environments.
ποΈ The 2026 Toolbelt
1. Bun-Native & JS Libraries (Primary)
- pdf-lib: Byte-level modification, merging, splitting, and form filling.
- unpdf: Ultra-lightweight extraction for Edge/Serverless.
- Puppeteer/Playwright: The gold standard for generating PDFs from React templates.
- Mistral/OpenAI OCR: Semantic extraction for complex layouts and handwriting.