/install 1coos-markdown-converter
Markdown Converter
Convert files to beautifully formatted Markdown in two steps: convert with uvx markitdown[all], then beautify with configurable style formatting.
Usage
/1coos-markdown-converter \x3Cfile-path> [--style github|commonmark|clean|obsidian] [--output-dir path] [--convert-only]
Parameters
| Parameter | Required | Description |
|---|---|---|
\x3Cfile-path> |
Yes | Path to the file to convert |
--style |
No | Formatting style: github (default), commonmark, clean, obsidian |
--output-dir |
No | Output directory (default: skills/1coos-markdown-converter/output) |
--convert-only |
No | Only convert, skip formatting step |
--config |
No | Path to config.json (default: skill directory config.json) |
Supported Formats
- Documents: PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls)
- Web/Data: HTML, CSV, JSON, XML
- Media: Images (EXIF + OCR), Audio (EXIF + transcription)
- Other: ZIP (iterates contents), YouTube URLs, EPub
Formatting Styles
github (default)
GitHub Flavored Markdown — table column alignment, fenced code blocks, task lists.
commonmark
Strict CommonMark — enforces sequential heading levels (no skipping h1 to h3).
clean
Minimal style — removes excessive formatting, simplifies redundant links.
obsidian
Obsidian Flavored Markdown — converts internal links to [[wikilinks]], normalizes callout syntax (> [!type]), formats properties/frontmatter, normalizes ==highlight== syntax, and aligns tables. Ideal for notes destined for Obsidian vaults.
Configuration
Core parameters are configurable via config.json in the skill directory:
{
"style": "github",
"outputDir": null,
"convertOnly": false,
"formatting": {
"maxWidth": 80,
"listMarker": "-",
"emphasisMarker": "*",
"strongMarker": "**",
"codeBlockStyle": "fenced"
},
"converter": {
"timeout": 60000,
"charset": "UTF-8"
}
}
CLI arguments always override config.json values.
Execution Instructions
When the user invokes this skill:
- Check prerequisites: Verify
uvxis available. If not, instruct the user to install uv:curl -LsSf https://astral.sh/uv/install.sh | sh - Run conversion: Execute the script:
bun run ${CLAUDE_SKILL_DIR}/scripts/main.ts $ARGUMENTS - Report results: Show the output file path and a brief summary of the conversion.
- Handle errors:
- Exit code 2: argument error — show the specific error message
- Exit code 3: missing dependency — guide user to install uv
- Exit code 4: conversion failure — suggest checking file format support
Examples
# Convert a PDF with default github style
/1coos-markdown-converter report.pdf
# Convert Word document with clean style
/1coos-markdown-converter document.docx --style clean
# Convert Excel to markdown without formatting
/1coos-markdown-converter data.xlsx --convert-only
# Specify output directory
/1coos-markdown-converter slides.pptx --output-dir ~/notes
Notes
- First run caches
markitdown[all]dependencies; subsequent runs are faster - Uses
markitdown[all]to ensure full format support (PDF, OCR, audio transcription) - Output preserves document structure: headings, tables, lists, links
- For complex PDFs with poor extraction, consider using Azure Document Intelligence
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install 1coos-markdown-converter - 安装完成后,直接呼叫该 Skill 的名称或使用
/1coos-markdown-converter触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
1coos-markdown-converter 是什么?
Convert files to beautifully formatted Markdown. TRIGGER when user asks to convert a file to Markdown, extract text from PDF/DOCX/PPTX/XLSX, or format a docu... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 154 次。
如何安装 1coos-markdown-converter?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install 1coos-markdown-converter」即可一键安装,无需额外配置。
1coos-markdown-converter 是免费的吗?
是的,1coos-markdown-converter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
1coos-markdown-converter 支持哪些平台?
1coos-markdown-converter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 1coos-markdown-converter?
由 1coos(@1coos)开发并维护,当前版本 v1.0.1。