tencentcloud/octop-harness/ocr-and-documents
Claude Code and agent skill by tencentcloud/octop-harness
- community
Checking that the SKILL.md file is still in the repository.
Extract text from PDFs/scans (pymupdf, marker-pdf).
Install
npx vskill@latest install tencentcloud/octop-harness/ocr-and-documentsSKILL.md
The same SKILL.md was published earlier as tencentcloud/octop-harness/ocr-and-documents.
PDF & Document Extraction
Harness-agent tools
This skill was ported from Octop. Use these harness/deepagents tools:
| Concept | Tool | |
|---|---|---|
| Shell | execute | |
| Read / write / edit files | read_file, write_file, edit_file | |
| Find files / search content | glob, grep | |
| Fetch URLs | web_fetch | |
| Browser automation | browser_use | |
| Subagent work | task | |
| Memory | memory_store, memory_recall, memory_search |
Builtin skill files live under /_builtin_skills/<name>/. User-installed skills live under /skills/<name>/.
For DOCX: use python-docx (parses actual document structure, far better than OCR). For PPTX: see the powerpoint skill (uses python-pptx with full slide/notes support). This skill covers PDFs and scanned documents.
Step 1: Remote URL Available?
If the document has a URL, try `web_fetch` first for HTML pages and text-based content:
web_fetch converts HTML to markdown. For binary PDFs it returns plain text or may fail — fall back to local extraction below.
Only use local extraction when: the file is local, web_fetch fails or returns unusable output, or you need batch processing / OCR.
Step 2: Choose Local Extractor
| Feature | pymupdf (~25MB) | marker-pdf (~3-5GB) | |
|---|---|---|---|
| Text-based PDF | ✅ | ✅ | |
| Scanned PDF (OCR) | ❌ | ✅ (90+ languages) | |
| Tables | ✅ (basic) | ✅ (high accuracy) | |
| Equations / LaTeX | ❌ | ✅ | |
| Code blocks | ❌ | ✅ | |
| Forms | ❌ | ✅ | |
| Headers/footers removal | ❌ | ✅ | |
| Reading order detection | ❌ | ✅ | |
| Images extraction | ✅ (embedded) | ✅ (with context) | |
| Images → text (OCR) | ❌ | ✅ | |
| EPUB | ✅ | ✅ | |
| Markdown output | ✅ (via pymupdf4llm) | ✅ (native, higher quality) | |
| Install size | ~25MB | ~3-5GB (PyTorch + models) | |
| Speed | Instant | ~1-14s/page (CPU), ~0.2s/page (GPU) |
Decision: Use pymupdf unless you need OCR, equations, forms, or complex layout analysis.
If the user needs marker capabilities but the system lacks ~5GB free disk:
"This document needs OCR/advanced extraction (marker-pdf), which requires ~5GB for PyTorch and models. Your system has [X]GB free. Options: free up space, provide a URL so I can use web_fetch, or I can try pymupdf which works for text-based PDFs but not scanned documents or equations."
pymupdf (lightweight)
Via helper script (from workspace root after init_workspace):
Inline:
marker-pdf (high-quality OCR)
Via helper script:
CLI (installed with marker-pdf):
Arxiv Papers
For paper search, use configured search tools (tavily_search, searchfree_search, etc.) or web_fetch on a known URL.
Split, Merge & Search
pymupdf handles these natively — use execute or inline Python:
No extra dependencies needed — pymupdf covers split, merge, search, and text extraction in one package.
Notes
web_fetchis always first choice for URLs- pymupdf is the safe default — instant, no models, works everywhere
- marker-pdf is for OCR, scanned docs, equations, complex layouts — install only when needed
- Both helper scripts accept
--helpfor full usage - marker-pdf downloads ~2.5GB of models to
~/.cache/huggingface/on first use - For Word docs:
pip install python-docx(better than OCR — parses actual structure) - For PowerPoint: see the
powerpointskill (uses python-pptx)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/octop_harness/builtin/skills/en/ocr-and-documents/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tencentcloud/octop-harness/ocr-and-documents)