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.
npx skills add thvroyal/kimi-skills --skill kimi-docx -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/kimi-docx/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/kimi-docx/
1Skills CLI (Vercel)
npx skills add thvroyal/kimi-skills --skill kimi-docx -a codex2Manually: put the files in place
.agents/skills/kimi-docx/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add thvroyal/kimi-skills --skill kimi-docx -a cursor2Manually: put the files in place
.cursor/skills/kimi-docx/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install thvroyal/kimi-skills kimi-docx2Manually: put the files in place
.github/skills/kimi-docx/SKILL.md1Skills CLI (Vercel)
npx skills add thvroyal/kimi-skills --skill kimi-docx -a gemini-cli2Platform CLI
gemini skills install https://github.com/thvroyal/kimi-skills --path skills/kimi-docxManually: put the files in place
.devin/skills/kimi-docx/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add thvroyal/kimi-skills --skill kimi-docx -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.