Summarize XHS
内容摘要工具 - 支持 URL/PDF/图片/音频/YouTube
Latest: v1.0.0
- Initial release of the Summarize skill, a fast CLI tool for summarizing URLs, local files, and YouTube links.
- Supports multiple content types: URL, PDF, image, audio, and YouTube.
- Allows model selection and API configuration, with support for OpenAI, Anthropic, xAI, and Google (Gemini).
- Provides flexible output options, including summary length, JSON formatting, and extraction modes.
- Includes optional config file support and fallback services for web and YouTube extraction.
- Default model set to google/gemini-3-flash-preview if not specified.
Summarize
Fast CLI to summarize URLs, local files, and YouTube links.
Quick start
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
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 google/gemini-3-flash-preview if none is set.
Useful flags
--length short|medium|long|xl|xxl|<chars>--max-output-tokens <count>--extract-only(URLs only)--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
