ocr-and-documents
できること
このスキルは、通常の読み取りでは扱えないスキャンや画像だけの文書から、テキストを抽出します。紙の書類やスキャンされたPDFの文字を取り戻したい人向けです。
使う場面
- ✓テキストを検索できる文書にするために、スキャンされたPDFのテキストが必要なとき。
- ✓書類の写真があり、そこの文字をコピーしたいとき。
- ✓複雑なレイアウト、表、数式を含む文書を、構造化されたテキストに変換する必要があるとき。
スキルのリンク
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/ocr-and-documents/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“この契約書のスキャンPDFには選択できるテキストがありません。テキストを取り出してもらえますか。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはまず通常の抽出を試し、次に軽いローカルのOCRツールを使い、その後で重いレイアウトのツールを使います。ファイルは、アップロードを許可しない限り、あなたのパソコンに残します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
OCR and scanned documents
Use this Skill when ordinary document extraction fails because the source is scanned, image-based, or layout-heavy.
Start here
Call skill_view for this Skill and use its returned baseDirectory. Helpers live in <baseDirectory>/scripts.
Prefer local processing. Do not upload a private document to an external OCR service unless the user explicitly authorizes that transfer.
Choose the lightest path
- Normal extraction first. For PDFs, try the bundled pdf Skill. For .docx, use docx. Do not OCR born-digital text.
- A few scanned pages. Render pages with the pdf Skill and inspect images using view_image; transcribe only the requested pages.
- Text-oriented scanned PDF. Try extract_pymupdf.py; this is the lighter local path.
- Complex layout, tables, math, or many scanned pages. Use extract_marker.py only after confirming the need and checking resources.
Helpers
python3 <baseDirectory>/scripts/extract_pymupdf.py input.pdf -o extracted.md
python3 <baseDirectory>/scripts/extract_marker.py --check
python3 <baseDirectory>/scripts/extract_marker.py input.pdf -o extracted.md
Run helpers with terminal_exec, using python3 as the command and arguments as an array. Use --help for exact options.
extract_pymupdf.py requires PyMuPDF:
python3 -m pip install pymupdf
Its --markdown mode additionally requires pymupdf4llm.
extract_marker.py uses marker-pdf, which can require several gigabytes of packages and model downloads. Never install it automatically. Check available disk space and ask the user before installing or downloading large models.
URLs
If the source is a URL, first use an available browser or HTTP tool to identify whether it points to HTML or a document. Download only the requested document, respect authentication and access boundaries, and then process the local copy. Do not assume a specific web tool exists.
Verification
- Preserve reading order, page references, headings, tables, footnotes, and confidence caveats.
- Compare extracted text against representative rendered pages with view_image.
- Mark uncertain characters and fields instead of guessing.
- For tables, verify column alignment and numeric values separately.
- Return both the extracted artifact path and the original source/page mapping when possible.
よくある質問
私の文書はオンラインのサービスに送られますか?
いいえ。このスキルはローカルでの処理を優先し、あなたが明示的に許可しない限り、非公開の文書をアップロードしません。
OCRを使うべきでないのはどんなときですか?
テキストのあるPDFやWord文書では、通常の抽出がすでに動くため、OCRは必要ありません。
重いツールはいつ使われますか?
エージェントがそれが必要だと確認し、コンピューターにその資源があることを確かめた後にだけ使われます。
詳細
作者による元の説明
Extract and structure text from scanned PDFs and document images with a local-first OCR workflow, layout-aware fallbacks, and explicit heavyweight dependency controls.
repo: EKKOLearnAI/ekko-studio
人気
- GitHubのスター
- 12k
- ランキング
- #11572
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
1password
12kエージェントが、1PasswordのCLIを使って、コマンドや設定ファイルに必要な秘密情報を、チャット、ログ、保存されたファイルに表示せずに取得できるよう支援します。
apple-notes
12kエージェントが、memoコマンドラインツールを使って、Macのメモ(Apple Notes)を作成、検索、読み取り、編集、移動、削除できるよう支援します。
apple-reminders
12kエージェントが、remindctlツールを使って、Macのリマインダーとリマインダーのリストを一覧表示、作成、編集、完了、削除できるよう支援します。
document-to-action-items
12kエージェントが、文書、会議の書き起こし、メモを、タスク、担当者、期限、決定事項の明確な表に変換できるよう支援します。
似ているスキル
feishu-doc
394kテキスト、画像、表を含むFeishuのクラウドドキュメントを、ドキュメントツールを使って読み、作成し、編集するようエージェントを支援します。
feishu-drive
394kボットと共有されたFeishuのクラウドフォルダ内のファイルを閲覧、整理、コメントできるようエージェントを支援します。
feishu-perm
394kFeishuのファイルにアクセスできる人を確認し、変更するようエージェントを支援します。依頼を満たす最小の権限を選びます。