# DOCX

> Word document manipulation with python-docx - handling split placeholders, headers/footers, nested tables

- Skill: `bishal-pdmsft/docx-7` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add bishal-pdmsft/docx-7`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bishal-pdmsft/docx-7/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: bishal-pdMSFT (https://skillmd.com/u/bishal-pdmsft)
- Updated: 2026-11-15
- Page: https://skillmd.com/skills/bishal-pdmsft/docx-7

---


# 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:

- [`docx_field_reference.pdf`](./docx_field_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.

