出海助手-智能摘要 / Summarize
> 本技能改造自开源技能 summarize(来源:openclaw/openclaw,openclaw 开源技能生态)。已完整保留原始运行文件(scripts/references/assets 与 LICENSE),并新增中文出海使用说明。原始英文说明见文末「English (Original)」与同目录 SKILL.original.md。
功能说明 / Functional Overview
轻量命令行工具,把网址、本地文件、YouTube 链接一键总结成摘要。也能尽力提取视频字幕(无需 yt-dlp)。
适用场景 / Use Cases
- 「这个链接 / 文章 / 视频讲的是什么?」快速了解
- 把长文 / 长视频压成短摘要
使用方法 / How to Use
- 网页:
summarize "https://example.com" - 本地文件:
summarize "/path/to/file.pdf" - YouTube:
summarize "https://youtu.be/xxx" --youtube auto - 提取字幕:
... --youtube auto --extract(过长则先给紧凑摘要,再问要展开哪段) - 长度:
--length short|medium|long|xl|xxl|<字符数>;--json出机器可读结果
示例 / Examples
summarize "https://blog.example.com/post" --length medium
限制说明 / Limitations
- 需配置所选服务商的 API Key(
OPENAI_API_KEY/ANTHROPIC_API_KEY/XAI_API_KEY/GEMINI_API_KEY),默认模型auto。 - 被墙站点可配
FIRECRAWL_API_KEY;YouTube 兜底可配APIFY_API_TOKEN。 - 可选配置文件
~/.summarize/config.json(如{"model":"openai/gpt-5.2"})。
English (Original) / 英文原文(完整保留)
> The section below is the original skill definition, preserved verbatim for traceability and full functionality.
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-dlpneeded)
Quick start
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):
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 ifAPIFY_API_TOKENset)
Config
Optional config file: ~/.summarize/config.json
{ "model": "openai/gpt-5.2" }
Optional services:
FIRECRAWL_API_KEYfor blocked sitesAPIFY_API_TOKENfor YouTube fallback