ref-image-ocr

Extract text from images via OCR and save it as Markdown.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/sunLeee/optimization --skill ref-image-ocr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ref-image-ocr
Source: https://github.com/sunLeee/optimization/tree/main/.claude/skills/data-fetch/ref-image-ocr
Command: npx skills add https://github.com/sunLeee/optimization --skill ref-image-ocr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Extract text from images using OCR and save it as a Markdown reference, enabling rapid access to textual content from diagrams, screenshots, and scanned documents.

Core Features & Use Cases

  • OCR extraction: convert image text into structured Markdown content.
  • Markdown reference: store results as reusable documentation under docs/references/ocr.
  • Real-world use case: convert a system architecture diagram screenshot into a searchable Markdown note for knowledge bases.

Quick Start

Run the command /ref-image-ocr <image-path> to extract text from an image and save it as a Markdown reference.

Frequently Asked Questions about ref-image-ocr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from an image and save it as a Markdown file?

To extract text from an image and save it as a Markdown file, run the /ref-image-ocr command with your image path. The tool validates the input, performs OCR, structures the content, and persists the result as a searchable MD file.

Can I use OCR to convert scanned documents into searchable Markdown references?

Yes, you can convert scanned documents into searchable Markdown references. The OCR process extracts text from scans and screenshots, structuring the content into a portable MD file stored under docs/references/ocr.

Does this image text extraction work with system architecture diagrams?

Image text extraction works with system architecture diagrams by converting the visual text into structured Markdown content. This enables rapid access to textual content from diagrams for searchable knowledge bases.

What is the best way to turn a screenshot into searchable text for a knowledge base?

The best way to turn a screenshot into searchable text is using OCR to extract the content and save it as a Markdown reference. This produces a portable, searchable MD file that integrates directly into your documentation.

Do I need Tesseract to perform OCR on images?

You do not necessarily need Tesseract to perform OCR on images. The extraction can be performed using either Claude Vision or Tesseract to process the image and convert the text into Markdown format.