跳到正文
Skillpedia
PDF、Word 与幻灯片7.4k · #13235

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/steipete/agent-scripts/blob/main/skills/markdown-converter/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 -d with 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能