erlichliu/proma/pdf
Claude Code and agent skill by erlichliu/proma
- community
Checking that the SKILL.md file is still in the repository.
Use this skill whenever the user mentions a PDF file or asks to produce/edit one. For read-only tasks such as reading, summarizing, extracting plain text, or answering questions from a PDF, follow this skill's read-only routing rules: use the built-in Read tool first, do not write code or scripts, and prefer markitdown for PDFs over 100 pages. Use PDF processing libraries/scripts only for modification tasks such as merging, splitting, rotating, watermarking, filling forms, encrypting/decrypting, extracting images, OCR, or creating PDFs.
Install
npx vskill@latest install erlichliu/proma/pdfSKILL.md
PDF Processing Guide
Overview
This guide defines how to handle PDF files. Read-only tasks must be handled with built-in tools first. Python libraries and scripts are fallback tools for PDF modification, OCR, form filling, or other operations that cannot be completed by direct reading.
Read-Only Routing Rules
Use this section for requests like "read this PDF", "summarize this PDF", "answer questions from this PDF", or "extract the main points".
- Prefer the built-in Read tool on the PDF path.
- Do not write Python, JavaScript, shell scripts, or temporary extraction files for simple reading.
- Do not use the Python examples below for read-only tasks unless the built-in Read tool fails or the user explicitly asks for a generated file.
- If the PDF has more than 100 pages, prefer markitdown before Python libraries.
- First check whether a global
markitdowncommand is available. - If global
markitdownexists, use it directly. - If global
markitdownis missing, install it globally for the user, then use it. - Do not create wrapper scripts around markitdown.
- If installation fails because of network, permissions, or missing Python tooling, say so briefly and fall back to the built-in Read tool or ask which page range to inspect.
- Only move to PDF processing libraries or scripts when the task needs document transformation, complex table extraction, OCR, form filling, image extraction, or PDF generation.
Page Count Check
Use the cheapest available command. Try pdfinfo first:
If pdfinfo is unavailable, use the built-in Read tool and infer whether the document is long from the tool result. Avoid writing a custom page-count script just to decide the reading path.
markitdown for Long PDFs
For PDFs over 100 pages, first check for a globally available markitdown command:
If it exists, convert to Markdown directly:
If markitdown is not installed, install it globally before converting. Prefer direct pip installation because it is usually faster and has fewer network/toolchain dependencies than Homebrew-based flows.
Before installing, quickly verify the package source/version if tooling is available:
Then install:
After installation, run markitdown input.pdf. If the command is not on PATH, try python3 -m markitdown input.pdf or use the user's Python user-base bin path.
If the output is too long for the response, inspect or summarize relevant sections instead of dumping the full text. When saving a converted Markdown file is useful, ask only if the user did not already request a file output.
Modification and Advanced Processing
Use the sections below when the user asks to modify PDFs, create PDFs, fill forms, extract images, OCR scanned pages, or perform precise table extraction that the built-in Read tool cannot handle.
Python Libraries
pypdf - Basic Operations
Merge PDFs
Split PDF
Extract Metadata
Rotate Pages
pdfplumber - Text and Table Extraction
Extract Text with Layout
Extract Tables
Advanced Table Extraction
reportlab - Create PDFs
Basic PDF Creation
Create PDF with Multiple Pages
Subscripts and Superscripts
IMPORTANT: Never use Unicode subscript/superscript characters (₀₁₂₃₄₅₆₇₈₉, ⁰¹²³⁴⁵⁶⁷⁸⁹) in ReportLab PDFs. The built-in fonts do not include these glyphs, causing them to render as solid black boxes.
Instead, use ReportLab's XML markup tags in Paragraph objects:
For canvas-drawn text (not Paragraph objects), manually adjust font the size and position rather than using Unicode subscripts/superscripts.
Command-Line Tools
pdftotext (poppler-utils)
qpdf
pdftk (if available)
Common Tasks
Extract Text from Scanned PDFs
Add Watermark
Extract Images
Password Protection
Quick Reference
| Task | Best Tool | Command/Code | |
|---|---|---|---|
| Merge PDFs | pypdf | writer.add_page(page) | |
| Split PDFs | pypdf | One page per file | |
| Read or summarize PDFs | Built-in Read tool | Use Read first; no scripts | |
| Long PDF text extraction (>100 pages) | markitdown | markitdown input.pdf | |
| Extract text after Read fails | pdfplumber | page.extract_text() | |
| Extract tables after Read fails | pdfplumber | page.extract_tables() | |
| Create PDFs | reportlab | Canvas or Platypus | |
| Command line merge | qpdf | qpdf --empty --pages ... | |
| OCR scanned PDFs | pytesseract | Convert to image first | |
| Fill PDF forms | pdf-lib or pypdf (see FORMS.md) | See FORMS.md |
Next Steps
- For advanced pypdfium2 usage, see REFERENCE.md
- For JavaScript libraries (pdf-lib), see REFERENCE.md
- If you need to fill out a PDF form, follow the instructions in FORMS.md
- For troubleshooting guides, see REFERENCE.md
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingapps/electron/default-skills/pdf/SKILL.md
Popularity
- Repository stars
- 199
- Repository forks
- 30
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/erlichliu/proma/pdf)