Skip to content

JPeetz/agent-skills / skills/documentation-content/document-processing

document-processing

Verified

Use this skill when processing documents programmatically — PDF manipulation (extract, merge, split, rotate, watermark, form-fill, OCR), DOCX creation and editing (templates, mail-merge, style management), XLSX spreadsheet handling (formulas, charts, pivot tables, data analysis), PPTX presentation generation (layouts, charts, media, speaker notes), and cross-format document conversion via pandoc and native libraries. Designed for agentic platforms — Claude Code, Codex, Cursor, Gemini CLI, OpenClaw, GitHub Copilot, Windsurf, and OpenCode.

FileKindSize
CHANGELOG.mdmarkdown2.9 KB
LICENSEother1.0 KB
SKILL.mdskill md28.2 KB
evals/evals.jsonconfig5.1 KB
references/conversion-matrix.mdmarkdown13.5 KB
references/office-formats-guide.mdmarkdown34.0 KB
references/pdf-processing-guide.mdmarkdown23.4 KB
scripts/doc_tools_check.pyexecutablescript14.4 KB

evals/evals.json

View on GitHub
{
  "skill": "document-processing",
  "version": "1.0.0",
  "cases": [
    {
      "id": "eval-01-pdf-text-extraction",
      "description": "User wants to extract text from a PDF for downstream use \u2014 a core PDF manipulation task.",
      "input": "Extract all text from this annual report PDF and save it to a text file. I need it for analysis.",
      "shouldTrigger": true,
      "expect": "PDF Manipulation \u2192 Text extraction (pdfplumber)",
      "assertions": [
        "Skill activation detected",
        "pdfplumber selected over pypdf for layout-aware extraction",
        "Output written to a new file, not overwriting source",
        "Output file validated (non-empty, reasonable text content)"
      ]
    },
    {
      "id": "eval-02-docx-report-generation",
      "description": "User requests DOCX creation with specific structural elements \u2014 paragraph, table, image.",
      "input": "Create a monthly sales report as a Word document. Include a summary paragraph, a table with Q1 revenue by region, and the company logo at the top.",
      "shouldTrigger": true,
      "expect": "DOCX Creation \u2192 Build from scratch with python-docx",
      "assertions": [
        "Skill activation detected",
        "python-docx used to construct document",
        "Document contains heading, paragraph, table, and image",
        "Output saved as .docx with validation",
        "No source file overwritten (new creation)"
      ]
    },
    {
      "id": "eval-03-xlsx-data-report",
      "description": "User wants XLSX creation with formatting, charts, and pivot tables \u2014 full spreadsheet workflow.",
      "input": "Take this CSV of sales data, create an Excel workbook with formatted tables, a bar chart comparing regions, and a pivot table by product category.",
      "shouldTrigger": true,
      "expect": "XLSX Handling \u2192 Create with openpyxl (charts, pivot, formatting)",
      "assertions": [
        "Skill activation detected",
        "CSV data ingested and written to XLSX",
        "Bar chart embedded in worksheet",
        "Pivot table created on separate sheet",
        "Cell formatting applied (fonts, borders, number formats)",
        "Output validated (rows, columns, chart presence)"
      ]
    },
    {
      "id": "eval-04-pptx-from-markdown",
      "description": "User wants PPTX generation from structured content with speaker notes \u2014 full presentation workflow.",
      "input": "I have meeting notes in markdown. Turn them into a 10-slide PowerPoint presentation with a title slide, bullet points from each section, and speaker notes.",
      "shouldTrigger": true,
      "expect": "PPTX Generation \u2192 Build from scratch or template-driven",
      "assertions": [
        "Skill activation detected",
        "Markdown parsed into slide structure",
        "10 slides generated with correct layout types",
        "Speaker notes populated on each slide",
        "Output .pptx validated (slide count, content)"
      ]
    },
    {
      "id": "eval-05-pdf-form-filling",
      "description": "User wants programmatic PDF form filling with specific field values.",
      "input": "Fill out this tax form PDF. Name: Alice Brown, Tax ID: IE1234567X, Year: 2025, Amount: \u20ac45,200. Save the filled copy.",
      "shouldTrigger": true,
      "expect": "PDF Manipulation \u2192 Form filling with pypdf",
      "assertions": [
        "Skill activation detected",
        "PDF form fields detected via pypdf.get_fields()",
        "Field values mapped to provided data",
        "Filled form saved to new file (not overwriting template)",
        "Output validated (fields populated, pages intact)"
      ]
    },
    {
      "id": "eval-06-near-miss-read-pdf",
      "description": "User only wants content summarisation/reading, not document manipulation. This is a read/extract task, not a document-processing workflow.",
      "input": "Can you read this PDF and tell me what it says? I just want to know the main points.",
      "shouldTrigger": false,
      "expect": "",
      "assertions": [
        "User only wants content summarisation/reading, not document manipulation. This is a read/extract task, not a document-processing workflow."
      ]
    },
    {
      "id": "eval-07-near-miss-text-editing",
      "description": "General text editing \u2014 no document format manipulation, no file format operations. Pure natural language task.",
      "input": "Edit this paragraph to make it more concise and fix the grammar errors.",
      "shouldTrigger": false,
      "expect": "",
      "assertions": [
        "General text editing \u2014 no document format manipulation, no file format operations. Pure natural language task."
      ]
    },
    {
      "id": "eval-08-near-miss-image-editing",
      "description": "Image editing request \u2014 the document-processing skill handles office documents, not raster image manipulation.",
      "input": "Can you edit this photo to crop it, adjust the brightness, and remove the background?",
      "shouldTrigger": false,
      "expect": "",
      "assertions": [
        "Image editing request \u2014 the document-processing skill handles office documents, not raster image manipulation."
      ]
    }
  ]
}
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse 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.Stars: 197kUpdated Claude CodeCodexVerifiedInstall