docx

Create, edit, and analyze Word documents via Python scripts with OOXML validation.

316|57|Updated Jun 14, 2025
One-click install
npx skills add https://github.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas --skill docx-syahiidkamil
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas --skill docx-syahiidkamil

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation, editing, and analysis of Word documents (.docx), reducing manual boilerplate and enabling repeatable formatting and content workflows.

Core Features & Use Cases

  • Create new DOCX files from templates and structured inputs, applying headings, styles, and tables.
  • Edit existing documents by updating content, formatting, and tracked changes while preserving typography.
  • Validate and repair OOXML structure, including content types and relationships, with an unpack/pack workflow for safe edits.

Quick Start

Create a DOCX from a template, fill in structured content, and apply basic formatting.

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 editing from templates?

You can automate Word document creation and editing by using Python scripts to unpack .docx files, inject structured content into templates, apply styles or tables, and repack the OOXML structure for validated output.

How does the unpack and pack workflow handle OOXML validation for DOCX files?

The unpack and pack workflow extracts the OOXML structure, applies content-type checks and relationship validation using defusedxml and lxml, and repacks the DOCX to ensure safe edits and structural integrity.

Can I batch format and restructure content across multiple Word documents?

Yes, you can batch format and restructure content across multiple Word documents by running programmable scripts that update headings, styles, tables, and tracked changes while preserving typography.

Does this approach support updating tracked changes in existing DOCX files?

Yes, the scripts support editing existing DOCX files by updating content, formatting, and tracked changes while preserving the document's original typography and OOXML structure.

What is the best way to validate and repair OOXML structure in Word documents?

The best way to validate OOXML structure is through the unpack, edit, and pack workflow, which leverages defusedxml and lxml to check content types and relationships, ensuring safe and valid DOCX files.