원클릭으로
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. |
| api_key |
Convert Markdown text to professionally formatted Word (DOCX) documents.
Choose the right mode based on your environment:
# URL mode: Returns download URL (for cloud/remote environments)
python scripts/convert.py input.md --url
# File mode: Saves file directly (for local environments)
python scripts/convert.py input.md --file
| Scenario | Mode | Command |
|---|---|---|
| Skill runs in cloud, user needs to download | --url | python scripts/convert.py input.md --url |
| Skill runs locally, user wants file saved | --file | python scripts/convert.py input.md --file |
| Remote execution (MCP, API, cloud agent) | --url | Returns URL for user to download |
| Local execution (user's machine) | --file | Saves .docx directly to disk |
Decision Rule:
--url when the skill runs in a different environment than the user (cloud, remote server, MCP server)--file when the skill runs on the same machine where the user wants the output filescripts/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: Include header X-API-Key: {api_key}
You can configure the API key in three ways:
Environment Variable (Highest Priority)
export DEEP_SHARE_API_KEY="your_api_key_here"
Skill Variable (Medium Priority)
Edit the api_key field in the YAML frontmatter of this Skill file:
---
name: md2docx
api_key: "your_api_key_here"
---
Trial Key (Fallback): f4e8fe6f-e39e-486f-b7e7-e037d2ec216f
Priority Order:
DEEP_SHARE_API_KEY (if set)api_key variable (if not empty)⚠️ Trial Mode: Limited quota. For stable production use, purchase at: https://ds.rick216.cn/purchase
{
"content": "markdown text here",
"filename": "output",
"template_name": "templates",
"language": "zh",
"hard_line_breaks": false,
"remove_hr": false
}
| 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 |
hard_line_breaks | false | Preserve single line breaks |
remove_hr | false | Remove horizontal rules |
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 (default if no mode specified)
--file Save file directly to disk
--template, -t Template name (default: templates)
--language, -l Language: zh or en (default: zh)
--output, -o Output directory for file mode
--api-key, -k API key (optional)
# URL mode (cloud/remote environments)
python scripts/convert.py document.md --url
python scripts/convert.py paper.md --url --template 论文 --language zh
# File mode (local environments)
python scripts/convert.py document.md --file
python scripts/convert.py paper.md --file --output ./docs --template thesis --language en
# With custom API key
python scripts/convert.py doc.md --url --api-key your_key
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:
Tell user:
Tell user:
DEEP_SHARE_API_KEY
export DEEP_SHARE_API_KEY="your_api_key_here"
api_key in this Skill's YAML frontmatterhttps:// URLs, not local paths$E=mc^2$ or $$\int_0^\infty$$hard_line_breaks: true for addresses, poetryUser 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:
Provide 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 --file --output ./output
The script will:
Tell user where the file was saved
No cleanup needed - file is the output