md2docx — community md2docx, deep-share, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for AI Agents needing seamless Markdown to Word document conversion capabilities. A lightweight browser extension designed for AI users to easily copy formulas from ChatGPT, DeepSeek, Grok and 10+ other AI conversations, export beautifully formatted Word documents, and support long conversation screenshot sharing for DeepSeek.

Yorick-Ryu Yorick-Ryu
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The md2docx skill by Yorick-Ryu is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for AI Agents needing seamless Markdown to Word document conversion capabilities.

Core Value

Empowers agents to convert Markdown text to professionally formatted Word documents using Python, supporting both URL and file modes for flexible integration with cloud or local environments, and handling Markdown to DOCX conversions.

Capabilities Granted for md2docx

Converting AI-generated Markdown text to Word documents
Exporting chat conversations from platforms like ChatGPT or DeepSeek to formatted Word files
Generating reports in Word format from Markdown data

! Prerequisites & Limits

  • Requires Python environment
  • Limited to Markdown to DOCX conversion
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

md2docx

Install md2docx, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

md2docx - Markdown to Word Converter

Convert Markdown text to professionally formatted Word (DOCX) documents.

Quick Start

Choose the right mode based on your environment:

bash
1# URL mode: Returns download URL (for cloud/remote environments) 2python scripts/convert.py input.md --url 3 4# File mode: Saves file directly (for local environments) 5python scripts/convert.py input.md --file

Choosing the Right Mode

