Generate Docx

Generate DOCX documents from markdown files or AI-generated content.

24|26|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/hasna/skills --skill generate-docx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Generate Docx
Source: https://github.com/hasna/skills/tree/main/skills/skill-generate-docx
Command: npx skills add https://github.com/hasna/skills --skill generate-docx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires commander, docx, marked, openai, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of professional Microsoft Word documents, saving time and effort compared to manual creation or complex formatting.

Core Features & Use Cases

  • Markdown to DOCX Conversion: Easily convert existing markdown files into well-formatted Word documents.
  • AI-Powered Generation: Generate entire documents from a simple topic or prompt, ideal for proposals, reports, or letters.
  • Customizable Templates & Styling: Apply professional templates and fine-tune fonts, margins, and spacing for a polished look.
  • Use Case: Generate a professional project proposal document from a brief topic description, complete with a title page, sections, and a table of contents, all in DOCX format.

Quick Start

Generate a DOCX document from the markdown file 'document.md' and save it as 'output.docx'.

Frequently Asked Questions about Generate Docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert markdown to a Word document?

You can convert markdown files to DOCX by parsing the markdown content and using the docx library to construct a formatted Word document. This process supports customizable templates, fonts, margins, and line spacing for professional formatting.

Can I generate a DOCX file from plain text or an AI prompt?

Yes, you can generate DOCX files from plain text or AI prompts. The Skill integrates with the OpenAI API to create AI-driven content based on your topics, allowing control over sections, style, and tone before constructing the Word document.

Do I need an OpenAI API key to generate AI-driven Word documents?

Yes, an OpenAI API key is required for AI-driven document generation. The Skill integrates with the OpenAI API to process prompts and topics into content, which is then formatted into a DOCX file using the docx library.

What is the best way to automate report generation into DOCX format?

The best way to automate report generation into DOCX format is by using markdown conversion or AI-powered generation with customizable templates. This approach applies professional styling like fonts, margins, and spacing directly to the Word document output.

How do I apply custom templates and styling when creating Word documents?

You apply custom templates and styling when creating Word documents by defining fonts, margins, and line spacing within the generation process. The Skill uses the docx library to enforce these specific styling options on the final DOCX file output.

What are the limitations of using markdown for document generation?

A limitation of using markdown for document generation is that complex formatting may not translate directly to DOCX. While standard templates, fonts, margins, and spacing are supported, highly intricate Word layouts might require manual adjustments after the conversion.