Create, edit, and manipulate Word documents programmatically using python-docx
The docx-manipulation skill enables the creation, editing, and manipulation of Microsoft Word (.docx) documents programmatically using the python-docx library. It is designed to automate document generation workflows that would otherwise require manual formatting and editing in Microsoft Word. The skill supports creating new documents from scratch, modifying existing files, and generating structured documents with professional formatting. By combining Python-based automation with Word document features, users can efficiently produce reports, contracts, templates, and formatted business documents.
The skill includes capabilities for adding and formatting headings, paragraphs, tables, images, and styles within Word documents. It supports document structure management such as sections, page setup, margins, and orientation, along with inline text formatting including bold, italic, underline, font customization, spacing, and alignment. The integrated MCP tools provide functionality for creating DOCX files, extracting text from existing documents, filling templates, and merging multiple Word documents. The skill also supports template-driven workflows and dynamic content insertion, making it useful for automated document pipelines.
This skill is suitable for developers, automation engineers, business teams, and content creators who need to generate or modify Word documents at scale. Common use cases include generating professional reports, creating reusable document templates, converting structured content into Word format, producing contracts with placeholders, and adding standardized headers, footers, tables, or branding elements. It is particularly useful in environments where document consistency, repeatability, and automation are important.
The skill supports creating new DOCX files, editing existing documents, adding formatted text, creating tables, inserting images, handling templates, and merging multiple Word documents.
The skill uses the python-docx library for programmatic manipulation of Microsoft Word (.docx) documents.
Yes. Existing DOCX files can be opened, modified, updated with new content, and saved programmatically.
Yes. The skill supports paragraph formatting, character styling, alignment, spacing, headings, tables, and page setup options available through python-docx.
The skill is compatible with several AI models including claude-sonnet-4, claude-opus-4, claude-3-5-sonnet, gpt-4, and gpt-4o, and relies on the python-docx library for DOCX processing.
Quick Setup:
.claude/skills/Repository
claude-office-skills/skills