# Summarize

> Summarize URLs, local files, PDFs, images, audio, or YouTube links using the summarize CLI. 用户说"总结这个链接"、"摘要"、"summarize"时触发。

- Skill: `geegewu/summarize` (Agent Skill)
- Install (CLI): `npx skillmds@latest add geegewu/summarize`
- Raw SKILL.md: https://api.skillmd.com/api/skills/geegewu/summarize/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Research & Search
- Author: geegewu (https://skillmd.com/u/geegewu)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/geegewu/summarize

---


# Summarize

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

## Quick Start

```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/VIDEO_ID" --youtube auto
```

## Model + Keys

Set the API key for your chosen provider:
- Google: `GEMINI_API_KEY`
- OpenAI: `OPENAI_API_KEY`
- Anthropic: `ANTHROPIC_API_KEY`
- xAI: `XAI_API_KEY`

Default model is `google/gemini-3-flash-preview` if none is set.

## Useful Flags

- `--length short|medium|long|xl|xxl|<chars>` — summary length
- `--max-output-tokens <count>` — max tokens
- `--extract-only` — extract content without summarizing (URLs only)
- `--json` — machine readable output
- `--firecrawl auto|off|always` — fallback extraction for blocked sites
- `--youtube auto` — Apify fallback if `APIFY_API_TOKEN` set

## Config

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

```json
{ "model": "google/gemini-3-flash-preview" }
```

## Optional Services
- `FIRECRAWL_API_KEY` for blocked sites
- `APIFY_API_TOKEN` for YouTube fallback

