yao-ocr
できること
このスキルは、請求書、レシート、表などのスキャンされた画像やPDFファイルから文字を読み取ります。印刷された文字や手書きの文字を、編集できる文字に変換したい人向けです。
使う場面
- ✓スキャンされた請求書やレシートがあり、その詳細を文字で取り出したいとき。
- ✓PDFがスキャンで、検索や編集ができる文字が必要なとき。
- ✓画像にある表を、扱える形式に変換する必要があるとき。
スキルのリンク
https://github.com/YaoApp/yao/blob/main/tools/skills/yao-ocr/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このスキャンされた請求書のPDFから、すべての金額と明細を表として抜き出してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、画像またはPDFを文字認識エンジンに送ります。これは画像認識モデルでも、従来のOCRサービスでもかまいません。プレーンテキスト、Markdownの表、または構造化データを返します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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):
tai tool ocr_recognize --source /path/to/image.png
With URL:
tai tool ocr_recognize --source https://example.com/document.jpg
Table extraction as Markdown:
tai tool ocr_recognize --source /path/to/table.png --type table --output_format markdown
Invoice structured extraction:
tai tool ocr_recognize --source /path/to/invoice.pdf --type invoice --output_format json
With specific provider:
tai tool ocr_recognize --source /path/to/doc.png --provider baidu
VLM-OCR with custom prompt:
tai tool ocr_recognize --source /path/to/doc.png --provider llm:qwen-ocr --prompt "只提取表格中的金额列"
PDF page range:
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.
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 | Notes | |
|---|---|---|
| Baidu | yes | pdf_file parameter |
| Azure | yes | Document Intelligence native support |
| PaddleOCR | yes | pdf + fileType=0 |
| no |
よくある質問
どのような出力形式がありますか?
プレーンテキスト、Markdownの表、JSONなどの構造化データです。
ページの範囲を選べますか?
はい。PDFの場合は、ページの範囲を選べます。
手書きにも対応していますか?
スキルは手書きの文書も対象に含めていると記されていますが、結果は使われるエンジンによって異なります。
詳細
作者による元の説明
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.
repo: YaoApp/yao
人気
- GitHubのスター
- 8.3k
- ランキング
- #12477
- ライセンス
- —
- 更新日
- 2026/10/19
コメント
- …
このリポジトリの他のスキル
yao-agent
8.3kYaoホスト上のエージェントを一覧表示し、コードの確認、取得、デプロイ、モデルのコネクタ確認を支援します。
yao-audio
8.3kエージェントが、会議の録音などの音声ファイルを文字に起こすよう支援します。言語を指定しない場合は、自動で言語を判別します。
yao-board
8.3kYaoプラットフォーム上のカンバンボードとタスクの状況を、エージェントが確認できるよう支援します。推測ではなく、実際のプロジェクトの進捗を報告します。
yao-daemon
8.3k開発サーバーなど、長時間動くバックグラウンドのサービスを、エージェントが起動、確認、再起動、停止し、その出力を読めるよう支援します。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。