Skill3 starsChanged 4 months agoMITView on GitHub
Use this skill whenever the user wants to do anything with PDF files, including reading or extracting text, searching for text, inspecting document metadata, reading bookmarks (outlines) and link/note annotations, merging/splitting/ rotating/cropping documents, removing pages, creating new PDFs, adding text stamps and page numbers, watermarking, rendering pages to images, and extracting embedded images. If the user mentions a .pdf file or asks to produce one, use this skill.
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 10 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 · 1
- unreadlogs/AutarkChat★ 4100% same
Edited · 1
- keirsalterego/jailbreak-fable★ 4330% same
Wrote their own version · 195
- 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
185 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 repository3 other files it gives its agents.
- frontend-uiSkill
- launch-auditSkill
- mermaid-diagram-builderSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 185 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
No Python, no system PDF utilities required.
- Very specific: line 32
Run from the skills/pdf/ directory (or use an absolute path to scripts/index.js).
- Very specific: line 93
Start with info to learn the page count, dimensions, and metadata.
- Very specific: line 121
Use the returned x0/top/x1/bottom values to locate the text visually.
- Very specific: line 136
Read metadata with no output argument.
- Very specific: line 147
All page selections accept a list, a range, or both (1,3, 1-5, 1-3,7).
- Distinctive: line 241
All bounding-box and stamp coordinates are top-down PDF points (y = 0 at the top), matching how pages are laid out visually.
“Common” is measured: kept by at least 6 in 10 of the 185 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
Native Node.js toolkit for PDF processing. All operations are driven from a
single CLI (scripts/index.js) with subcommands. Every command follows a
strict JSON I/O contract so results are easy for an agent to parse.
The library stack is 100% JavaScript:
pdf-libfor create/modify/merge/split/rotate/crop/remove/metadatapdfjs-distfor text extraction, search, annotations, bookmarks, and rendering@napi-rs/canvasfor PNG/JPG rasterization
No Python, no system PDF utilities required.
Execution Command
node scripts/index.js <command> <arguments...>Run from the skills/pdf/ directory (or use an absolute path to scripts/index.js).
Input / Output Schema
Inputs:
- First argument is the subcommand name.
- Remaining arguments are positional (paths) and flags (
--name value).
stdout: a single line of JSON: { "data": <result> }
stderr: on error, a single line of JSON: { "error": "message" } and the process
exits with code 1.
# success
$ node scripts/index.js info document.pdf
{"data":{"page_count":2,"metadata":{...},"pages":[...]}}
# failure
$ node scripts/index.js info missing.pdf
{"error":"ENOENT: no such file or directory, open 'missing.pdf'"}Commands
Read & inspect
| Command | Arguments | Output data |
info | <input.pdf> | { page_count, file_size, metadata, pages: [{page,width,height,rotation}] } |
text | <input.pdf> [--pages 1-3] | { file, pages, text, pageTexts } |
search | <input.pdf> <query> [--pages 1-3] [--case-sensitive] [--regex] | { query, total_matches, matches: [{page,text,x0,top,x1,bottom}] } |
metadata | <input.pdf> | { metadata } |
annotations | <input.pdf> [--pages 1-3] | { file, annotation_count, annotations } |
outline | <input.pdf> | { file, outline: [{title,url,page,children}] } |
render | <input.pdf> <out-dir> [--scale N] [--max-dim N] [--format png|jpg] [--quality N] [--pages 1-3] | { output_dir, images } |
thumbnail | <input.pdf> <out-dir> [--size N] [--pages 1-3] [--format png|jpg] | { output_dir, thumb_size, images } |
extract-images | <input.pdf> <out-dir> | { output_dir, images } |
Modify
| Command | Arguments | Output data |
merge | <output.pdf> <input1.pdf[:range]> [input2.pdf[:range] ...] | { output, merged } |
split | <input.pdf> <out-dir> [--pages 1-3] [--by-range "1-2,4-5"] | { output_dir, files } or { output_dir, chunks, files } |
rotate | <input.pdf> <output.pdf> --pages 1,2 --deg 90 | { output, degrees, pages } |
remove-pages | <input.pdf> <output.pdf> --pages 1,3,5 | { output, removed, requested } |
crop | <input.pdf> <output.pdf> --x N --y N --width N --height N [--page N] | { output, crop_box, pages } |
stamp | <input.pdf> <output.pdf> --text "..." [--pages 1-3] [--x N] [--y N] [--size N] [--font NAME] [--color HEX] [--background HEX] [--opacity N] | { output, pages } |
page-numbers | <input.pdf> <output.pdf> [--pages 1-3] [--x N] [--y N] [--size N] [--start N] [--with-total] | { output, pages } |
watermark | <input.pdf> <watermark.pdf> <output.pdf> | { output } |
metadata | <input.pdf> <output.pdf> --title "..." --author "..." ... | { output, metadata } |
Create
| Command | Arguments | Output data |
create | <output.pdf> --json <spec.json> or --text "..." | { output, pages } |
--version | (no arguments) | { name, version } |
Reading a document
Start with info to learn the page count, dimensions, and metadata. Use text
to read the content. For a large document, scope reads with --pages (e.g.
--pages 1-5 or --pages 3).
node scripts/index.js info report.pdf
node scripts/index.js text report.pdf --pages 1-3Search
search returns every occurrence of a query with its page and bounding box in
top-down PDF coordinates (y = 0 at the top of the page):
node scripts/index.js search report.pdf "invoice total"Matching is case-insensitive by default; pass --case-sensitive for exact
matching. Pass --regex to treat the query as a regular expression (useful for
patterns like invoice numbers). Each word is treated as a separate line, so
^/$ anchors match word boundaries; use \s+ between words for phrases:
node scripts/index.js search report.pdf "\d{4}-\d{4}" --regex
node scripts/index.js search report.pdf "^Total$" --regexUse the returned x0/top/x1/bottom values to locate the text visually.
Annotations and bookmarks
annotations lists links, text notes, and highlights with their page, type,
rectangle, and (for links) URL. outline returns the document's bookmark tree
with the target page number of each entry:
node scripts/index.js annotations report.pdf
node scripts/index.js outline report.pdfMetadata
Read metadata with no output argument. Write metadata by supplying an output
path and any of --title, --author, --subject, --keywords, --creator,
--producer:
node scripts/index.js metadata report.pdf
node scripts/index.js metadata report.pdf updated.pdf --title "Q3 Report" --author "Finance"Editing pages
All page selections accept a list, a range, or both (1,3, 1-5, 1-3,7).
# combine documents; optionally take only some pages from an input
node scripts/index.js merge combined.pdf part1.pdf part2.pdf:1-3
# split out pages 2-4 into individual files
node scripts/index.js split full.pdf out/ --pages 2-4
# split into chunks of pages
node scripts/index.js split full.pdf out/ --by-range "1-2,4-5"
# rotate pages 1 and 3 by 90 degrees
node scripts/index.js rotate full.pdf out.pdf --pages 1,3 --deg 90
# delete pages
node scripts/index.js remove-pages full.pdf trimmed.pdf --pages 2,5-6
# crop page 1 to a region (coordinates are top-down: x/y = top-left corner)
node scripts/index.js crop full.pdf out.pdf --x 50 --y 60 --width 400 --height 600 --page 1Stamping and page numbers
stamp overlays text on one or more pages. Coordinates are top-down (x/y =
top-left of the text); by default the text is centered on the page. Multi-line
text is supported with \n. Fonts: Helvetica, HelveticaBold, Times,
Courier. --color and --background are hex values like FF0000.
node scripts/index.js stamp full.pdf out.pdf --text "CONFIDENTIAL\nFOR REVIEW" --pages 1-3 --size 36 --color FF0000 --background FFFF00 --opacity 0.5page-numbers draws page numbers (optionally "N / M") at the bottom center:
node scripts/index.js page-numbers full.pdf out.pdf --with-total --start 5Watermark
watermark stamps the first page of a second PDF over every page of the input:
node scripts/index.js watermark draft.pdf watermark.pdf out.pdfCreating PDFs
Minimal text PDF:
node scripts/index.js create hello.pdf --text "Hello World!"Structured PDF via a spec file (coordinates are top-down, y = 0 at the top):
{
"pages": [
{
"width": 612,
"height": 792,
"texts": [{ "text": "Invoice", "x": 50, "y": 50, "size": 18, "font": "HelveticaBold" }],
"lines": [{ "x1": 50, "y1": 60, "x2": 300, "y2": 60, "thickness": 1 }],
"rectangles": [{ "x": 50, "y": 80, "width": 200, "height": 20, "color": "DDDDDD" }],
"images": [{ "x": 20, "y": 120, "width": 100, "height": 50, "data": "<base64 or data URI>" }]
}
]
}Rendering
render converts pages to PNG (default) or JPG images. By default pages render
at 1:1 up to a max dimension of 1000px; adjust with --scale and --max-dim:
node scripts/index.js render report.pdf images/ --scale 2
node scripts/index.js render report.pdf images/ --format jpg --quality 0.9 --pages 1-5Images are written as page_<N>.png (or .jpg) in the output directory.
thumbnail renders small preview images for quickly scanning many pages:
node scripts/index.js thumbnail report.pdf thumbs/ --size 150Thumbnails are written as thumb_<N>.png.
Notes and limitations
- All bounding-box and stamp coordinates are top-down PDF points (y = 0 at the top), matching how pages are laid out visually.
- Password-protected PDFs are not supported. Use
qpdf --password=... --decryptortesseractfor OCR as needed. - Rendering requires embedded fonts to be available; standard fonts are loaded
from
pdfjs-distautomatically.
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.

