agentleFS
holon-runholon-run/holon/skills/pdf/SKILL.md

pdf

Skill150 starsChanged 57 days agoApache-2.0View on GitHub

Inspect, extract, assemble, generate, render, OCR, and validate PDF files with local tools while treating active content and external services as explicit security boundaries.

197 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use context7-efficient, file-reading and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • hfzarslanSkill

    context7-efficient

    Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.

    Also in 5 projects that use this

  • SeifBenayedSkill

    file-reading

    Use this skill when a file has been uploaded but its content is NOT in your context — only its path at /mnt/user-data/uploads/ is listed in an uploaded_files block. This skill is a router: it tells you which tool to use for each file type (pdf, docx, xlsx, csv, json, images, archives, ebooks) so you read the right amount the right way instead of blindly running cat on a binary. Triggers: any mention of /mnt/user-data/uploads/, an uploaded_files section, a file_path tag, or a user asking about an uploaded file you have not yet read. Do NOT use this skill if the file content is already visible in your context inside a documents block — you already have it.

    Also in 6 projects that use this

  • SeifBenayedSkill

    pdf-reading

    Use this skill when you need to read, inspect, or extract content from PDF files — especially when file content is NOT in your context and you need to read it from disk. Covers content inventory, text extraction, page rasterization for visual inspection, embedded image/attachment/table/form-field extraction, and choosing the right reading strategy for different document types (text-heavy, scanned, slide-decks, forms, data-heavy). Do NOT use this skill for PDF creation, form filling, merging, splitting, watermarking, or encryption — use the pdf skill instead.

    Also in 6 projects that use this

  • yf8578Skill

    market-research-reports

    Generate comprehensive market research reports (50+ pages) in the style of top consulting firms (McKinsey, BCG, Gartner). Features professional LaTeX formatting, extensive visual generation with scientific-schematics and generate-image, deep integration with research-lookup for data gathering, and multi-framework strategic analysis including Porter Five Forces, PESTLE, SWOT, TAM/SAM/SOM, and BCG Matrix.

    Also in 7 projects that use this

  • OpenAISkill

    migrate-to-codex

    Migrate supported instruction files, skills, agents, and MCP config into Codex project and global files.

    Also in 4 projects that use this

  • jjyaoaoSkill

    gift-evaluator

    The PRIMARY tool for Spring Festival gift analysis and social interaction generation. Use this skill when users upload photos of gifts (alcohol, tea, supplements, etc.) to inquire about their value, authenticity, or how to respond socially. Integrates visual perception, market valuation, and HTML card generation.

    Also in 4 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 18 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 186 edited versions we read keep these.

  • 18

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for PDF reading, extraction, generation, page operations, forms, rendering, and optional OCR.

    line 10
  2. Distinctive:

    Treat JavaScript, actions, attachments, forms, links, signatures, and embedded files as untrusted.

    line 32
  3. Distinctive:

    Never execute document JavaScript, launch actions, embedded programs, or external links.

    line 34
  4. Distinctive:

    Do not remove passwords, permissions, signatures, or protection as a way to bypass access controls.

    line 36
  5. Distinctive:

    If a parser reports corruption, suspicious object expansion, extreme page dimensions, excessive object counts, or unsupported encryption, …

    line 41
  6. Distinctive:

    Use pypdf for page assembly, rotation, cropping, metadata, common forms, and supported encryption operations.

    line 47
  7. Distinctive:

    Use pdfplumber for positioned text and rule-based table extraction.

    line 49
  8. Distinctive:

    Prefer HTML/CSS plus a local browser or WeasyPrint for reports, proposals, manuals, and other prose-heavy documents where typography and …

    line 50
  9. Distinctive:

    Use ReportLab or pdf-lib for precise drawing, overlays, labels, forms, and documents whose layout is naturally coordinate-driven.

    line 53
  10. Distinctive:

    Use Poppler tools for local text extraction or rendering when installed.

    line 55
  11. Distinctive:

    Use qpdf for structural validation and supported transformations.

    line 56
  12. Distinctive:

    Use Tesseract only for explicitly requested local OCR and retain the original page images.

    line 57
  13. Distinctive:

    Do not describe text replacement as general PDF editing.

    line 60
  14. Distinctive:

    Never rely on Helvetica, Times, or another Latin-only base font for Chinese, Japanese, or Korean text.

    line 92
  15. Distinctive:

    Use a deliberate type scale, spacing rhythm, margins, line length, and color palette.

    line 96
  16. Distinctive:

    Check rendered pages for missing-glyph boxes, substituted fonts, clipping, overlap, isolated headings, sparse spill pages, inconsistent …

    line 102
  17. Distinctive:

    Do not infer table structure without checking coordinates and rendered pages.

    line 108
  18. Distinctive:

    Verify links, bookmarks, forms, and signatures if the requested operation can affect them.

    line 111

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

