skills/skills.volces.com/marktodocx-skill

marktodocx-skill

Installation
SKILL.md

marktodocx-skill

Convert Markdown into DOCX using the shared Node runtime family in this repository.

Invocation

  • If the user provides a Markdown file path, treat $0 as inputPath and $1 as the optional outputPath.
  • If the user provides Markdown content instead of a file path, call the runtime programmatically with markdown and a suitable baseDir.
  • If the user wants style customization, map their request into stylePreset, marginPreset, styleJson, or styleSet.

Execution Rules

  1. Prefer the shared agent wrapper in skill.mjs, specifically convertWithAgentSkill(). Do not create a second conversion path.
  2. Require exactly one input source: either inputPath or inline markdown.
  3. Resolve style options through the wrapper so explicit parameters override environment defaults in the same way as the CLI.
  4. Preserve local image behavior by using the Markdown file directory for inputPath, or an explicit baseDir for inline Markdown.
  5. If the document contains Mermaid and @marktodocx/runtime-node-mermaid is unavailable, fail clearly instead of silently degrading.
  6. Report the output file path after a successful conversion.
Installs
1
First Seen
Apr 30, 2026