ワンクリックで
md2docx
Convert Markdown to Word (DOCX) documents. Use when user wants to export, convert, or create Word documents from Markdown content.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Convert Markdown to Word (DOCX) documents. Use when user wants to export, convert, or create Word documents from Markdown content.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | md2docx |
| description | Convert Markdown to Word (DOCX) documents. Use when user wants to export, convert, or create Word documents from Markdown content. |
Convert Markdown text to professionally formatted Word (DOCX) documents.
Default to file mode for local skill execution:
# File mode: Saves file directly (default for local environments)
python scripts/convert.py input.md
# URL mode: Returns download URL when running remotely
python scripts/convert.py input.md --url
| 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:
--url only when the skill runs in a different environment than the user (cloud, remote server, MCP server).scripts/convert.py with appropriate modeEndpoints:
https://api.deepshare.app/convert-text-to-url → Returns {"url": "..."}https://api.deepshare.app/convert-text → Returns DOCX file directlyAuthentication: Set the DEEP_SHARE_API_KEY environment variable and send it as X-API-Key.
Set the environment variable before running the skill:
export DEEP_SHARE_API_KEY="your_api_key_here"
The skill reads only this environment variable. If it is missing, conversion stops with a configuration error.
{
"content": "markdown text here",
"filename": "output",
"template_name": "templates",
"language": "zh"
}
| 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 |
Chinese (language: "zh"):
templates - General purpose论文 - Academic paper论文-首行不缩进 - Paper without indent论文-标题加粗 - Paper with bold headingsEnglish (language: "en"):
templates - General purposearticle - Article/report stylethesis - Academic thesispython scripts/convert.py <input.md> [options]
Options:
--url Return download URL
--file Save file directly to disk (default if no mode specified)
--template, -t Template name (default: templates)
--language, -l Language: zh or en (default: zh)
--filename Output filename without .docx (default: input basename)
--output, -o Output directory for file mode
# File mode (local environments, default)
python scripts/convert.py document.md
python scripts/convert.py paper.md --file --output ./docs --template thesis --language en
python scripts/convert.py notes.md --file --filename meeting-notes
# URL mode (cloud/remote environments)
python scripts/convert.py document.md --url
python scripts/convert.py paper.md --url --template 论文 --language zh
Ensure Markdown content:
# syntax- or 1. syntax$...$ (inline) or $$...$$ (block)Success (200 OK):
{
"url": "https://flies.deepshare.app/mcp/hash/document_xxx.docx"
}
Success: File saved to disk, path printed to stdout
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, retryTell user:
DEEP_SHARE_API_KEYTell user:
DEEP_SHARE_API_KEYTell user:
DEEP_SHARE_API_KEY
export DEEP_SHARE_API_KEY="your_api_key_here"
https:// URLs, not local paths$E=mc^2$ or $$\int_0^\infty$$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:
python scripts/convert.py temp.md --url
The script will:
DEEP_SHARE_API_KEYProvide the download URL to user
Clean up temporary file
User asks: "Convert my notes.md to Word" (skill running locally)
Run the conversion script with file mode:
python scripts/convert.py notes.md --output ./output
The script will:
DEEP_SHARE_API_KEYTell user where the file was saved
No cleanup needed - file is the output