Back to Docling

Docling agent skill (Cursor & compatible assistants)

docs/examples/agent_skill/docling-document-intelligence/README.md

2.92.01.9 KB
Original Source

Docling agent skill (Cursor & compatible assistants)

This folder is an Agent Skill-style bundle for AI coding assistants: structured instructions (SKILL.md), a pipeline reference (pipelines.md), and a quality evaluator (scripts/docling-evaluate.py).

Conversion is done via the docling CLI (included with pip install docling). The evaluator provides a convert → evaluate → refine feedback loop that the existing CLI does not cover.

It complements the official Docling documentation and the docling CLI reference.

The same layout is published in the Docling repo at docs/examples/agent_skill/docling-document-intelligence/ (for docs and PRs).

Contents

PathPurpose
SKILL.mdFull skill instructions (pipelines, chunking, evaluation loop)
pipelines.mdStandard vs VLM pipelines, OCR engines, API notes
EXAMPLE.mdInstalling into ~/.cursor/skills/; running the CLI and evaluator
improvement-log.mdOptional template for local "what worked" notes
scripts/docling-evaluate.pyHeuristic quality report on JSON (+ optional Markdown)
scripts/requirements.txtMinimal pip deps for the evaluator

Quick start

bash
pip install docling docling-core

# Convert to Markdown
docling https://arxiv.org/pdf/2408.09869 --output /tmp/

# Convert to JSON
docling https://arxiv.org/pdf/2408.09869 --to json --output /tmp/

# Evaluate quality
python3 scripts/docling-evaluate.py /tmp/2408.09869.json --markdown /tmp/2408.09869.md

Use --pipeline vlm for vision-model pipelines; see SKILL.md and pipelines.md.

License

MIT (aligned with Docling).