ms-office-suite:docx

Automate Word document creation, editing, and formatting with docx-js and Python scripts.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/prof-ramos/knowledge-work-plugins-legal-br --skill ms-office-suite-docx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ms-office-suite:docx
Source: https://github.com/prof-ramos/knowledge-work-plugins-legal-br/tree/main/skills/ms-office-suite%3Adocx
Command: npx skills add https://github.com/prof-ramos/knowledge-work-plugins-legal-br --skill ms-office-suite-docx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill streamlines creating, reading, editing, and formatting Word documents (.docx), reducing manual chores and ensuring consistent templates across teams.

Core Features & Use Cases

  • Automate DOCX creation, editing, and analysis using JavaScript (docx-js) and Python scripts for packing/unpacking documents.
  • Read and modify content, implement find-and-replace, manage tracked changes and comments, and convert documents to polished Word outputs suitable for professional use.
  • Use Case: generate a standardized contract draft from a template, then apply edits, insert images, and produce a final docx ready for review.

Quick Start

Create a new or edit an existing Word document (.docx) using the skill and provide your template and content inputs.

Frequently Asked Questions about ms-office-suite:docx

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

FAQPage Schema
How do I automate Word document creation from a template?

Automate Word document creation by using JavaScript (docx-js) and Python scripts to pack and unpack .docx files, applying template-driven generation to produce standardized professional outputs like contract drafts.

Can I edit an existing .docx file programmatically and add headers and footers?

Yes, you can edit existing .docx files programmatically by unpacking them with Python scripts, modifying content and formatting with docx-js, and managing optional headers, footers, and images before packing the final output.

What is the best way to perform find-and-replace and manage tracked changes in Word documents?

The best way to manage find-and-replace and tracked changes in Word documents is using this skill's end-to-end manipulation capabilities, which apply iterative editing workflows to read, modify, and format content for professional review.

Does this document automation approach require any external dependencies?

No external dependencies are required to use this document automation approach, as it implements end-to-end .docx manipulation entirely through built-in JavaScript (docx-js) and Python scripts for unpacking and packing files.

What are the limitations of using docx-js and Python scripts for Word document formatting?

Limitations include being constrained to .docx file formats and relying on unpack/pack cycles via Python scripts, meaning highly complex native Word macros or advanced layout features may not be fully accessible through this automation workflow.