Summarize

openclaw/openclaw/skills/summarize

作者 openclawb0c330d27df4a528f65185cc3e509284d1b218d9无许可证394K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库今天更新

Summarize or transcribe URLs, YouTube/videos, podcasts, articles, transcripts, PDFs, and local files.

AI 生成的概览

通过命令行工具对网址、YouTube 视频、播客、文章、转录文本、PDF 和本地文件进行摘要或转录。

功能
该技能封装 summarize 命令行工具,可从网址、YouTube 链接、本地文件和 PDF 获取内容,并生成摘要或提取转录文本。它支持长度控制、机器可读的 JSON 输出以及仅提取转录的模式。摘要由所选的大语言模型服务商生成,并可选配针对被屏蔽网站和 YouTube 的备用服务。
适用场景
当用户询问某个链接或视频讲了什么、希望摘要某篇文章或网址,或需要提取 YouTube 或视频转录文本时使用。它也适合对本地文件和 PDF 进行摘要。
运行要求
需要安装 summarize 可执行文件(例如通过 Homebrew),并配置任一服务商的 API 密钥:OPENAI_API_KEY、ANTHROPIC_API_KEY、XAI_API_KEY 或 GEMINI_API_KEY。处理网址和视频需要网络访问;可选的 FIRECRAWL_API_KEY 和 APIFY_API_TOKEN 可启用备用提取。该技能不附带脚本。

Summarize

Fast CLI to summarize URLs, local files, and YouTube links.

When to use (trigger phrases)

Use this skill immediately when the user asks any of:

  • "use summarize.sh"
  • "what's this link/video about?"
  • "summarize this URL/article"
  • "transcribe this YouTube/video" (best-effort transcript extraction; no yt-dlp needed)

Quick start

bash
summarize "https://example.com"summarize "/path/to/file.pdf"summarize "https://youtu.be/dQw4w9WgXcQ" --youtube auto

YouTube: summary vs transcript

Best-effort transcript (URLs only):

bash
summarize "https://youtu.be/dQw4w9WgXcQ" --youtube auto --extract

If the user asked for a transcript but it's huge, return a tight summary first, then ask which section/time range to expand.

Model + keys

Set the API key for your chosen provider:

  • OpenAI: OPENAI_API_KEY
  • Anthropic: ANTHROPIC_API_KEY
  • xAI: XAI_API_KEY
  • Google: GEMINI_API_KEY (aliases: GOOGLE_GENERATIVE_AI_API_KEY, GOOGLE_API_KEY)

Default model is auto; config may choose the provider/model.

Useful flags

  • --length short|medium|long|xl|xxl|<chars>
  • --max-output-tokens <count>
  • --extract (print extracted content, no LLM summary)
  • --json (machine readable)
  • --firecrawl auto|off|always (fallback extraction)
  • --youtube auto (Apify fallback if APIFY_API_TOKEN set)

Config

Optional config file: ~/.summarize/config.json

json
{ "model": "openai/gpt-5.2" }

Optional services:

  • FIRECRAWL_API_KEY for blocked sites
  • APIFY_API_TOKEN for YouTube fallback

来源与署名

来源:openclaw/openclaw位于skills/summarize提交b0c330d

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

在 README 中添加徽章

向读者展示该技能已收录于 SourceWeft,徽章链接到本页。

“Listed on SourceWeft”徽章预览
[![Listed on SourceWeft](https://sourceweft.com/badge/skills/gh-openclaw-openclaw-summarize-skills-summarize-9b0ad5e21382acca.svg)](https://sourceweft.com/skills/gh-openclaw-openclaw-summarize-skills-summarize-9b0ad5e21382acca?utm_source=readme&utm_medium=badge)

举报或申请下架