Docling skill
Skill realraelrr/docling-skill
Use when an agent needs to convert local PDF, Office, spreadsheet, HTML, text, Markdown, or image files into docling-skill source.* sidecars before downstream reasoning, retrieval, wiki ingestion, or handoff.From its SKILL.md
npx -y skills add realraelrr/docling-skillAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 2 commands, including `conda run -n docling python -m docling_skill.cli "<input_path>" "<output_dir>"` and 1 more.
SKILL.md
4.2 KB, 983 tokens by cl100k_base, as published. Nobody here has run it
docling-skill
Use docling-skill as the local ingestion gate for document files. It produces an agent-only v2 source.* sidecar set and a compact manifest that must be checked before any agent consumes the content.
Use When
- Input is a local file:
pdf,docx,pptx,xls,xlsx,csv,html,txt,md,png,jpg,jpeg,tif,tiff,bmp, orwebp. - Downstream work needs Markdown plus on-demand quality evidence, structured Docling output, or image sidecars.
- The agent needs to decide whether conversion output is safe enough to use.
Do Not Use When
- The source is a remote URL; fetch or browser capture belongs upstream.
- The task is chunking, summarization, tagging, embedding, or knowledge modeling.
- The file is
.doc,.ppt,.xlsm, password-protected, corrupt, or a workbook that needs manual semantic preprocessing; ask for a clean.docx,.pptx,.xlsx,.csv, or PDF.
Run
Always provide an explicit output directory.
conda run -n docling python -m docling_skill.cli "<input_path>" "<output_dir>"
If the CLI is installed directly:
docling-skill "<input_path>" "<output_dir>"
PDF OCR flags, only when needed:
--ocr-engine auto|tesseract|ocrmac|rapidocr
--ocr-lang <lang> # repeatable or comma-separated
--force-full-page-ocr
--no-ocr-remediation
--pdf-audit # optional evidence flag for eligible native formats; renderer support is soft/unavailable by default
Outputs
Expected files:
source.manifest.jsonsource.mdsource.evidence.json
Read source.manifest.json first, then follow decision.read_order.
- Low-risk
goodoutput normally hasread_order: ["source.md"]. - Warning,
salvaged, andfailed_for_agentoutput points tosource.evidence.json. - Use
source.evidence.jsonfor structure recovery, quality signals, attempts, page/slide/sheet coverage, spreadsheet metadata, and image placeholders such as[[image:picture-p2-1]].
Do not add downstream fields such as tags, keywords, categories, summaries, embeddings, or chunk IDs to source.manifest.json or source.evidence.json.
Manifest Decision
Inspect these groups:
- Contract:
contract_version,producer - Decision:
decision.status,decision.risk_level,decision.agent_ready,decision.read_order - Source:
source.input_type,source.pipeline_family,source.title - Evidence pointer:
artifacts.evidence,warnings,reasons,counts
Decision matrix:
| Manifest decision | Agent action |
|---|---|
good + low | Use source.md as primary input. |
good + medium | Use source.md, but inspect source.evidence.json before relying on details. |
salvaged | Use only as OCR-remediated medium-risk output; inspect evidence. |
failed_for_agent | Do not present as clean ingestion; report failure evidence from source.evidence.json. |
agent_ready: true means default-usable, not semantically proven.
Format Checks
- PDF: inspect evidence
quality.signals.page_coveragewhen page warnings exist, especiallyfailed_pagesandfirst_page_failed. - Chinese-heavy output: inspect evidence
quality.signals.text_normalizationandquality.signals.text_integrity. - Spreadsheets: use evidence
structured_documentandspreadsheetwhen merged cells, multi-sheet layout, spans, or offsets matter; Markdown is only a preview. - Images: image-only output with no usable OCR text should be treated as high risk when the manifest says
failed_for_agent. - Figures/charts: resolve placeholders through evidence
images; image extraction is not universal across formats.
Success Signal
- Command exits
0. - All three v2
source.*files exist in the output directory. - Manifest has been checked before using
source.md.
Failure Report
When ingestion is not clean, report:
- input path and input type
- command exit code or exception
- manifest
decision.status,decision.risk_level,reasons,warnings - relevant evidence
quality.signals - evidence
selected_attemptand whether OCR remediation was applied
What ships with it: 24 files
190.3 KB alongside SKILL.md, 19 of them executable
src/
- docling_skill/artifacts.pyruns3.4 KB
- docling_skill/cli.pyruns4.2 KB
- docling_skill/constants.pyruns1.9 KB
- docling_skill/core.pyruns31.1 KB
- docling_skill/__init__.pyruns332 B
- docling_skill/__main__.pyruns48 B
- docling_skill/manifest.pyruns8.2 KB
- docling_skill/models.pyruns3.2 KB
- docling_skill/ocr.pyruns3.7 KB
- docling_skill/quality.pyruns28.3 KB
- docling_skill/routing.pyruns283 B
- docling_skill/spreadsheet.pyruns4.3 KB
- docling_skill/text_normalization.pyruns2.7 KB
tests/
- test_format_routing.pyruns28.8 KB
- test_package_api.pyruns29.4 KB
- test_quality_benchmark.pyruns3.5 KB
- test_quality_contract.pyruns12.7 KB
- test_text_native_quality.pyruns6.9 KB
- test_text_normalization.pyruns1.2 KB
- .gitignore89 B
- LICENSE1.0 KB
- pyproject.toml906 B
- README.md7.3 KB
- README.zh-CN.md6.7 KB