Skip to main content
skill CX Codex

kimi-docx — Claude Code skill: what it does, how to install

Generates and edits Word documents (.docx) using C# and direct XML manipulation in Python. Useful for creating formatted reports with covers, charts, and track changes.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add thvroyal/kimi-skills --skill kimi-docx -a claude-code
Open on GitHub

What kimi-docx does

The skill separates Word workflows into document creation and editing. New files are compiled via the C# SDK and a Program.cs template. Existing documents are modified using Python and lxml to preserve original styles. Libraries like python-docx and docx-js are avoided because direct XML manipulation yields cleaner formatting.

Operations run through ./scripts/docx. The build step compiles .NET code, generates the document, fixes XML tag ordering, and runs an OpenXML binary validator. Final text content and revision markers are verified using pandoc.

The setup requires dotnet and python3, with optional dependencies like pandoc and matplotlib for specialized charts. Note that the workflow relies on fixed paths such as /app/.kimi/skills/kimi-docx/ and /mnt/okcomputer/output/, which will fail if executed outside this directory structure.

What it helps with

  • generate new .docx files from scratch using the C# OpenXML SDK
  • modify existing Word documents with lxml while preserving formatting
  • add covers, headers, footers, and revision marks to reports
  • convert legacy .doc files to .docx using headless LibreOffice
  • validate document structure with the built-in OpenXML validator

Example prompts for the agent

  • Create a quarterly financial report in .docx format with a title page and numbered footers
  • Review uploaded/contract.docx and add tracked changes preserving the original styles
  • Validate and repair the XML structure of /mnt/okcomputer/output/report.docx

How to install kimi-docx

1Skills CLI (Vercel)

npx skills add thvroyal/kimi-skills --skill kimi-docx -a claude-code

2Manually: put the files in place

~/.claude/skills/kimi-docx/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/kimi-docx/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about kimi-docx

How to install kimi-docx in Claude Code?

Run the command npx skills add thvroyal/kimi-skills --skill kimi-docx -a claude-code.

What does kimi-docx do?

It builds and modifies Word documents by generating new files with C# and editing existing ones via Python and lxml. The skill adds covers, headers, charts, and tracked revisions with automated OpenXML structure validation.

What dependencies are required for kimi-docx?

It requires dotnet and python3 installed in the environment. Optional tools include pandoc and matplotlib, which can be configured by running ./scripts/docx init.

Similar skills

Everything for Office documents →

From the same set3

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor