skills/doc-generate/SKILL.md
Generate docx with customizable options
npx skillsauth add hasna/skills doc-generateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
--topic "Project Proposal for Mobile App Development" -o proposal.docx
Create professional Microsoft Word documents from markdown content, plain text, or let AI generate complete documents from a topic or outline.
This is a CLI skill. It requires the
skillsCLI to execute. Install it withnpm install -g @hasna/skills, then run the commands below.
skills install generate-docx
# Convert markdown to Word
skills run generate-docx -- document.md -o output.docx
# With custom styling
skills run generate-docx -- document.md --template report --font "Times New Roman"
# Generate from topic
skills run generate-docx -- --topic "Project Proposal for Mobile App Development" -o proposal.docx
# With more control
skills run generate-docx -- --topic "Employee Handbook" \
--sections 10 \
--style formal \
--template report \
-o handbook.docx
# Generate from prompt
skills run generate-docx -- --prompt "Write a cover letter for a software engineer position at Google" -o cover-letter.docx
| Flag | Description |
| ----------------- | ------------------------------- |
| <file> | Input markdown file |
| --topic <text> | Topic for AI to write about |
| --prompt <text> | Direct prompt for AI generation |
| --text <text> | Plain text content |
| Flag | Default | Description |
| ----------------- | ------------ | --------------------------------------------- |
| --sections <n> | 5 | Number of sections to generate |
| --style <type> | professional | Style: professional, casual, formal, academic |
| --tone <type> | neutral | Tone: neutral, friendly, authoritative |
| --length <type> | medium | Length: short, medium, long, comprehensive |
| Flag | Default | Description |
| --------------------- | --------------- | ---------------- |
| -o, --output <path> | auto | Output file path |
| --dir <path> | .skills/exports | Output directory |
| Flag | Default | Description |
| ------------------- | ------- | -------------------------------------------------------- |
| --template <name> | default | Template: default, report, letter, memo, resume, article |
| --title <text> | auto | Document title |
| --author <text> | - | Author name |
| --company <text> | - | Company name |
| --date <text> | today | Document date |
| Flag | Default | Description |
| ----------------------- | ------------- | ----------------------- |
| --font <name> | Calibri | Font family |
| --font-size <pt> | 11 | Base font size |
| --heading-font <name> | Calibri Light | Heading font |
| --line-spacing <n> | 1.15 | Line spacing multiplier |
| --margins <inches> | 1 | Page margins |
| --page-size <size> | letter | Page: letter, a4, legal |
| Flag | Default | Description |
| ----------------- | ------- | ------------------------- |
| --toc | false | Include table of contents |
| --page-numbers | true | Include page numbers |
| --header <text> | - | Header text |
| --footer <text> | - | Footer text |
Clean, minimal document with standard formatting.
Professional report with title page, TOC, headers/footers.
Business letter format with date, addresses, signature block.
Internal memo format with To/From/Subject/Date header.
CV/Resume format with sections for experience, education, skills.
Article/essay format with abstract and section numbering.
skills run generate-docx -- notes.md -o notes.docx
skills run generate-docx -- \
--topic "Q4 2024 Sales Analysis" \
--template report \
--sections 8 \
--style formal \
--toc \
--author "Sales Team" \
--company "Acme Corp" \
-o q4-report.docx
skills run generate-docx -- \
--prompt "Write a business letter declining a partnership offer politely" \
--template letter \
--author "John Smith" \
--company "Tech Solutions Inc" \
-o decline-letter.docx
skills run generate-docx -- resume.md \
--template resume \
--font "Garamond" \
--margins 0.75 \
-o my-resume.docx
skills run generate-docx -- paper.md \
--template article \
--font "Times New Roman" \
--font-size 12 \
--line-spacing 2 \
--toc \
-o research-paper.docx
skills run generate-docx -- \
--prompt "Write a memo announcing the new remote work policy" \
--template memo \
--author "HR Department" \
-o remote-work-memo.docx
The skill supports standard markdown plus extensions:
# Heading 1
## Heading 2
### Heading 3
Regular paragraph text with **bold**, _italic_, and `code`.
- Bullet list item 1
- Bullet list item 2
- Nested item
1. Numbered list
2. Second item
> Block quote text
| Column 1 | Column 2 |
| -------- | -------- |
| Cell 1 | Cell 2 |

---
Horizontal rule above
# Required for AI generation
export OPENAI_API_KEY="sk-..."
Document won't open
Formatting looks wrong
Images not appearing
AI generation failed
generate-pdf - Create PDF documentsgenerate-slides - Create presentationsparse-pdf - Extract content from PDFsFor issues or feature requests, visit skills.md/skills/generate-docx
tools
Generate hosted voiceover variants and short jingles
tools
Generate premium video highlight packages with clip plans, captions, thumbnails, chapter markers, social copy, edit decisions, and manifest metadata.
testing
Generate high-quality articles using parallel AI agents. Supports research, writing, and optional cover image generation. Write single articles or batch process multiple topics with configurable parallelism.
testing
Generate videos using OpenAI Sora, Minimax Hailuo, Gemini Veo, or Seedance through the hosted Skills runtime with provider-cost pricing.