doc-reader

Extract text from PDFs, Office files, images, and code into a structured JSON envelope.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/ajithkumar31082004-bit/Vibe-Trading --skill doc-reader-ajithkumar31082004-bit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc-reader
Source: https://github.com/ajithkumar31082004-bit/Vibe-Trading/tree/main/Vibe-Trading-main/agent/src/skills/doc-reader
Command: npx skills add https://github.com/ajithkumar31082004-bit/Vibe-Trading --skill doc-reader-ajithkumar31082004-bit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Read from diverse document formats and retrieve extracted text in a single, consistent envelope for downstream processing.

Core Features & Use Cases

  • Multi-format support: PDF, Word, Excel, PowerPoint, images (OCR), CSV/TSV, plain text, JSON/YAML/TOML, HTML/XML, and source code.
  • Unified envelope: returns a standard JSON with status, file, format, char_count, truncated, text, and format-specific extras.
  • OCR fallback: image-based formats auto fall back to OCR when text is not extractable; encoding fallbacks ensure text decoding.

Quick Start

Call read_document(file_path="uploads/paper.pdf") to extract text from the document.

Frequently Asked Questions about doc-reader

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from a PDF or Word document for data processing?

To extract text from a PDF or Word document, you can use format-specific parsers that return the content in a structured JSON envelope. This envelope includes the file format, character count, and the extracted text, making it immediately usable for downstream data processing.

Can I use OCR to extract text from images when processing documents?

Yes, you can use OCR to extract text from images. The system automatically falls back to OCR when text is not readily extractable from image-based formats, ensuring you can digitize and analyze content from scanned documents or image files.

What is the best way to normalize extracted text from diverse file formats?

The best way to normalize extracted text from diverse file formats is to use a unified JSON envelope. It standardizes outputs across PDFs, Word, Excel, and images into common fields like status, format, char_count, and text, ensuring consistent data extraction.

Does text extraction work with structured data formats like CSV, JSON, and YAML?

Yes, text extraction works with structured data formats like CSV, JSON, and YAML. The system uses format-specific parsers to read these files and returns the content within the same standard JSON envelope, alongside support for HTML, XML, and source code.

What are the limitations of document text extraction for large files?

A key limitation of document text extraction for large files is truncation. The unified JSON envelope includes a 'truncated' field to indicate if the extracted text exceeds the processing limits, ensuring you know when the output data is incomplete.