ocr
Skill75 starsChanged 4 months agoMITView on GitHub
Extract text from screenshots, scanned documents, image files, and PDFs. Use when a user asks to OCR, read text from an image/screenshot/scan, transcribe visible text, extract text from a scanned PDF, compare OCR text, or convert image/PDF text into Markdown/JSON/plain text.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- ruiwarn/skillstheir own version, first seen Nov 8, 2026
- hosaypeng/claude-skillstheir own version, first seen Nov 1, 2026
- tanod-labs/tanod-mcptheir own version, first seen Oct 17, 2026
- panyw5/skillstheir own version, first seen Oct 9, 2026
- jholhewres/devclaw-skillstheir own version, first seen Oct 9, 2026
- xyzBart/claude-skillstheir own version, first seen Oct 8, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- jholhewres/devclaw-skills★ 4same name
- ruiwarn/skills★ 4same name
- hec-ovi/ocr-skill★ 1same name
- panyw5/skills★ 1same name
- tanod-labs/tanod-mcp★ 1same name
- xiaotianxt/skills★ 1same name
- hosaypeng/claude-skills★ 0same name
- Shugar86/my-agent★ 0same name
- stardustai/stardust-skills★ 0same name
- xyzBart/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skills/heygen-skills/CLAUDE.mdCLAUDE.md
- 1passwordSkill
- ask-curlSkill
- boardSkill
- cleanup-unused-filesSkill
- codeflow-maintainerSkill
- codex-session-managerSkill
- coven-astraSkill
- coven-board-entrySkill
- coven-charmSkill
- coven-cloud-maintainerSkill
- coven-codySkill
- coven-echoSkill
- coven-identity-canonSkill
- coven-kittySkill
- coven-parallel-workSkill
- coven-sageSkill
- coven-task-managerSkill
- daily-dev-agenticSkill
- discrawlSkill
- disk-space-optimizerSkill
- epubSkill
- familiar-board-stewardshipSkill
- heygen-avatarSkill
- heygen-videoSkill
- heygen-skillsSkill
- higgsfield-generateSkill
- higgsfieldSkill
- linear-issue-managementSkill
- lit-ui-designerSkill
- lobsterSkill
- maintainer-barSkill
- memory-recallSkill
- memory-timeline-managerSkill
- ml-engineerSkill
- nodriverSkill
- openclaw-devSkill
- openclaw-trustSkill
- opencoven-designSkill
- OpenCoven Role Creation ProcessSkill
- pr-agentSkill
- project-managerSkill
- prompt-engineerSkill
- prompt-vaultSkill
- research-ingestionSkill
- ritual-dapp-frontendSkill
- rollcallSkill
- security-agentSkill
- skill-scannerSkill
- slidev-deck-pipelineSkill
- tauri-apple-releaseSkill
- threejs-animationSkill
- tinyfish-agent-runSkill
- tinyfish-browserSkill
- tinyfish-fetchSkill
- tinyfish-searchSkill
- tinyfishSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill to extract text from local screenshots, images, scans, and PDFs with a repeatable workflow.
- Distinctive: line 12
Prefer the bundled helper when the user needs exact-ish text extraction from a local file:
- Distinctive: line 37
If the user needs high confidence, run JSON output and mention low-confidence lines or ambiguous characters.
- Distinctive: line 38
If the user asks for a clean transcript, lightly normalize whitespace but do not silently rewrite wording.
- Very specific: line 42
Use scripts/ocr.py for local images/PDFs and repeatable extraction.
- Very specific: line 43
Use the model image tool when the user asks for visual understanding, layout interpretation, or when OCR output alone is not enough.
- Very specific: line 44
Use pdftotext directly only for text-native PDFs when no OCR is needed.
- Very specific: line 61
If a dependency is missing, install it or fall back to the image tool for one-off extraction.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 textUseful 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 textWorkflow
- Locate the file. If the image/PDF is attached in chat, use the local attachment path the runtime provides.
- For a single image or scanned PDF, run
scripts/ocr.py. - For text-native PDFs, let
ocr.pyusepdftotextfirst; only use--force-ocrwhen the PDF is a scan or the extracted text is wrong. - Inspect output before relying on it. OCR can confuse punctuation, columns, totals, handwriting, low contrast, and small text.
- If the user needs high confidence, run JSON output and mention low-confidence lines or ambiguous characters.
- If the user asks for a clean transcript, lightly normalize whitespace but do not silently rewrite wording.
Tool choices
- Use
scripts/ocr.pyfor local images/PDFs and repeatable extraction. - Use the model
imagetool when the user asks for visual understanding, layout interpretation, or when OCR output alone is not enough. - Use
pdftotextdirectly 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 viapdftoppm+ macOS Vision OCR - directory inputs: processes supported files in sorted order
- output formats:
text,json,markdown
Dependencies:
- macOS
swift+ Vision framework for image OCR pdftotextfor text-native PDFspdftoppmfor scanned PDF rasterization
If a dependency is missing, install it or fall back to the image tool for one-off extraction.
Reporting results
Be explicit about uncertainty:
- Say “OCR reads…” or “I extracted…” rather than presenting uncertain OCR as ground truth.
- Preserve line breaks when they matter, especially for receipts, forms, addresses, code, and tables.
- For sensitive documents, summarize only what the user requested and avoid exposing unnecessary personal data.
- For financial/legal/medical text, flag that OCR may need human verification before decisions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

