docx-processing

Generate and manipulate Word documents with python-docx and docxtpl.

1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/Pixel-Process-UG/superkit-agents --skill docx-processing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx-processing
Source: https://github.com/Pixel-Process-UG/superkit-agents/tree/main/templates/skills/docx-processing
Command: npx skills add https://github.com/Pixel-Process-UG/superkit-agents --skill docx-processing

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation, modification, and templating of Microsoft Word documents, eliminating manual effort and ensuring consistency.

Core Features & Use Cases

  • Programmatic Document Generation: Create Word documents from scratch using Python.
  • Template Filling: Populate pre-designed Word templates with dynamic data using Jinja2.
  • Formatting & Styling: Apply headings, tables, images, headers, footers, and custom styles.
  • Mail Merge: Generate personalized documents for multiple recipients.
  • Conversion: Convert DOCX files to PDF.

Quick Start

Use the docx-processing skill to generate a report document from a template named 'report_template.docx' using the provided data.

Frequently Asked Questions about docx-processing

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

FAQPage Schema
How do I generate Word documents from a template using Python?

To generate Word documents from a template using Python, this Skill populates pre-designed DOCX files with dynamic data using Jinja2 syntax via the docxtpl library. It handles document creation from scratch and template-based generation for automated report workflows.

Can I perform a mail merge to create personalized Word documents for multiple recipients?

Yes, you can perform a mail merge to create personalized Word documents for multiple recipients. This Skill automates mail merge operations using python-docx and docxtpl, populating templates with dynamic data to generate personalized correspondence efficiently.

Does python-docx support adding complex formatting like tables, images, and custom styles?

Yes, python-docx supports adding complex formatting like tables, images, and custom styles. This Skill applies headings, tables, images, headers, footers, and custom styles programmatically, ensuring consistent document formatting and styling.

What is the best way to convert a DOCX file to a PDF programmatically?

The best way to convert a DOCX file to a PDF programmatically is using the docx2pdf dependency. This Skill handles DOCX to PDF conversion directly, allowing you to transform generated or manipulated Word documents into PDF format.

Do I need Jinja2 to populate Word templates with dynamic data?

Yes, you need Jinja2 to populate Word templates with dynamic data. This Skill leverages the docxtpl library, which uses Jinja2 templating syntax to inject dynamic content into pre-designed DOCX templates for automated document generation.