跳到正文
Skillpedia
调研6.8k · #13733

summarize

它能做什么

为你的智能体提供一个命令,用于总结链接、文档和录音,也可以只提取其文字。适合需要快速了解长篇资料要点的任何人。

适用场景

  • ✓当你想快速了解一篇长文章、报告或网页的简要内容时。
  • ✓当你需要某段视频或音频录音的文字稿时。
  • ✓当你只想提取文件中的文字,而不需要摘要的时候。

技能链接

https://github.com/steipete/summarize/blob/main/.agents/skills/summarize/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 AI

“请帮我总结这个 YouTube 视频和这份 PDF 报告,各给我一段简短摘要。”

每周 5 个新技能,1 分钟读完。

工作原理

该命令会读取链接或文件,提取其文字或文字稿,并按你选择的长度和语言写出摘要。如果你只想要文字,它也可以在提取后停止。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Summarize

Use the summarize CLI as the canonical interface. Prefer a released binary on PATH; inside this repository, use pnpm -s summarize for the current checkout.

Start

  1. Confirm the command and current contract:

    summarize --version
    summarize --help
    
  2. Inspect model/provider readiness when a summary needs an LLM:

    summarize status
    summarize status --json
    
  3. Run the narrowest workflow below. Quote URLs and paths. Add --timeout 2m for slow remote or media inputs.

Never print, request, or copy API-key values. summarize status reports availability without exposing secrets.

Summarize

Web page or remote document:

summarize "https://example.com/article"
summarize "https://example.com/report.pdf" --length short

Local file or stdin:

summarize "./report.pdf"
summarize "./recording.m4a"
printf '%s\n' "Long text to summarize" | summarize -

Use --plain for unrendered Markdown/text. Use --language, --length, --prompt, or --prompt-file only when the task requires an override. Use --cli codex, --cli claude, or another installed CLI provider when the user requests that provider or no direct API provider is configured.

Extract without a summary

Use --extract to stop after extraction or transcription:

summarize "https://example.com/article" --extract --format md
summarize "./report.pdf" --extract --format md
summarize "https://youtu.be/VIDEO_ID" --extract --format md

--extract does not support stdin. Extraction can still call configured transcription, OCR, Firecrawl, or Markdown services; it only skips the final summary call. --markdown-mode llm also invokes an LLM to reshape extracted text.

YouTube, audio, and video

Default transcript selection:

summarize "https://youtu.be/VIDEO_ID"
summarize "https://youtu.be/VIDEO_ID" --extract --format md --timestamps

Use --youtube web to require web captions or --youtube yt-dlp to require the download/transcription path. Keep auto unless the user needs a specific source.

Local or remote audio/video:

summarize "./interview.mp3" --extract
summarize "./interview.mp4" --extract --timestamps
summarize "./interview.mp3" --extract --diarize

--transcriber auto is the default. Use an explicit transcriber only when requested or diagnosing a provider. Diarization may require configured ElevenLabs or OpenAI access. Speaker identification is a separate opt-in step; do not infer identities without evidence.

For slides:

summarize "https://youtu.be/VIDEO_ID" --slides
summarize "./talk.mp4" --slides --extract

Slide extraction may require yt-dlp; OCR requires tesseract.

JSON for automation

Use JSON when another command or agent will parse the result:

summarize "https://example.com" --json --metrics off > result.json
jq -r '.summary // .extracted.content // empty' result.json

The stable top-level envelope contains input, env, extracted, prompt, llm, metrics, and summary. summary or llm can be null when extraction or a no-model path handles the input. In --extract --json mode, read extracted text from .extracted.content.

JSON stays on stdout. Progress, warnings, and finish metrics stay on stderr. Do not merge stderr into stdout before parsing. Use --metrics detailed only when the task needs usage details.

Configuration and dependencies

Precedence: CLI flags, process environment, ~/.summarize/config.json, built-in defaults. Prefer flags for one run; change config only when the user asks for a persistent default.

Useful diagnostics:

summarize status --verbose
summarize status --probe
summarize "INPUT" --verbose

Plain web summaries need no media tools. Media paths may use ffmpeg, yt-dlp, local Whisper/ONNX, or configured cloud transcription. Website fallback may use Firecrawl. Confirm the exact missing capability from the error before installing tools or changing config.

Inputs may be sent to the selected model, extraction, OCR, or transcription provider. For confidential material, confirm the approved provider or use an approved local path before running the command.

Verify

After every run:

  • Require exit status 0.
  • Require non-empty summary or extracted content.
  • For JSON, parse stdout with jq or another JSON parser.
  • For source-sensitive work, inspect extracted, llm, and stderr diagnostics rather than assuming the selected pa
常见问题

生成摘要需要 AI 模型吗?

生成摘要需要。该技能会检查已设置的模型或服务商。仅提取时,可以在写出摘要之前就停止。

它会显示我的 API 密钥吗?

不会。该技能说明,它从不打印或复制密钥的值。

它能读取本地文件吗?

可以。它支持本地文件、从其他命令通过管道传入的文本,以及远程网页。

详情

作者的原始描述

Summarize CLI: URLs, files, YouTube, transcripts, media, extraction, and JSON output.

repo: steipete/summarize

热度

GitHub 星标
6.8k
排名
#13733
许可证
MIT
更新时间
2026/10/28

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能