docx

Automates .docx creation, editing and analysis via docx-js and pandoc.

Updated Jan 11, 2017
One-click install
npx skills add https://github.com/kaustubhhiware/dotfiles --skill docx-kaustubhhiware
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/kaustubhhiware/dotfiles/tree/main/claude/plugins/marketplaces/anthropic-agent-skills/skills/docx
Command: npx skills add https://github.com/kaustubhhiware/dotfiles --skill docx-kaustubhhiware

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, pandoc, libreoffice, poppler-utils, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and analysis of Word documents (.docx files), automating complex formatting and content manipulation tasks.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript with precise control over layout, styles, tables, and images.
  • Document Editing: Modify existing .docx files by unpacking, editing XML, and repacking, including handling tracked changes and comments.
  • Use Case: Automatically generate a professional report with a table of contents, specific formatting, and embedded charts from raw data, or process a batch of documents to accept all tracked changes.

Quick Start

Use the docx skill to create a new Word document with a title and a paragraph.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document generation from raw data?

Automate Word document generation by using the docx-js JavaScript library to programmatically build .docx files with precise control over layout, styles, tables, and embedded images.

How do I accept tracked changes in multiple Word documents programmatically?

Accept tracked changes in Word documents by unpacking the .docx files, modifying the underlying XML structure with helper scripts, and repacking them to finalize the edited text.

What is the best way to convert Word documents to other formats using code?

Convert Word documents to other formats by utilizing pandoc and libreoffice helper scripts within your Python environment to transform .docx files into various target output formats.

Do I need Node.js and Python to edit existing .docx files?

Yes, you need Node.js for the docx-js library to generate Word documents and Python to run helper scripts like pandoc and soffice for format conversion and document analysis.

Can I extract raw XML from a Word document for detailed manipulation?

Extract raw XML from a Word document by unpacking the .docx file structure, allowing you to directly manipulate headers, footers, and complex formatting elements before repacking.