docling-mcp-skill

docling-mcp-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 54 tokens per session (1,328 once invoked), scanned A, original, Apache-2.0.

A document-processing guide for Docling, a tool that extracts text and structure from difficult documents such as scanned PDFs, multi-column files, and complex tables.

In plain words
What is it for?
Use it to extract text with OCR from scanned PDFs and preserve layout, footnotes, merged cells, and nested table headers.
Why use it?
It provides a fallback when simpler document converters produce missing, garbled, or badly arranged content. It also explains that first use may download machine-learning models.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions subagents; mentions AGENTS.md; mentions OpenCode.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./deploy/setup.sh --enable-pack docling.

Good fit Use it to extract text with OCR from scanned PDFs and preserve layout, footnotes, merged cells, and nested table headers.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template
agentmods
npx agentmods add skills/darellchua2/opencode-config-template/docling-mcp-skill

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docling-mcp-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/docling-mcp-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/docling-mcp-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/docling-mcp-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/docling-mcp-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docling-mcp-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/docling-mcp-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/docling-mcp-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,328 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01328
Opus 5 $0.00027 $0.00664
Sonnet 5 $0.00011 $0.00266
Haiku 4.5 $0.00005 $0.00133

Measured 5d ago against content hash 103d63df5cc5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

docling-mcp-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

opencode_app/.opencode/skills/docling-mcp-skill/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

What this skill does

  • Documents docling as a Tier 2 escalation engine for the AGENTS.md → Office Document Extraction Routing rule
  • Provides the CLI-on-demand recipe (primary path — codegraph-init analog): detect, ask consent, install, convert, read
  • Documents the optional persistent MCP tier via --enable-pack docling
  • States the trust-boundary honestly: unlike markitdown (zero phone-home), docling downloads ML models from huggingface.co on first use
  • Prescribes the consent policy: primary asks; headless/subagent soft-fails; never auto-install ~3-4 GB

Reference: docling on PyPI · docling-mcp on PyPI

When to use docling (Tier 2)

Follow the AGENTS.md → Office Document Extraction Routing rule — this skill does NOT re-derive the full markitdown/pdf-specialist tree. Docling is the escalation target when:

  • markitdown returns empty/garbage (scanned PDFs, image-only)
  • markitdown mangles complex tables (multi-column, merged cells, nested headers)
  • markitdown drops layout that matters (multi-column text flow, footnotes, sidebars)
  • The PDF needs OCR (docling's OCR pipeline handles scanned docs markitdown cannot)

Do NOT use docling for: plain text dumps of clean born-digital docs (markitdown is faster, lighter), visual understanding (image-analyzer-subagent), or structured form-field extraction (pdf-specialist-skill).

CLI-on-demand recipe (primary path)

This is the codegraph-init analog — docling is not installed by default (~3-4 GB with models). The agent detects absence, asks consent, installs, converts — all within the session, no restart.

1. DETECT:  command -v docling >/dev/null 2>&1
2. ABSENT → ASK CONSENT (primary session only — see Consent Policy below)
3. INSTALL: pip install --user docling
4. CONVERT: docling convert <file> --to md -o <output-dir>
5. READ:    Read the generated <output-dir>/<file>.md

Consent Policy

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 101 lines · 54 tokens per session scan A 103d63df5cc5

Subscribe to this mod's changes

docling-mcp-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 3d ago), licensed Apache-2.0. It adds 54 tokens to every session and 1,328 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

processing-pdfs

Processes PDF files. Extracts text and tables, fills forms, merges and splits documents, batch-processes files, converts to images, and generates PDFs programmatically. Use when working with .pdf files. Do NOT use for Word documents, spreadsheets, or presentations.

telagod/code-abyss · 57 tokens

rtl-persian-pdf

Generate production-grade Persian RTL PDFs from Markdown or HTML with reliable shaping, bidi safety, and deterministic print output. Use when the user asks for Persian PDF export, RTL rendering, right-aligned typography, Arabic/Persian text shaping, or portable PDF generation across environments.

mamahoos/dot-files · 60 tokens

pydicom

Use pydicom to read, inspect, write, transform, and safely preflight local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.

K-Dense-AI/scientific-agent-skills · 56 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

skill-doc-delivery

Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.

nyldn/claude-octopus · 29 tokens

pdf-extract-create-workflow

Complete PDF lifecycle: download, extract, and generate structured documents with reportlab.

HKUDS/OpenSpace · 22 tokens