Skip to content

Generate and edit Word documents with covers, native charts, and track-changes editing, with validation.

CCM score
57 of 100
skills.sh installs
520
GitHub stars
248
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers creating new documents via the C# SDK (./scripts/docx build) and editing existing ones via Python and lxml, with comments and track changes
  • Includes fix_element_order.py, validate_docx.py, OpenXML validation, and background and chart generators for Morandi and ink-wash styles
  • Enforces pandoc-based content verification and mandatory validation before delivery, and treats provided templates as fixed forms to fill
  • Designed for producing or modifying .docx files where formatting must be preserved and the output is checked before delivery

Install

$ npx -y skills add thvroyal/kimi-skills --skill kimi-docx -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Part 1: Goals

⚠️ When to Unzip vs Read

To preserve ANY formatting from the source document, MUST unzip and parse XML.

Read tool returns plain text only — fonts, colors, alignment, borders, styles are lost.

NeedMethod
Text content only (summarize, analyze, translate)Read tool is fine
Formatting info (copy styles, preserve layout, template filling)Unzip and parse XML
Structure + comments/track changespandoc input.docx -t markdown

Core Principles

  1. Preserve formatting — When editing existing documents, retain original formatting. Clone and modify, never recreate.

  2. Correct feature implementation — Comments need multi-file sync. Track Changes need revision marks. Use the right structure.

Never use python-docx/docx-js as fallback. These libraries produce lower quality output than direct XML manipulation.

Source Principle

Template provided = Act as form-filler, not designer.

  • Format is the user's decision
  • Task: replace placeholders, not redesign
  • Like filling a PDF form—do not redesign

No template = Act as designer. Design freely based on scenario.

Details

Repository
github.com/thvroyal/kimi-skills
Categories
Office Files & Slides, Technical Documentation
First seen
Jun 3, 2026

Questions

What does the kimi-docx skill do?

kimi-docx generates and edits Word documents (.docx), including covers, charts, and track-changes editing. It is suited to any .docx creation or modification task.

How do I install the kimi-docx skill?

Run npx -y skills add thvroyal/kimi-skills --skill kimi-docx -y in a project to install kimi-docx. Once installed, kimi-docx lets the agent create and edit Word files in that project.

Which category does kimi-docx belong to, and what sets it apart?

kimi-docx is in the Office Files and Slides category on Claude Marketplaces, where slideshow and lark-doc are among the other skills. kimi-docx stands out for its support for covers, charts, and track-changes editing in .docx files.

Does kimi-docx preserve formatting when editing an existing Word file?

kimi-docx unzips and parses the XML of an existing document to keep its fonts, colors, and styles. It clones and modifies the original file rather than recreating it.

More from thvroyal/kimi-skills

All 3

Similar to Kimi Docx

More Office Files & Slides