Pdfs

From lightspeedwp/.github · View interactive version

Pdfs is an AI agent skill from the GitHub repository lightspeedwp/.github. Reliable, workflow-driven PDF processing: render → verify → operate → re-render/verify, covering reading, inspection, extraction, editing, forms, OCR, redaction, conversion, and diffing. Prefer authoring in DOCX or PPTX (then converting to PDF) for text-heavy docs or slide-like layouts; use ReportLa

How to use this skill

Skill file

PDF Skill (Read • Inspect • Extract • Edit • Render • Forms • OCR • Redact • Convert • Diff)

This skill is designed for reliable, workflow-driven PDF work: render -> verify -> operate -> re-render verify.

Before you touch PDFs: should this be DOCX/PPTX instead?

Even if the user asks for a PDF deliverable, the best workflow is often:

If you find yourself hand-tuning line breaks or typography in ReportLab, you probably picked the wrong authoring format.


Core loop (always)

1) Render to images

python /home/oai/skills/pdfs/scripts/render_pdf.py input.pdf --out_dir /mnt/data/_renders/in --dpi 200

1) Inspect PNGs (tables/figures/layout are authoritative)

2) Perform the edit/extract/create

3) Re-render and compare

python /home/oai/skills/pdfs/scripts/compare_renders.py before.pdf after.pdf --out_dir /mnt/data/_diff --dpi 200

Task index (progressive)

Start with the smallest task that answers the user:

Read / review

Extract (text/layout/tables/images/attachments/forms)

Edit (merge/split/rotate/crop/watermark/paginate/encrypt/repair)

Forms

OCR

Preflight / normalize

Redaction

Renderer parity

Batch processing

Create / convert


Package map (where things live)

This pack includes a manifest.txt that is a pure list of relative file paths used by download tooling.

Quick map:


Final deliverable expectations

_Docs signed by 🤖 Copilot for LightSpeedWP – always fresh!_

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.