Skip to content

ericrisco/rsc-harness / skills/document-processing

document-processing

Verified

Use when the deliverable is a document's bytes or its literal content — text/tables out of PDFs, AcroForm fill and flatten, page merge/split, PDF/DOCX from templates, OCR of image-only scans. NOT schema-typed fields pulled from text (that is structured-extraction), NOT signature routing (e-signature) or spreadsheet cells/formulas (spreadsheet-ops).

FileKindSize
SKILL.mdskill md9.6 KB
evals/README.mdmarkdown963 B
evals/cases.yamlconfig4.2 KB
references/engines.mdmarkdown5.3 KB
scripts/verify.shexecutablescript6.4 KB

evals/cases.yaml

View on GitHub
skill: document-processing

# Prompts that MUST load `document-processing`. The skill owns the byte-level
# work of turning documents into content and data into documents: extract
# text/tables from PDFs, fill AcroForm fields, generate PDF/DOCX from
# templates, and OCR image-only files into Markdown/JSON. The deliverable is
# bytes of a document or the literal content of one.
should_trigger:
  - prompt: "Extract all the tables from this scanned invoice PDF into CSV."
    why: "Table extraction is core; 'scanned' means it must first detect no text layer and OCR, then emit CSV cells — file-in/content-out."

  - prompt: "Fill this PDF application form with these values and flatten it so it can't be edited."
    why: "AcroForm fill via pypdf update_page_form_field_values + flatten — the canonical form-filling job this skill owns."

  - prompt: "Generate a Word contract from this .docx template and a dict of client fields."
    why: "docxtpl: author-in-Word template rendered with a context dict — data-in/file-out generation."

  - prompt: "These PDFs copy out as garbled symbols — get me clean text."
    why: "Non-obvious: the symptom describes a broken/embedded font or image-only PDF, not a feature request; the skill diagnoses the text-layer problem and OCRs or re-extracts."

  - prompt: "Rellena este formulario PDF y luego fusiona los tres documentos en uno solo."
    why: "Spanish: fill a PDF form then merge three documents into one — form fill + pypdf merge, both owned here."

  - prompt: "Convert 200 scanned pages to Markdown keeping the table structure, locally, with no API."
    why: "Local batch OCR with table structure preserved -> Docling/Marker; the 'no API / local' constraint forces the local pipeline, not a hosted one."

  - prompt: "Merge these five PDFs, rotate page 2, and rasterize the cover to a PNG."
    why: "Pure page-level byte ops (merge/rotate/raster) are squarely this skill's pypdf/PyMuPDF territory."

# NEAR-MISS prompts that must NOT load `document-processing`. The recurring
# trap: anything where the real deliverable is a typed object, a signature
# workflow, a spreadsheet grid, a retrieval index, or the acquisition of files.
should_not_trigger:
  - prompt: "Parse this contract text into a typed JSON schema of parties, dates, and amounts."
    route_to: "structured-extraction"
    why: "Deliverable is a schema-typed object, not raw content; this skill produces the Markdown that structured-extraction then types."

  - prompt: "Send this signed PDF to the client for signature with an audit trail."
    route_to: "e-signature"
    why: "Signer workflow, routing, and audit trail are e-signature; document-processing only produces or edits the bytes."

  - prompt: "Read the values from B2:D40 of this spreadsheet and sum them."
    route_to: "spreadsheet-ops"
    why: "Cells, ranges, and formulas are a spreadsheet grid — spreadsheet-ops, not document bytes."

  - prompt: "Index these PDFs so I can ask questions across all of them."
    route_to: "rag"
    why: "Retrieval/embeddings index for Q&A is rag; this skill produces the text rag ingests but does not index it."

  - prompt: "Crawl this site and download every PDF it links to."
    route_to: "data-scraper"
    why: "Acquiring documents off the web is data-scraper; processing them once they are on disk is this skill."

# Capability: graded against the must_include rubric.
capability:
  - scenario: >
      The user has a folder of scanned, image-only invoice PDFs (a few pages
      are handwritten) and wants the line items as CSV. Hard constraint: fully
      local, no cloud API may be used. Outline the pipeline you would run.
    must_include:
      - "Detects or states the PDFs are image-only (no text layer), e.g. via pdfplumber extract_text() returning empty, so OCR is required."
      - "Picks a LOCAL pipeline (Docling or Marker + Tesseract/RapidOCR), explicitly NOT a hosted API like Mistral OCR, honoring the 'no cloud' constraint."
      - "Produces Markdown/tables from the OCR, then notes the handoff to structured-extraction for typed line-item fields rather than regexing them here."
      - "Adds a verification step: spot-check OCR'd totals/numbers against the page image (0/O, 1/l, shifted decimals)."
      - "Uses current libraries (pypdf / pdfplumber / docling), never PyPDF2."
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