fqih/.mycc-setup/document-intelligence
Claude Code and agent skill by fqih/.mycc-setup
- community
Checking that the SKILL.md file is still in the repository.
Use when reading, extracting, summarizing, or citing from PDF / Word / Markdown / HTML / EPUB documents. Triggers on "read this pdf", "extract from word", "summarize paper", "cite from document", "/pdf-read", "/doc-extract", "/doc-summarize".
Install
npx vskill@latest install fqih/.mycc-setup/document-intelligenceSKILL.md
The same SKILL.md was published earlier as fqih/.mycc-setup/document-intelligence.
document-intelligence
Pattern untuk Claude baca, extract, summarize, dan cite dari dokumen offline. Fokus pada local-first (no cloud upload) + reproducibility.
Tools yang tersedia
| Format | Tool | Install | |
|---|---|---|---|
PyMuPDF (fitz) | pip install pymupdf | ||
| Word (.docx) | python-docx | pip install python-docx | |
| Universal converter | pypandoc + pandoc | pip install pypandoc + apt install pandoc | |
| Markdown / HTML | native (stdlib) | built-in | |
| EPUB | ebooklib | pip install ebooklib | |
| OCR (scanned PDF) | pytesseract + tesseract | pip install pytesseract + apt install tesseract | |
| Tables (advanced) | camelot / tabula-py | pip install camelot-py[cv] |
PyMuPDF + python-docx + pypandoc sudah ter-install di env ini.
When to use which
| Task | Best tool | |
|---|---|---|
| Read PDF (text-based) | PyMuPDF | |
| Read PDF (scanned/image) | OCR via pytesseract | |
| Extract tables from PDF | camelot atau tabula | |
| Read .docx | python-docx | |
| Read .doc (legacy) | pypandoc convert → markdown | |
| Read .odt, .rtf, .epub | pypandoc convert → markdown | |
| Read .pptx | python-pptx atau pypandoc | |
| Read .xlsx | openpyxl atau pandas |
PyMuPDF — basic PDF reading
Extract with structure (headings, paragraphs)
PyMuPDF blocks API preserves layout:
Extract images from PDF
Extract tables from PDF
python-docx — Word reading
pypandoc — universal converter
OCR untuk scanned PDF
Chunking untuk RAG (lihat skill rag-patterns)
Summarization patterns
Extract summary (cepat, no LLM)
LLM summary (panggil Claude API)
Citation patterns
Saat refer ke dokumen, selalu include source + page/paragraph:
Format citations:
- PDF:
[Author et al., Year, p. N]atau[Doc name, p. N] - Word:
[Doc name, Section X.Y, ¶ N]atau[Doc name, page N] - Web:
[URL, accessed YYYY-MM-DD]
Common pitfalls
| Pitfall | Solusi | |
|---|---|---|
| PDF text kosong | Scanned PDF, pakai OCR (pytesseract) | |
| Tabel berantakan | camelot / tabula, atau pandas.read_html kalau web | |
| Encoding salah | page.get_text("text", flags=fitz.TEXT_PRESERVE_WHITESPACE) | |
| Formula matematika | KaTeX/Mathpix; atau extract as image dan rujuk visual | |
| Dokumen sangat besar (>1000 pages) | Chunk + summarize per section, jangan load all | |
| PDF ter-encrypt (password) | fitz.open(path, password="...") atau decrypt dulu | |
| Multi-column layout | page.get_text("blocks") lalu sort by Y coordinate | |
| Bahasa campuran | OCR lang="eng+ind+jpn" atau per-bahasa pipeline | |
| Image-heavy doc | Extract images + caption text separately, link via position |
Workflow untuk Claude session
- Read:
Read(path)atau Bash dengan python script - Extract: PyMuPDF / python-docx / pypandoc
- Chunk (kalau panjang): split per page atau section
- Process: summarize / answer questions / compare dengan doc lain
- Cite: selalu include
[source, page]di output
Install kalau belum
Privacy + security
- ❌ Jangan upload dokumen ke cloud service tanpa consent
- ✅ Local-first: PyMuPDF + python-docx process di lokal
- ✅ Redact PII sebelum summarize kalau di-share
- ✅ Hati-hati proprietary docs — jangan paste ke public chat
Performance tips
| Doc size | Strategy | |
|---|---|---|
| < 50 pages | Load all in context | |
| 50-200 pages | Load summary dulu, drill-down per section | |
| 200-1000 pages | Chunk + vector store + retrieval | |
| > 1000 pages | Index dulu, query per-chunk via RAG |
Invokation
Auto-trigger saat:
- Edit file path mengandung
.pdf,.docx,.doc,.odt,.epub,.rtf - User sebut "pdf", "word", "document", "paper", "report", "summarize", "extract"
- Slash command:
/pdf-read,/doc-extract,/doc-summarize
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/document-intelligence/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/fqih/.mycc-setup/document-intelligence)