agentleFS
Lincoln-cnLincoln-cn/JAgentSkillManager/skills/pdf-processing/SKILL.md

pdf-processing

Skill4 starsChanged 9 months agoMITView on GitHub

Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF documents or when user mentions PDFs, forms, or document extraction.

10 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use pptx and deep-research.

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.
  • AnthropicSkill

    pptx

    Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

    Also in 3 projects that use this

  • NVIDIASkill

    deep-research

    Queue deep, multi-step research and analysis tasks to the DeepAgents worker. Supports execution depth presets, request-specific rubrics, SubAgent delegation, and RubricMiddleware cross-validation.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 3

    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 when the user needs to work with PDF files, extract text content, fill PDF forms, or merge multiple PDF documents.

    line 13
  2. Distinctive:

    Identify: Look for table structures in the PDF pages

    line 41
  3. Distinctive:

    File not found: Verify the file path is correct and file exists

    line 120

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

When to use this skill

Use this skill when the user needs to work with PDF files, extract text content, fill PDF forms, or merge multiple PDF documents. This skill handles various PDF operations including text extraction, table extraction, form filling, and document merging.

How to extract text from PDF

To extract text content from a PDF file:

  1. Input: Provide the PDF file path or upload the PDF file
  2. Process: The skill will use PDF processing library to extract all text content
  3. Output: Returns extracted text with page numbers and formatting information

Parameters

  • file_path (required): Path to the PDF file
  • preserve_formatting (optional): Whether to preserve text formatting (default: true)
  • page_range (optional): Specific page range to extract (e.g., "1-5")

Example

Request: "Extract text from the contract.pdf"
Parameters: {
  "file_path": "/documents/contract.pdf",
  "preserve_formatting": true
}

How to extract tables from PDF

To extract structured table data from PDFs:

  1. Identify: Look for table structures in the PDF pages
  2. Extract: Pull table data with row/column structure
  3. Format: Return as structured data (JSON/CSV format)

Parameters

  • file_path (required): Path to the PDF file
  • table_format (optional): Output format - "json" or "csv" (default: "json")
  • page_numbers (optional): Specific pages to search for tables

Example

Request: "Extract tables from the financial report"
Parameters: {
  "file_path": "/reports/financial.pdf",
  "table_format": "json",
  "page_numbers": "1-10"
}

How to fill PDF forms

To fill interactive form fields in PDF documents:

  1. Load: Load the PDF with form fields
  2. Identify: Detect all fillable form fields
  3. Fill: Apply provided data to corresponding fields
  4. Save: Generate filled PDF output

Parameters

  • file_path (required): Path to the PDF form
  • form_data (required): JSON object with field names and values
  • output_path (optional): Path for filled PDF output

Example

Request: "Fill out the application form with my information"
Parameters: {
  "file_path": "/forms/application.pdf",
  "form_data": {
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone": "+1-555-0123"
  },
  "output_path": "/forms/filled-application.pdf"
}

How to merge PDFs

To combine multiple PDF documents into a single file:

  1. Collect: Gather all PDF file paths
  2. Order: Specify the order of merging
  3. Merge: Combine into single PDF with bookmarks
  4. Output: Generate merged PDF file

Parameters

  • file_paths (required): Array of PDF file paths to merge
  • output_path (required): Path for merged PDF output
  • add_bookmarks (optional): Whether to add bookmarks for each original file (default: true)

Example

Request: "Merge all chapters into one document"
Parameters: {
  "file_paths": [
    "/documents/chapter1.pdf",
    "/documents/chapter2.pdf", 
    "/documents/chapter3.pdf"
  ],
  "output_path": "/documents/complete-book.pdf",
  "add_bookmarks": true
}

Error Handling

Common errors and their solutions:

  • File not found: Verify the file path is correct and file exists
  • Corrupted PDF: The PDF may be damaged, try recovery tools
  • Password protected: Provide password for encrypted PDFs
  • Memory issues: Large PDFs may require chunked processing

Scripts Reference

This skill can execute the following helper scripts:

scripts/extract-pdf.py

Python script for advanced text extraction with OCR support for scanned PDFs.

scripts/merge-pdfs.py

Python script for merging multiple PDFs with customizable options.

scripts/fill-form.py

Python script for intelligent form field detection and filling.

Performance Notes

  • Text extraction: ~100MB PDFs process in <10 seconds
  • Table extraction: Depends on table complexity, typically 5-30 seconds
  • Form filling: Usually <5 seconds for standard forms
  • PDF merging: Linear time based on total file size

For best performance, ensure adequate system memory and consider chunked processing for very large documents.

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.