This handles the full lifecycle of Word documents: creating new .docx files from scratch with docx-js, reading and extracting content with pandoc, and editing existing documents by unpacking the underlying XML. It covers the tricky parts like setting US Letter page size (docx-js defaults to A4), dual-width table configurations that actually render correctly across platforms, and proper list formatting without unicode hacks. You can accept tracked changes, convert legacy .doc files, and even render documents as images. The documentation is unusually detailed about gotchas like Google Docs breaking percentage-based table widths and the need to use ShadingType.CLEAR instead of SOLID. Use this when you need reliable Word document generation with real formatting control, not just text dumps.

GitHub stars
460
last updated
Jun 7, 2026

Install

$ npx -y skills add malob/nix-config --skill docx --agent claude-code

Installs into .claude/skills of the current project.

Files

DOCX creation, editing, and analysis

A .docx is a ZIP archive of XML files. Choose your approach by task:

TaskApproach
Create a new documentWrite a docx (npm) script — see gotchas below
Edit an existing documentunzip → edit word/document.xml → zip (docx-js cannot open existing files)
Read contentpandoc -t markdown file.docx

Script paths below are relative to this skill's directory.

Creating with docx-js — gotchas

docx is preinstalled — do not run npm install first; write the script and require('docx') directly. Only if that require fails: npm install docx. The model knows the API; these are the footguns:

Sponsors

Details

Repository
github.com/malob/nix-config
Category
Office & Documents
License
MIT
First seen
Jun 11, 2026

More from malob/nix-config

All 14
1nicepkg avatarpresentation-design-enhancernicepkg/ai-workflowTransform text-heavy slides into visual storytelling. Suggest layout improvements, icon usage, and data visualization.0skills.sh installs
2rysweet avatarxlsxrysweet/amplihackComprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work wit0skills.sh installs
3telagod avatarprocessing-docxtelagod/code-abyssProcesses Word document files (.docx). Creates, edits, annotates, tracks revisions, analyzes OOXML structure, and preserves formatting for contracts, policies, 0skills.sh installs
4op7418 avatarguizang-ppt-skillop7418/guizang-ppt-skill生成横向翻页网页 PPT(单 HTML 文件),含 WebGL 背景、演讲者视图、观众屏同步、讲稿备注、章节幕封、数据大字报、图片网格等模板。提供两种风格:① "电子杂志 × 电子墨水"(衬线 + 流体背景 + 暖色) ② "瑞士国际主义"(无衬线 + 网格点阵 + IKB/柠檬黄/柠檬绿/安全橙高亮)。当用户需要制作28.5Kskills.sh installs
5claude-office-skills avataroffice-to-mdclaude-office-skills/skills>5.8Kskills.sh installs
6claude-office-skills avatarmd-to-officeclaude-office-skills/skills>5.3Kskills.sh installs