markdown-to-docx
Converts Markdown files (.md, .markdown) to DOCX using the markdown-docx npm package. Supports single and batch conversions, automatically generates output filenames, and creates Microsoft Word documents from Markdown content.
DeepseekModel
官方收录技能
质量 优秀 · 78
v1.0.0
获取
https://deepseekmodel.com/api/download.php?id=vace-markdown-docx-skills-markdown-to-docx-skill-md&format=skill
下载 .skill
标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name markdown-to-docx description Converts Markdown files (.md, .markdown) to DOCX using the markdown-docx npm package. Supports single and batch conversions, automatically generates output filenames, and creates Microsoft Word documents from Markdown content. Markdown to DOCX Converter Overview Convert Markdown files to Microsoft Word DOCX format using the markdown-docx npm package. Supports single file and batch conversions with automatic output file naming. Quick Start Single file conversion: python scripts/convert_md_to_docx.py -i document.md This creates document.docx in the same directory. Batch conversion: python scripts/convert_md_to_docx.py -i file1.md file2.md file3.md Each file is converted to DOCX in its original location. Custom output location: python scripts/convert_md_to_docx.py -i document.md -o output/mydoc.docx Batch to specific directory: python scripts/convert_md_to_docx.py -i *.md -o output_docs/ Workflow When a user requests markdown to DOCX conversion: Identify input files - Confirm which markdown file(s) to convert Determine output naming - Use auto-naming unless user specifies custom names Run conversion - Execute the script with appropriate parameters Report results - Inform user of success and output file location(s) Common Use Cases Convert a single markdown file User: "Convert README.md to DOCX" python scripts/convert_md_to_docx.py -i README.md Convert all markdown files in current directory User: "Convert all my markdown files to Word documents" python scripts/convert_md_to_docx.py -i *.md Convert with custom output name User: "Convert notes.md to report.docx" python scripts/convert_md_to_docx.py -i notes.md -o report.docx Convert documentation set to a folder User: "Convert all docs to DOCX and put them in the exports folder" python scripts/convert_md_to_docx.py -i docs/*.md -o exports/ Script Details Location: scripts/convert_md_to_docx.py Features: Validates input files exist and are markdown format Auto-generates output filenames (input.md → input.docx) Supports custom output paths for single files Supports output directory for batch conversions Creates output directories if they don't exist Provides clear success/failure feedback Returns proper exit codes for automation Requirements: Python 3+ Node.js and npm (for npx) markdown-docx npm package (automatically fetched via npx) Error Handling The script handles common errors: Input file not found - Reports missing file path Invalid file type - Ensures input is .md or .markdown npx not available - Checks for Node.js/npm installation Conversion failure - Captures and reports markdown-docx errors Tips Auto-naming is preferred - The script automatically names output files, reducing friction Batch operations - When converting multiple files, the script shows a summary of successes and failures Path handling - Both absolute and relative paths work for input and output Glob patterns - Shell glob patterns (*.md) can be used for batch operations
Agent 识别该技能的关键词,点击任意一个即可复制。
该技能未提供触发词。
下载的 .skill 包内含以下字段。
| 字段 | 说明 |
|---|---|
| format | 格式标识(skill/v1) |
| skill_id | 技能唯一 ID |
| name | 技能名称 |
| version | 版本号 |
| description | 技能描述 |
| category | 所属分类(数组) |
| trigger_words | 触发词列表 |
| tags | 标签列表 |
| source | 来源标识 |
| source_url | 来源链接(本页地址) |
| exported_at | 导出时间(每次下载生成) |
| system_prompt | 系统提示词正文 |
| model_config | 模型参数:provider / model / temperature / max_tokens / top_p |
| examples | 示例 |
| install_guide | 各平台导入说明(Coze / Dify / Claude / 自定义框架) |