ck:docx

Automate creation, editing, and analysis of Word documents with Python.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/mafvietnam/mafapp --skill ck-docx-mafvietnam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:docx
Source: https://github.com/mafvietnam/mafapp/tree/main/.claude/skills/document-skills/docx
Command: npx skills add https://github.com/mafvietnam/mafapp --skill ck-docx-mafvietnam

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates the creation, editing, and analysis of Word documents (.docx) to streamline document workflows.

Core Features & Use Cases

  • Document creation from templates and template modification
  • Tracking changes and comments in DOCX documents
  • Text extraction and preservation of formatting for downstream processing

Quick Start

Create a sample Word document from a template and begin applying tracked changes and comments.

Frequently Asked Questions about ck:docx

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

FAQPage Schema
How do I automate Word document generation from a template using Python?

Automating Word document generation from templates is handled by applying Python-based tooling to modify existing .docx files. This Skill programmatically edits documents to streamline template-driven workflows without manual intervention.

Can Python apply tracked changes and comments to an existing .docx file?

Applying tracked changes and comments to an existing .docx file is fully supported for review workflows. The tooling programmatically inserts revisions and annotations into the document XML to automate collaborative editing processes.

How do I extract text from a .docx file while preserving formatting?

Extracting text while preserving formatting is achieved by parsing the underlying document XML. The Skill utilizes defusedxml and lxml to securely read .docx content and maintain structural formatting for downstream processing.

Do I need lxml and defusedxml installed to process .docx files?

You need lxml and defusedxml installed because they are required dependencies for the XML handling in this toolchain. These libraries provide the underlying XML parsing and security functions necessary to manipulate .docx files programmatically.

What is the best way to programmatically edit a .docx file without opening Microsoft Word?

The best way to programmatically edit a .docx file without Microsoft Word is using Python libraries to directly manipulate the document XML. This approach bypasses desktop software, enabling automated document modification and analysis.