pdf-toolkit
Skill by TokenRhythm
Performs structured, deterministic PDF operations: extracting text and tables, merging and splitting pages, filling form fields, and generating new PDFs. It suits users who know exactly what PDF work they need done.
Install pdf-toolkit
Built from the published package, never by AI.
git clone --depth 1 https://github.com/TokenRhythm/opensquilla /tmp/opensquilla && mkdir -p ~/.claude/skills && cp -r /tmp/opensquilla/src/opensquilla/skills/bundled/pdf-toolkit ~/.claude/skills/pdf-toolkitRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/TokenRhythm/opensquilla /tmp/opensquilla && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/opensquilla/src/opensquilla/skills/bundled/pdf-toolkit ~/.gemini/antigravity-cli/skills/pdf-toolkitAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
pdf-toolkit is an agent skill for programmatic PDF work. It covers four operations: extracting text and tables, merging pages from several PDFs, splitting a PDF by page ranges, and filling AcroForm fields from a JSON file. It can also generate a new PDF from scratch with reportlab, including Chinese text through a CJK font.
The skill uses bundled Python scripts. Text extraction uses pdfplumber, merging and splitting use pypdf, and form filling reads fields with pypdf. Extraction returns JSON with page text, metadata and tables. The skill is meant for users who know exactly what they want done, not for free-form rewriting of existing pages. It is listed as the single public PDF entry, maintained by OpenSquilla from a ClawHub MIT-0 upstream.
Written from the project's SKILL.md and checked against it.
What it can do
- Extract text and tablesPulls page text and tables from a PDF using pdfplumber, returned as JSON.
- Merge PDFsCombines whole files or selected page ranges from several PDFs into one file.
- Split PDFWrites separate PDF files for each page range you specify.
- Fill form fieldsFills AcroForm fields from a JSON map of field names to values, and can list fields first.
- Generate PDF from scratchBuilds a new PDF with reportlab, including tables and CJK text.
What you need
- Python (python or python3)
- uv for installing pypdf and reportlab
- A sandboxed workspace with execute_code and publish_artifact available
Try asking
- Extract the tables from this quarterly report PDF into JSON
- Merge these three PDFs into one file, keeping pages 1-3 of the first
- Fill the form fields in this tax PDF using my JSON data
Good to know
- Scanned PDFs need OCR first. OCR is out of scope for this skill.
- XFA forms and digital signature operations are out of scope.
- Encrypted PDFs are read-only here, and decryption is out of scope.
- Arbitrary in-place page rewriting is not supported. Changes produce a new document.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/opensquilla/skills/bundled/pdf-toolkit/SKILL.md, src/opensquilla/skills/bundled/pdf-toolkit/scripts/extract.py, src/opensquilla/skills/bundled/pdf-toolkit/scripts/form_fill.py, src/opensquilla/skills/bundled/pdf-toolkit/scripts/merge.py, src/opensquilla/skills/bundled/pdf-toolkit/scripts/split.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
THIRD_PARTY_NOTICES.md915 B -
references/pypdf.md2 KB -
references/reportlab.md3 KB -
scripts/extract.py2 KB
Show all 8 files
-
scripts/form_fill.py3 KB -
scripts/merge.py3 KB -
scripts/split.py2 KB
Alternatives to pdf-toolkit
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
pdf-toolkit: common questions
Can pdf-toolkit read text from scanned PDFs?
No. The source says scanned image PDFs need OCR before any text path gives results, and OCR is out of scope for this skill.
Which libraries does pdf-toolkit use?
It uses pypdf, pdfplumber and reportlab. The source says pdfplumber handles text and table extraction, and reportlab generates new PDFs.
Can it edit wording in an existing PDF?
Not in place. The source says the skill drafts replacement content, then generates a new PDF from the reviewed text.
How do I install pdf-toolkit?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pdf-toolkit free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is pdf-toolkit safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pdf-toolkit?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
