Introduction¶
When building a knowledge base or a RAG pipeline, the common bottleneck is not the retrieval model but the “source material form” before ingestion: PDFs, Office documents, spreadsheets, scans, and archives are mixed together; writing a separate parsing script for each is costly to maintain, and the output structure is not unified. If you want an Agent to follow a fixed workflow inside a conversation to complete “environment detection → conversion → cleaning → validation,” and write the results as UTF-8 Markdown, you can integrate make-to-markdown from SkillHub (package name @indiv-ebandao/make-to-markdown, current version v1.0.11). Below introduces its positioning, capabilities, and installation/usage.
What is this¶
make-to-markdown is a Markdown material generation Skill for RAG scenarios: it uses markitdown at the backend, and uses the Skill’s built-in scripts/convert.py as a unified entry point to perform dependency detection, format conversion, failure fallback, and post-processing cleaning. The Skill metadata lists the maintainer as “智慧半岛”, categorized on SkillHub as knowledge-management; the page shows a rating of about 98663 and about 484 downloads (data comes from SkillHub listing information, subject to real-time page data).
Compared with temporarily running uvx markitdown inside a conversation, this Skill emphasizes: legacy .doc/.ppt preprocessing, choosing Office COM or LibreOffice based on the operating system, an Init–Step–Poll anti-stall protocol for batch tasks, and post-conversion V1–V6 quality checks.
Official entries:
- SkillHub page: https://www.skillhub.cn/skills/indiv-ebandao/make-to-markdown
- API identifier page: https://api.skillhub.cn/user_741dc82b/make-to-markdown
Core features¶
The capabilities below come from the Skill package’s SKILL.md / QUICKSTART.md and the SkillHub introduction. After installation, the Agent executes according to the Skill’s instructions.
Supported input formats¶
The following types can be converted to Markdown (including notes on extended capabilities):
| Category | Formats |
|---|---|
| Documents | PDF; Word (.docx / .doc); PowerPoint (.pptx / .ppt); Excel (.xlsx / .xls) |
| Structured / Web | HTML, CSV, JSON, XML |
| Media | Images (including EXIF / OCR); Audio (including speech transcription) |
| Other | ZIP archives, YouTube links, EPub ebooks |
Legacy formats and cross-platform¶
.doc/.pptare first preprocessed into.docx/.pptx: on Windows, Word / PowerPoint COM is preferred; otherwise it triessoffice --headless(LibreOffice).- At startup,
scripts/platform_detect.pydetects the OS and local capabilities, then selects the execution path; the Skill declares full support for Windows / Linux / macOS.
Conversion pipeline¶
A single call to scripts/convert.py internally follows this flow:
(.doc/.ppt) → preprocess → dependency detection & install → markitdown → (on failure) native fallback → post-cleaning → output
- Fallback when markitdown fails: e.g.,
.docxuses python-docx, spreadsheets use openpyxl, presentations use python-pptx. - Post-cleaning (inlined in convert): remove watermarks/page numbers, fix heading levels, complete table separators, optional document summaries, etc.; in extreme cases you can call
scripts/post_clean.pyseparately.
Agent triggering¶
In clients that support Skills, you can trigger with natural language. The trigger words described in the Skill include: 转 Markdown, 转换文档, markitdown, 文档转 md, 批量转换. Use it when you need to unify the above types of files into the knowledge base’s “common language” Markdown.
Constraints (should be aware of before use)¶
The Skill marks the following rules as red lines, and the Agent should comply:
- Source files are read-only; do not modify the originals; conversion goes through
scripts/convert.py, not by directly callingmarkitdown/uvx markitdown. - If the
-otarget file already exists, user confirmation is required; silent overwriting is forbidden. - If an encrypted document is detected, terminate; the user must decrypt first.
- If it is a legacy format and neither COM nor LibreOffice is available, pause and prompt to install Office or LibreOffice.
- Conversion runs entirely locally; documents are not uploaded to external APIs.
The OpenClaw-style environment metadata requires uv and python on the local machine.
Installation and enablement¶
SkillHub recommends letting the Agent follow the installation instructions, or installing via CLI locally into the current Agent’s skills directory.
Option 1: Follow the official SkillHub installation instructions (recommended for Agents)¶
Send the prompt provided by the SkillHub page in the conversation, or explicitly ask the Agent to read and execute:
Please install `@indiv-ebandao/make-to-markdown` according to https://skillhub.cn/install/skillhub.md.
Key points of skillhub.md:
- Check whether the CLI exists:
command -v skillhub && skillhub --version - If not installed, run (full install includes default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
CLI only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
- When installing the Skill, you must use
--dirto point to the current Agent’s skills directory; otherwise the default./skills/may not be loaded. Common path examples:
| Client | Skills directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
Example:
skillhub install @indiv-ebandao/make-to-markdown --dir ~/.cursor/skills/
(Replace the path with the Agent directory you actually use.)
Option 2: npm ecosystem skillhub-cli¶
The skillhub-cli on GitHub supports pulling Skills without a global install:
npx skillhub-cli install @indiv-ebandao/make-to-markdown
After installing the CLI globally, you can also use skillhub install <skill-name>; the exact file placement path follows the CLI documentation (e.g., ~/.claude/skills/, ~/.codex/skills/).
Prerequisites (running the conversion script)¶
The quickstart documentation requires uv on the local machine (used for the markitdown toolchain), e.g., on Windows PowerShell:
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
uv --version
After installing the Skill, enter the Skill directory and run an existence check:
python -c "from pathlib import Path; assert Path('scripts/convert.py').exists()"
Typical usage¶
After installation is complete, the Agent or you can run the following commands directly in the local Skill directory (replace the path with your files).
Single-file conversion¶
cd path/to/make-to-markdown
python scripts/convert.py 你的文件.docx -o 输出.md
Minimal example (default output naming):
python scripts/convert.py input.docx
Check the Skill version:
python scripts/convert.py --version
Batch conversion¶
Confirm the source directory, output directory, file count, and --ext filter before running:
python scripts/batch_convert.py ./源目录/ ./输出目录/ --ext .pdf .docx --clean
Failed items are written to _conversion_errors.log in the output directory (or an equivalent failure list).
Legacy Office and paper ingestion examples¶
# .doc is automatically preprocessed via COM or LibreOffice, then converted
python scripts/convert.py 旧文档.doc -o 旧文档.md
# PDF report
python scripts/convert.py paper.pdf -o paper.md
Optional: standalone post-cleaning¶
python scripts/post_clean.py output.md --check-only
The feedback template after successful conversion includes status, conversion method (markitdown or native fallback), heading and table statistics, and the absolute output path.
Applicable scenarios and notes¶
Who it suits
- Teams that need to batch-convert internal enterprise materials, project documents, paper PDFs, and mixed-format material libraries into Markdown, then connect to a vector database or full-text search.
- Users already using Skills in Cursor / Claude Code / Codex etc., who want fixed red lines and checklists to constrain the Agent and avoid ad-hoc markitdown calls that lead to missing dependencies or uncleaned output.
Limitations and pitfalls
.doc/.pptcannot be automatically preprocessed without Office COM or LibreOffice; you must install one of them first.- Encrypted Office/PDF files will not be retried repeatedly; the user must decrypt before running again.
- Batch tasks should specify
--ext, and confirm paths and overwrite strategy during the Init phase; large directories, network drives, and slow tasks involving OCR/audio should be executed step by step via the Skill’s Init → Step → Poll protocol. - Optional dependencies can be auto-installed by
convert.py; you can also refer to the Skill docs to install markitdown and extras once, e.g.:
uv tool install markitdown --with python-docx --with openpyxl --with python-pptx --with pypdf --with xlrd --with ebooklib
After conversion is complete, the Skill requires performing V1–V6 checks (file non-empty, UTF-8, watermark residue, heading levels, table separators, batch count consistency, etc.). If it does not pass, the exception handling flow should be followed instead of directly claiming successful ingestion.
Conclusion¶
make-to-markdown turns markitdown plus preprocessing, fallback, cleaning, and validation into a repeatable RAG material pipeline, and constrains the Agent’s execution boundaries through the Skill. If you are unifying the document form of a knowledge base, you can install @indiv-ebandao/make-to-markdown from SkillHub, validate with scripts/convert.py for a single file first, then proceed to batch.
- Page: https://www.skillhub.cn/skills/indiv-ebandao/make-to-markdown
- API: https://api.skillhub.cn/user_741dc82b/make-to-markdown