md2docx
БесплатноЗапускает вложенные скриптыНе проверенConvert Markdown to Word (DOCX) documents. Use when user wants to export, convert, or create Word documents from Markdown content.
Об этом скилле
md2docx - Markdown to Word Converter
Convert Markdown text to professionally formatted Word (DOCX) documents.
Quick Start
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
Choosing the Right Mode
| 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:
- Use
--urlwhen the skill runs in a different environment than the user (cloud, remote server, MCP server) - Use
--filewhen the skill runs on the same machine where the user wants the output file
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: Include header X-API-Key: {api_key}
API Key Configuration
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_keyfield 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:
- Environment variable
DEEP_SHARE_API_KEY(if set) - Skill's
api_keyvariable (if not empty) - Trial key (limited quota)
⚠️ Trial Mode: Limited quota. For stable production use, purchase at: https://ds.rick216.cn/purchase
Request Format
{
"content": "markdown text here",
"filename": "output",
"template_name": "templates",
"language": "zh",
"hard_line_breaks": false,
"remove_hr": false
}
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 |
hard_line_breaks |
false |
Preserve single line breaks |
remove_hr |
false |
Remove horizontal rules |
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
python 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)
Examples
# 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
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):
{
"url": "https://flies.deepshare.app/mcp/hash/document_xxx.docx"
}
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
Установить md2docx в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл md2docx?
Convert Markdown to Word (DOCX) documents. Use when user wants to export, convert, or create Word documents from Markdown content.
Как установить скилл md2docx?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл md2docx запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic