yorick-ryu/md2docx-skill/md2docx
Claude Code and agent skill by yorick-ryu/md2docx-skill
- community
Checking that the SKILL.md file is still in the repository.
Convert Markdown to Word (DOCX) documents. Use when user wants to export, convert, or create Word documents from Markdown content.
Install
npx vskill@latest install yorick-ryu/md2docx-skill/md2docxSKILL.md
md2docx - Markdown to Word Converter
Convert Markdown text to professionally formatted Word (DOCX) documents.
Quick Start
Default to file mode for local skill execution:
Choosing the Right Mode
| Scenario | Mode | Command | |
|---|---|---|---|
| Skill runs locally, user wants file saved | file mode | python scripts/convert.py input.md | |
| Skill runs in cloud, user needs to download | --url | python scripts/convert.py input.md --url | |
| Remote execution (MCP, API, cloud agent) | --url | Returns URL for user to download | |
| Local execution (user's machine) | file mode | Saves .docx directly to disk |
Decision Rule:
- Run without a mode flag when the skill runs on the same machine where the user wants the output file.
- Use
--urlonly when the skill runs in a different environment than the user (cloud, remote server, MCP server).
How It Works
- Prepare Markdown: Ensure content is in standard Markdown format
- Run Script: Execute
scripts/convert.pywith appropriate mode - 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: Set the DEEP_SHARE_API_KEY environment variable and send it as X-API-Key.
API Key Configuration
Set the environment variable before running the skill:
The skill reads only this environment variable. If it is missing, conversion stops with a configuration error.
Request Format
Parameters
| Parameter | Default | Description | |
|---|---|---|---|
content | required | Markdown text to convert | |
filename | "output" | Output filename (without .docx) | |
template_name | "templates" | Template: templates, 论文, article, thesis, etc. | |
language | "zh" | Template language: zh or en |
Common Templates
Chinese (language: "zh"):
templates- General purpose论文- Academic paper论文-首行不缩进- Paper without indent论文-标题加粗- Paper with bold headings
English (language: "en"):
templates- General purposearticle- Article/report stylethesis- Academic thesis
Conversion Script Usage
Command Line Options
Examples
Validation Before Conversion
Ensure Markdown content:
- Headers use
#syntax - Lists use
-or1.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):
File Mode Response
Success: File saved to disk, path printed to stdout
Error Responses (Both Modes)
401 Unauthorized- Invalid API key403 Forbidden- Quota exceeded → Purchase at https://ds.rick216.cn/purchase413 Payload Too Large- Content exceeds 10MB500 Internal Server Error- Service unavailable, retry
User Communication
On Success
Tell user:
- Conversion completed successfully
- URL mode: Provide the download URL
- File mode: Provide the file path where document was saved
- Check which API key was used:
- If using the environment variable: No reminder needed
- If the environment variable is missing: Tell the user to set
DEEP_SHARE_API_KEY
On Quota Exceeded
Tell user:
- Conversion failed: quota exceeded
- Purchase more credits at: https://ds.rick216.cn/purchase
- Recheck
DEEP_SHARE_API_KEY
On Other Errors
Tell user:
- What went wrong (based on error message)
- How to fix it
- Offer to retry
Tips
- API Key Configuration:
- Set environment variable
DEEP_SHARE_API_KEY
``bash export DEEP_SHARE_API_KEY="your_api_key_here" ``
- File Size: Keep Markdown under 10MB
- Images: Use
https://URLs, not local paths - Math: Use LaTeX syntax:
$E=mc^2$or$$\int_0^\infty$$ - 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)
- Save the Markdown content to a temporary file (e.g.,
temp.md)
- Run the conversion script with URL mode:
``bash python scripts/convert.py temp.md --url ``
- The script will:
- Read the API key from
DEEP_SHARE_API_KEY - Call the conversion API
- Return download URL
- Provide the download URL to user
- Clean up temporary file
Workflow 2: Local Environment (File Mode)
User asks: "Convert my notes.md to Word" (skill running locally)
- Run the conversion script with file mode:
``bash python scripts/convert.py notes.md --output ./output ``
- The script will:
- Read the API key from
DEEP_SHARE_API_KEY - Call the conversion API
- Save the DOCX file directly
- Tell user where the file was saved
- No cleanup needed - file is the output
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/md2docx/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 31 Mar 2026, 7 months ago.
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/yorick-ryu/md2docx-skill/md2docx)