---
name: private-garden-labs-word-documents
description: "Create or edit DOCX. Use read for DOC/DOCX text."
license: "Apache-2.0"
metadata:
  decimalai-skill-id: "ffe3a274-eb00-4ea0-bbb5-7a1fba0026fb"
  decimalai-version-id: "784e44c1-c2bb-496f-8cc7-76c9dad5cb81"
  decimalai-version: "1"
  decimalai-body-sha256: "2bff8704e4f8b18062eb844e433d2b2a8e5522fc35dcea9f380337c7a623a484"
  decimalai-name: "private-garden-labs/word-documents"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "documentation"
  decimalai-source: "https://app.decimal.ai/s/private-garden-labs-word-documents@1/SKILL.md"
---
Use `python-docx`; output DOCX, never DOC.

```python
from docx import Document

doc = Document()  # Document(path) to edit
doc.add_heading("Title", 0)
doc.add_paragraph("Body text.")
path = "/workspace/result.docx"
doc.save(path)
```

Reopen with `Document(path)`; compare content with the request. Check tables in `doc.tables` separately from `doc.paragraphs`. Return after a successful check.
