ocr-and-documents
What it does
This skill extracts text from scans and image-based documents that normal reading cannot handle. It is for people whose paper documents or scanned PDFs need their text recovered.
When to use it
- ✓When you have a scanned PDF and need its text as a searchable document.
- ✓When you have a photo of a document and want the words copied out.
- ✓When a document with complex layout, tables or math must be turned into structured text.
Skill link
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/ocr-and-documents/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“This scanned PDF of a contract has no selectable text. Can you extract the text for me?”
5 new skills a week. 1 minute to read.
How it works
The agent first tries normal extraction, then uses a lighter local OCR tool before a heavier layout tool. It keeps your files on your computer unless you allow an upload.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
OCR and scanned documents
Use this Skill when ordinary document extraction fails because the source is scanned, image-based, or layout-heavy.
Start here
Call skill_view for this Skill and use its returned baseDirectory. Helpers live in <baseDirectory>/scripts.
Prefer local processing. Do not upload a private document to an external OCR service unless the user explicitly authorizes that transfer.
Choose the lightest path
- Normal extraction first. For PDFs, try the bundled pdf Skill. For .docx, use docx. Do not OCR born-digital text.
- A few scanned pages. Render pages with the pdf Skill and inspect images using view_image; transcribe only the requested pages.
- Text-oriented scanned PDF. Try extract_pymupdf.py; this is the lighter local path.
- Complex layout, tables, math, or many scanned pages. Use extract_marker.py only after confirming the need and checking resources.
Helpers
python3 <baseDirectory>/scripts/extract_pymupdf.py input.pdf -o extracted.md
python3 <baseDirectory>/scripts/extract_marker.py --check
python3 <baseDirectory>/scripts/extract_marker.py input.pdf -o extracted.md
Run helpers with terminal_exec, using python3 as the command and arguments as an array. Use --help for exact options.
extract_pymupdf.py requires PyMuPDF:
python3 -m pip install pymupdf
Its --markdown mode additionally requires pymupdf4llm.
extract_marker.py uses marker-pdf, which can require several gigabytes of packages and model downloads. Never install it automatically. Check available disk space and ask the user before installing or downloading large models.
URLs
If the source is a URL, first use an available browser or HTTP tool to identify whether it points to HTML or a document. Download only the requested document, respect authentication and access boundaries, and then process the local copy. Do not assume a specific web tool exists.
Verification
- Preserve reading order, page references, headings, tables, footnotes, and confidence caveats.
- Compare extracted text against representative rendered pages with view_image.
- Mark uncertain characters and fields instead of guessing.
- For tables, verify column alignment and numeric values separately.
- Return both the extracted artifact path and the original source/page mapping when possible.
FAQ
Will my document be sent to an online service?
No. The skill prefers local processing and does not upload a private document unless you explicitly allow it.
When should OCR not be used?
For text-based PDFs or Word files, where normal extraction already works, OCR is not needed.
When is the heavier tool used?
Only after the agent confirms it is needed and checks that the computer has the resources for it.
Details
Original description by the author
Extract and structure text from scanned PDFs and document images with a local-first OCR workflow, layout-aware fallbacks, and explicit heavyweight dependency controls.
repo: EKKOLearnAI/ekko-studio
Popularity
- GitHub stars
- 12k
- Ranking position
- #11572
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
1password
12kHelps your agent use the 1Password CLI to get secrets for commands and config files without showing them in chat, logs or saved files.
apple-notes
12kHelps your agent create, search, read, edit, move or delete Apple Notes on a Mac, using the memo command line tool.
apple-reminders
12kHelps your agent list, create, edit, complete or delete Apple Reminders and reminder lists on a Mac, using the remindctl tool.
document-to-action-items
12kHelps your agent turn a document, meeting transcript or set of notes into a clear table of tasks, owners, deadlines and decisions.
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.