docx-batch

Edit Microsoft Word .docx files programmatically with python-docx for batch formatting and text replacement.

2|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/ni1o1/claude-skill-docx-batch --skill docx-batch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx-batch
Source: https://github.com/ni1o1/claude-skill-docx-batch/tree/main
Command: npx skills add https://github.com/ni1o1/claude-skill-docx-batch --skill docx-batch

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates repetitive and time-consuming tasks involved in editing Microsoft Word documents, such as batch formatting, text replacement, and structural modifications, eliminating the need for manual, one-by-one changes.

Core Features & Use Cases

  • Batch Formatting: Apply consistent styles (font, alignment, spacing, indentation) across multiple paragraphs or an entire document.
  • Text Manipulation: Perform global find-and-replace operations, including regex-supported replacements, within documents.
  • Content Operations: Insert, delete, or replace text in paragraphs, and modify table cells, rows, or columns.
  • Image Management: Resize or delete images within documents.
  • Use Case: You have a 50-page report that needs its font changed to 'Arial', line spacing set to 1.5, and all instances of "old company name" replaced with "new company name". This Skill can perform all these changes in one go.

Quick Start

Use the docx-batch skill to change the font of the first paragraph in 'document.docx' to '宋体' and save it as 'output.docx'.

Frequently Asked Questions about docx-batch

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

FAQPage Schema
How do I batch edit multiple Word docs to change fonts and spacing?

Batch edit Word docs to change fonts and spacing by using python-docx to programmatically apply consistent styles like font family, line spacing, and indentation across multiple paragraphs or an entire document without manual changes.

Can I perform regex text replacement in a .docx file with Python?

Yes, you can perform regex text replacement in a .docx file with Python. The skill leverages python-docx to execute global find-and-replace operations, allowing regex-supported substitutions for efficient document standardization.

How do I modify table cells and rows in Word documents programmatically?

Modify table cells and rows in Word documents programmatically by utilizing python-docx table manipulation features to automate structural modifications like editing specific cells, rows, or columns in bulk.

Does python-docx support resizing and deleting images in a document?

Yes, python-docx supports resizing and deleting images in a document. The skill provides image management capabilities to programmatically adjust or remove visual content within Word files during batch processing.

What is the best way to standardize formatting across a 50-page Word report?

The best way to standardize formatting across a 50-page Word report is using programmatic batch editing with python-docx to apply global formatting rules and text replacements in one run, bypassing manual one-by-one changes.

Do I need to manipulate XML directly to change paragraph alignment in docx?

No, you do not need to manipulate XML directly to change paragraph alignment in docx. This skill uses python-docx to handle paragraph operations like alignment, insertion, and deletion without direct XML manipulation.