Catalog
openai/pdf

openai

pdf

Use when tasks involve reading, creating, or reviewing PDF files where rendering and layout matter; prefer visual checks by rendering pages (Poppler) and use Python tools such as `reportlab`, `pdfplumber`, and `pypdf` for generation and extraction.

global
0installs0uses~620
v1.0Saved Apr 5, 2026

PDF 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

  1. Prefer visual review: render PDF pages to PNGs and inspect them.
    • Use pdftoppm if available.
    • If unavailable, install Poppler or ask the user to review the output locally.
  2. Use reportlab to generate PDFs when creating new documents.
  3. Use pdfplumber (or pypdf) for text extraction and quick checks; do not rely on it for layout fidelity.
  4. 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.
Files3
3 files · 12.0 KB

Select a file to preview

Overall Score

84/100

Grade

B

Good

Safety

85

Quality

86

Clarity

82

Completeness

79

Summary

This skill guides AI agents to create, read, and review PDF files using Python libraries (reportlab, pdfplumber, pypdf) and system tools (Poppler). It emphasizes visual validation by rendering pages to images and provides clear workflows for PDF generation, text extraction, and quality assurance.

Static Analysis Findings

1 finding

Patterns detected by deterministic static analysis before AI scoring. Hover over any finding code for detailed information and remediation guidance.

Destructive Operation
SEC-002Privilege Escalation

Privilege escalation (sudo)

SKILL.mdsudo a

Detected Capabilities

PDF generation with reportlabText extraction with pdfplumber and pypdfPDF rendering to PNG with pdftoppm (Poppler)Dependency installation via uv and pipFile management (temp directories, output organization)Visual quality inspection and validation

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

generate pdfrender pdf pagesextract pdf textvalidate pdf layoutcreate formatted document

Risk Signals

WARNING

sudo apt-get install -y poppler-utils

SKILL.md | Dependencies section

Referenced Domains

External domains referenced in skill content, detected by static analysis.

www.apache.org

Use Cases

  • Generate formatted PDF documents programmatically with reportlab
  • Extract and validate text content from existing PDFs
  • Visually inspect PDF rendering to catch layout and formatting issues
  • Review PDF output before delivery to ensure polished design and readability

Quality Notes

  • Clear, well-structured workflow with step-by-step guidance and practical conventions
  • Comprehensive dependency management instructions covering multiple package managers (uv, pip, Homebrew, apt)
  • Explicit quality expectations including visual standards and character encoding rules
  • Helpful error handling guidance: if installations fail, agent is instructed to inform user of missing dependencies and local installation steps
  • Good separation of concerns: visual rendering, text extraction, and generation each have designated tools
  • Provides concrete command examples (pdftoppm rendering) and file naming conventions
  • Final checks section ensures validation before delivery
  • Minor: The sudo usage is in an optional system installation path (Ubuntu/Debian) and is clearly documented; this is standard practice for system package installation and appropriate context
Model: claude-haiku-4-5-20251001Analyzed: Apr 5, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Add openai/pdf to your library

Command Palette

Search for a command to run...