phuetz/code-buddy/pdf

Claude Code and agent skill by phuetz/code-buddy

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Work with PDF files: extract text, merge/split/reorder pages, rotate, read form fields, and render pages to images. To author a formatted PDF, build a .docx/.pptx and convert it. Use whenever the user asks to read, combine, split, or produce a PDF.

Install

npx vskill@latest install phuetz/code-buddy/pdf

SKILL.md

Work with PDF files (pypdf + pdf2image)

Use the open-source pypdf (import pypdf) for page operations and form fields, and pdf2image (from pdf2image import convert_from_path) to render pages to images. Work in visible steps; verify before reporting done.

Common tasks

  • Extract text: pypdf.PdfReader(path).pages[i].extract_text() (or python3 -m markitdown file.pdf if available).
  • Merge: w = pypdf.PdfWriter(); [w.append(p) for p in paths]; w.write('out.pdf').
  • Split / select pages: read with PdfReader, writer.add_page(reader.pages[i]) for the pages you want.
  • Rotate: page.rotate(90) before writing.
  • Form fields: reader.get_fields() to read; writer.update_page_form_field_values(...) to fill.
  • Render to image (for visual inspection): convert_from_path('file.pdf')[0].save('page1.png').

Authoring a formatted PDF

pypdf does not lay out rich content. To produce a styled PDF, build a `.docx` or `.pptx` first (see the docx/pptx skills), then convert:

bash
soffice --headless --convert-to pdf --outdir . report.docx

This yields a clean, professionally formatted PDF.

Workflow

  1. Identify the operation (extract / merge / split / fill / convert).
  2. Run the pypdf (or soffice-convert) command via the bash tool.
  3. Verify: reopen the output (PdfReader(out).pages count, or extract a snippet) and print the path.
  4. Report the saved path + a one-line summary.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/phuetz/code-buddy/pdf/badge)](https://verified-skill.com/skills/phuetz/code-buddy/pdf)

Something wrong with this skill or its page? Tell us.