Summary

Use this skill for PDF reading, extraction, generation, page operations, forms, rendering, and optional OCR. Match the tool to the operation instead of treating PDF as a simple editable text format.

Common neutral backends include pypdf for page and metadata operations, pdfplumber for text and table inspection, ReportLab or pdf-lib for generation, HTML/CSS plus a local browser for typography-heavy documents, Poppler for rendering, and qpdf for structural checks. OCR is a separate, explicitly selected path such as local Tesseract.

When To Use

  • Extracting text, tables, metadata, links, bookmarks, or form information
  • Splitting, merging, rotating, cropping, stamping, or encrypting documents
  • Generating a PDF from structured content
  • Rendering pages for visual review
  • Running OCR on operator-approved scanned pages
  • Comparing page-level content before and after a transformation

Safety Boundaries

  • Preserve the original and write transformed output to a new path.
  • Treat JavaScript, actions, attachments, forms, links, signatures, and embedded files as untrusted.
  • Never execute document JavaScript, launch actions, embedded programs, or external links.
  • Do not remove passwords, permissions, signatures, or protection as a way to bypass access controls.
  • External OCR or conversion requires explicit approval before upload.
  • Warn that any content change can invalidate a digital signature.

If a parser reports corruption, suspicious object expansion, extreme page dimensions, excessive object counts, or unsupported encryption, stop the operation and report the limitation.

Backend Selection

  • Use pypdf for page assembly, rotation, cropping, metadata, common forms, and supported encryption operations.
  • Use pdfplumber for positioned text and rule-based table extraction.
  • Prefer HTML/CSS plus a local browser or WeasyPrint for reports, proposals, manuals, and other prose-heavy documents where typography and page design matter.
  • Use ReportLab or pdf-lib for precise drawing, overlays, labels, forms, and documents whose layout is naturally coordinate-driven.
  • Use Poppler tools for local text extraction or rendering when installed.
  • Use qpdf for structural validation and supported transformations.
  • Use Tesseract only for explicitly requested local OCR and retain the original page images.

Do not describe text replacement as general PDF editing. Existing visual content usually requires reconstruction, redaction, annotation, or a source document change rather than in-place prose editing.

Workflow

  1. Confirm the requested pages, operation, output path, preservation needs, forms or bookmarks requirements, and whether OCR is allowed.
  2. Identify the file type and inspect encryption, signatures, actions, attachments, links, page boxes, fonts, and page count.
  3. Decide whether the task is extraction, page transformation, annotation, redaction, generation, or reconstruction.
  4. For generation, establish the document type, audience, visual tone, page size, language coverage, font files, hierarchy, color tokens, and recurring components before writing rendering code. Read references/generation.md for the required typography and layout workflow. The reusable assets/chinese-report.css is a neutral starting point for polished Chinese or mixed Chinese/Latin reports, not a substitute for matching the operator's requested brand or style.
  5. Select the narrowest local backend that supports the operation.
  6. Produce a new output without activating links or embedded content.
  7. Reopen the result and check page count, dimensions, metadata, bookmarks, forms, attachments, encryption state, and expected text.
  8. Render every changed or generated page to images. Inspect the actual pages, not only the source HTML or drawing commands, and revise visible defects before delivery.
  9. For extraction or OCR, sample the output against rendered pages and record ambiguous tables, reading order, missing glyphs, and low-confidence text.

Quality Rules

  • Never rely on Helvetica, Times, or another Latin-only base font for Chinese, Japanese, or Korean text. Discover an appropriate local font, verify glyph coverage, and ensure fonts are embedded or otherwise reliably available in the produced PDF.
  • Use a deliberate type scale, spacing rhythm, margins, line length, and color palette. A technically valid PDF with backend-default styling is not a finished generated document.
  • For prose-heavy documents, prefer semantic flow layout over manually placing every line. Prevent headings, tables, figures, and callouts from splitting in visually confusing ways.
  • Check rendered pages for missing-glyph boxes, substituted fonts, clipping, overlap, isolated headings, sparse spill pages, inconsistent spacing, weak contrast, and unreadably dense tables.
  • Preserve intended page order, orientation, crop boxes, and dimensions.
  • Distinguish visual redaction from secure content removal; verify that redacted text and related objects are not extractable.
  • Do not infer table structure without checking coordinates and rendered pages.
  • Retain source page references in extracted content when useful.
  • Label OCR-derived text and do not silently replace uncertain characters.
  • Verify links, bookmarks, forms, and signatures if the requested operation can affect them.

Delivery

Report the output path, page range and operation, tools used, whether OCR or any network service was used, structural and visual checks, signature or form impact, font family and embedding status for generated documents, and extraction or OCR limitations. State explicitly when active content was present but not executed.

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.