Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计异常

md2docxmd2docx 文档

Agent Skill

md2docx 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

978

周安装

42

GitHub Stars

125

下载量

343
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:md2docx(md2docx 文档)
来源仓库:https://github.com/yorick-ryu/deep-share
仓库路径:skills/md2docx
安装命令:
npx skills add https://github.com/yorick-ryu/deep-share --skill md2docx
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yorick-ryu/deep-share --skill md2docx

简介

md2docx 用于将 Markdown 文档转换为 Word 格式(.docx)。

  • 适合在开发过程中快速生成结构化技术文档或报告。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围和维护状态,注意可能涉及文件生成和网络请求。
  • md2docx 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

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

ScenarioModeCommand
Skill runs in cloud, user needs to download--urlpython scripts/convert.py input.md --url
Skill runs locally, user wants file saved--filepython scripts/convert.py input.md --file
Remote execution (MCP, API, cloud agent)--urlReturns URL for user to download
Local execution (user's machine)--fileSaves.docx directly to disk

Decision Rule:

  • Use --url when the skill runs in a different environment than the user (cloud, remote server, MCP server)
  • Use --file when the skill runs on the same machine where the user wants the output file

How It Works

  1. Prepare Markdown: Ensure content is in standard Markdown format
  2. Run Script: Execute scripts/convert.py with appropriate mode
  3. 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:

  1. Environment Variable (Highest Priority) export DEEP_SHARE_API_KEY="your_api_key_here"
  2. 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" ---
  3. Trial Key (Fallback): f4e8fe6f-e39e-486f-b7e7-e037d2ec216f

Priority Order:

  1. Environment variable DEEP_SHARE_API_KEY (if set)
  2. Skill's api_key variable (if not empty)
  3. 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

ParameterDefaultDescription
contentrequiredMarkdown 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_breaksfalsePreserve single line breaks
remove_hrfalseRemove horizontal rules

Common Templates

Chinese (language: "zh"):

  • templates - General purpose
  • 论文 - Academic paper
  • 论文-首行不缩进 - Paper without indent
  • 论文-标题加粗 - Paper with bold headings

English (language: "en"):

  • templates - General purpose
  • article - Article/report style
  • thesis - 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 - or 1. 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 key
  • 403 Forbidden - Quota exceeded → Purchase at https://ds.rick216.cn/purchase
  • 413 Payload Too Large - Content exceeds 10MB
  • 500 Internal Server Error - Service unavailable, retry

User Communication

On Success

Tell user:

  1. Conversion completed successfully
  2. URL mode: Provide the download URL
  3. File mode: Provide the file path where document was saved
  4. Check which API key was used:

- If using environment variable or Skill variable: No reminder needed - If using trial key: Remind: "⚠️ You're using trial mode (limited quota). For stable production use, get your API key at: https://ds.rick216.cn/purchase"

On Quota Exceeded

Tell user:

  1. Conversion failed: quota exceeded
  2. Purchase more credits at: https://ds.rick216.cn/purchase
  3. Or use another API key

On Other Errors

Tell user:

  1. What went wrong (based on error message)
  2. How to fix it
  3. Offer to retry

Tips

  • API Key Configuration:

- Option 1 (Recommended): Set environment variable DEEP_SHARE_API_KEY export DEEP_SHARE_API_KEY="your_api_key_here" - Option 2: Edit api_key in this Skill's YAML frontmatter - Option 3: Use trial key (limited quota)

  • File Size: Keep Markdown under 10MB
  • Images: Use https:// URLs, not local paths
  • Math: Use LaTeX syntax: $E=mc^2$ or $$\int_0^\infty$$
  • Line Breaks: Use hard_line_breaks: true for addresses, poetry
  • 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)

  1. Save the Markdown content to a temporary file (e.g., temp.md)
  2. Run the conversion script with URL mode: python scripts/convert.py temp.md --url
  3. The script will:

- Select API key by priority (env → skill → trial) - Call the conversion API - Return download URL

  1. Provide the download URL to user
  2. Clean up temporary file

Workflow 2: Local Environment (File Mode)

User asks: "Convert my notes.md to Word" (skill running locally)

  1. Run the conversion script with file mode: python scripts/convert.py notes.md --file --output./output
  2. The script will:

- Select API key by priority (env → skill → trial) - Call the conversion API - Save the DOCX file directly

  1. Tell user where the file was saved
  2. No cleanup needed - file is the output

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.19%
按下载量换算117

Claude

31.61%
按下载量换算108

Cursor

19.61%
按下载量换算67

Gemini CLI

9.94%
按下载量换算34

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills