ocr-document-processing-skill

ocr-document-processing-skill is a skill for Claude Code, Codex from aws/agent-toolkit-for-aws. It costs 229 tokens per session (5,043 once invoked), scanned A, original, Apache-2.0.

A document-processing workflow built around Amazon Textract, an AWS service that reads text and structure from documents and images. It uses the AWS command line and a Python parser to return text, tables, form fields, questions, receipt and invoice data, identity-document data, positions, and confidence scores.

In plain words
What is it for?
Use it to extract readable text, tables in Markdown or CSV, form key-value pairs, answers to document questions, receipt or invoice fields, and identity-document fields. It can also provide each extracted block's location and confidence.
Why use it?
It avoids setting up a separate server or writing a custom wrapper around Textract. It also separates raw OCR output from parsed results and flags uncertain recognition for review.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to extract readable text, tables in Markdown or CSV, form key-value pairs, answers to document questions, receipt or invoice fields, and identity-document fields. It can also provide each extracted block's location and confidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws/agent-toolkit-for-aws/ocr-document-processing-skill
About the project

Agent Toolkit for AWS is a collection of AWS-supported MCP servers, skills, plugins, commands, and hooks that help AI coding agents build, deploy, and manage applications on AWS. It is used by developers working with AWS services through agents such as Claude Code, Codex, Cursor, and Kiro. The catalogue entries are the toolkit's own agent extensions for AWS development and operations.

aws/agent-toolkit-for-aws · 3,609 stars · on GitHub

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 aws/agent-toolkit-for-aws --skill ocr-document-processing-skill
Clone the repo
git clone --depth 1 https://github.com/aws/agent-toolkit-for-aws

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws/agent-toolkit-for-aws/ocr-document-processing-skill/github.svg)](https://agentmods.dev/skills/aws/agent-toolkit-for-aws/ocr-document-processing-skill)
Your own site
<a href="https://agentmods.dev/skills/aws/agent-toolkit-for-aws/ocr-document-processing-skill"><img src="https://agentmods.dev/badge/skills/aws/agent-toolkit-for-aws/ocr-document-processing-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 ocr-document-processing-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws/agent-toolkit-for-aws/ocr-document-processing-skill"><img src="https://agentmods.dev/badge/skills/aws/agent-toolkit-for-aws/ocr-document-processing-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 229 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,043 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.
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.00229 $0.05043
Opus 5.5 $0.00092 $0.02017
Sonnet 5.5 $0.00046 $0.01009
Haiku 4.5 $0.00023 $0.00504

Measured 9d ago against content hash ed7b26c3ed27, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ocr-document-processing-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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/parse.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/specialized-skills/ocr-document-processing-skill/SKILL.md · 339 lines

How it starts

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

Textract Document Processing

Overview

One AWS CLI call gets you the raw Textract JSON; one bundled parser (scripts/parse.py) turns it into whatever you need — parse.py --mode <mode> dispatches to every parser the Textract MCP server exposed. No MCP server, no boto wrapper, no infrastructure to stand up.

Works best with the AWS MCP server — recommended for sandboxed command execution and audit logging. All guidance here also works with standard AWS CLI access and does not assume any MCP-specific tooling (no call_aws, no run_script); every step is plain aws textract ….

When the AWS MCP server is available, running scripts/parse.py through its run_script tool is the preferred (sandboxed) runtime; it is optional, and the script runs equally well on any host Python 3.10+ interpreter.

This SKILL.md is the always-loaded overview: the routing table, the sync/async decision, and Step 0 setup. The detailed runbooks, worked command templates, and mode-selection guidance live in references/ — load them on demand (see Reference files).

Guardrail — where this skill's own files live (MCP vs local install)

This skill can be loaded two ways, and they resolve the skill's own bundled files (scripts/parse.py, references/*.md) from different places. Determine how the skill was loaded before reading a reference or running a script:

  • Loaded through the AWS MCP retrieve_skill tool: The skill is not installed on the local filesystem. You MUST fetch each reference or script via retrieve_skill with the file parameter (e.g. file="scripts/parse.py", file="references/procedures.md"), and run the script from the returned content. Do NOT file_read these paths locally — they do not exist on disk.
  • Installed locally (e.g. .kiro/skills/ocr-document-processing-skill/ or ~/.claude/skills/ocr-document-processing-skill/): Read and run files from the local skill directory using relative paths.

Read the full file on GitHub · 339 lines

Files

What ships with it

4 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. 9d ago First seen · 339 lines · 229 tokens per session scan A ed7b26c3ed27

Subscribe to this mod's changes

ocr-document-processing-skill is a skill published in the GitHub repository aws/agent-toolkit-for-aws (3,609 stars, last pushed today), licensed Apache-2.0. It adds 229 tokens to every session and 5,043 once invoked, about $0.0009 per session on Opus 5.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-11-21.

Related

ocr-document-processing-skill compared with skills from other repositories

ocr-document-processing-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ocr-document-processing-skillaws/agent-toolkit-for-awsSkill3.6ktodayApache-2.0A229Claude Code, Codex
orbit-notionnexu-io/open-designSkill110ktodayApache-2.0A117Claude Code, Codex
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill37k4d agoApache-2.0A123Claude Code
report-to-pdfasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A17Claude Code, Codex
legal-holdanthropics/claude-for-legalSkill10k5d agoApache-2.0A68Claude Code
artifact-template-minimal-letterheadasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A54Claude Code, Codex
feishuHmbown/CodeWhaleSkill41kyesterdayMITA33Claude Code, Codex