ocr
Skill0 starsChanged 8 days agoMITView on GitHub
OCR a scanned PDF or image locally with GLM-OCR (Ollama) and save the text as Markdown, without reading it into the conversation. Use when user says '/ocr', 'OCR this', 'extract text from this scan', 'read this scanned PDF', 'convert this image to text', or 'get the table out of this image'.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- ruiwarn/skillstheir own version, first seen Nov 8, 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
- stardustai/stardust-skillstheir own version, first seen Sep 7, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- OpenCoven/coven★ 75same name
- 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
- 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 repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- audit-pathsSkill
- audit-vaultSkill
- clean-cachesSkill
- git-statusSkill
- health-checkSkill
- update-dependenciesSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
3
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 10
Run GLM-OCR on this Mac through Ollama.
- Very specific: line 19
Run the script with run_in_background: true.
- Distinctive: line 32
When the background task finishes, report the summary lines as printed.
- Distinctive: line 36
Do not Read, cat or grep the output file unless the user asks.
- Very specific: line 37
Don't run pdfinfo on a private file without | grep '^Pages:', because its Title and Author fields can name people.
- Very specific: line 38
Never run ollama pull, or ollama run with a model that isn't installed (it downloads automatically).
- Very specific: line 39
Don't start Ollama as a login service (brew services start ollama).
“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
Run GLM-OCR on this Mac through Ollama. Page images never leave the machine. The script writes the result to a Markdown file and prints only a summary, so the text stays out of the conversation.
Instructions
- Take the file path from the arguments. If none was given, ask for one.
- Pick the mode:
text(default) for ordinary pages.tablewhen the image or page is entirely a table: a screenshot or crop of one, a statement page or a spreadsheet. It returns an HTML<table>. On a mixed page of text plus a table, it reads the text and skips the table (tested). Usetextthere, or crop the table first.formulafor maths.
- Run the script with
run_in_background: true. The Bash tool's 2-minute default timeout is shorter than a 3-page run. Add-ponly for a page range, and-oonly when the user names an output folder:
bash ~/.claude/skills/ocr/scripts/ocr.sh -m <mode> [-p 1-12] [-o <folder>] "<file>"- Default output:
~/Documents/obsidian/00_inbox/<name>_ocr.md. - Private sources (under
~/Sync/or apersonal_recordsfolder) never go into the vault, because it auto-pushes to GitHub.- Under
~/Sync/, the output goes next to the source. - Anywhere else, the script stops and asks for
-o. Ask the user where to write. Never suggest the vault or the Google Drive mirror.
- Under
- It never overwrites an existing file.
- It starts its own Ollama server on
127.0.0.1:11435with a 16k context and stops it on exit. Ollama's default 4k context cuts every page off after about a paragraph. - Expect about 20 seconds to load the model, then roughly 40 seconds per dense page on an M3 with 16 GB (11 pages took about 7 minutes).
- When the background task finishes, report the summary lines as printed.
Privacy Rules
- Do not Read, cat or grep the output file unless the user asks. Reading it sends the text to Anthropic; say so first when the source is private.
- Don't run
pdfinfoon a private file without| grep '^Pages:', because its Title and Author fields can name people. - Never run
ollama pull, orollama runwith a model that isn't installed (it downloads automatically). - Don't start Ollama as a login service (
brew services start ollama).
Troubleshooting
- "model 'glm-ocr' is not installed": the user downloads it (2.7 GB) by running
ollama servein a separate Terminal window, thenollama pull glm-ocrin another, then stopping the server with Ctrl-C. - "something is already serving on 127.0.0.1:11435": another
/ocrrun is in progress, or an earlier run was killed and left its server behind. Check withlsof -i :11435. Wait for the other run, or ask the user before stopping that process. - "could not render the PDF": the PDF is password-protected or damaged, or the
-prange starts past the last page. Check the page count withpdfinfo "<file>" | grep '^Pages:'. - Gaps in the output:
- Pages marked
TRUNCATED: usually the model got stuck repeating itself. Re-run those pages with-p. - Tables missing from mixed pages: Ollama runs the model without GLM-OCR's separate layout step. Crop the table (
pdftoppm -x -y -W -H) and run-m tableon the crop. - "did not attach the image": Ollama didn't recognise the page path. Check
ollama --versionand report it.
- Pages marked
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.

