This one generates and edits Word documents through direct XML manipulation rather than typical libraries like python-docx. It uses C# for creating new docs and Python for editing existing ones, which is an unusual split but apparently intentional for quality. The source material is thorough about formatting preservation, includes templates for covers and charts, and has strong opinions about professional touches like headers, footers, and table of contents. If you need to programmatically create polished Word documents with actual visual design rather than just dumping content into default styles, this handles that. The mandatory validation pipeline and pandoc verification suggest the author has been burned by invisible corruption before.

skills.sh installs
509
GitHub stars
245
last updated
Aug 21, 2026

Install

$ npx -y skills add thvroyal/kimi-skills --skill kimi-docx --agent claude-code

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/thvroyal/kimi-skills
Category
Office & Documents
First seen
Jun 3, 2026

More from thvroyal/kimi-skills

All 3
1evoscientist avataracademic-slidesevoscientist/evoskillsUse this skill for creating or refining an academic slide deck and the talk built around it: structuring a conference talk, thesis defense, lab meeting, or pape501skills.sh installs
2jezweb avatargoogle-workspacejezweb/claude-skillsBuild integrations with Google Workspace APIs (Gmail, Calendar, Drive, Sheets, Docs, Chat, Meet, Forms, Tasks, Admin SDK). Covers OAuth 2.0, service accounts, r428skills.sh installs
3leemysw avatarfeishu-docxleemysw/feishu-docxExport, write, and manage Feishu/Lark cloud documents. Supports docx, sheets, bitable, wiki, WeChat article import/export, drive management, and browser-based e411skills.sh installs
4duc01226 avatardocx-to-markdownduc01226/easyplatform[Document Processing] Use when you need to convert Microsoft Word ( DOCX) files to Markdown with GFM support (tables, images, code blocks).404skills.sh installs
5wwwzhouhui avatarexcel-report-generatorwwwzhouhui/skills_collectionAutomatically generate Excel reports from data sources including CSV, databases, or Python data structures. Supports data analysis reports, business reports, da394skills.sh installs
6guia-matthieu avatareducational-presentationguia-matthieu/clawfu-skillsTransform Claude into an expert in evidence-based educational presentation design. Use when designing presentations for teaching, training, or learning contexts371skills.sh installs