Installation
SKILL.md
Process PDFs locally on macOS with exact extraction, source preservation, deliberate tool routing, and structural plus semantic validation.
Invariants
- Keep document contents local unless the user explicitly authorizes an upload or external disclosure. Package and language-data downloads do not authorize document disclosure.
- Preserve every original PDF byte-for-byte. Write a sibling output, copy, or explicitly named destination unless the user authorizes destructive replacement.
- Preserve monetary values, identifiers, dates, signs, and displayed precision as strings. Use
decimal.Decimalfor arithmetic; never infer missing rows or silently discard headers, footnotes, continuation lines, or boundary pages. - Inspect structure and representative renders before choosing a transformation. Use the smallest tool that preserves the required layout, forms, annotations, and image quality.
- Validate every written PDF structurally and against task semantics. A command exiting successfully is not evidence that extracted rows, totals, page boundaries, form appearances, or visual layout are correct.
- Keep reports concise for private financial, tax, legal, and health documents. Prefer counts, reconciliations, and file references over raw sensitive rows unless the rows materially support the task or the user asks for them.