docx

Create, read, edit, and format .docx Word documents.

73|11|Updated May 18, 2025
One-click install
npx skills add https://github.com/datascienceworld-kan/vinagent --skill docx-datascienceworld-kan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/datascienceworld-kan/vinagent/tree/main/agentskills/skills/skills/docx
Command: npx skills add https://github.com/datascienceworld-kan/vinagent --skill docx-datascienceworld-kan

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates Word document creation, editing, and transformation to streamline complex document workflows and reduce manual formatting toil.

Core Features & Use Cases

  • Create, read, edit, and format .docx files (including headings, tables, and headers/footers) to produce polished, professional Word documents.
  • Insert and replace images, perform find-and-replace, manage tracked changes and comments, and reorganize content within Word documents.
  • Real-world use: convert client reports or proposals into fully formatted Word outputs from templates and data sources.

Quick Start

Provide a task description to generate a polished Word document, such as creating a formatted report from template and data.

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 and formatting from templates?

Word document automation is achieved through deterministic scripts and frontmatter-guided instructions that construct and validate .docx structures. It supports applying headings, inserting tables, and formatting content to produce polished reports and letters from templates.

Can I handle tracked changes and comments in a .docx file?

Handling tracked changes and comments in a .docx file is fully supported. You can insert, edit, and manage revisions and annotations directly within the document workflow to streamline collaborative review processes.

How do I insert and replace images in Word documents?

Inserting and replacing images in Word documents is handled by the Skill's image manipulation functions. It modifies the .docx structure directly to embed or swap visuals, eliminating manual formatting steps.

Does this approach require lxml and defusedxml dependencies to parse .docx files?

Yes, lxml and defusedxml are required dependencies for parsing and constructing .docx files. These libraries enable the deterministic scripts to safely manipulate XML structures and validate Word document formatting.

What is the best way to perform find-and-replace across a formatted Word document?

Perform find-and-replace across a Word document using automated scripts that target the .docx XML content directly. This method accurately updates text while preserving existing formatting, headings, and table structures.

Why use automated scripts instead of manual formatting for Word document generation?

Automated scripts eliminate manual formatting toil by deterministically constructing and validating .docx structures. This ensures consistent formatting across reports, letters, and templates while preventing human error during document generation.