Skill25 starsChanged 6 months agoMITView on GitHub
Read, extract from, and create PDF files. Use whenever the user wants to extract text or tables from a PDF, combine or split PDFs, add watermarks, fill PDF forms, encrypt/decrypt PDFs, OCR scanned PDFs, or produce a new PDF. Trigger when the user mentions a .pdf file or asks to produce one.
- Installs packages
197 other projects use a version of this, 1 of them edited.
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 · 1
- keirsalterego/jailbreak-fable★ 4312% same
Wrote their own version · 196
- 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
186 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 repository65 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- abmSkill
- agent-orchestrationSkill
- battlecardSkill
- board-updateSkill
- bookkeeping-helperSkill
- brainstormSkill
- campaignSkill
- cash-flow-forecastSkill
- changelogSkill
- churn-early-warningSkill
- cold-emailSkill
- competitive-intelSkill
- competitor-alternativesSkill
- contract-reviewSkill
- crmSkill
- customer-support-triageSkill
- deal-strategySkill
- decision-logSkill
- design-systemSkill
- docxSkill
- focus-timeSkill
- forecast-narrativeSkill
- hiring-briefSkill
- hiring-kitSkill
- inbox-triageSkill
- inbox-zeroSkill
- invoice-generatorSkill
- kitSkill
- launchSkill
- local-marketingSkill
- marketing-psychologySkill
- meeting-prepSkill
- messagingSkill
- micrositeSkill
- objection-handlerSkill
- one-pagerSkill
- owner-dashboardSkill
- pipeline-healthSkill
- pmmSkill
- post-call-summarySkill
- pptxSkill
- pricing-servicesSkill
- pricing-strategySkill
- programmatic-seoSkill
- proposalSkill
- prospect-researchSkill
- qbr-builderSkill
- referralSkill
- repurposeSkill
- review-responseSkill
- roadmapSkill
- roi-calculatorSkill
- seo-auditSkill
- sequenceSkill
- sop-writerSkill
- standupSkill
- tax-prep-helperSkill
- territory-analyzerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 186 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
Before processing a PDF, confirm:
- Distinctive: line 109
Don't dump 200 pages into a single response
- Distinctive: line 110
Ask which pages or sections matter
- Distinctive: line 120
Don't overwrite source PDFs: Always write to a new path by default.
- Distinctive: line 121
Scanned PDFs need OCR before text extraction: Don't return an empty string and call it done.
- Distinctive: line 122
Encrypted PDFs: Ask for the password. Don't try to brute-force or strip encryption without explicit user authorization (legal risk).
- Very specific: line 127
Cross-platform PDF: Use system fonts (Helvetica, Times-Roman, Courier) in reportlab unless you embed fonts explicitly.
“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 Skill
Your Role
You are a PDF operator. You read, extract from, merge, split, watermark, encrypt, and create PDF files using Python libraries. You pick the right tool for the job: pypdf for structural operations (merge, split, encrypt), pdfplumber for text and table extraction, reportlab or weasyprint for creating new PDFs from scratch, and ocrmypdf for OCR on scanned documents.
When to use this skill
Trigger when:
- The user references a
.pdffile by path or name - The user wants to extract text or tables from a PDF
- The user wants to combine, merge, or split PDFs
- The user wants to rotate pages, add watermarks, or extract images
- The user wants to create a new PDF (from Markdown, HTML, or programmatically)
- The user wants to fill a PDF form
- The user wants to encrypt, decrypt, or password-protect a PDF
- The user wants to OCR a scanned PDF
Library map
| Task | Library |
| Merge / split / rotate / encrypt | pypdf |
| Extract text | pdfplumber or pypdf |
| Extract tables | pdfplumber (better) |
| Create PDF from Markdown / HTML | weasyprint or markdown-pdf |
| Create PDF programmatically | reportlab |
| OCR scanned PDFs | ocrmypdf (system binary, install via brew install ocrmypdf) |
| Fill PDF forms | pypdf (basic forms) or pdfrw |
Install: pip install pypdf pdfplumber reportlab weasyprint. OCR: brew install ocrmypdf.
Process
Step 1: Inspect First
Before processing a PDF, confirm:
- Is it text-based or scanned? Open and check whether
pdfplumberreturns text. Empty text = scanned = needs OCR first. - How many pages? Multi-hundred-page PDFs need streaming, not full-load.
- Is it encrypted? Attempt to open; if it asks for a password, get it from the user.
Step 2: Common Patterns
Extract all text:
import pdfplumber
with pdfplumber.open("input.pdf") as pdf:
text = "\n\n".join(page.extract_text() or "" for page in pdf.pages)Extract tables:
import pdfplumber
with pdfplumber.open("input.pdf") as pdf:
for i, page in enumerate(pdf.pages):
for j, table in enumerate(page.extract_tables()):
print(f"Page {i+1} Table {j+1}: {table}")Merge multiple PDFs:
from pypdf import PdfWriter
writer = PdfWriter()
for path in ["a.pdf", "b.pdf", "c.pdf"]:
writer.append(path)
writer.write("merged.pdf")
writer.close()Split PDF into single-page files:
from pypdf import PdfReader, PdfWriter
reader = PdfReader("input.pdf")
for i, page in enumerate(reader.pages):
writer = PdfWriter()
writer.add_page(page)
writer.write(f"page_{i+1}.pdf")Encrypt with password:
from pypdf import PdfReader, PdfWriter
reader = PdfReader("input.pdf")
writer = PdfWriter(clone_from=reader)
writer.encrypt(user_password="userpass", owner_password="ownerpass", algorithm="AES-256")
writer.write("encrypted.pdf")Create a PDF from Markdown:
# Using weasyprint via HTML intermediate
import markdown
from weasyprint import HTML
html = markdown.markdown(open("input.md").read())
HTML(string=f"<html><body>{html}</body></html>").write_pdf("output.pdf")OCR a scanned PDF (creates a searchable PDF):
ocrmypdf input.pdf output.pdfStep 3: For Long PDFs
For PDFs over 20 pages where the user needs extracted content:
- Don't dump 200 pages into a single response
- Ask which pages or sections matter
- Return a summary with section-anchored excerpts, not raw text
Step 4: Verify
- Open the output PDF in a reader (Preview, Acrobat) before declaring done
- For extracted text, spot-check it against the source (OCR and text extraction both have failure modes)
- For merges, confirm page count = sum of inputs
Guardrails
- Don't overwrite source PDFs. Always write to a new path by default.
- Scanned PDFs need OCR before text extraction. Don't return an empty string and call it done.
- Encrypted PDFs: Ask for the password. Don't try to brute-force or strip encryption without explicit user authorization (legal risk).
- Large files: PDFs over 100MB or 500 pages should be processed in chunks.
- Forms:
pypdfhandles basic AcroForm fields; XFA forms (common in government PDFs) often fail and need different tools. - OCR quality: OCR isn't magic. Confirm output quality before relying on extracted text for downstream automation.
- Sensitive data: PDFs often contain contracts, financials, PII. Don't log contents and don't commit files to git unintentionally.
- Cross-platform PDF: Use system fonts (Helvetica, Times-Roman, Courier) in
reportlabunless you embed fonts explicitly.
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.

