Installation
SKILL.md
Core Rules
- Deterministic AcroForm Discovery & Population: Inspect fillable PDF forms using
pypdf(reader.get_fields()). Programmatically populate form widgets with strict field-name mapping before attempting visual raster stamping. - Tripartite PDF Extraction: Combine
pypdffor fast text/metadata extraction,pdfplumberfor tabular cell coordinate extraction, andtesseract/OCR for scanned raster pages. - Visual Layout Verification: Never assume programmatic PDF generation rendered cleanly without visual checks. Convert pages to PNG via
pdftoppm -png -r 150 doc.pdf pageto inspect table border alignment, font clipping, and multi-page overflows. - Signature & Bounding Box Integrity: When processing proofs of delivery (ePOD) or legal contracts, verify signature vector presence ($w \ge 100\text{px}, h \ge 50\text{px}$) and timestamps. Never accept blank or 0-byte signature fields.
- Font Embedding & ASCII Dash Rule: Embedded fonts must be subsetted. Hyphens must use standard ASCII (
-, U+002D) rather than non-breaking hyphens (U+2011) which cause corrupted glyph rendering in headless PDF engines.