Create formatted Word documents
docxskillsetup L1★27,559
K-Dense-AI/scientific-agent-skills ↗What it does
Create, read, and edit Word documents with formatting and tables
Best for
Programmatically generating professional Word documents with complex formatting (TOC, headings, styled lists, page breaks) when manual editing is infeasible.
Inputs
- · template .docx file or new document spec
- · text content
- · headings, lists, tables
- · images and page layout
Outputs
- · .docx file with formatted content
- · converted PDF/images
- · tracked changes accepted
Requires
- · docx-js npm package
- · optional: LibreOffice for .doc conversion and tracked changes
- · optional: pandoc for content extraction
Preconditions
Node.js environment; docx-js installed; DXA unit awareness (1440 DXA = 1 inch)
Failure modes
docx-js defaults to A4 not US Letter (must set page size); text field via content not text (silent fail); no tracked-changes API without LibreOffice
Trust signals
- · Markdown/raw XML reading patterns
- · Page-size/margin DXA reference table
- · Pagination and layout guidance
- · Batch document generation example