
PDF Skill
OfficialFreeEfficiently manage PDF creation and review tasks.
Free · Opens the source repo
What PDF Skill does
The PDF Skill is designed for developers and designers who need to read, create, or review PDF files while ensuring that rendering and layout integrity are maintained. This skill leverages Python libraries such as reportlab, pdfplumber, and pypdf to facilitate PDF generation and text extraction, while also emphasizing the importance of visual checks through rendering. By using tools like Poppler, users can render PDF pages to PNGs for detailed inspection, ensuring that the final output meets high-quality standards.
The workflow encourages users to prioritize visual reviews, especially when layout and formatting are critical. After generating or modifying a PDF, it is essential to re-render the pages and verify that elements are correctly aligned and legible. This skill is particularly useful for tasks where the visual presentation of documents matters, such as creating reports, brochures, or any other materials that will be distributed in PDF format.
In addition to its core functionality, the PDF Skill provides a structured approach to managing intermediate files and final outputs, ensuring that users maintain a clean working environment. By following the conventions laid out in the skill, users can keep their projects organized and avoid common pitfalls associated with PDF rendering issues, such as clipped text or misaligned graphics. This makes the PDF Skill a valuable tool for anyone involved in document preparation, whether for business, educational, or creative purposes.
When to use it
Use this skill when you need to create PDFs programmatically or validate the visual layout of existing PDF documents.
When not to use it
This skill may not be suitable for simple text extraction tasks where layout is not a concern, or if you do not require visual fidelity in your PDF outputs.
What you can build with it
Creating a Marketing Brochure
Use this skill to programmatically generate a visually appealing PDF brochure, ensuring that all design elements are correctly rendered.
Reviewing Academic Papers
Render academic papers to PNGs for a thorough visual review, checking for layout issues before submission.
Generating Reports with Charts
Create detailed reports that include charts and tables, validating the layout and clarity of each element before final delivery.
How to install PDF Skill
View source1. Install with the skills CLI
npx skills add openai/skills/pdf --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by openaiPDF Skill
When to use
- Read or review PDF content where layout and visuals matter.
- Create PDFs programmatically with reliable formatting.
- Validate final rendering before delivery.
Workflow
- Prefer visual review: render PDF pages to PNGs and inspect them.
- Use
pdftoppmif available. - If unavailable, install Poppler or ask the user to review the output locally.
- Use
- Use
reportlabto generate PDFs when creating new documents. - Use
pdfplumber(orpypdf) for text extraction and quick checks; do not rely on it for layout fidelity. - After each meaningful update, re-render pages and verify alignment, spacing, and legibility.
Temp and output conventions
- Use
tmp/pdfs/for intermediate files; delete when done. - Write final artifacts under
output/pdf/when working in this repo. - Keep filenames stable and descriptive.
Dependencies (install if missing)
Prefer uv for dependency management.
Python packages:
uv pip install reportlab pdfplumber pypdf
If uv is unavailable:
python3 -m pip install reportlab pdfplumber pypdf
System tools (for rendering):
# macOS (Homebrew)
brew install poppler
# Ubuntu/Debian
sudo apt-get install -y poppler-utils
If installation isn't possible in this environment, tell the user which dependency is missing and how to install it locally.
Environment
No required environment variables.
Rendering command
pdftoppm -png $INPUT_PDF $OUTPUT_PREFIX
Quality expectations
- Maintain polished visual design: consistent typography, spacing, margins, and section hierarchy.
- Avoid rendering issues: clipped text, overlapping elements, broken tables, black squares, or unreadable glyphs.
- Charts, tables, and images must be sharp, aligned, and clearly labeled.
- Use ASCII hyphens only. Avoid U+2011 (non-breaking hyphen) and other Unicode dashes.
- Citations and references must be human-readable; never leave tool tokens or placeholder strings.
Final checks
- Do not deliver until the latest PNG inspection shows zero visual or formatting defects.
- Confirm headers/footers, page numbering, and section transitions look polished.
- Keep intermediate files organized or remove them after final approval.
Frequently asked questions about PDF Skill
Similar skills
Spring Boot Testing
Master testing techniques for Spring Boot 4 applications.
GitHub Issues
Manage GitHub issues efficiently with MCP tools.
Geofeed Tuner
Optimize your IP geolocation feeds in CSV format.
Batch Files
Master Windows batch scripting for automation and task management.
Adobe Illustrator Scripting
Automate your Illustrator workflows with ExtendScript.
Plugin Structure
Create and organize Claude Code plugins effectively.
