MarkItDown Skill

👤 karmanverma 📦 v1.0.1 ⭐ 4.4 ⬇️ 3.8K 下載
📄 辦公效率 免費

📖 技能介紹


name: markitdown-skill description: OpenClaw agent skill for converting documents to Markdown. Documentation and utilities for Microsoft's MarkItDown library. Supports PDF, Word, PowerPoint, Excel, images (OCR), audio (transcription), HTML, YouTube. metadata: openclaw: emoji: "📄" homepage: https://github.com/karmanverma/markitdown-skill requires: bins: ["python3", "pip", "markitdown"] install: - id: "markitdown" kind: "pip" package: "markitdown[all]" bins: ["markitdown"] label: "Install MarkItDown CLI (pip)"


MarkItDown Skill

Documentation and utilities for converting documents to Markdown using Microsoft's MarkItDown library.

Note: This skill provides documentation and a batch script. The actual conversion is done by the markitdown CLI/library installed via pip.

When to Use

Use markitdown for: - 📄 Fetching documentation (README, API docs) - 🌐 Converting web pages to markdown - 📝 Document analysis (PDFs, Word, PowerPoint) - 🎬 YouTube transcripts - 🖼️ Image text extraction (OCR) - 🎤 Audio transcription

Quick Start

# Convert file to markdown
markitdown document.pdf -o output.md

# Convert URL
markitdown https://example.com/docs -o docs.md

Supported Formats

Format Features
PDF Text extraction, structure
Word (.docx) Headings, lists, tables
PowerPoint Slides, text
Excel Tables, sheets
Images OCR + EXIF metadata
Audio Speech transcription
HTML Structure preservation
YouTube Video transcription

Installation

小蔥技能7w4.net持續更新中。

The skill requires Microsoft's markitdown CLI:

pip install 'markitdown[all]'

Or install specific formats only:

pip install 'markitdown[pdf,docx,pptx]'

Common Patterns

Fetch Documentation

markitdown https://github.com/user/repo/blob/main/README.md -o readme.md

Convert PDF

markitdown document.pdf -o document.md

Batch Convert

# Using included script
python ~/.openclaw/skills/markitdown/scripts/batch_convert.py docs/*.pdf -o markdown/ -v

# Or shell loop
for file in docs/*.pdf; do
  markitdown "$file" -o "${file%.pdf}.md"
done

Python API

from markitdown import MarkItDown

md = MarkItDown()
result = md.convert("document.pdf")
print(result.text_content)

Troubleshooting

"markitdown not found"

pip install 'markitdown[all]'

OCR Not Working

# Ubuntu/Debian
sudo apt-get install tesseract-ocr

# macOS
brew install tesseract

What This Skill Provides

Component Source
markitdown CLI Microsoft's pip package
markitdown Python API Microsoft's pip package
scripts/batch_convert.py This skill (utility)
Documentation This skill

See Also

🤖 AI 評測

這個 Skill 質量中等偏上,文件清晰易懂,安裝使用說明詳細,但內容主要是對外部工具的使用說明文件,缺少原創性的增值功能。如果你需要將 PDF、Word 等文件轉換為 Markdown,它能提供良好的操作指引,不過核心轉換能力取決於微軟的 markitdown 庫本身。文件配套完善,但實際工具功能較為基礎。

📊 多維度評分

適應性4.1
規範性4.4
有效性4.7
可靠性4.4
可信度4.4

📁 包含檔案 (8 個)

📄 POST_INSTALL.md 1.8 KB
📄 README.md 1.7 KB
📄 SKILL.md 3 KB
📄 USAGE-GUIDE.md 5.2 KB
📄 _meta.json 135 B
📄 package.json 444 B
📄 reference.md 8.4 KB
📄 scripts/batch_convert.py 3.3 KB