Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add darellchua2/opencode-config-template --skill pdf-specialist-skillgit clone --depth 1 https://github.com/darellchua2/opencode-config-templateWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/darellchua2/opencode-config-template/pdf-specialist-skill)<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/pdf-specialist-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/pdf-specialist-skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/pdf-specialist-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/pdf-specialist-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00043 | $0.01651 |
| Opus 5.5 | $0.00017 | $0.00660 |
| Sonnet 5.5 | $0.00009 | $0.00330 |
| Haiku 4.5 | $0.00004 | $0.00165 |
Grade B, and why
pdf-specialist-skill scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
`pip install pypdf pdfplumber reportlab pdf2image pytesseract` · poppler-utils + qpdf (`sudo apt-get install poppler-utils qpdf`; macOS `brew install poppler qpdf`; Windows `winget install` or WSL) · LibreOffice via `scr How it starts
The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
What I do
- Extract text and tables (pdfplumber /
pdftotext); merge, split, rotate, watermark, encrypt (pypdf / qpdf) - Fill forms — fillable AcroForm fields via pypdf; non-fillable via text annotations with validated coordinates
- Create PDFs from scratch (reportlab); convert pages to/from images (poppler-utils); OCR scanned PDFs (pytesseract)
Routing: tier 4 of the office-doc extraction ladder — structured PDF data (forms, fillable fields, OCR-as-purpose) escalates here after markitdown/docling/image-analyzer prove insufficient. Use for: any PDF/.pdf mention. NOT for: Word documents (.docx → docx-creation-skill), spreadsheets (Excel/CSV), coding unrelated to PDFs.
Prerequisites
pip install pypdf pdfplumber reportlab pdf2image pytesseract · poppler-utils + qpdf (sudo apt-get install poppler-utils qpdf; macOS brew install poppler qpdf; Windows winget install or WSL) · LibreOffice via scripts/soffice.py (auto-configured on first run)
Tool chain — house rules
| Task | Tool | House rule |
|---|---|---|
| Merge/split/rotate/metadata/encrypt | pypdf (or qpdf CLI) | pypdf page indices are 0-based |
| Text/table extraction | pdfplumber | preserves layout; coordinates (x0, top, x1, bottom) with y=0 at TOP of page |
| Create from scratch | reportlab | platypus flowables, not raw canvas, for multi-page docs |
| Batch CLI ops | qpdf, poppler-utils | pdftotext -layout preserves layout; pdfimages beats page rendering for image extraction |
| OCR | pytesseract + pdf2image | first resort when extraction returns garbage, (cid:X), or empty text |
| Forms | house scripts below | never fill with unvalidated coordinates |
Per-task code recipes, JSON schemas, and CLI option catalogs: reference.md.
House scripts
python scripts/check_fillable_fields.py <file.pdf> # branch point for form filling
python scripts/extract_form_field_info.py <in.pdf> <field_info.json> # fillable-PDF field inventory
python scripts/extract_form_structure.py <in.pdf> form_structure.json # non-fillable structure (labels/lines/boxes)
python scripts/convert_pdf_to_images.py <file.pdf> <outdir/> # also the verification pass
python scripts/check_bounding_boxes.py fields.json # validate boxes BEFORE filling
python scripts/fill_fillable_fields.py <in.pdf> <values.json> <out.pdf>
python scripts/fill_pdf_form_with_annotations.py <in.pdf> fields.json <out.pdf>
python scripts/soffice.py --headless --convert-to pdf document.docx # LibreOffice conversions
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- reference.md 5.6 KB
- scripts/check_bounding_boxes.py 2.7 KB runs code
- scripts/check_fillable_fields.py 266 B runs code
- scripts/convert_pdf_to_images.py 1.1 KB runs code
- scripts/create_validation_image.py 1.3 KB runs code
- scripts/extract_form_field_info.py 4.3 KB runs code
- scripts/extract_form_structure.py 3.6 KB runs code
- scripts/fill_fillable_fields.py 3.8 KB runs code
- scripts/fill_pdf_form_with_annotations.py 3.2 KB runs code
- scripts/soffice.py 5.0 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed f638e7b942a6
- 2mo ago Changed · -638 lines 9ff62872d8c5
- 3mo ago First seen · 733 lines · 43 tokens per session scan B 53e54d529641
pdf-specialist-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 43 tokens to every session and 1,651 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
pdf-specialist-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pdf-specialist-skilldarellchua2/opencode-config-template | Skill | 6 | 2mo ago | Apache-2.0 | B | 43 | Claude Code, Codex |
| pdf-processingMervinPraison/PraisonAI | Skill | 9.9k | yesterday | MIT | A | 30 | Claude Code, Codex |
| pdf_convertericwang915/PythonClaw | Skill | 48 | 6d ago | MIT | A | 56 | Claude Code, Codex |
| pdf_mergeericwang915/PythonClaw | Skill | 48 | 6d ago | MIT | A | 45 | Claude Code, Codex |
| pdf_protectericwang915/PythonClaw | Skill | 48 | 6d ago | MIT | A | 54 | Claude Code, Codex |
| pdf_splitericwang915/PythonClaw | Skill | 48 | 6d ago | MIT | A | 57 | Claude Code, Codex |
| pdf_writerericwang915/PythonClaw | Skill | 48 | 6d ago | MIT | A | 60 | Claude Code, Codex |