document-processing

document-processing is a skill for Claude Code from neuromechanist/research-skills. It costs 94 tokens per session (1,205 once invoked), scanned B, original, BSD-3-Clause.

A document toolset for extracting, converting, and structuring content from PDFs, images, Word files, and HTML. OCR means turning text in scanned images into searchable text.

In plain words
What is it for?
Use it to extract text or tables, OCR scanned documents, convert files to Markdown, find emails or addresses, and process document collections in batches.
Why use it?
It removes the need to handle different document types and scanned pages manually before using their content.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the project plugin — 15 skills, 5 commands, 3 agents shipped together

Good fit Use it to extract text or tables, OCR scanned documents, convert files to Markdown, find emails or addresses, and process document collections in batches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neuromechanist/research-skills/document-processing
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.

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

Made for: Claude Code.

Or install project, the plugin that ships this one along with the rest of its 15 skills, 5 commands, 3 agents.

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/neuromechanist/research-skills/document-processing.svg)](https://agentmods.dev/skills/neuromechanist/research-skills/document-processing)
Your own site
<a href="https://agentmods.dev/skills/neuromechanist/research-skills/document-processing"><img src="https://agentmods.dev/badge/skills/neuromechanist/research-skills/document-processing.svg" alt="Measured on agentmods" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,205 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 65
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 66
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00094 $0.01205
Opus 5 $0.00047 $0.00602
Sonnet 5 $0.00019 $0.00241
Haiku 4.5 $0.00009 $0.00120

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

Security

Grade B, and why

document-processing scanned grade B with 1 finding 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 8d 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

response = httpx.post( "https://api.mistral.ai/v1/chat/completions",
plugins/project/skills/document-processing/SKILL.md · 155 lines

How it starts

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

Document Processing

Extract, convert, and structure content from PDFs, images, and other document formats. Handles OCR, text extraction, markdown conversion, email extraction, and structured data output.

When to Use

  • Converting scanned documents to searchable text
  • Extracting text from PDFs (native or scanned)
  • Converting documents to markdown for further processing
  • Extracting emails, addresses, or other structured data from documents
  • Batch processing document collections

Processing Pipeline

Step 1: Identify Document Type

Determine the processing approach:

Input Method Tool
Native PDF (has text layer) Direct extraction pdftotext, pymupdf
Scanned PDF (images only) OCR Mistral OCR API, tesseract
Image files (PNG, JPG, TIFF) OCR Mistral OCR API, tesseract
Word documents (.docx) Conversion python-docx, pandoc
HTML Conversion pandoc, beautifulsoup4

Detection:

# Check if PDF has text content
pdftotext input.pdf - | head -20
# If output is empty or garbled, it's a scanned PDF -> use OCR

Step 2: Extract Content

Native PDF Extraction
import pymupdf

doc = pymupdf.open("input.pdf")
for page in doc:
    text = page.get_text("markdown")  # or "text", "html"
    print(text)
OCR with Mistral (for scanned documents)

Requires MISTRAL_API_KEY environment variable. Falls back to tesseract for offline processing if unavailable.

import base64
import httpx

def ocr_page(image_path: str, api_key: str) -> str:
    with open(image_path, "rb") as f:
        image_data = base64.b64encode(f.read()).decode()

    response = httpx.post(
        "https://api.mistral.ai/v1/chat/completions",
        headers={"Authorization": f"Bearer {api_key}"},
        json={
            "model": "mistral-ocr-latest",
            "messages": [{
                "role": "user",
                "content": [
                    {"type": "image_url", "image_url": {"url": f"data:image/png;base64,{image_data}"}},
                    {"type": "text", "text": "Extract all text from this image. Preserve formatting, tables, and structure. Output as markdown."}
                ]
            }]
        }
    )
    return response.json()["choices"][0]["message"]["content"]

Read the full file on GitHub · 155 lines

Files

What ships with it

2 files 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. 8d ago First seen · 155 lines · 94 tokens per session scan B abc58279949a

Subscribe to this mod's changes

document-processing is a skill published in the GitHub repository neuromechanist/research-skills (45 stars, last pushed 5d ago), licensed BSD-3-Clause. It adds 94 tokens to every session and 1,205 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (sends data to an external url). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

skill-doc-delivery

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

nyldn/claude-octopus · 29 tokens

pptx-posters

Create research posters using HTML/CSS that can be exported to PDF or PPTX. Use this skill ONLY when the user explicitly requests PowerPoint/PPTX poster format. For standard research posters, use latex-posters instead. This skill provides modern web-based poster design with responsive layouts and easy visual…

foryourhealth111-pixel/Vibe-Skills · 66 tokens

report-generator

A report-generation tool for producing SEO and GEO analysis reports in formats such as Markdown, HTML, PDF, JSON, and Excel. It also supports charts, templates, data processing, and interactive report elements.

foryourhealth111-pixel/Vibe-Skills · 24 tokens

pdf

PDF manipulation toolkit. Extract text/tables, create PDFs, merge/split, fill forms, for programmatic document processing and analysis.

foryourhealth111-pixel/Vibe-Skills · 29 tokens

datasheets

Extract structured specifications from electronic component datasheet PDFs — pinouts, electrical characteristics, peripherals, topology, and features. Cache extractions per project for consumption by schematic and PCB analyzers. Primary consumer infrastructure for kicad, emc, spice, and thermal analyzers. Use this…

aklofas/kicad-happy · 156 tokens

slides-as-code

Build research slides with text-first source (Slidev/Marp/Reveal/Quarto) and reproducible export (PDF). Includes structure, figure reuse rules, and quality checklist for top-tier scientific presentations.

foryourhealth111-pixel/Vibe-Skills · 46 tokens