Skip to content
Skills Library
Documents & office · Conversion & formats

pdfingest

/pdfingest

First-pass ingestion of PDFs and office documents (DOCX/PPTX/XLSX/HTML/EPUB) into LLM-ready markdown via Docling — layout-aware reading order, real table structure, OCR for scans. Use when the task is to read, cite, or fold a document into research notes or a corpus: "ingest this paper", "what does this PDF say", "pull the tables out of this report", "add this to the research register". Handles the whole two-tier shape: deterministic Docling extraction first, vision pass only where Docling's output is insufficient (figures, dense math, mangled layout).

Repository
assay ↗
Licence
Apache-2.0
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
1
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What to check before installing
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

What it does and when to use it

First-pass ingestion of PDFs and office documents (DOCX/PPTX/XLSX/HTML/EPUB) into LLM-ready markdown via Docling — layout-aware reading order, real table structure, OCR for scans. Use when the task is to read, cite, or fold a document into research notes or a corpus: "ingest this paper", "what does this PDF say", "pull the tables out of this report", "add this to the research register". Handles the whole two-tier shape: deterministic Docling extraction first, vision pass only where Docling's output is insufficient (figures, dense math, mangled layout).

Triggers from the description

ingest this paperwhat does this PDF saypull the tables out of this reportadd this to the research register
Original author description

First-pass ingestion of PDFs and office documents (DOCX/PPTX/XLSX/HTML/EPUB) into LLM-ready markdown via Docling — layout-aware reading order, real table structure, OCR for scans. Use when the task is to read, cite, or fold a document into research notes or a corpus: "ingest this paper", "what does this PDF say", "pull the tables out of this report", "add this to the research register". Handles the whole two-tier shape: deterministic Docling extraction first, vision pass only where Docling's output is insufficient (figures, dense math, mangled layout).

How it works

  1. 1. Convert
  2. 2. Cite with anchors
  3. 3. Know the failure modes
  4. 4. Discipline
Original SKILL.md headings · 78 lines, 592 words
SKILL.md preview
---
name: pdfingest
description: >-
  First-pass ingestion of PDFs and office documents (DOCX/PPTX/XLSX/HTML/EPUB)
  into LLM-ready markdown via Docling — layout-aware reading order, real table
  structure, OCR for scans. Use when the task is to read, cite, or fold a
  document into research notes or a corpus: "ingest this paper", "what does
  this PDF say", "pull the tables out of this report", "add this to the
  research register". Handles the whole two-tier shape: deterministic Docling
  extraction first, vision pass only where Docling's output is insufficient
  (figures, dense math, mangled layout).
---
<!-- GENERATED from plugins/assay/skills/pdfingest/SKILL.md by deskinstall --harness cursor. Do not edit. -->

# pdfingest — document first pass

You are ingesting a document. The rule of this skill is the **two-tier shape**:
a cheap deterministic first pass (Docling — layout model, table-structure
model, OCR) over the whole document, then an expensive vision pass only on the
parts the first pass cannot carry. Never page an entire PDF through vision when
markdown extraction answers the question.

## 1. Convert

