xiaodingdang2333/ai/doc-reader
Claude Code and agent skill by xiaodingdang2333/ai
- community
Checking that the SKILL.md file is still in the repository.
Read any common document/data file — PDF, Word (.docx), Excel (.xlsx/.xls), PowerPoint (.pptx), images (OCR), CSV/TSV, plain text, JSON/YAML/TOML, HTML/XML, and most source-code files. Use the `read_document` tool.
Install
npx vskill@latest install xiaodingdang2333/ai/doc-readerSKILL.md
The same SKILL.md was published earlier as xiaodingdang2333/ai/doc-reader.
Universal Document Reader
Purpose
Return extracted text from any supported file in a single unified JSON envelope. The tool dispatches by file extension — you always call the same tool regardless of format.
Supported formats
| Category | Extensions | Notes | |
|---|---|---|---|
.pdf | Text pages extracted in ms; scanned/image pages fall back to OCR | ||
| Word | .docx | Paragraphs + table cells | |
| Excel | .xlsx, .xls | All sheets, first 100 rows per sheet as preview | |
| PowerPoint | .pptx | Slide text content | |
| Images | .png/.jpg/.jpeg/.gif/.bmp/.webp/.tiff | OCR only | |
| CSV / TSV | .csv, .tsv | Raw text with encoding fallback | |
| Plain text | .txt/.md/.log/.rst | Encoding fallback | |
| Config | .json/.yaml/.yml/.toml/.ini/.cfg/.env | Raw text | |
| Markup | .html/.htm/.xml | Raw text (no HTML stripping) | |
| Source code | .py/.js/.ts/.tsx/.go/.rs/.java/.cpp/.c/.sql/.sh/... | Raw text | |
| Unknown extension | anything else | Best-effort read as UTF-8/GBK text |
Blocked (rejected at /upload): executables (.exe/.dll/.so/...) and archives (.zip/.tar/...). Ask the user to unpack archives locally first.
Usage
Always call the tool directly — do not run Python from bash.
The pages parameter only applies to PDF; other formats ignore it.
Return envelope
All formats share this shape:
Format-specific extra fields:
| Format | Extra keys | |
|---|---|---|
pdf | total_pages, pages_read, ocr_pages | |
docx | paragraphs, tables | |
excel | sheets (array of {name, rows, cols}) | |
pptx | slides | |
text | encoding, size |
Content longer than 15000 chars is truncated; for PDFs use the pages parameter to read slices.
Workflows
Paper / report summary
Contract review
Spreadsheet quick-look
Chart / screenshot / scanned PDF
Notes
- Encoding fallback order for text: utf-8 → utf-8-sig → gbk → gb2312 → big5 → latin-1.
- OCR uses RapidOCR; if the package is missing, image/scanned files
return empty text with a note field — tell the user to install rapidocr-onnxruntime.
- Excel previews are limited to 100 rows per sheet to stay in budget.
If the user needs full data (e.g. trade journals), call analyze_trade_journal instead.
- Source-code files are returned raw; do not re-format or re-indent.
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 repositoryCheckingcodex/skills/vibe-trading/src/skills/doc-reader/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/xiaodingdang2333/ai/doc-reader)