yao-agent
Agent management expert. ALWAYS invoke this skill when you need to list available agents,…
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.
$ npx -y skills add YaoApp/yao --skill yao-ocr --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/yao-ocrContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
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.
Two tools for optical character recognition, supporting both VLM-OCR (vision language models) and traditional OCR APIs (Baidu, Google, Azure, PaddleOCR).
Extract text from images or PDF files using OCR.
tai tool ocr_recognize --source /path/to/image.png
tai tool ocr_recognize --source https://example.com/document.jpg
tai tool ocr_recognize --source /path/to/table.png --type table --output_format markdown
tai tool ocr_recognize --source /path/to/invoice.pdf --type invoice --output_format json
tai tool ocr_recognize --source /path/to/doc.png --provider baidu
tai tool ocr_recognize --source /path/to/doc.png --provider llm:qwen-ocr --prompt "只提取表格中的金额列"
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 |
| 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.
List available OCR providers and their supported recognition types.
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`.
| 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 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:
{
"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`:
cat .tool-tmp/ocr-a1b2c3d4/page-2.txt
Single-page PDFs and images return inline text as usual (no file indirection).
✨ All your agents and workspaces in one place, on every device you own. Track tasks on a board, accessible from desktop, mobile, browser, or API. Self-hosted.
Agent management expert. ALWAYS invoke this skill when you need to list available agents,…
Audio expert. ALWAYS invoke this skill when the user asks to transcribe, recognize, or…
Kanban board and task query expert. ALWAYS invoke this skill when the user asks about boards,…
Typed decision expert. ALWAYS invoke this skill when you need structured classification,…
Yao process documentation expert. ALWAYS invoke this skill when the user needs to discover…