document-pdf

vasilyu1983/ai-agents-public · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/vasilyu1983/ai-agents-public --skill document-pdf
0 commentsdiscussion
summary

This skill enables PDF creation, extraction, manipulation, and analysis. Claude should apply these patterns when users need to generate invoices, reports, extract data from PDFs, merge documents, or work with PDF forms.

skill.md

Document PDF Skill — Quick Reference

This skill enables PDF creation, extraction, manipulation, and analysis. Claude should apply these patterns when users need to generate invoices, reports, extract data from PDFs, merge documents, or work with PDF forms.

Modern Best Practices (Jan 2026):

  • PDF is a release artifact, not the editable source of truth.
  • Validate export fidelity (fonts, images, links) and accessibility where required.
  • Accessibility: if compliance matters, target a tagged/structured PDF workflow (often PDF/UA-aligned) and validate with tooling.
  • EU distribution: EAA (June 2025) typically implies EN 301 549 expectations for customer-facing PDFs.
  • Treat PDFs as sensitive: scrub metadata, ensure real redaction, and control distribution.

Core Decision Rules (2026)

  • First decide: born-digital PDF (selectable text) vs scanned PDF (images). Scanned PDFs usually require OCR; see references/pdf-extraction-patterns.md.
  • If the user needs accessibility/compliance, prefer generating from a source format that supports structure (DOCX/HTML + proper export) rather than “post-fixing” an untagged PDF.
  • For deterministic ops (merge/split/rotate/scrub), prefer scripts/ helpers over re-implementing ad hoc.
  • Never treat black rectangles or overlays as redaction; use real redaction and verify by copy/paste + search.

Quick Reference

Task Tool/Library Language When to Use
Create PDF pdfkit Node.js Reports, invoices, certificates
Create PDF ReportLab Python Complex layouts, tables
Create PDF FPDF2 Python Simple PDFs with Unicode support
Create PDF Borb Python Interactive elements, pure Python
Edit PDF pdf-lib Node.js Modify existing PDFs, add pages
Extract text pdfplumber Python OCR-free text extraction
OCR scanned PDF PyMuPDF + Tesseract Python Scanned PDFs (no selectable text)
Extract tables Camelot Python Tables with borders (Lattice mode)
Extract tables Camelot/Tabula Python Tables without borders (Stream mode)
Parse/merge/split/rotate pypdf Python Deterministic PDF manipulation
Fill forms pdf-lib Node.js Form automation
HTML to PDF Puppeteer/Playwright Node.js High-fidelity web page rendering
HTML to PDF WeasyPrint Python CSS3-based, no browser needed

When to Use This Skill

Claude should invoke this skill when a user requests:

  • Generate PDFs from data (invoices, reports, certificates)
  • Extract text or tables from existing PDFs
  • Merge multiple PDFs into one document
  • Split PDFs into separate files
  • Fill PDF forms programmatically
  • Add watermarks, headers, footers
  • Convert HTML/web pages to PDF

Default Workflow

  • Create: pick pdfkit (Node) or ReportLab (Python) and start from assets/invoice-template.md or assets/report-template.md; for advanced layouts use references/pdf-generation-patterns.md.
  • Extract: use references/pdf-extraction-patterns.md (text/tables/images/metadata + OCR fallback).
  • Ship: run assets/pdf-release-checklist.md (fidelity, links, accessibility baseline, privacy).

Scripts (Deterministic Operations)

Scripts are optional helpers; they assume Python 3 plus the listed dependencies in each file.

  • Merge: python3 scripts/merge_pdfs.py merged.pdf a.pdf b.pdf
  • Split: python3 scripts/split_pdf.py in.pdf out_dir --each-page
  • Rotate: python3 scripts/rotate_pdf.py in.pdf out.pdf --degrees 90
  • Scrub metadata: python3 scripts/scrub_metadata.py in.pdf out.pdf

PDF Structure Patterns

