pdf-specialist-skill

pdf-specialist-skill is a skill for Claude Code, Codex from darellchua2/opencode-config-template. It costs 43 tokens per session (1,651 once invoked), scanned B, original, Apache-2.0.

A toolkit for creating, reading, editing, analyzing, and converting PDF files. PDF is a document format commonly used for fixed-layout files and forms.

In plain words
What is it for?
Use it to extract text and tables, merge or split pages, fill forms, add watermarks, encrypt files, run OCR on scans, convert pages to images, and create PDFs.
Why use it?
It handles PDF tasks that ordinary text editors do not, including scanned documents, forms, page operations, and embedded images.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit Use it to extract text and tables, merge or split pages, fill forms, add watermarks, encrypt files, run OCR on scans, convert pages to images, and create PDFs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/pdf-specialist-skill
Install

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.

Any agent
npx skills add darellchua2/opencode-config-template --skill pdf-specialist-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for pdf-specialist-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/pdf-specialist-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/pdf-specialist-skill)
Your own site
<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.

agentmods 80×15 button for pdf-specialist-skill

Your own site · 80×15
<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>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,651 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash f638e7b942a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/check_bounding_boxes.py, scripts/check_fillable_fields.py, scripts/convert_pdf_to_images.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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
skills/pdf-specialist-skill/SKILL.md · 95 lines

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

Read the full file on GitHub · 95 lines

Changes

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.

  1. 2mo ago Changed f638e7b942a6
  2. 2mo ago Changed · -638 lines 9ff62872d8c5
  3. 3mo ago First seen · 733 lines · 43 tokens per session scan B 53e54d529641

Subscribe to this mod's changes

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.

Related

pdf-specialist-skill compared with skills from other repositories

pdf-specialist-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pdf-specialist-skilldarellchua2/opencode-config-templateSkill62mo agoApache-2.0B43Claude Code, Codex
pdf-processingMervinPraison/PraisonAISkill9.9kyesterdayMITA30Claude Code, Codex
pdf_convertericwang915/PythonClawSkill486d agoMITA56Claude Code, Codex
pdf_mergeericwang915/PythonClawSkill486d agoMITA45Claude Code, Codex
pdf_protectericwang915/PythonClawSkill486d agoMITA54Claude Code, Codex
pdf_splitericwang915/PythonClawSkill486d agoMITA57Claude Code, Codex
pdf_writerericwang915/PythonClawSkill486d agoMITA60Claude Code, Codex