Preface¶
.docx files remain common in technical documentation, requirements specifications, and partner deliverables. To be committed to Git, ingested into knowledge bases, or handed off to Coding Agents for further editing, they often need to be converted to Markdown. Manual copy-paste tends to lose heading hierarchy, lists, and inline formatting; images either become external links or require manual extraction and link insertion one by one. This article introduces docx-to-md-with-images on SkillHub, an Agent-oriented tool that embeds document format conversion into Skill workflows, with a focus on image extraction and structure preservation for .docx files.
What Is This¶
docx-to-md-with-images (coordinate @user_29e2fa9e/docx-to-md-with-images) is a community-sourced (community) office efficiency Skill on SkillHub, categorized under office-efficiency. Current version: 1.0.0, maintained by publisher user_29e2fa9e. The tag requires_api_key=false indicates that, per the SkillHub page documentation, installation and usage do not depend on any additional API key.
Official description: Converts Word (.docx) and other document formats to Markdown; the primary path targets .docx, emphasizing complete image extraction, inline formatting preservation, and document structure retention; for PDF, PPTX, XLSX, HTML, CSV, JSON, XML and other formats, conversion is supported via markitdown as a fallback capability.
SkillHub page: https://www.skillhub.cn/skills/user_29e2fa9e/docx-to-md-with-images
API entry: https://api.skillhub.cn/user_29e2fa9e/docx-to-md-with-images
Core Features¶
Based on the official description, the verifiable capabilities are as follows.
-
.docx→ Markdown (Primary Path)
Extracts all images embedded in the document; preserves inline formatting (e.g., semantic bold/italic); maintains original headings, paragraphs, lists, and other structural elements as much as possible, facilitating further editing in the Markdown toolchain. -
Multi-format Fallback
Beyond Word, supports PDF, PPTX, XLSX, HTML, CSV, JSON, XML and other formats via the markitdown fallback (its capabilities and emphasis on “images + structure” may differ from the primary path; subject to actual conversion results). -
No API Key Required
The SkillHub tagrequires_api_key=falsemakes it suitable for local or intranet Agent environments without binding additional third-party keys (still depends on whether the Agent and Skill package declare other dependencies; after installation, refer to the SKILL.md for details).
Installation and Activation¶
The Skill follows the general SKILL.md format. The installation method provided on the SkillHub page is: instruct the AI to install this coordinate according to the official installation documentation.
Method 1: Prompt Installation (as stated on the official page)¶
Send the following prompt to your current AI Agent:
请根据 https://skillhub.cn/install/skillhub.md,安装 `@user_29e2fa9e/docx-to-md-with-images`。
The Agent will follow the SkillHub Installation and Priority Source Configuration to check the CLI, select the correct skills directory, and execute the installation.
Method 2: SkillHub CLI¶
First, confirm whether skillhub is installed:
command -v skillhub && skillhub --version
If not installed, you can run the full installation (CLI + default Skills) per the official documentation:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
CLI-only installation:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
When installing this Skill, you must use --dir to point to the current Agent’s skills directory (installing to the default ./skills/ may not be recognized). Common paths listed in the official documentation:
| Agent | skills directory (example) |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ in the project |
Taking Cursor as an example, the installation command looks like:
skillhub install @user_29e2fa9e/docx-to-md-with-images --dir ~/.cursor/skills/
After installation, refresh or restart according to the requirements of your Agent so the new Skill is loaded.
Typical Usage¶
The public page does not include a separate CLI subcommand description. The typical usage is: after installing and enabling the Skill, provide the file path or attachment to be converted in the conversation, and specify that you need it converted to Markdown with images preserved.
Reproducible installation entry (consistent with the SkillHub page):
请根据 https://skillhub.cn/install/skillhub.md,安装 `@user_29e2fa9e/docx-to-md-with-images`。
After installation, you can ask the Agent to perform the conversion based on the task description, for example:
- Specify the input as a local
.docxfile path (or upload the file). - Require Markdown output, and explain that images should be extracted to a relative directory and referenced via relative paths in the
.mdfile. - If the input is PDF, PPTX, etc., specify the format; the Agent will use the markitdown fallback path per the Skill instructions.
For specific script names, dependency packages, and output directory layout, refer to the SKILL.md in the installed package; this article does not speculate on command-line arguments not present in the official materials.
Use Cases and Notes¶
Who it’s for
- Developers and technical writers who need to batch- or on-demand convert Word deliverables to Markdown, and care about image and document structure preservation.
- Users already working with Skills in Cursor, Claude Code, Codex and other environments, who want the conversion logic solidified on the Agent side to reduce repetitive prompting.
Usage Notes
- Primary vs. fallback paths:
.docxis the focus of the capability description; other formats rely on markitdown. Complex slide layouts or scanned PDFs may experience structural simplification or loss—perform manual spot-checks after conversion. - Installation directory: Always use
skillhub install ... --dir <your Agent's skills directory>to avoid the Skill not being loaded. - Platform data: SkillHub page statistics change over time; at the time of writing, the entry showed a rating of 100000, 1451 downloads, and 74 installs—refer to the display page for real-time data.
Conclusion¶
docx-to-md-with-images consolidates “Word → Markdown + image extraction + structure preservation” into an installable Agent Skill, and extends markitdown fallback support for various office document formats. If you frequently handle .docx archiving or migration within Agent workflows, install it via the official coordinate first, then verify dependencies and output conventions against the SKILL.md in the package.
- SkillHub page: https://www.skillhub.cn/skills/user_29e2fa9e/docx-to-md-with-images
- API entry: https://api.skillhub.cn/user_29e2fa9e/docx-to-md-with-images
- Installation guide: https://skillhub.cn/install/skillhub.md