docx-skill

Automate Word document reading, writing, and format conversions with Node.js.

94|9|Updated Dec 8, 2025
One-click install
npx skills add https://github.com/OpenLoaf/OpenLoaf --skill docx-skill-openloaf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx-skill
Source: https://github.com/OpenLoaf/OpenLoaf/tree/main/apps/server/src/ai/builtin-skills/docx
Command: npx skills add https://github.com/OpenLoaf/OpenLoaf --skill docx-skill-openloaf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Word documents (.docx) often require multiple tools to read content, modify text, manage tracked changes, insert images, and convert formats. This Skill unifies reading, writing, and format conversions into a single, scriptable workflow.

Core Features & Use Cases

  • Read with WordInspect to extract summaries, outlines, text, tables, images, comments, and tracked changes.
  • Write and modify docx programmatically via JsSandbox using the docx library, including support for styles, tracked changes, and comments.
  • Convert between docx and pdf/html/md/txt using DocConvert, ensuring formatting fidelity.
  • Perform replacements and small edits by manipulating OOXML or reconstructing documents with the docx library.

Quick Start

LoadSkill docx-skill and run ToolSearch(query: "select:WordInspect,JsSandbox,DocConvert") to start editing Word documents.

Frequently Asked Questions about docx-skill

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

FAQPage Schema
How do I automate Word document editing and conversion in a single workflow?

Automating Word document editing and conversion requires unifying reading, writing, and format transformations into a single scriptable workflow. This approach handles document preparation, modifications, and conversions between docx, pdf, html, md, and txt formats. It programmatically manages styles, tracked changes, and comments.

Can I extract tracked changes and comments from a docx file programmatically?

Extracting tracked changes and comments from a docx file involves reading the document structure to isolate revision marks and annotations. The process inspects OOXML transformations to pull summaries, outlines, text, tables, and images alongside the tracked changes for comprehensive document reviews.

Does this approach support converting docx files to html or markdown while keeping formatting?

Converting docx files to html or markdown while keeping formatting relies on dedicated format transformation logic. The mechanism ensures formatting fidelity during docx conversions to pdf, html, md, and txt, preserving document structure and content layout across business and content workflows.

What's the best way to insert images and modify text in existing Word documents?

The best way to insert images and modify text in existing Word documents is by manipulating OOXML directly or reconstructing the document programmatically. This technique applies small edits, replacements, and image insertions while maintaining existing styles and document integrity.

What is needed to read docx content like tables and outlines for automated processing?

Reading docx content like tables and outlines for automated processing requires a Node.js toolchain to inspect the document. The mechanism extracts text, tables, images, comments, and summaries, providing structured data outputs for downstream business workflows.

Are there limitations when manipulating OOXML for small edits in Word documents?

Limitations when manipulating OOXML for small edits involve potential formatting inconsistencies if the underlying XML structure is not perfectly preserved. Direct OOXML manipulation is best for targeted replacements, while complex document reconstructions require using the docx library to ensure structural integrity.