Invoice Template

INVOICE STRUCTURE
├── Header (logo, company info, invoice #)
├── Bill To / Ship To blocks
├── Line items table
│   ├── Description | Qty | Unit Price | Total
│   └── Subtotal, Tax, Total
├── Payment terms
└── Footer (contact, thank you)

Report Template

REPORT PDF STRUCTURE
├── Cover page (title, author, date)
├── Table of contents
├── Body sections with page numbers
├── Charts/images with captions
├── Appendices
└── Running header/footer

Decision Tree

PDF Task: [What do you need?]
    ├─ Create new PDF?
    │   ├─ Simple text/tables → pdfkit (Node) or ReportLab (Python)
    │   ├─ Complex layouts → ReportLab with Platypus
    │   └─ From HTML → Puppeteer or wkhtmltopdf
    ├─ Extract from PDF?
    │   ├─ Text only → pdfplumber (Python)
    │   ├─ Tables → pdfplumber or camelot (Python)
    │   └─ Images → PyMuPDF/fitz (Python)
    ├─ Modify existing PDF?
    │   ├─ Add text/images → pdf-lib (Node)
    │   ├─ Merge/split → pypdf or pdf-lib
    │   └─ Fill forms → pdf-lib
    └─ Batch processing?
        └─ pypdf + pdfplumber pipeline

Do / Avoid (Jan 2026)

Do

  • Keep a versioned source document (doc/slide/design file) alongside the PDF.
  • Verify links and reading order for long documents.
  • Use real redaction and test by copy/paste.

Avoid

  • Editing PDFs as the primary workflow when a source doc exists.
  • Shipping PDFs with broken links or illegible charts.
  • Including customer PII or secrets in PDFs without explicit approval.

What Good Looks Like

  • Fidelity: export is reproducible from a versioned source file (doc/slide/design) and looks identical across viewers.
  • Accessibility: tags/reading order are correct; links work; scanned docs are OCRed when appropriate.
  • Release hygiene: file naming includes version/date; metadata is clean; no “PDF as source of truth”.
  • Security: redaction is verified (copy/paste test) and sensitive data is minimized.
  • QA: release checklist completed using assets/pdf-release-checklist.md.

Optional: AI / Automation

Use only when explicitly requested and policy-compliant.

  • Generate a release checklist run; humans verify the final PDF manually.

Navigation

Resources

Templates

Related Skills

Fact-Checking

  • Use web search/web fetch to verify current external facts, versions, pricing, deadlines, regulations, or platform behavior before final answers.
  • Prefer primary sources; report source links and dates for volatile information.
  • If web access is unavailable, state the limitation and mark guidance as unverified.
how to use document-pdf

How to use document-pdf on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add document-pdf
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/vasilyu1983/ai-agents-public --skill document-pdf

The skills CLI fetches document-pdf from GitHub repository vasilyu1983/ai-agents-public and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/document-pdf

Reload or restart Cursor to activate document-pdf. Access the skill through slash commands (e.g., /document-pdf) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.629 reviews
  • Amelia Malhotra· Dec 4, 2024

    I recommend document-pdf for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Hassan Patel· Nov 23, 2024

    Keeps context tight: document-pdf is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Hassan Jackson· Oct 14, 2024

    Registry listing for document-pdf matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Rahul Santra· Sep 13, 2024

    Keeps context tight: document-pdf is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Carlos Johnson· Sep 1, 2024

    I recommend document-pdf for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Jin Huang· Aug 20, 2024

    document-pdf reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Pratham Ware· Aug 4, 2024

    Registry listing for document-pdf matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Aisha Wang· Jul 27, 2024

    document-pdf is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Sakshi Patil· Jul 23, 2024

    document-pdf reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Henry Li· Jul 11, 2024

    Registry listing for document-pdf matched our evaluation — installs cleanly and behaves as described in the markdown.

showing 1-10 of 29

1 / 3