image-file-reader
Skill0 starsChanged 3 months agoMITView on GitHub
Read files and images in automation-friendly way when multimodal parsing is not available. Use for OCR on screenshots, extracting text from PDFs/TXT/JSON/CSV, and returning structured output for downstream processing. Use when you need deterministic, local file inspection instead of model vision.
In this repository66 other files it gives its agents.
- adb-android-app-opsSkill
- agents-sdkSkill
- api-documentationSkill
- atlasSkill
- backend-api-auth-guardrailsSkill
- browser-useSkill
- bundleSkill
- changelogSkill
- chatgpt-appsSkill
- chrome-devtools-testSkill
- chronicleSkill
- cloudflare-deploySkill
- cloudflare-email-serviceSkill
- cloudflare-one-migrationsSkill
- cloudflare-oneSkill
- cloudflareSkill
- computer-useSkill
- create-planSkill
- database-analysisSkill
- database-data-guardrailsSkill
- debug-memory-leakSkill
- deep-initSkill
- deploySkill
- develop-web-gameSkill
- dev-workflowSkill
- docSkill
- durable-objectsSkill
- explainSkill
- figmaSkill
- firmware-feature-writerSkill
- fix-bugSkill
- fix-lintSkill
- frontend-mobile-uiux-designerSkill
- frontend-ui-guardrailsSkill
- gemini-cliSkill
- grok-x-searchSkill
- hermes-chromeSkill
- imagegenSkill
- infra-ops-mobile-guardrailsSkill
- layout-reviewSkill
- localizeSkill
- multimodal-lookerSkill
- openai-docsSkill
- optimizeSkill
- parallel-devSkill
- plan-modeSkill
- playwrightSkill
- project-planningSkill
- qa-testerSkill
- refactorSkill
- review-changesSkill
- review-fix-shipSkill
- rust-programmerSkill
- sandbox-sdkSkill
- screenshotSkill
- security-auditSkill
- security-scanSkill
- security-threat-modelSkill
- source-command-collab-startSkill
- turnstile-spinSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
If the file is image format, use OCR mode (--ocr) when needed.
- Distinctive: line 30
Read multiple files and output JSON:
- Distinctive: line 36
Use JSON mode when you need consistent parsing for scripts/agents.
- Distinctive: line 54
If no extractor is available, the tool will return a clear, actionable error and suggestions.
- Distinctive: line 58
Keep only extracted content and metadata needed for triage.
- Distinctive: line 64
If OCR confidence is low or output is empty:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Image and File Reader
Goal
Extract readable content from image and file inputs using local tools so the model can continue analyzing without native multimodal input.
Tools
scripts/read_file.py— one command to inspect one or many files.
Core Workflow
- Choose files and run the reader.
- If the file is image format, use OCR mode (
--ocr) when needed. - Return the extracted text (or clear error messages) for downstream reasoning.
Command Patterns
Read one file:
python3 scripts/read_file.py ./screenshot.png --ocrRead multiple files and output JSON:
python3 scripts/read_file.py ./a.png ./b.pdf ./note.txt --ocr --jsonUse JSON mode when you need consistent parsing for scripts/agents.
python3 scripts/read_file.py ./doc.pdf --json > doc_payload.jsonCommon flags
--ocr: Enable OCR for image files.--ocr-lang: OCR language (defaulteng+chi_tra).--max-chars: Truncate long text output for a safer payload.--json: Output machine-readable JSON object.
Notes
- OCR needs one of:
tesseractCLI (preferred)
- PDF text extraction prefers
pdftotextCLI. - If no extractor is available, the tool will return a clear, actionable error and suggestions.
Output Rules
- Keep only extracted content and metadata needed for triage.
- Preserve raw text and mention truncation when it happens.
- Never invent content.
Next-Step Guidance
If OCR confidence is low or output is empty:
- Re-run with a higher-resolution image.
- Pre-process image (crop/contrast) before OCR.
- Provide a manual transcript if needed.
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.

