Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Yao Ocr

ASecurity

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.

7,976 stars
0 votes
0 copies
0 views
Added 9/20/2026
ai-agentsgobashazureapi

Works with

api

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add YaoApp/yao --skill yao-ocr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Yao Ocr?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Yao Ocr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yaoapp-yao-ocr/badge)](https://www.skillsdirectory.com/skills/yaoapp-yao-ocr)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: yao-ocr
description: 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.
---

# 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
```

| Parameter     | Type   | Required | Description                                                                                  |
| ------------- | ------ | -------- | -------------------------------------------------------------------------------------------- |
| source        | string | yes      | Image or PDF file path/URL to recognize                                                      |
| provider      | string | no       | LLM connector ID (`llm:xxx`) or OCR settings key (`baidu`/`paddleocr`/`google`/`azure`). Auto-selects if omitted |
| type          | string | no       | Recognition type (default: `general`). See type table below                                  |
| output_format | string | no       | `text` (default), `json` (with coordinates/fields), or `markdown` (structured)               |
| mode          | string | no       | `accurate` (default, best quality) or `standard` (faster)                                    |
| language      | string | no       | Language hint (ISO 639-1, e.g. `en`, `zh`, `ja`). Auto-detected if omitted                   |
| prompt        | string | no       | Custom instruction for VLM-OCR only, appended to system prompt. Ignored by traditional OCR   |
| pages         | string | no       | PDF page range, e.g. `1-5` or `1,3,7`. All pages if omitted                                 |
| extra         | JSON   | no       | Provider-specific parameters as a JSON object                                                |

### Recognition types

| Type             | Description                | Best output_format |
| ---------------- | -------------------------- | ------------------ |
| `general`        | General text (default)     | text               |
| `table`          | Table extraction           | markdown           |
| `handwriting`    | Handwritten text           | text               |
| `document`       | Document layout parsing    | markdown           |
| `invoice`        | Invoice (VAT)              | json               |
| `receipt`        | Receipt / ticket           | json               |
| `id_card`        | ID card                    | json               |
| `bank_card`      | Bank card                  | json               |
| `license`        | Business license           | json               |
| `vehicle_license` | Vehicle license           | json               |
| `passport`       | Passport                   | json               |
| `license_plate`  | License plate              | json               |

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

| Provider   | PDF | Notes                                    |
| ---------- | --- | ---------------------------------------- |
| Baidu      | yes | pdf_file parameter                       |
| Azure      | yes | Document Intelligence native support     |
| PaddleOCR  | yes | pdf + fileType=0                         |
| Google     | no  | Sync API does not support PDF            |
| VLM (llm:) | no  | Vision 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

Attribution

YaoAppYaoApp
View sourceMore from YaoApp →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1066601 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

651 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →