summarize

GitHub

通过CLI工具对URL、本地文件及YouTube视频进行内容摘要提取或文字转录,支持多模型配置与长度控制。

skills/summarize/SKILL.md swarmclawai/swarmclaw

Trigger Scenarios

用户要求总结链接或文章 用户要求转录YouTube视频

Install

npx skills add swarmclawai/swarmclaw --skill summarize -g -y
More Options

Use without installing

npx skills use swarmclawai/swarmclaw@summarize

指定 Agent (Claude Code)

npx skills add swarmclawai/swarmclaw --skill summarize -a claude-code -g -y

安装 repo 全部 skill

npx skills add swarmclawai/swarmclaw --all -g -y

预览 repo 内 skill

npx skills add swarmclawai/swarmclaw --list

SKILL.md

Frontmatter
{
    "name": "summarize",
    "metadata": {
        "openclaw": {
            "emoji": "🧾",
            "install": [
                {
                    "id": "brew",
                    "bins": [
                        "summarize"
                    ],
                    "kind": "brew",
                    "label": "Install summarize (brew)",
                    "formula": "steipete\/tap\/summarize"
                }
            ],
            "requires": {
                "bins": [
                    "summarize"
                ]
            }
        }
    },
    "description": "Summarize or extract text\/transcripts from URLs, podcasts, YouTube videos, and local files using the summarize CLI. Use when asked to summarize a link, article, video, or file, or to transcribe a YouTube video."
}

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

YouTube: Summary vs Transcript

Best-effort transcript extraction (URLs only):

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

If the user asked for a transcript but it's very long, return a tight summary first, then ask which section or 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 google/gemini-3-flash-preview if none is set.

Useful Flags

  • --length short|medium|long|xl|xxl|<chars> — control summary length
  • --max-output-tokens <count> — hard token limit
  • --extract-only — extract raw text 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 is set

Config

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

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

Optional services:

  • FIRECRAWL_API_KEY for blocked sites
  • APIFY_API_TOKEN for YouTube fallback

Version History

  • ed38ba5 Current 2026-07-24 16:56

Same Skill Collection

skills/coding-agent/SKILL.md
skills/github/SKILL.md
skills/google-workspace/SKILL.md
skills/nano-banana-pro/SKILL.md
skills/nano-pdf/SKILL.md
skills/openai-image-gen/SKILL.md
skills/resourceful-problem-solving/SKILL.md
skills/skill-creator/SKILL.md
skills/swarmclaw/SKILL.md
skills/swarmvault/SKILL.md
swarmclaw/SKILL.md

Metadata

Files
0
Version
ed38ba5
Hash
5cdb3383
Indexed
2026-07-24 16:56

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-18 07:50
浙ICP备14020137号-1 $mapa de visitantes$