agentleFS
z91772524-aiz91772524-ai/pojia-next-mac/skills/pdf/SKILL.md

pdf

Skill39 starsChanged 34 days agoMITView on GitHub

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.

  • Installs packages

We split this skill into the rules it gives an agent

19 rules. 0 are common, 12 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read or review PDF content where layout and visuals matter.

    line 10
  2. Distinctive:

    Create PDFs programmatically with reliable formatting.

    line 11
  3. Distinctive:

    Prefer visual review: render PDF pages to PNGs and inspect them.

    line 15
  4. Very specific:

    Use pdftoppm if available.

    line 16
  5. Distinctive:

    If unavailable, install Poppler or ask the user to review the output locally.

    line 17
  6. Very specific:

    Use reportlab to generate PDFs when creating new documents.

    line 18
  7. Very specific:

    Use pdfplumber (or pypdf) for text extraction and quick checks.

    line 19
  8. Distinctive:

    After each meaningful update, re-render pages and verify alignment, spacing, and legibility.

    line 20
  9. Very specific:

    Use tmp/pdfs/ for intermediate files.

    line 23
  10. Very specific:

    Write final artifacts under output/pdf/ when working in this repo.

    line 24
  11. Distinctive:

    Keep filenames stable and descriptive.

    line 25
  12. Very specific:

    Prefer uv for dependency management.

    line 28
  13. Very specific:

    If uv is unavailable:

    line 34
  14. Distinctive:

    If installation isn't possible in this environment, tell the user which dependency is missing and how to install it locally.

    line 47
  15. Distinctive:

    No required environment variables.

    line 50
  16. Distinctive:

    Avoid rendering issues: clipped text, overlapping elements, broken tables, black squares, or unreadable glyphs.

    line 59
  17. Distinctive:

    Use ASCII hyphens only. Avoid U+2011 (non-breaking hyphen) and other Unicode dashes.

    line 61
  18. Distinctive:

    Do not deliver until the latest PNG inspection shows zero visual or formatting defects.

    line 65
  19. Distinctive:

    Keep intermediate files organized or remove them after final approval.

    line 67

“Common” is measured: kept by at least 6 in 10 of the 175 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.