docx-advanced-patterns

Extract text from nested tables and complex DOCX cell layouts.

47|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/belumume/claude-skills --skill docx-advanced-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx-advanced-patterns
Source: https://github.com/belumume/claude-skills/tree/main/docx-advanced-patterns
Command: npx skills add https://github.com/belumume/claude-skills --skill docx-advanced-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

DOCX documents frequently store content in nested tables and complex cell layouts that standard text extraction misses, complicating data retrieval and analysis.

Core Features & Use Cases

  • Nested table extraction from DOCX cells: retrieve all visible and embedded text.
  • Form and checklist processing: capture labeled options from nested structures.
  • Recursive handling of complex layouts across multi-row cells and aggregated data.

Quick Start

Install: cp -r docx-advanced-patterns ~/.claude/skills/ Then, in Claude.ai, upload the skill as a ZIP or use it within your workflow with the provided extraction utilities.

Frequently Asked Questions about docx-advanced-patterns

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

FAQPage Schema
How do I extract text from nested tables in a DOCX file?

To extract text from nested tables in a DOCX file, you need a recursive extraction approach that detects cell.tables and navigates embedded structures, preserving line breaks and all visible text. The standard python-docx .text extraction misses this complex layout data.

Why does python-docx .text return empty or incomplete content for form cells?

The python-docx .text property returns incomplete content for form cells because it ignores embedded structures. Cells containing nested tables or checkbox-like forms require recursive handling to detect cell.tables and retrieve all aggregated multi-row data.

Can I extract checkbox-like forms and multi-row cell data from DOCX documents?

Yes, you can extract checkbox-like forms and multi-row cell data from DOCX documents by applying recursive handling to navigate complex layouts. This captures labeled options from nested structures and preserves line breaks across aggregated table data.

Do I need Python and python-docx to extract content from complex DOCX layouts?

Yes, you need Python and the python-docx package installed to extract content from complex DOCX layouts. These provide the foundational functions required to detect cell.tables and navigate nested structures for accurate data retrieval.

What is the best way to preserve line breaks when extracting text from DOCX nested tables?

The best way to preserve line breaks when extracting DOCX nested tables is using recursive extraction that navigates embedded structures and captures multi-row cell content. This ensures accurate data retrieval without losing visible text or formatting.