docx

Automate DOCX document creation, editing, formatting, and tracked changes.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/handsomelong922/my-codex-skills --skill docx-handsomelong922
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/handsomelong922/my-codex-skills/tree/main/skills/docx
Command: npx skills add https://github.com/handsomelong922/my-codex-skills --skill docx-handsomelong922

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml.

What problem does it solve?

Streamline Word document workflows by automating creation, editing, and formatting of DOCX files, reducing manual repetitive tasks.

Core Features & Use Cases

  • Create new documents with consistent formatting (headings, tables, lists, page numbers) and embedded images.
  • Read, modify, or reorganize existing Word files, including search/replace and content reflow.
  • Preserve collaboration history with tracked changes and comments during document generation or revision.

Quick Start

Use this skill to generate a ready-to-share Word document from a brief outline or to mass-format a batch of DOCX files.

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 with consistent formatting?

Automating Word document creation involves specifying headings, tables, lists, page numbers, and embedded images in Markdown with YAML frontmatter, producing consistently formatted DOCX files while reducing manual repetitive tasks.

Can I insert images and page numbers into DOCX files automatically?

Yes, you can insert images and apply page numbers automatically. The skill handles professional document formatting tasks, embedding images and configuring page numbers across DOCX files to streamline your workflow.

Does this approach preserve tracked changes and comments during document generation?

Yes, it preserves collaboration history with tracked changes and comments during document generation or revision. This ensures collaboration context remains intact when modifying or reorganizing existing Word files.

What's the best way to perform find-and-replace across multiple Word files?

The best way to perform find-and-replace across Word files is through automated DOCX editing. The skill executes search, replace, and content reflow in existing files, eliminating manual repetitive tasks.

Do I need YAML frontmatter to generate Word documents?

Yes, you need YAML frontmatter with name and description in SKILL.md, plus a Markdown body as activation instructions. This structure is required to automate the creation and formatting of DOCX files.

Can I use lxml for reading and modifying existing DOCX files?

Yes, the skill uses lxml and defusedxml as dependencies to read, modify, or reorganize existing Word files. This enables automated search, replace, and content reflow while handling document structure securely.