Run `plugins/assay/scripts/pdfingest.sh` (or any docling-serve client).
**No endpoint yet?** `SETUP.md` beside this skill installs Docling four ways —
local `pip install` (zero infra, the client's automatic fallback), Docker,
a plain Kubernetes Deployment, and an optional scale-to-zero rung — all
reproducible with no access to any particular deployment.

```bash
pdfingest.sh paper.pdf > paper.md       # markdown to stdout
pdfingest.sh --json paper.pdf           # page/bbox provenance — for citations
pdfingest.sh --pages 12-14 paper.pdf    # a slice, when hunting one claim
pdfingest.sh --health                   # is the endpoint up?
```

- Endpoint: `ASSAY_DOCLING_URL` (default `http://localhost:5001`). Point it at
  your deployment's FRONT (e.g. a scale-to-zero proxy in front of the pods) —
  `kubectl port-forward` the front service, not the docling service itself
  (a scaled-to-zero deployment has no endpoints). Field names are
  upstream's and may drift between versions — verify against the server's
  `/docs` if a request 400s. A cold start after idle legitimately takes tens
  of seconds to minutes (pod schedule + image pull + model load) — use a
  generous HTTP timeout, don't retry-storm.
- No endpoint and no local `docling` CLI: see `SETUP.md` rung 1 (`pip install
  docling`, CPU-only, models download once, ~2 GB) — or tell the driver what's
  missing rather than silently downgrading to raw `pdftotext`.
- **Confidentiality**: the document body crosses the endpoint's wire WHOLE.
  Point `ASSAY_DOCLING_URL` only at an endpoint you or your driver control —
  never a third-party API for confidential material.

## 2. Cite with anchors

Extracted text is a claim about the source, so citations carry a locator:

- Prefer **section heading + page**: `Orchestra, §6.2, p.14` — page numbers
  come from `--json` provenance or a `--pages` slice, not from eyeballing.
- Record the **access date** and the artifact identity (URL, DOI, file hash
  for local files) alongside the citation, in whatever register the work
  keeps.
- If you quote the markdown rather than the page, say so — extraction can
  reorder two-column text or drop a figure caption.

## 3. Know the failure modes

Docling is text-and-structure, not understanding. Escalate to a vision pass
(render the page, read it as an image) exactly when:

- the claim lives in a **figure, chart, or diagram** — markdown carries only
  the caption;
- **dense math** — extraction mangles multi-line equations;
- the markdown looks **wrong**: a table whose columns collapsed, a reading
  order that zig-zags, headings inside paragraphs. Don't repair it by guessing
  — re-read that page as an image and reconcile.
- the file is a **scan** and OCR output is gibberish — vision beats damaged OCR.

The escalation is per-page, not per-document: extract the whole thing, vision
only the pages that earn it.

## 4. Discipline

- The extraction is **working material**, like transcripts: quote from it,
  cite from it, discard the intermediate — don't commit machine markdown to a
  research register as if it were authored prose.
- Never present an unrun conversion as done: a failed or skipped extraction is
  reported with its error, not papered over.
- Structured data (tables headed for analysis, not prose) should come from
  `--json`, which preserves cell structure — markdown tables round-trip badly.
Files in this package (2)
  • SETUP.md 4 KB
  • SKILL.md 4 KB

Versions

RepositoryScoreLicence
This page · medici-finance/assay100Apache-2.0
medici-finance/assay100Apache-2.0

Database snapshot: 13.11.2026 · package version d48d3370fd62 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100docling-document-intelligence
    Parse, convert, chunk, and analyze documents using Docling. Use this skill when the user provides a document (PDF, DOCX, PPTX, HTML, image) as a file path or URL and wants to: extract text or structured content, convert to Markdown or JSON, chunk the document for RAG ingestion,…
  • 100docling
    Use Docling to understand the content of documents in any supported format — PDF (born-digital or scanned), DOCX, PPTX, XLSX, HTML, Markdown, AsciiDoc, CSV, images, audio, and XML — by converting them into a unified DoclingDocument (Markdown or structured JSON). Use this skill…
  • 100converting-and-parsing-documents
    Use Docling to understand the content of documents in any supported format — PDF (born-digital or scanned), DOCX, PPTX, XLSX, HTML, Markdown, AsciiDoc, CSV, images, audio, and XML — by converting them into a unified DoclingDocument (Markdown or structured JSON). Use this skill…
  • 95document-processing
    Create, edit, and analyze office documents (PDF, DOCX, PPTX, XLSX). Use when working with PDFs, Word documents, PowerPoint presentations, or Excel spreadsheets. Covers text extraction, form filling, document creation, and data analysis.
  • 87ttokttak
    Create, convert, read and edit Office documents locally with ttokttak-workspace's command line. Build a new presentation (pptx) from a brief through a checked outline, per-page spec and render pipeline, a new spreadsheet (xlsx) from CSV or JSON data with formulas, a new Word…
  • 95document-ocr
    Convert scanned PDFs and document images into clean Markdown using docling for layout (figures, tables, reading order) plus a vision-language OCR model. Use when a user needs high-quality OCR of scanned documents, historical literature, or photographed pages — preserving…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.