Yao Ocr logo

Yao Ocr

OrganizationPopular
YaoApp
yao-ocr

OCR text recognition expert. ALWAYS invoke this skill when you need to extract text from images or PDFs — including invoices, receipts, ID cards, bank cards, business licenses, tables, handwritten documents, or any visual text content.

Overview

PublisherYaoApp
Repositoryyao
Skill nameyao-ocr
Stars
8K
Forks
711
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by YaoApp on GitHub. Read the source before you install it.

Installation

Install the Yao Ocr AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/YaoApp/yao.git /tmp/yao
mkdir -p .claude/skills
cp -r /tmp/yao/tools/skills/yao-ocr .claude/skills/yao-ocr
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Yao Ocr in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Yao Ocr on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Yao Ocr is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

OCR Tools

Two tools for optical character recognition, supporting both VLM-OCR (vision language models) and traditional OCR APIs (Baidu, Google, Azure, PaddleOCR).

ocr_recognize

Extract text from images or PDF files using OCR.

Basic usage (plain text output):

bash
tai tool ocr_recognize --source /path/to/image.png

With URL:

bash
tai tool ocr_recognize --source https://example.com/document.jpg

Table extraction as Markdown:

bash
tai tool ocr_recognize --source /path/to/table.png --type table --output_format markdown

Invoice structured extraction:

bash
tai tool ocr_recognize --source /path/to/invoice.pdf --type invoice --output_format json

With specific provider:

bash
tai tool ocr_recognize --source /path/to/doc.png --provider baidu

VLM-OCR with custom prompt:

bash
tai tool ocr_recognize --source /path/to/doc.png --provider llm:qwen-ocr --prompt "只提取表格中的金额列"

PDF page range:

bash
tai tool ocr_recognize --source /path/to/report.pdf --pages "1-5" --output_format markdown
ParameterTypeRequiredDescription
sourcestringyesImage or PDF file path/URL to recognize
providerstringnoLLM connector ID (llm:xxx) or OCR settings key (baidu/paddleocr/google/azure). Auto-selects if omitted
typestringnoRecognition type (default: general). See type table below
output_formatstringnotext (default), json (with coordinates/fields), or markdown (structured)
modestringnoaccurate (default, best quality) or standard (faster)
languagestringnoLanguage hint (ISO 639-1, e.g. en, zh, ja). Auto-detected if omitted
promptstringnoCustom instruction for VLM-OCR only, appended to system prompt. Ignored by traditional OCR
pagesstringnoPDF page range, e.g. 1-5 or 1,3,7. All pages if omitted
extraJSONnoProvider-specific parameters as a JSON object

Recognition types

TypeDescriptionBest output_format
generalGeneral text (default)text
tableTable extractionmarkdown
handwritingHandwritten texttext
documentDocument layout parsingmarkdown
invoiceInvoice (VAT)json
receiptReceipt / ticketjson
id_cardID cardjson
bank_cardBank cardjson
licenseBusiness licensejson
vehicle_licenseVehicle licensejson
passportPassportjson
license_plateLicense platejson

If the chosen provider does not support the requested type, it automatically degrades to general and annotates the response metadata with degraded_from. VLM-OCR supports all types via prompt adaptation.

ocr_providers

List available OCR providers and their supported recognition types.

bash
tai tool ocr_providers

Returns a list of providers including VLM-OCR models (from LLM connectors with ocr capability) and traditional API providers (from OCR settings). Each entry includes id, name, type (vlm or traditional), and supported_types.

PDF support

ProviderPDFNotes
Baiduyespdf_file parameter
AzureyesDocument Intelligence native support
PaddleOCRyespdf + fileType=0
GooglenoSync API does not support PDF
VLM (llm:)noVision models accept images only

For providers that do not support PDF, use Baidu, Azure, or PaddleOCR instead.

Multi-page PDF response

Multi-page PDFs are automatically split page-by-page. Instead of printing all text, the tool returns a JSON summary with file paths for each page result:

json
{
  "source": "report.pdf",
  "total_pages": 10,
  "pages": 3,
  "results": [
    {"page": 1, "file": ".tool-tmp/ocr-a1b2c3d4/page-1.txt", "preview": "Invoice No: INV-001..."},
    {"page": 2, "file": ".tool-tmp/ocr-a1b2c3d4/page-2.txt", "preview": "Invoice No: INV-002..."},
    {"page": 3, "file": ".tool-tmp/ocr-a1b2c3d4/page-3.txt", "preview": "Invoice No: INV-003..."}
  ]
}

To read full content of a specific page, use cat:

bash
cat .tool-tmp/ocr-a1b2c3d4/page-2.txt

Single-page PDFs and images return inline text as usual (no file indirection).

Guidelines

  • Use output_format=text (default) when you just need the text content — simplest for LLM processing
  • Use output_format=json for structured types (invoice, id_card, etc.) to get key-value fields
  • Use output_format=markdown for documents and tables to preserve layout
  • The prompt parameter only works with VLM-OCR providers; traditional OCR ignores it
  • For structured document types (invoice, receipt, id_card, etc.), prefer json output to get fields with key-value pairs
  • Use ocr_providers first to check which providers are available and what types they support
  • Multi-page PDFs return a JSON summary with temporary file paths; use cat <file> to read specific pages
  • Google Vision and VLM providers do not support PDF input directly; use Baidu, Azure, or PaddleOCR for PDF files

Frequently asked questions

What does the Yao Ocr AI skill do?

OCR text recognition expert. ALWAYS invoke this skill when you need to extract text from images or PDFs — including invoices, receipts, ID cards, bank cards, business licenses, tables, handwritten documents, or any visual text content.

Why use Yao Ocr on TypingMind?

Because you install it once and use it with any model. Yao Ocr is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Yao Ocr in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/YaoApp/yao/tree/main/tools/skills/yao-ocr. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Yao Ocr?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Yao Ocr?

As many as you like. As long as a model supports skills, you can use Yao Ocr with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Yao Ocr AI skill free?

It is published on GitHub by YaoApp. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