teinam/kiro-with-harness/docx-generation
Claude Code and agent skill by teinam/kiro-with-harness
- community
Checking that the SKILL.md file is still in the repository.
Generate native Word .docx documents — headings, styled paragraphs, tables, images, and sections — with python-docx, or convert Markdown to .docx via pandoc. Use when the user wants an editable Word document (reports, letters, contracts, specs) rather than a PDF or HTML page.
Install
npx vskill@latest install teinam/kiro-with-harness/docx-generationSKILL.md
The same SKILL.md was published earlier as teinam/kiro-with-harness/docx-generation.
DOCX Generation
Produce editable Word files that open cleanly in Word and Google Docs.
Tool Selection
- python-docx — Python-native default. Headings, styles, tables, images, sections.
- pandoc — fastest route when the source is Markdown:
pandoc report.md -o report.docx(add--reference-doc=template.docxto inherit corporate styles). - docx-js (Node) — alternative in JS toolchains.
Hello World (python-docx: heading + table)
Gotchas (encode these)
- Table widths: set DXA on the table AND each cell, never PERCENTAGE. Percentage widths break in Google Docs; specify column widths in twips (
WidthType.DXA) and make cell widths sum to the table width, or tables render inconsistently. - Page size defaults matter. If you need US Letter, set section
page_width = Inches(8.5),page_height = Inches(11)explicitly (some generators default to A4). Landscape = swap dimensions and set orientation. - Styles must already exist.
table.style = "..."/paragraph.style = "..."fail unless the style is defined in the document or reference template. Inspectdoc.stylesfirst. - Images need explicit size (
width=Inches(...)), or they import at their native pixel size. - One paragraph per line — never embed
\nin a run to fake line breaks; add separate paragraphs or userun.add_break(). - Advanced layout (columns, page numbers, custom section breaks) exceeds python-docx's high-level API — drop to the underlying XML (
doc.element) or use a reference-doc template.
Verify
Open the result (or convert to PDF via LibreOffice soffice --convert-to pdf) and confirm headings, table borders, and images render before declaring done.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/docx-generation/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/teinam/kiro-with-harness/docx-generation)