Skill8 starsChanged 4 months agoApache-2.0View on GitHub
Read, create and manipulate PDF files — extract text and tables, merge, split, rotate, reorder and delete pages, read and fill AcroForm fields, add or strip metadata, encrypt and decrypt, and generate new PDFs from HTML or from scratch. Also covers rasterising pages to images so a PDF can actually be looked at, and OCR for scanned documents. Use whenever a .pdf must be produced, inspected or altered.
- Installs packages
197 other projects use a version of this.
Adopted by
Most recently taken up by
- NousResearch/hermes-agenttheir own version, first seen Nov 13, 2026
- invergent-ai/surogatestheir own version, first seen Oct 5, 2026
- magicpro97/vibeflowtheir own version, first seen Oct 4, 2026
- holon-run/holontheir own version, first seen Oct 4, 2026
- HanksChen0110/skillstheir own version, first seen Oct 3, 2026
- IGTA-Tech/claude-skills-researchtheir own version, first seen Oct 3, 2026
Used with
Projects with it also use context7-efficient, file-reading and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
hfzarslanSkillcontext7-efficient
Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.
Also in 5 projects that use this
SeifBenayedSkillfile-reading
Use this skill when a file has been uploaded but its content is NOT in your context — only its path at /mnt/user-data/uploads/ is listed in an uploaded_files block. This skill is a router: it tells you which tool to use for each file type (pdf, docx, xlsx, csv, json, images, archives, ebooks) so you read the right amount the right way instead of blindly running cat on a binary. Triggers: any mention of /mnt/user-data/uploads/, an uploaded_files section, a file_path tag, or a user asking about an uploaded file you have not yet read. Do NOT use this skill if the file content is already visible in your context inside a documents block — you already have it.
Also in 6 projects that use this
SeifBenayedSkillpdf-reading
Use this skill when you need to read, inspect, or extract content from PDF files — especially when file content is NOT in your context and you need to read it from disk. Covers content inventory, text extraction, page rasterization for visual inspection, embedded image/attachment/table/form-field extraction, and choosing the right reading strategy for different document types (text-heavy, scanned, slide-decks, forms, data-heavy). Do NOT use this skill for PDF creation, form filling, merging, splitting, watermarking, or encryption — use the pdf skill instead.
Also in 6 projects that use this
yf8578Skillmarket-research-reports
Generate comprehensive market research reports (50+ pages) in the style of top consulting firms (McKinsey, BCG, Gartner). Features professional LaTeX formatting, extensive visual generation with scientific-schematics and generate-image, deep integration with research-lookup for data gathering, and multi-framework strategic analysis including Porter Five Forces, PESTLE, SWOT, TAM/SAM/SOM, and BCG Matrix.
Also in 7 projects that use this
OpenAISkillmigrate-to-codex
Migrate supported instruction files, skills, agents, and MCP config into Codex project and global files.
Also in 4 projects that use this
jjyaoaoSkillgift-evaluator
The PRIMARY tool for Spring Festival gift analysis and social interaction generation. Use this skill when users upload photos of gifts (alcohol, tea, supplements, etc.) to inquire about their value, authenticity, or how to respond socially. Integrates visual perception, market valuation, and HTML card generation.
Also in 4 projects that use this
Other versions197 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 197
- NousResearch/hermes-agent★ 267ksame name
- anthropics/skills★ 199ksame name
- shareAI-lab/learn-claude-code★ 78ksame name
- openai/skills★ 28ksame name
- zebbern/claude-code-guide★ 4.6ksame name
- awslabs/agentcore-samples★ 3.4ksame name
- jjyaoao/HelloAgents★ 3.2ksame name
- xstongxue/best-skills★ 2.9ksame name
- anthropics/claude-agent-sdk-demos★ 2.8ksame name
- K-Dense-AI/claude-scientific-writer★ 2.4ksame name
187 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- mobile/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- mobile/CLAUDE.mdCLAUDE.md
- docxSkill
- pptxSkill
- xlsxSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 186 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Avoid PyMuPDF/fitz. It is widely recommended and technically excellent, but it is AGPL-3.0 or paid-commercial, which quietly infects …
- Very specific: line 50
If info reports little or no extractable text, the pages are images:
- Very specific: line 76
If uv is genuinely unavailable, fall back to a venv — but check for uv first.
- Very specific: line 99
Only AcroForm fields can be filled this way.
“Common” is measured: kept by at least 6 in 10 of the 186 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PDF files
Which tool depends on the verb:
| Task | Tool |
| Rearrange pages, merge, split, rotate, encrypt, metadata, forms | pypdf (scripts/pdftool.py) |
| Extract text, and especially tables | pdfplumber (scripts/extract.py) |
| Make a PDF from HTML/CSS | WeasyPrint, or LibreOffice for an Office source |
| Make a PDF programmatically (precise placement) | reportlab |
| Look at a page | rasterise — scripts/extract.py --png |
Avoid PyMuPDF/fitz. It is widely recommended and technically excellent, but it is AGPL-3.0 or paid-commercial, which quietly infects whatever it touches. Everything above is MIT or BSD.
Inspect before you act
scripts/pdftool.py info report.pdfPage count, per-page size and rotation, metadata, encryption status, whether it has form fields, and whether the pages carry extractable text or are scanned images. The last one decides your whole approach — no text extractor will get anything out of a scan, and the answer is OCR, not a different library.
Extracting text and tables
scripts/extract.py report.pdf # all text
scripts/extract.py report.pdf --pages 1-3 # a range
scripts/extract.py report.pdf --tables # tables as CSV
scripts/extract.py report.pdf --layout # preserve visual columns--tables uses pdfplumber's ruling-line detection, which works well on tables
that have visible borders and poorly on those laid out with whitespace alone.
For the whitespace kind, --layout plus your own parsing is usually faster than
fighting the table detector.
Text comes out in the PDF's internal content order, which is not always
reading order — multi-column academic papers commonly interleave. --layout
reconstructs position-aware text and is the fix.
Scanned documents
If info reports little or no extractable text, the pages are images:
scripts/extract.py scan.pdf --ocr --pages 1-5Needs tesseract on PATH (apt install tesseract-ocr, brew install
tesseract). It rasterises each page and OCRs it. Slow — always scope with
--pages while iterating.
Writing your own script
The scripts here declare their dependencies inline (PEP 723) and run under
uv, so they work with nothing installed. Do the same for scripts you write
rather than pip-installing or building a venv — on a modern distro the system
Python is PEP-668 managed and pip install fails outright:
#!/usr/bin/env -S uv run --quiet --script
# /// script
# requires-python = ">=3.10"
# dependencies = ["pypdf[crypto]>=5.0"]
# ///Then chmod +x build.py && ./build.py, or just
uv run --with 'pypdf[crypto]>=5.0' python build.py (quote the spec — > and [ are shell
metacharacters).
If uv is genuinely unavailable, fall back to a venv — but check for uv first.
Page operations
scripts/pdftool.py merge out.pdf a.pdf b.pdf c.pdf
scripts/pdftool.py split in.pdf outdir/ # one file per page
scripts/pdftool.py extract in.pdf out.pdf --pages 2-5,9
scripts/pdftool.py rotate in.pdf out.pdf --pages 1 --degrees 90
scripts/pdftool.py delete in.pdf out.pdf --pages 3
scripts/pdftool.py meta in.pdf out.pdf --title "Q1 Report" --author "Acme"
scripts/pdftool.py encrypt in.pdf out.pdf --password s3cret
scripts/pdftool.py decrypt in.pdf out.pdf --password s3cretPage numbers in every command are 1-based and inclusive, matching what a person sees in a viewer. (pypdf's own API is 0-based — the script converts.)
Forms
scripts/pdftool.py fields form.pdf # list fields + current values
scripts/pdftool.py fill form.pdf out.pdf --set name=Ada --set agree=YesOnly AcroForm fields can be filled this way; XFA forms (mostly government
LiveCycle documents) cannot, and fields will say so rather than silently
filling nothing.
Filled values may not display until a viewer regenerates appearances. fill
sets NeedAppearances, which handles most viewers; verify with
scripts/extract.py out.pdf --png and look.
Creating a PDF
From HTML — the most controllable route for anything document-shaped, since you get real CSS for layout, page breaks and headers:
from weasyprint import HTML, CSS
HTML(string=html).write_pdf("out.pdf", stylesheets=[CSS(string="@page { size: A4; margin: 2cm }")])uv run --with weasyprint python … if it is not installed.
From an Office document — build the .docx/.xlsx/.pptx first, then
convert with scripts/topdf.py. Usually the right answer when the user's
content is a report, spreadsheet or deck.
Programmatically with reportlab, when you need exact placement:
from reportlab.lib.pagesizes import A4
from reportlab.pdfgen import canvas
c = canvas.Canvas("out.pdf", pagesize=A4)
width, height = A4
c.setFont("Helvetica-Bold", 18)
c.drawString(72, height - 72, "Quarterly Report") # origin is BOTTOM-left
c.showPage() # ends the page
c.save()reportlab's origin is the bottom left and y grows upward — the opposite of every screen coordinate system, and the reason first attempts draw off the top of the page. Units are points (72/inch).
Verify what you produced
scripts/pdftool.py info out.pdf
scripts/extract.py out.pdf --png --pages 1-2Look at the images. A PDF is the format people receive and cannot easily fix, so it is the one most worth actually viewing before handing over.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

