ocr

ocr is a skill for Claude Code, Codex from trpc-group/trpc-agent-go. It costs 11 tokens per session (640 once invoked), scanned B, original, Apache-2.0.

A tool workflow for extracting text from image files with Tesseract, an optical character recognition system. It supports common image formats, many languages, optional image cleanup, and plain-text or JSON output with confidence scores.

In plain words
What is it for?
Use it to read text from local images or image URLs, choose one or more recognition languages, improve the input before recognition, or save results with confidence information.
Why use it?
It turns words shown in screenshots, scans, and photographs into text that can be searched or processed. Preprocessing and language selection can help with difficult images.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to read text from local images or image URLs, choose one or more recognition languages, improve the input before recognition, or save results with confidence information.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/trpc-group/trpc-agent-go/ocr
About the project

tRPC-Agent-Go is a Go framework for building AI agent applications with language models, graph-based workflows, tools, memory, retrieval, evaluation, and observability. Go developers use it to create deployable agent systems that can integrate with A2A, AG-UI, and MCP. The catalogue add-ons provide reusable workflows and agent integrations for the framework.

trpc-group/trpc-agent-go · 1,951 stars · on GitHub · trpc-group.github.io

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 trpc-group/trpc-agent-go --skill ocr
Clone the repo
git clone --depth 1 https://github.com/trpc-group/trpc-agent-go

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/trpc-group/trpc-agent-go/ocr"><img src="https://agentmods.dev/badge/skills/trpc-group/trpc-agent-go/ocr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 640 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 Privilege Escalation · line 95
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 96
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
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.00011 $0.00640
Opus 5.5 $0.00004 $0.00256
Sonnet 5.5 $0.00002 $0.00128
Haiku 4.5 $0.00001 $0.00064

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

Security

Grade B, and why

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

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/ocr_url.py, 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt-get install tesseract-ocr # Ubuntu/Debian
examples/skill/skills/ocr/SKILL.md · 99 lines

How it starts

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

OCR Image Text Extraction Skill

Extract text from images using Tesseract OCR engine.

Capabilities

  • Extract text from image files (PNG, JPG, JPEG, GIF, BMP, TIFF)
  • Support for 100+ languages
  • Optional image preprocessing for better accuracy
  • Output in plain text or JSON format with confidence scores

Usage

Basic OCR

python3 scripts/ocr.py <image_file> <output_file>

With Options

# Specify language (default: eng)
python3 scripts/ocr.py image.png text.txt --lang eng

# Chinese text
python3 scripts/ocr.py image.png text.txt --lang chi_sim

# Multiple languages
python3 scripts/ocr.py image.png text.txt --lang eng+chi_sim

# With image preprocessing (improves accuracy)
python3 scripts/ocr.py image.png text.txt --preprocess

# JSON output with confidence scores
python3 scripts/ocr.py image.png output.json --format json

Download and OCR from URL

# OCR from remote image
python3 scripts/ocr_url.py <image_url> <output_file>

# With options
python3 scripts/ocr_url.py https://example.com/image.jpg text.txt --lang eng --preprocess

Parameters

  • image_file / image_url (required): Path to local image or image URL
  • output_file (required): Path to output text/JSON file
  • --lang: Language code (e.g., eng, chi_sim, jpn, fra, deu). Default: eng
  • --preprocess: Apply image preprocessing (grayscale, thresholding) for better accuracy
  • --format: Output format (text/json, default: text)

Common Languages

Language Code
English eng
Chinese (Simplified) chi_sim
Chinese (Traditional) chi_tra
Japanese jpn
Korean kor
French fra
German deu
Spanish spa
Russian rus
Arabic ara

Supported Image Formats

PNG, JPG, JPEG, GIF, BMP, TIFF, WEBP

Dependencies

  • Python 3.8+
  • pytesseract 0.3.13 (pinned; latest release on PyPI as of 2026-11)
  • Pillow 13.0.0 (pinned; latest release on PyPI as of 2026-11)
  • tesseract-ocr (system package)

Read the full file on GitHub · 99 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. 10d ago Changed c2e8b66c7ff5
  2. 3mo ago First seen · 99 lines · 11 tokens per session scan B 8a40eff183a6

Subscribe to this mod's changes

ocr is a skill published in the GitHub repository trpc-group/trpc-agent-go (1,951 stars, last pushed yesterday), licensed Apache-2.0. It adds 11 tokens to every session and 640 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ocr compared with skills from other repositories

ocr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ocrtrpc-group/trpc-agent-goSkill2.0kyesterdayApache-2.0B11Claude Code, Codex
docxopensquilla/opensquillaSkill7.2k8d agoApache-2.0A111Claude Code, Codex
pdf-toolkitopensquilla/opensquillaSkill7.2k8d agoApache-2.0A127Claude Code, Codex
xlsxopensquilla/opensquillaSkill7.2k8d agoApache-2.0A108Claude Code, Codex
figuressynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A99Claude Code
liteparsesynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A49Claude Code, Codex
pdf-summarizerTencent/AI-Infra-GuardSkill7.9kyesterdayApache-2.0A21Claude Code, Codex