ocr

A workflow for extracting written text from screenshots, scanned documents, images, and PDFs. OCR, or optical character recognition, turns text visible in an image into editable text.

In plain words
What is it for?
Use it to transcribe screenshots and image files, extract text from scanned PDFs, compare OCR results, or obtain line-level confidence and position data.
Why use it?
Text in an image or scan cannot be searched or copied reliably without recognition. This provides a repeatable way to extract it as plain text, Markdown, or structured JSON.

Skill for Claude CodeCodex

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/opencoven/coven/ocr
Any agent
npx skills add OpenCoven/coven --skill ocr
Clone the repo
git clone --depth 1 https://github.com/OpenCoven/coven

Made for: Claude Code, Codex.

Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 735 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.00063 $0.00735
Opus 5 $0.00032 $0.00367
Sonnet 5 $0.00013 $0.00147
Haiku 4.5 $0.00006 $0.00073

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

Security

Grade A, and why

ocr 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/ocr.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/ocr/SKILL.md · 71 lines

How it starts

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

OCR

Use this skill to extract text from local screenshots, images, scans, and PDFs with a repeatable workflow.

Quick start

Prefer the bundled helper when the user needs exact-ish text extraction from a local file:

python3 ~/.openclaw/workspace/skills/ocr/scripts/ocr.py <path> --format text

Useful variants:

# Structured output with per-line confidence/bounding boxes
python3 ~/.openclaw/workspace/skills/ocr/scripts/ocr.py screenshot.png --format json

# Markdown output from a scanned PDF, OCRing up to the first 5 pages
python3 ~/.openclaw/workspace/skills/ocr/scripts/ocr.py scan.pdf --force-ocr --max-pages 5 --format markdown

# Multiple languages for macOS Vision OCR
python3 ~/.openclaw/workspace/skills/ocr/scripts/ocr.py receipt.jpg --languages en-US,es-ES --format text

Workflow

  1. Locate the file. If the image/PDF is attached in chat, use the local attachment path the runtime provides.
  2. For a single image or scanned PDF, run scripts/ocr.py.
  3. For text-native PDFs, let ocr.py use pdftotext first; only use --force-ocr when the PDF is a scan or the extracted text is wrong.
  4. Inspect output before relying on it. OCR can confuse punctuation, columns, totals, handwriting, low contrast, and small text.
  5. If the user needs high confidence, run JSON output and mention low-confidence lines or ambiguous characters.
  6. If the user asks for a clean transcript, lightly normalize whitespace but do not silently rewrite wording.

Tool choices

  • Use scripts/ocr.py for local images/PDFs and repeatable extraction.
  • Use the model image tool when the user asks for visual understanding, layout interpretation, or when OCR output alone is not enough.
  • Use pdftotext directly only for text-native PDFs when no OCR is needed.

Script behavior

scripts/ocr.py supports:

  • image inputs: PNG, JPEG, TIFF, BMP, GIF, WebP, HEIC/HEIF
  • PDF inputs: embedded text via pdftotext, scanned pages via pdftoppm + macOS Vision OCR
  • directory inputs: processes supported files in sorted order
  • output formats: text, json, markdown

Read the full file on GitHub · 71 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. 2d ago First seen · 71 lines · 63 tokens per session scan A e94193782e06

Subscribe to this mod's changes

ocr is a skill published in the GitHub repository OpenCoven/coven (41 stars, last pushed 2d ago), licensed MIT. It adds 63 tokens to every session and 735 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-08-30.

Related

Other skills, from other repositories

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

interview

Ask one useful structured question at a time only when material product/implementation choices are genuinely missing; remember answers and produce a brief/spec. Discoverable facts should be investigated instead of asked.

Hmbown/CodeWhale · 40 tokens

local-frontend-check

Smoke-test or verify UI behaviour on the local Jarvis Registry frontend running at http://localhost/gateway. Use for manual regression checks, bug-fix verification, and end-to-end confirmation of specific flows without running the automated test suite.

ascending-llc/jarvis-registry · 52 tokens

ppt-review

Read this skill only after current officereview structural output and relevant rendered images exist. Do not use source code, a tool success flag, or the first-slide preview as a substitute for deck evidence.

Orkas-AI/Orkas · 2 tokens

material-organizer

Organize only the materials the user has already provided or explicitly pointed to. The job is to make messy inputs easier to scan, reuse, archive, or continue from later while preserving source traceability.

Orkas-AI/Orkas · 3 tokens

helmor-debug-operate

Operate, reproduce, and debug a running local Helmor desktop development build through the Tauri MCP bridge. Use when the user asks to use Tauri MCP, towery MCP, the local dev build, the Tauri webview, visual end-to-end validation, UI automation, screenshots, DOM/accessibility snapshots, IPC or log tracing…

dohooo/helmor · 117 tokens