DOCX
The docx library generates Word (.docx) files from Node.js or the browser in code, with no Word installation: paragraphs, tables, images, headers, footers, page numbers and numbered or bulleted lists. Use when someone asks to "generate a Word document from data", "create a .docx report in Node", "build a contract or proposal as docx", or "add page numbers to a generated Word file".
Install
npx skills add TerminalSkills/skills --skill docxgit clone --depth 1 https://github.com/TerminalSkills/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/skills/docx ~/.claude/skills/docxPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# docx
## Overview
`docx` (npm package, repository dolanmiu/docx, version 9.14.0 when checked on 2026-10-24) builds Word documents declaratively: you create a `Document` with sections, then serialise it with `Packer`. It writes new files; it does not edit existing ones. The examples below were run against 9.14.0 and produced a valid .docx.
## Instructions
```bash
npm install docx
```
Use ES modules (`"type": "module"` in package.json) so top-level `await` works, or wrap the code in an async function.
1. Build a `Document({ sections: [{ children: [...] }] })`. Section content is `Paragraph` and `Table` objects.
2. Serialise with `await Packer.toBuffer(doc)` (Node), `Packer.toBlob(doc)` (browser) or `Packer.toBase64String(doc)`.
3. Write the buffer with `fs.writeFileSync`.
Things that differ from older tutorials:
- `ImageRun` needs `type` (`"png"`, `"jpg"`, `"gif"`, `"bmp"` or `"svg"`; svg also needs a `fallback` image). Omitting it is a TypeScript error. Add `altText` for accessibility.
- Table cell colour is `shading: { type: ShadingType.CLEAR, fill: "1F4E79", color: "auto" }`. `fill` is the cell background; this form was run and produced a valid file.
- Lists are not automatic: declare a `numbering.config` entry (use `LevelFormat.DECIMAL` or `LevelFormat.BULLET`) and refer to it with `numbering: { reference, level }` on each paragraph.
- Use the `HeadingLevel` enum (`HeadingLevel.HEADING_2`), never a string cast to `any`.
## ExamplesDetails
- Skill name
docx- Repository
- TerminalSkills/skills
- Path
skills/docx/SKILL.md- License
- Apache-2.0
- Repo updated
- 8 November 2026
FAQ
What does the DOCX skill do?
The docx library generates Word (.docx) files from Node.js or the browser in code, with no Word installation: paragraphs, tables, images, headers, footers, page numbers and numbered or bulleted lists. Use when someone asks to "generate a Word document from data", "create a .docx report in Node", "build a contract or proposal as docx", or "add page numbers to a generated Word file".
How do I install the DOCX skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add TerminalSkills/skills --skill docx. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is DOCX popular?
It lives in TerminalSkills/skills, which has 213 GitHub stars and 34 forks.
Related skills
3dsmax Rendering
213TerminalSkills/skills
Scripts and configures production rendering in Autodesk 3ds Max with the V-Ray and Corona renderers: output size and files, render elements, denoising, light mix, batch and command-line rendering, and network rendering. Use when a user asks to set up a production render, render several cameras in one batch, render from the command line or on a render farm, add render passes for compositing, or cut render time for archviz and product shots.
3dsmax Scripting
213TerminalSkills/skills
Covers scripting Autodesk 3ds Max, the 3D modeling and rendering application, with MAXScript and Python (pymxs): scene manipulation, object creation, material assignment, camera and light setup, batch operations, and file I/O. Use when tasks involve automating repetitive 3ds Max workflows, batch processing scenes, running scripts headless with 3dsmaxbatch, creating custom tools, or scripting scene setup for archviz, product visualization, or VFX.
3proxy
213TerminalSkills/skills
3proxy is a small open-source proxy server that runs HTTP/HTTPS, SOCKS4/5, SNI and TCP/UDP port-mapping proxies from one config file. Use when a user asks to set up an HTTP or SOCKS5 proxy, add proxy users and passwords, write 3proxy access rules, chain or rotate upstream (parent) proxies, limit bandwidth, connections or monthly traffic per user, run 3proxy in Docker, or fix a 3proxy.cfg that will not start.
Excel Processor
213TerminalSkills/skills
Read, transform, analyze, and generate Excel and CSV files. Use when a user asks to open a spreadsheet, process Excel data, merge CSVs, create pivot tables, clean up data, convert between Excel and CSV, add formulas, filter rows, or generate reports from tabular data. Handles .xlsx, .xls, and .csv.
Doc Parser
213TerminalSkills/skills
Parse complex documents with IBM's open-source Docling library, which turns PDFs and Office files into structured Markdown or JSON. Use when a user asks to parse a document with tables, extract figures from a document, handle multi-column layouts, convert a complex PDF to structured data, extract content from academic papers, or process documents with mixed layouts. Handles tables, figures, headers, footers, and multi-column text.
Exceljs
213TerminalSkills/skills
Generate and parse Excel spreadsheets with ExcelJS — create workbooks with multiple sheets, styled cells, formulas, charts, images, and conditional formatting. Use when tasks involve exporting application data to .xlsx, building financial reports, parsing uploaded spreadsheets, or creating data import/export pipelines.
Browse the most popular Claude skills, all documents & office files skills, or write your own with the skills generator.