document-processing

document-processing is a skill for Claude Code, Codex from opensearch-project/opensearch-agent-skills. It costs 87 tokens per session (382 once invoked), scanned A, original, Apache-2.0.

A local document-conversion workflow that turns PDFs, Word files, presentations, and spreadsheets into JSONL chunks, meaning one structured JSON record per line, using Docling. The chunks contain searchable text and details such as headings, source files, chunk IDs, and page numbers.

In plain words
What is it for?
Use it to convert documents locally, review chunk quality, adjust processing or chunking, and produce files for a local OpenSearch cluster or a cloud ingestion pipeline.
Why use it?
It prepares unstructured files for search without requiring AWS or another cloud service. You can inspect and evaluate the chunks before sending them to an OpenSearch index.

Skill for Claude CodeCodex

Part of the opensearch-agent-skills plugin — 13 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/opensearch-project/opensearch-agent-skills/document-processing
Any agent
npx skills add opensearch-project/opensearch-agent-skills --skill document-processing
Clone the repo
git clone --depth 1 https://github.com/opensearch-project/opensearch-agent-skills

Made for: Claude Code, Codex.

Or install opensearch-agent-skills, the plugin that ships this one along with the rest of its 13 skills.

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 document-processing

README.md
[![agentmods](https://agentmods.dev/badge/skills/opensearch-project/opensearch-agent-skills/document-processing.svg)](https://agentmods.dev/skills/opensearch-project/opensearch-agent-skills/document-processing)
Your own site
<a href="https://agentmods.dev/skills/opensearch-project/opensearch-agent-skills/document-processing"><img src="https://agentmods.dev/badge/skills/opensearch-project/opensearch-agent-skills/document-processing.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 382 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00087 $0.00382
Opus 5 $0.00044 $0.00191
Sonnet 5 $0.00017 $0.00076
Haiku 4.5 $0.00009 $0.00038

Measured 5d ago against content hash 570a4af3109e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

document-processing 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.

skills/opensearch-skills/ingest/document-processing/SKILL.md · 44 lines

What it actually says

Document Processing

Process unstructured documents into search-ready JSONL chunks using Docling (open-source, runs locally). No AWS credentials or cloud services needed.

Prerequisites

  • uv installed (for running Python scripts)

When to Use

  • User has unstructured documents (PDF, DOCX, PPTX, XLSX)
  • User wants to prepare documents for OpenSearch indexing
  • User wants to inspect or evaluate chunk quality

Output

JSONL files at .opensearch/chunks/<index>/<filename>.jsonl. Each line:

{"text": "...", "headings": ["Section Title"], "source_file": "doc.pdf", "chunk_id": 0, "page_number": 1}

The JSONL output can be ingested into any OpenSearch target:

Reference

See document_processing_guide.md for the full workflow: processing profiles, quality evaluation, and chunking adjustments.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 44 lines · 87 tokens per session scan A 570a4af3109e

Subscribe to this mod's changes

document-processing is a skill published in the GitHub repository opensearch-project/opensearch-agent-skills (50 stars, last pushed 16d ago), licensed Apache-2.0. It adds 87 tokens to every session and 382 once invoked, about $0.0004 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-08-30.