markdown-converter
它能做什么
这个技能使用无需单独安装的命令,把多种文件类型转换为 Markdown。适合需要把文档转成可阅读、可搜索或可编辑纯文本的人。
适用场景
- ✓你想把 PDF、Word 文件或电子表格转换为 Markdown 文本的时候。
- ✓你需要从图片或录音中提取文字的时候。
- ✓你想把 YouTube 链接或网页变成可阅读文本的时候。
技能链接
https://github.com/steipete/agent-scripts/blob/main/skills/markdown-converter/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这份 Word 报告转换成我可以编辑的 Markdown 文件。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体通过无需单独安装的包运行器来运行转换工具。它读取文件,并把结果输出到屏幕,或保存到你指定的文件中。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Markdown Converter
Convert files to Markdown using uvx --from "markitdown[all]" markitdown — no installation required.
Basic Usage
# Convert to stdout
uvx --from "markitdown[all]" markitdown input.pdf
# Save to file
uvx --from "markitdown[all]" markitdown input.pdf -o output.md
uvx --from "markitdown[all]" markitdown input.docx > output.md
# From stdin
cat input.pdf | uvx --from "markitdown[all]" markitdown
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
Options
-o OUTPUT # Output file
-x EXTENSION # Hint file extension (for stdin)
-m MIME_TYPE # Hint MIME type
-c CHARSET # Hint charset (e.g., UTF-8)
-d # Use Azure Document Intelligence
-e ENDPOINT # Document Intelligence endpoint
--use-plugins # Enable 3rd-party plugins
--list-plugins # Show installed plugins
Examples
# Convert Word document
uvx --from "markitdown[all]" markitdown report.docx -o report.md
# Convert Excel spreadsheet
uvx --from "markitdown[all]" markitdown data.xlsx > data.md
# Convert PowerPoint presentation
uvx --from "markitdown[all]" markitdown slides.pptx -o slides.md
# Convert with file type hint (for stdin)
cat document | uvx --from "markitdown[all]" markitdown -x .pdf > output.md
# Use Azure Document Intelligence for better PDF extraction
uvx --from "markitdown[all]" markitdown scan.pdf -d -e "https://your-resource.cognitiveservices.azure.com/"
Notes
- Output preserves document structure: headings, tables, lists, links
- First run caches dependencies; subsequent runs are faster
- For complex PDFs with poor extraction, use
-dwith Azure Document Intelligence - If automatic charset detection picks the wrong encoding for a text file, pass
-c UTF-8(or the known charset)
常见问题
我需要先安装任何东西吗?
不需要。技能通过包运行器运行转换工具,因此无需单独安装。
支持哪些格式?
PDF、Word、PowerPoint、Excel、HTML、CSV、JSON、图片、音频、ZIP 文件、YouTube 链接和 EPUB。
它能从图片中读取文字吗?
可以。技能列出了图片的 OCR 识别和音频的转录功能。
详情
作者的原始描述
Markdown conversion: PDF, Office, HTML, data, OCR, audio, ZIP, YouTube.
repo: steipete/agent-scripts
热度
- GitHub 星标
- 7.4k
- 排名
- #13235
- 许可证
- MIT
- 更新时间
- 2026/10/30
评论
- …
同一仓库的更多技能
beeper
7.4k帮你的智能体搜索本地 Beeper 聊天记录,找到消息,并判断模糊线索指的是哪个聊天或联系人。
cloudflare-registrar
7.4k帮你的智能体查询 Cloudflare Registrar 的域名价格和可用性,并在确认后注册或列出域名。
codexbar
7.4k帮你的智能体查看你在 Codex、Claude、Kimi 等 AI 服务中还剩多少用量,包括限额、额度和重置时间。
create-cli
7.4k帮你的智能体设计命令行工具的命令、参数、帮助文本、输出和错误提示,让人和脚本都能顺利使用。