summarize
できること
リンク、文書、録音を要約したり、テキストだけを抽出したりできるコマンドをエージェントに与えます。長い資料の要点をすばやく知りたい人向けです。
使う場面
- ✓長い記事、報告書、Webページの短い要約がほしいとき。
- ✓動画や音声録音の文字起こしやテキストが必要なとき。
- ✓要約はせず、ファイルからテキストだけを取り出したいとき。
スキルのリンク
https://github.com/steipete/summarize/blob/main/.agents/skills/summarize/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このYouTube動画と、このPDFの報告書を、短い要約にしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
コマンドは、リンクやファイルを読み、テキストや文字起こしを取り出して、選んだ長さと言語で要約を書きます。テキストの抽出だけがほしい場合は、抽出のあとで止めることもできます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Summarize
Use the summarize CLI as the canonical interface. Prefer a released binary on PATH; inside this repository, use pnpm -s summarize for the current checkout.
Start
Confirm the command and current contract:
summarize --version summarize --helpInspect model/provider readiness when a summary needs an LLM:
summarize status summarize status --jsonRun the narrowest workflow below. Quote URLs and paths. Add
--timeout 2mfor slow remote or media inputs.
Never print, request, or copy API-key values. summarize status reports availability without exposing secrets.
Summarize
Web page or remote document:
summarize "https://example.com/article"
summarize "https://example.com/report.pdf" --length short
Local file or stdin:
summarize "./report.pdf"
summarize "./recording.m4a"
printf '%s\n' "Long text to summarize" | summarize -
Use --plain for unrendered Markdown/text. Use --language, --length, --prompt, or --prompt-file only when the task requires an override. Use --cli codex, --cli claude, or another installed CLI provider when the user requests that provider or no direct API provider is configured.
Extract without a summary
Use --extract to stop after extraction or transcription:
summarize "https://example.com/article" --extract --format md
summarize "./report.pdf" --extract --format md
summarize "https://youtu.be/VIDEO_ID" --extract --format md
--extract does not support stdin. Extraction can still call configured transcription, OCR, Firecrawl, or Markdown services; it only skips the final summary call. --markdown-mode llm also invokes an LLM to reshape extracted text.
YouTube, audio, and video
Default transcript selection:
summarize "https://youtu.be/VIDEO_ID"
summarize "https://youtu.be/VIDEO_ID" --extract --format md --timestamps
Use --youtube web to require web captions or --youtube yt-dlp to require the download/transcription path. Keep auto unless the user needs a specific source.
Local or remote audio/video:
summarize "./interview.mp3" --extract
summarize "./interview.mp4" --extract --timestamps
summarize "./interview.mp3" --extract --diarize
--transcriber auto is the default. Use an explicit transcriber only when requested or diagnosing a provider. Diarization may require configured ElevenLabs or OpenAI access. Speaker identification is a separate opt-in step; do not infer identities without evidence.
For slides:
summarize "https://youtu.be/VIDEO_ID" --slides
summarize "./talk.mp4" --slides --extract
Slide extraction may require yt-dlp; OCR requires tesseract.
JSON for automation
Use JSON when another command or agent will parse the result:
summarize "https://example.com" --json --metrics off > result.json
jq -r '.summary // .extracted.content // empty' result.json
The stable top-level envelope contains input, env, extracted, prompt, llm, metrics, and summary. summary or llm can be null when extraction or a no-model path handles the input. In --extract --json mode, read extracted text from .extracted.content.
JSON stays on stdout. Progress, warnings, and finish metrics stay on stderr. Do not merge stderr into stdout before parsing. Use --metrics detailed only when the task needs usage details.
Configuration and dependencies
Precedence: CLI flags, process environment, ~/.summarize/config.json, built-in defaults. Prefer flags for one run; change config only when the user asks for a persistent default.
Useful diagnostics:
summarize status --verbose
summarize status --probe
summarize "INPUT" --verbose
Plain web summaries need no media tools. Media paths may use ffmpeg, yt-dlp, local Whisper/ONNX, or configured cloud transcription. Website fallback may use Firecrawl. Confirm the exact missing capability from the error before installing tools or changing config.
Inputs may be sent to the selected model, extraction, OCR, or transcription provider. For confidential material, confirm the approved provider or use an approved local path before running the command.
Verify
After every run:
- Require exit status
0. - Require non-empty summary or extracted content.
- For JSON, parse stdout with
jqor another JSON parser. - For source-sensitive work, inspect
extracted,llm, and stderr diagnostics rather than assuming the selected pa
よくある質問
要約にはAIモデルが必要ですか?
要約には必要です。スキルは、どのモデルや提供者が設定されているかを確認します。抽出だけなら、要約を書く前に止まります。
APIキーは表示されますか?
いいえ。スキルは、キーの値を表示したりコピーしたりしないと明記しています。
ローカルファイルも読めますか?
はい。ローカルファイル、ほかのコマンドから渡されたテキスト、リモートのWebページを扱えます。
詳細
作者による元の説明
Summarize CLI: URLs, files, YouTube, transcripts, media, extraction, and JSON output.
repo: steipete/summarize
人気
- GitHubのスター
- 6.8k
- ランキング
- #13733
- ライセンス
- MIT
- 更新日
- 2026/10/28
コメント
- …