Install
openclaw skills install @haoyt27/doc2markdownLightweight document utility designed to convert files to Markdown (MD), built specifically for intelligent agents (e.g., OpenClaw, ClaudeCode) to read and p...
openclaw skills install @haoyt27/doc2markdownDocument conversion assistant that automatically converts documents to Markdown (MD), saving output to the same directory as the source file. Designed to help intelligent agents read and process document content in various formats.
# Convert document (auto-polls for 60s, downloads if complete, returns doc ID if timeout)
node scripts/doc2markdown.js convert <file_path> # Downloads MD package
node scripts/doc2markdown.js convert <file_path> --md # Downloads single MD file
# Check status and download (for documents that exceeded timeout)
node scripts/doc2markdown.js check <doc_id> <original_file_path> # Downloads MD package
node scripts/doc2markdown.js check <doc_id> <original_file_path> --md # Downloads single MD file
{doc_id}_{filename}/ under the source file's parent directory; single MD files are saved directly thereThis tool supports two download modes:
--md mode: Downloads a single merged MD file to the source file's parent directory. Images are not included{doc_id}_{filename}/ in the source file's parent directory. Includes image files and tables, tables are rendered in HTML format| User Intent | Example Phrases | Mode to Use |
|---|---|---|
| Read / view / analyze a document | "read this file", "what's in this doc", "summarize this PDF" | --md (single MD file) |
| Explicitly convert to MD | "convert to MD", "export as markdown", "转成MD" | MD package (default, no --md); use --md only if user specifically asks for a single file |
check queryAn API Key is optional — without one, doc2markdown works normally as before.
| Source | Location |
|---|---|
| Environment variable | DOCCHAIN_SKILLS_API_KEY |
| Skill config | doc2markdown/scripts/config.json (field docchain_api_key) |
Conversions are processed with priority (fast lane).
convert uploads files to the docchain cloud service (lab.hjcloud.com) for parsing. Results are returned as a ZIP archive and extracted locally.For parsing errors, format issues, or other problems, please submit an issue on GitHub: https://github.com/wct-lab/docchain-skills