document-processor

Extract text and structured data from PDFs, Excel, and Word documents.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/arbgjr/smart_alarm --skill document-processor-arbgjr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: document-processor
Source: https://github.com/arbgjr/smart_alarm/tree/main/.claude/skills/document-processor
Command: npx skills add https://github.com/arbgjr/smart_alarm --skill document-processor-arbgjr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pdfplumber, PyPDF2, pytesseract, pdf2image, python-docx, lxml, openpyxl, pandas, libreoffice, reportlab, defusedxml, pdftotext, tesseract-ocr, pandoc, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the handling of business documents across PDFs, Excel, and Word by extracting content, validating data integrity, and enabling professional document creation. It reduces manual effort and ensures consistent outputs.

Core Features & Use Cases

  • PDF extraction: text, tables, and OCR for scanned documents, preserving layout for downstream processing.
  • XLSX processing: data extraction with formulas preserved; validation of data and generation of reports.
  • DOCX processing: text extraction and detection of tracked changes for review; supports creation from templates.
  • Use Cases: accelerate requirements gathering from vendor PDFs, consolidate data from spreadsheets, and produce standardized documents for release notes or contracts.

Quick Start

Use the document-processor skill to extract text from requirements.pdf with /doc-extract requirements.pdf. Validate a budget workbook: /doc-validate budget.xlsx Detect tracked changes in a contract: python scripts/process_docx.py contract.docx --mode changes

Frequently Asked Questions about document-processor

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

FAQPage Schema
How do I extract text and tables from scanned PDF documents?

To extract text and tables from scanned PDFs, you apply OCR processing using tesseract-ocr and pdf2image. This approach detects text within images, preserving the layout for downstream data extraction workflows.

Can I extract data from Excel workbooks while preserving formulas?

Yes, you can extract data from Excel workbooks while preserving formulas using openpyxl and pandas. This method validates data integrity and generates structured reports without losing the original cell logic.

What is the best way to detect tracked changes in Word documents?

Detecting tracked changes in Word documents is best handled by parsing the DOCX file with python-docx and lxml. This process identifies revisions for review and extracts content for requirements gathering.

Does document processing work for generating JSON or Markdown outputs?

Document processing works for generating JSON or Markdown outputs by extracting structured data from PDFs, XLSX, and DOCX files. It transforms parsed content into standardized formats for reporting.

Do I need LibreOffice to convert documents for data extraction?

You need LibreOffice to convert diverse document formats into accessible types for data extraction. It supports the pipeline by normalizing files before applying tools like pdfplumber or python-docx.

Why does PDF table extraction fail on certain business documents?

PDF table extraction fails on certain business documents when layouts are irregular or scanned, requiring OCR. Using pytesseract and pdf2image handles these constraints by processing images before applying pdfplumber.