rajivmehtaflex/docx-generator-skill/generate-docx
Claude Code and agent skill by rajivmehtaflex/docx-generator-skill
- community
Checking that the SKILL.md file is still in the repository.
Generates professional Word (.docx) documents from Markdown or HTML content with support for headers, footers, page numbers, tables, lists, code blocks, blockquotes, and table of contents. Use when creating Word documents, converting markdown to docx, generating reports, building document templates, or exporting content to Microsoft Word format — even if the user doesn't explicitly say "docx" or "Word".
Install
npx vskill@latest install rajivmehtaflex/docx-generator-skill/generate-docxSKILL.md
The same SKILL.md was published earlier as rajivmehtaflex/docx-generator-skill/generate-docx.
generate-docx
Converts Markdown or HTML into professionally formatted .docx Word documents via a Node.js CLI script.
Setup
Before first use, install dependencies:
Quick Reference
From a Markdown string
From a file
Via stdin (pipe from another command)
HTML input (skip markdown conversion)
Base64 output (for programmatic use without file I/O)
CLI Options
| Flag | Type | Default | Description | |||
|---|---|---|---|---|---|---|
-i, --input | <text> | — | Markdown or HTML content as a string | |||
-f, --file | <path> | — | Read content from a file | |||
--stdin | flag | — | Read content from stdin | |||
--title | <text> | Untitled Document | Document title metadata | |||
--author | <text> | Unknown | Document author metadata | |||
--header | <text> | — | Header text on every page | |||
--footer | <text> | — | Footer text on every page | |||
--page-numbers | `none\ | simple\ | total` | none | Page numbering style | |
--toc | flag | off | Add a Table of Contents page | |||
--no-page-breaks | flag | off | Disable page breaks for <hr> | |||
--format | `markdown\ | html` | markdown | Input format | ||
-o, --output | <path> | stdout base64 | Save .docx to file |
Supported Markdown/HTML Elements
| Element | Markdown | HTML | DOCX Result | |
|---|---|---|---|---|
| Heading 1-4 | # H1 ... #### H4 | <h1> ... <h4> | Heading styles (mapped to TOC) | |
| Paragraph | plain text | <p> | Paragraph with spacing | |
| Bold | **text** | — | Bold TextRun | |
| Italic | *text* | — | Italic TextRun | |
| Inline code | ` code ` | — | Monospace + shaded | |
| Bullet list | - item | <ul><li> | Bulleted paragraphs | |
| Numbered list | 1. item | <ol><li> | Numbered paragraphs | |
| Table | GFM table syntax | <table> | Styled table with header row | |
| Code block | `code` | <pre> | Monospace lines with shading | |
| Blockquote | > quote | <blockquote> | Indented italic paragraph | |
| Page break | --- (hr) | <hr> | PageBreak | |
| Table of Contents | --toc flag | — | TOC field + page break |
Files
How It Works
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/generate-docx/SKILL.md
Popularity
- 7-day trend score
- 0
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/rajivmehtaflex/docx-generator-skill/generate-docx)