Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Ocr Pro

ASecurity

Optical character recognition pipelines — engine choice, preprocessing, and accuracy — use when extracting text from images or scans.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsrustgogitapi

Works with

api

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill ocr-pro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ocr Pro?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Ocr Pro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-ocr-pro/badge)](https://www.skillsdirectory.com/skills/aicodedecode-ocr-pro)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: ocr-pro
description: Optical character recognition pipelines — engine choice, preprocessing, and accuracy — use when extracting text from images or scans.
category: document-processing
---

## Overview

OCR turns images of text — scans, photos, screenshots — into machine-readable
text. Accuracy depends less on the engine than on input quality and post-
processing. This skill covers choosing an OCR approach, preprocessing images
for maximum accuracy, and validating results.

## When to use

- Digitizing scanned documents, PDFs-as-images, or paper archives
- Extracting text from photos (receipts, signs, whiteboards, IDs)
- Choosing between local OCR engines and cloud vision APIs
- Improving accuracy on difficult inputs (handwriting, low contrast, skew)
- Building validation for OCR output in a pipeline

## Core concepts

**Garbage in, garbage out — preprocessing is half the job.** Denoise, deskew,
increase contrast, and upscale small text (300 DPI equivalent is the rule of
thumb) before OCR. A 30-second preprocessing pass often beats switching engines.

**Engine choice is a trade-off.** Local engines (Tesseract and its successors)
are free, private, and good for clean printed text. Cloud vision APIs handle
handwriting, complex layouts, and poor photos better but cost money and send
data off-site. Neural/document-AI services add layout understanding (tables,
forms, key-value pairs) — worth it for invoices and forms.

**Layout analysis precedes recognition.** Good OCR segments the page into
blocks, lines, and words first. Multi-column pages, tables, and mixed
orientations need layout-aware processing — naive line-by-line OCR interleaves
columns.

**Confidence scores are signal.** Engines report per-word/per-character
confidence. Use it: route low-confidence segments to human review, and never
let sub-threshold numbers flow into financial or legal records unchecked.

**Language and domain tuning.** Set the expected language(s); add custom
dictionaries or patterns for domain vocabulary (product codes, medical terms).
Constraining the character set (digits only for amounts) dramatically cuts
character-confusion errors (0/O, 1/l/I).

## Practical workflow

1. **Assess the input:** scan quality, language(s), layout complexity,
   handwriting presence — this determines engine and preprocessing.
2. **Build the preprocessing chain:** grayscale → denoise → deskew →
   contrast/threshold → upscale to ~300 DPI; inspect intermediate outputs on
   samples.
3. **Run OCR with the right config:** page segmentation mode matched to layout
   (single block vs sparse text vs single line), language packs installed,
   character whitelist where applicable.
4. **Post-process:** spell/domain correction, regex validation of structured
   fields (dates, amounts, IDs), and format normalization.
5. **Validate with ground truth:** hand-transcribe a sample set, measure
   character/word error rates, and set an acceptance threshold before
   production.
6. **Design the human-in-the-loop path:** low-confidence items queue for
   review; corrections feed back into dictionaries or fine-tuning data.

## Common pitfalls

- **Skipping preprocessing** and blaming the engine — most accuracy problems
  are input problems.
- **Trusting OCR numbers blindly** in financial/legal contexts — always
  validate with checksums, totals, or human review above a risk threshold.
- **Wrong segmentation mode** — the single most common Tesseract misconfiguration;
  match it to the actual layout.
- **Ignoring rotation/skew** — even 2–3 degrees of skew degrades accuracy
  measurably; deskew first.
- **Sending sensitive documents to cloud OCR** without considering data
  residency and privacy obligations — PII in images is still PII.
- **No handling for multi-page documents** — page ordering, headers/footers
  repeated per page, and tables spanning pages all need explicit logic.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →