docx-manipulation

Create and edit Microsoft Word .docx documents with python-docx.

368|75|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/claude-office-skills/skills --skill docx-manipulation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx-manipulation
Source: https://github.com/claude-office-skills/skills/tree/main/docx-manipulation
Command: npx skills add https://github.com/claude-office-skills/skills --skill docx-manipulation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation, editing, and manipulation of Microsoft Word (.docx) documents, eliminating the need for manual formatting and content insertion.

Core Features & Use Cases

  • Programmatic Document Creation: Generate professional documents from scratch with custom content, styles, tables, and images.
  • Template Filling: Populate existing .docx templates with dynamic data.
  • Content Manipulation: Edit existing documents, add headers/footers, and format text.
  • Use Case: Automatically generate personalized offer letters for new hires by filling in a pre-designed contract template with candidate-specific details.

Quick Start

Use the docx-manipulation skill to create a new Word document with a title and a paragraph of text.

Frequently Asked Questions about docx-manipulation

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

FAQPage Schema
How do I generate Word documents programmatically with python-docx?

You generate Word documents programmatically by creating a document object from scratch, then adding custom content, styles, tables, images, headers, and footers. This approach automates document creation without manual formatting.

What's the best way to fill a .docx template with dynamic data?

Filling a .docx template involves loading an existing Word document and populating placeholder fields with dynamic data. This template filling technique is ideal for automated report and personalized letter generation.

Can I add headers, footers, and images to a Word document using python-docx?

Yes, python-docx supports adding headers, footers, and images to Word documents. You can programmatically insert these elements alongside custom formatted text and tables when creating or editing a .docx file.

Does python-docx work for modifying content in existing .docx files?

Yes, python-docx handles content manipulation in existing .docx files. You can edit text, apply formatting, and modify document structure to automate updates to previously created Word documents.

How do I automate personalized offer letter generation from a Word template?

Automated offer letter generation uses python-docx to populate a pre-designed contract template with candidate-specific details. This template filling process eliminates manual content insertion for each new hire.