summarize
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTurn “things” (URLs, PDFs, Word docs, PowerPoints, HTML pages, text files, etc.) into Markdown so they can be inspected/quoted/processed like normal text.
markitdown将各类内容(URL、PDF、Word文档、PPT、HTML页面、文本文件等)转换为Markdown格式,以便像处理普通文本一样对其进行查看、引用或加工。
markitdownWhen to use
适用场景
Use this skill when you need to:
- pull down a web page as a document-like Markdown representation
- convert binary docs (PDF/DOCX/PPTX) into Markdown for analysis
- quickly produce a short summary of a long document before deeper work
在以下场景中可使用本Skill:
- 将网页转换为类文档的Markdown格式
- 将二进制文档(PDF/DOCX/PPTX)转换为Markdown以便分析
- 在深入处理长文档前快速生成简短摘要
Quick usage
快速使用指南
Convert a URL or file to Markdown
将URL或文件转换为Markdown
Run from this skill folder (the agent should here first):
cdbash
uvx markitdown <url-or-path>To write Markdown to a temp file (prints the path) use the wrapper:
bash
node to-markdown.mjs <url-or-path> --tmpTip: when summarizing, the script will always write the full converted Markdown to a temp file and will always print a final "Hint" line with the path (so you can open/inspect the full content).
.mdWrite Markdown to a specific file:
bash
uvx markitdown <url-or-path> > /tmp/doc.md请在本Skill所在文件夹中运行(Agent需先执行命令进入该文件夹):
cdbash
uvx markitdown <url-or-path>若要将Markdown内容写入临时文件(会打印文件路径),请使用封装脚本:
bash
node to-markdown.mjs <url-or-path> --tmp提示:生成摘要时,脚本始终会将完整的转换后Markdown内容写入临时文件,并且始终会在最后打印一条包含文件路径的“提示”行(方便你打开查看完整内容)。
.md将Markdown内容写入指定文件:
bash
uvx markitdown <url-or-path> > /tmp/doc.mdConvert + summarize with haiku-4-5 (pass context!)
结合claude-haiku-4-5进行转换+生成摘要(请传入上下文信息!)
Summaries are only useful when you provide what you want extracted and the audience/purpose.
bash
node to-markdown.mjs <url-or-path> --summary --prompt "Summarize focusing on X, for audience Y. Extract Z."Or:
bash
node to-markdown.mjs <url-or-path> --summary --prompt "Focus on security implications and action items."This will:
- convert to Markdown via
uvx markitdown - write the full Markdown to a temp file and print its path as a "Hint" line
.md - run (no-tools, no-session) to summarize using your extra prompt
pi --model claude-haiku-4-5
只有当你提供需要提取的内容以及受众/用途时,摘要才会有实际价值。
bash
node to-markdown.mjs <url-or-path> --summary --prompt "Summarize focusing on X, for audience Y. Extract Z."或者:
bash
node to-markdown.mjs <url-or-path> --summary --prompt "Focus on security implications and action items."执行以上命令后会完成以下操作:
- 通过将内容转换为Markdown格式
uvx markitdown - 将完整的Markdown内容写入临时文件,并在“提示”行中打印其路径
.md - 运行(无工具、无会话模式),结合你提供的额外提示生成摘要
pi --model claude-haiku-4-5