docx-smart-extractor

Extract headings, tables, metadata, and tracked changes from Word documents into structured JSON artifacts.

6|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/diegocconsolini/ClaudeSkillCollection --skill docx-smart-extractor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx-smart-extractor
Source: https://github.com/diegocconsolini/ClaudeSkillCollection/tree/main/claude-desktop-skills/docx-smart-extractor
Command: npx skills add https://github.com/diegocconsolini/ClaudeSkillCollection --skill docx-smart-extractor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Local, zero-LLM extraction of Word documents (1MB-50MB+) that preserves structure, formatting, and tables. Enables fast querying and downstream processing without sending data to LLMs.

Core Features & Use Cases

  • Preserve headings, tables, metadata, and formatting.
  • Semantic chunking for efficient querying and content navigation.
  • Caching for instant reuse and offline processing.

Quick Start

Use a Word document path (docx) and run extraction; then query via the cache to retrieve structured chunks.

Frequently Asked Questions about docx-smart-extractor

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

FAQPage Schema
How do I extract Word document content while staying within token limits?

Word document extraction with token-efficient processing uses semantic chunking and caching to reduce token consumption by 10–50x. This Skill extracts .docx and .docm files locally, preserving headings, tables, and metadata as structured JSON output without sending data to LLMs, enabling fast offline analysis of documents up to 50 MB+.

Can I extract tables and structure from large Word documents offline?

Yes. Local extraction of Word documents preserves formatting, tables, headings, comments, and tracked changes without requiring internet or LLM calls. The Skill outputs structured JSON artifacts—full_document.json, headings.json, tables.json, metadata.json—enabling immediate querying and downstream processing of files ranging from 0.5 MB to 50 MB+.

What's the best way to extract and query Word docs for policy analysis and contracts?

Extract Word documents locally using semantic chunking to organize content into queryable chunks, then cache results for instant reuse. This approach preserves contract structure, policy headings, and metadata while eliminating token overhead, making it ideal for reviewing large documents without LLM processing costs.

Do I need an LLM to extract and structure Word document content?

No. This Skill performs zero-LLM extraction, running entirely offline on .docx and .docm files to pull headings, tables, metadata, and comments into structured JSON. You can immediately query cached results without external API calls, making it suitable for confidential documents and air-gapped environments.

How does semantic chunking reduce token usage when processing Word documents?

Semantic chunking organizes document content into meaningful segments by structure—headings, tables, paragraphs—rather than arbitrary splits. Combined with caching, it enables reuse and targeted querying, cutting token consumption 10–50x compared to processing full documents repeatedly.

What file sizes and formats does Word document extraction support?

Extraction supports .docx and .docm files from 0.5 MB to 50 MB+ with full preservation of headings, tables, metadata, comments, and tracked changes. Output is structured JSON artifacts enabling efficient offline analysis without streaming or size-imposed LLM constraints.