word

Fergana-Labs's avatarfrom Fergana-Labs

Create, read, edit, and manipulate Microsoft Word documents (.docx files). Use when users ask to work with Word files, create documents, read .docx files, or format text documents.

⭐4stars🔀0forks📁View on GitHub🕐Updated Nov 11, 2025

When & Why to Use This Skill

This Claude skill provides comprehensive capabilities to create, read, edit, and manipulate Microsoft Word (.docx) documents. It empowers AI agents to automate document workflows, extract structured text, and generate professionally formatted files including headings, paragraphs, and tables. By leveraging Node.js libraries like docx and mammoth, it bridges the gap between AI-generated content and standard office productivity formats.

Use Cases

  • Automated Report Generation: Dynamically create structured business reports, academic papers, or project summaries with headers, tables, and formatted text.
  • Document Content Extraction: Read and parse existing .docx files to extract text for summarization, data analysis, or migration to other platforms.
  • Template-Based Drafting: Generate personalized letters, contracts, or memos by populating predefined document structures with specific user data.
  • Workflow Automation: Programmatically update or append new sections to existing project documentation and logs without manual intervention.
nameword
descriptionCreate, read, edit, and manipulate Microsoft Word documents (.docx files). Use when users ask to work with Word files, create documents, read .docx files, or format text documents.
allowed-toolsRead, Write, Bash

Word Document Tool

This skill allows you to work with Microsoft Word documents using Node.js tools.

Capabilities

  • Read existing Word documents and extract text content
  • Create new Word documents with formatted text, headings, paragraphs, and tables
  • Modify existing documents by appending content
  • Extract document structure and formatting

When to Use

Invoke this skill when the user:

  • Mentions Word documents, .docx files, or document creation
  • Asks to read, create, modify, or format text documents
  • Needs to generate reports, letters, or formatted documents
  • Wants to extract text from existing Word files

How to Use

The Word tool is implemented as a TypeScript script at src/tools/word-tool.ts. You can invoke it using the Bash tool:

Reading a Document

ts-node src/tools/word-tool.ts read "/path/to/document.docx"

Creating a Document

ts-node src/tools/word-tool.ts create "/path/to/new-document.docx" '{"title":"My Document","paragraphs":["First paragraph","Second paragraph"]}'

JSON Structure for Creating Documents

When creating documents, use this JSON format:

{
  "title": "Document Title",
  "paragraphs": ["Paragraph 1", "Paragraph 2"],
  "headings": [{"text": "Section 1", "level": 1}],
  "tables": [{"headers": ["Col1", "Col2"], "rows": [["A", "B"]]}]
}

Implementation

Uses the docx and mammoth npm libraries for reading and writing Word documents.