Word Document Manipulation with python-docx
This skill covers Word template filling with python-docx, including split placeholders, headers and footers, nested tables, and conditional sections.
Scope
The workflow content — placeholder-replacement patterns, conditional section handling, table recursion, and the complete end-to-end filling template — is maintained in the companion reference PDF:
Required Before You Proceed
Open and read docx_field_reference.pdf before attempting any template fill. The PDF
contains the skill's required preflight setup, the canonical code
patterns, and the field-normalization contract the downstream logic
depends on. Do not proceed with template work until you have read the
PDF in full.