docx

Create, read, edit, and format Word DOCX documents programmatically.

1|1|Updated Jun 4, 2024
One-click install
npx skills add https://github.com/dhar174/tiny_village --skill docx-dhar174
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/dhar174/tiny_village/tree/main/.codex/docx
Command: npx skills add https://github.com/dhar174/tiny_village --skill docx-dhar174

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml, and includes scripts (resource) components.

What problem does it solve?

Word documents are frequently created and updated manually, leading to inconsistencies and slow workflows. This skill automates the end-to-end handling of Word documents (.docx), enabling programmatic creation, reading, editing, and formatting to save time and ensure uniform results.

Core Features & Use Cases

  • Automated DOCX creation from templates and data
  • Read, edit, and reformat existing Word documents, including images, tables, and styles
  • Find-and-replace, insertions, comments, and tracked changes handling for collaboration
  • Convert content into polished Word documents with consistent formatting (headings, page numbers, letterheads)
  • Use cases include generating reports, letters, proposals, or templated documents at scale

Quick Start

Generate a polished Word document from a template and save it as a .docx file.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document creation from templates and data?

Automating Word document creation involves unpacking .docx archives, editing Word XML to inject data into templates, and repacking to generate polished letters, reports, or memos at scale.

Can I programmatically edit existing Word documents to add tracked changes and comments?

Editing existing Word documents programmatically supports inserting comments, handling tracked changes for collaboration, and performing find-and-replace operations directly within the document XML.

How does applying headers, footers, and styles to a DOCX file work under the hood?

Applying headers, footers, and styles to a DOCX file works by unpacking the archive, modifying the underlying Word XML to apply structural formatting, validating against schemas, and repacking the output.

Do I need lxml and defusedxml dependencies to handle DOCX formatting and images?

You need the lxml and defusedxml dependencies to securely parse and manipulate the XML structure required for inserting images, managing tables, and applying styles in DOCX files.

What is the best way to generate templated Word documents at scale without manual formatting?

Generating templated Word documents at scale is achieved by automating the end-to-end handling of .docx files, ensuring consistent formatting like headings and page numbers without manual updates.

Does this approach to Word document editing support inserting images and managing tables?

This approach to Word document editing supports reading, reformatting, and inserting images into existing documents, while also managing tables and applying consistent styles.