What problem does it solve?
Reading and analyzing Word (.docx/.doc) files programmatically is error-prone: tables get missed, highlight colors are invisible to naive parsers, and legacy .doc files fail to open. This Skill provides tested python-docx recipes that handle full-text extraction, structured table parsing, format-aware color detection, multi-file aggregation, and embedded image captioning.
Core Features & Use Cases
- Full Text & Table Extraction: Iterate document body in order to capture paragraphs and tables, converting tables into pandas DataFrames.
- Format-Aware Parsing: Read highlight colors and cell shading via XML-level access to answer questions like "find the yellow-highlighted rows".
- Multi-File Aggregation & Image Captioning: Batch-process directories of Word files and extract embedded images for caption generation.
- Use Case: Given a folder of contract drafts, extract all text, locate every yellow-highlighted clause, pull comparison tables into DataFrames, and summarize embedded chart images in one pass.
Quick Start
Analyze the attached Word document and extract all text, tables, and any yellow-highlighted content.