ScenarioModeCommand
Skill runs in cloud, user needs to download--urlpython scripts/convert.py input.md --url
Skill runs locally, user wants file saved--filepython scripts/convert.py input.md --file
Remote execution (MCP, API, cloud agent)--urlReturns URL for user to download
Local execution (user's machine)--fileSaves .docx directly to disk

Decision Rule:

  • Use --url when the skill runs in a different environment than the user (cloud, remote server, MCP server)
  • Use --file when the skill runs on the same machine where the user wants the output file

How It Works

  1. Prepare Markdown: Ensure content is in standard Markdown format
  2. Run Script: Execute scripts/convert.py with appropriate mode
  3. Get Result:
    • URL mode: Receive download URL
    • File mode: File saved to specified location

API Details

Endpoints:

  • URL mode: https://api.deepshare.app/convert-text-to-url → Returns {"url": "..."}
  • File mode: https://api.deepshare.app/convert-text → Returns DOCX file directly

Authentication: Include header X-API-Key: {api_key}

API Key Configuration

You can configure the API key in three ways:

  1. Environment Variable (Highest Priority)

    bash
    1export DEEP_SHARE_API_KEY="your_api_key_here"
  2. Skill Variable (Medium Priority) Edit the api_key field in the YAML frontmatter of this Skill file:

    yaml
    1--- 2name: md2docx 3api_key: "your_api_key_here" 4---
  3. Trial Key (Fallback): f4e8fe6f-e39e-486f-b7e7-e037d2ec216f

Priority Order:

  1. Environment variable DEEP_SHARE_API_KEY (if set)
  2. Skill's api_key variable (if not empty)
  3. Trial key (limited quota)

⚠️ Trial Mode: Limited quota. For stable production use, purchase at: https://ds.rick216.cn/purchase

Request Format

json
1{ 2 "content": "markdown text here", 3 "filename": "output", 4 "template_name": "templates", 5 "language": "zh", 6 "hard_line_breaks": false, 7 "remove_hr": false 8}

Parameters

ParameterDefaultDescription
contentrequiredMarkdown text to convert
filename"output"Output filename (without .docx)
template_name"templates"Template: templates, 论文, article, thesis, etc.
language"zh"Template language: zh or en
hard_line_breaksfalsePreserve single line breaks
remove_hrfalseRemove horizontal rules

Common Templates

Chinese (language: "zh"):

  • templates - General purpose
  • 论文 - Academic paper
  • 论文-首行不缩进 - Paper without indent
  • 论文-标题加粗 - Paper with bold headings

English (language: "en"):

  • templates - General purpose
  • article - Article/report style
  • thesis - Academic thesis

Conversion Script Usage

Command Line Options

bash
1python scripts/convert.py <input.md> [options] 2 3Options: 4 --url Return download URL (default if no mode specified) 5 --file Save file directly to disk 6 --template, -t Template name (default: templates) 7 --language, -l Language: zh or en (default: zh) 8 --output, -o Output directory for file mode 9 --api-key, -k API key (optional)

Examples

bash
1# URL mode (cloud/remote environments) 2python scripts/convert.py document.md --url 3python scripts/convert.py paper.md --url --template 论文 --language zh 4 5# File mode (local environments) 6python scripts/convert.py document.md --file 7python scripts/convert.py paper.md --file --output ./docs --template thesis --language en 8 9# With custom API key 10python scripts/convert.py doc.md --url --api-key your_key

Validation Before Conversion

Ensure Markdown content:

  • Headers use # syntax
  • Lists use - or 1. syntax
  • Code blocks use triple backticks
  • Math formulas use $...$ (inline) or $$...$$ (block)
  • Images use publicly accessible URLs

Response Handling

URL Mode Response

Success (200 OK):

json
1{ 2 "url": "https://flies.deepshare.app/mcp/hash/document_xxx.docx" 3}

File Mode Response

Success: File saved to disk, path printed to stdout

Error Responses (Both Modes)

  • 401 Unauthorized - Invalid API key
  • 403 Forbidden - Quota exceeded → Purchase at https://ds.rick216.cn/purchase
  • 413 Payload Too Large - Content exceeds 10MB
  • 500 Internal Server Error - Service unavailable, retry

User Communication

On Success

Tell user:

  1. Conversion completed successfully
  2. URL mode: Provide the download URL
  3. File mode: Provide the file path where document was saved
  4. Check which API key was used:
    • If using environment variable or Skill variable: No reminder needed
    • If using trial key: Remind: "⚠️ You're using trial mode (limited quota). For stable production use, get your API key at: https://ds.rick216.cn/purchase"

On Quota Exceeded

Tell user:

  1. Conversion failed: quota exceeded
  2. Purchase more credits at: https://ds.rick216.cn/purchase
  3. Or use another API key

On Other Errors

Tell user:

  1. What went wrong (based on error message)
  2. How to fix it
  3. Offer to retry

Tips

  • API Key Configuration:
    • Option 1 (Recommended): Set environment variable DEEP_SHARE_API_KEY
      bash
      1export DEEP_SHARE_API_KEY="your_api_key_here"
    • Option 2: Edit api_key in this Skill's YAML frontmatter
    • Option 3: Use trial key (limited quota)
  • File Size: Keep Markdown under 10MB
  • Images: Use https:// URLs, not local paths
  • Math: Use LaTeX syntax: $E=mc^2$ or $$\int_0^\infty$$
  • Line Breaks: Use hard_line_breaks: true for addresses, poetry
  • Templates: Choose based on document type (paper, article, etc.)

Example Workflows

Workflow 1: Cloud Environment (URL Mode)

User asks: "Convert this to Word" (skill running in cloud)

  1. Save the Markdown content to a temporary file (e.g., temp.md)

  2. Run the conversion script with URL mode:

    bash
    1python scripts/convert.py temp.md --url
  3. The script will:

    • Select API key by priority (env → skill → trial)
    • Call the conversion API
    • Return download URL
  4. Provide the download URL to user

  5. Clean up temporary file

Workflow 2: Local Environment (File Mode)

User asks: "Convert my notes.md to Word" (skill running locally)

  1. Run the conversion script with file mode:

    bash
    1python scripts/convert.py notes.md --file --output ./output
  2. The script will:

    • Select API key by priority (env → skill → trial)
    • Call the conversion API
    • Save the DOCX file directly
  3. Tell user where the file was saved

  4. No cleanup needed - file is the output

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is md2docx?

Perfect for AI Agents needing seamless Markdown to Word document conversion capabilities. A lightweight browser extension designed for AI users to easily copy formulas from ChatGPT, DeepSeek, Grok and 10+ other AI conversations, export beautifully formatted Word documents, and support long conversation screenshot sharing for DeepSeek.

How do I install md2docx?

Run the command: npx killer-skills add Yorick-Ryu/deep-share/md2docx. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for md2docx?

Key use cases include: Converting AI-generated Markdown text to Word documents, Exporting chat conversations from platforms like ChatGPT or DeepSeek to formatted Word files, Generating reports in Word format from Markdown data.

Which IDEs are compatible with md2docx?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for md2docx?

Requires Python environment. Limited to Markdown to DOCX conversion.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add Yorick-Ryu/deep-share/md2docx. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use md2docx immediately in the current project.

Related Skills

Looking for an alternative to md2docx or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI