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
CODEBLOCK0
YouTube: summary vs transcript
Best-effort transcript (URLs only):
CODEBLOCK1
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: INLINECODE1
- Anthropic: INLINECODE2
- xAI: INLINECODE3
- Google:
GEMINI_API_KEY (aliases: GOOGLE_GENERATIVE_AI_API_KEY, GOOGLE_API_KEY)
Default model is google/gemini-3-flash-preview if none is set.
Useful flags
- - INLINECODE8
- INLINECODE9
- INLINECODE10 (URLs only)
- INLINECODE11 (machine readable)
- INLINECODE12 (fallback extraction)
- INLINECODE13 (Apify fallback if
APIFY_API_TOKEN set)
Config
Optional config file: INLINECODE15
CODEBLOCK2
Optional services:
- -
FIRECRAWL_API_KEY for blocked sites - INLINECODE17 for YouTube fallback
摘要
用于对URL、本地文件和YouTube链接进行摘要的快速命令行工具。
使用时机(触发短语)
当用户提出以下任何请求时,立即使用此技能:
- - “使用 summarize.sh”
- “这个链接/视频是关于什么的?”
- “摘要这个URL/文章”
- “转写这个YouTube/视频”(尽力提取转录内容;无需 yt-dlp)
快速开始
bash
summarize https://example.com --model google/gemini-3-flash-preview
summarize /path/to/file.pdf --model google/gemini-3-flash-preview
summarize https://youtu.be/dQw4w9WgXcQ --youtube auto
YouTube:摘要 vs 转录
尽力提取转录(仅限URL):
bash
summarize https://youtu.be/dQw4w9WgXcQ --youtube auto --extract-only
如果用户要求转录但内容过于庞大,先返回精简摘要,然后询问需要展开的具体章节或时间范围。
模型 + 密钥
为您选择的提供商设置API密钥:
- - OpenAI:OPENAIAPIKEY
- Anthropic:ANTHROPICAPIKEY
- xAI:XAIAPIKEY
- Google:GEMINIAPIKEY(别名:GOOGLEGENERATIVEAIAPIKEY、GOOGLEAPIKEY)
若未设置,默认模型为 google/gemini-3-flash-preview。
常用参数
- - --length short|medium|long|xl|xxl|<字符数>
- --max-output-tokens <数量>
- --extract-only(仅限URL)
- --json(机器可读格式)
- --firecrawl auto|off|always(备用提取方式)
- --youtube auto(若设置 APIFYAPITOKEN 则使用Apify备用方案)
配置
可选配置文件:~/.summarize/config.json
json
{ model: openai/gpt-5.2 }
可选服务:
- - FIRECRAWLAPIKEY 用于被屏蔽的网站
- APIFYAPITOKEN 用于YouTube备用方案