agentleFS
seed-forgeseed-forge/harness-ai-kit/skills/markitdown/SKILL.md

markitdown

Skill25 starsChanged 4 months agoApache-2.0View on GitHub

使用当前环境已安装的 MarkItDown,把 DOCX、PDF、PPTX、XLSX、图片、HTML、CSV 等文件稳定转换为 Markdown。用户提到“转成 md”“markitdown”“文档转 markdown”“把 docx/pdf/pptx/xlsx 变成 markdown”时使用。

  • Installs packages

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use scientific-slides and doc-coauthoring.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ZanderRussSkill

    scientific-slides

    Build slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and LaTeX Beamer.

    Also in 3 projects that use this

  • JetBrainsSkill

    doc-coauthoring

    Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.

    Also in 3 projects that use this

The file

Files
SKILL.md

MarkItDown

这是当前项目的本地化 markitdown 技能入口。

它基于上游全局 Skill,但这里补上了本环境下已经验证过的稳定用法,避免每次重复处理安装和命令路径问题。

Use This Skill For

  • 把 docx、pdf、pptx、xlsx 转成 markdown
  • 批量把资料转换成更适合 LLM 处理的文本格式
  • 在 Obsidian 项目里落地文档转写结果

Environment Notes

  • 当前环境已验证 python -m markitdown 可用
  • 建议优先调用本地包装命令:
    • .\.agents\tools\markitdown.cmd
  • 如果直接输入 markitdown 失败,通常是因为 Python 的 Scripts 目录不在 PATH

Stable Invocation

.\.agents\tools\markitdown.cmd input.docx -o output.md

或:

python -m markitdown input.docx -o output.md

Verified Dependency Strategy

本环境里不建议直接依赖:

pip install "markitdown[all]"

因为实测可能把主包错误回退到旧版本。

更稳的方式是:

python -m pip install --upgrade markitdown==0.1.5
python -m pip install azure-ai-documentintelligence azure-identity openpyxl pandas pydub python-pptx speechrecognition youtube-transcript-api openai pathvalidate puremagic mammoth olefile xlrd pdfminer-six pdfplumber

Workflow

  1. 确认源文件存在,并避免覆盖现有 .md
  2. 优先输出到新文件名,例如 *.markitdown.md
  3. 转换后抽查文件头部,确认不是空文件
  4. 如需给 Obsidian 使用,再做一轮 markdown 清洗

推荐输出格式

执行完毕后按以下结构输出:

状态:✅ 成功 / ⚠️ 部分成功 / ❌ 失败

<输入→输出文件/格式/路径><值/状态>说明

下一步:<可执行动作>

Practical Notes

  • DOCX 已在当前环境验证通过
  • PDF、PPTX、XLSX、音频、YouTube 转写依赖已补齐
  • Azure Document Intelligence 和 OpenAI 增强能力仍需各自凭证

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.