summarize
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSummarize
Summarize
Use the CLI as the canonical interface. Prefer a released binary on ; inside this repository, use for the current checkout.
summarizePATHpnpm -s summarize使用 CLI 作为标准交互接口。优先使用已发布并添加到 中的二进制文件;在本仓库内,可使用 调用当前检出版本的工具。
summarizePATHpnpm -s summarizeStart
快速开始
-
Confirm the command and current contract:bash
summarize --version summarize --help -
Inspect model/provider readiness when a summary needs an LLM:bash
summarize status summarize status --json -
Run the narrowest workflow below. Quote URLs and paths. Addfor slow remote or media inputs.
--timeout 2m
Never print, request, or copy API-key values. reports availability without exposing secrets.
summarize status-
确认命令及当前协议:bash
summarize --version summarize --help -
当摘要需要调用LLM时,检查模型/服务商就绪状态:bash
summarize status summarize status --json -
运行以下最贴合需求的工作流。网址和路径需加引号。对于远程或媒体类慢输入,添加参数。
--timeout 2m
切勿打印、请求或复制API密钥值。 会报告可用性但不会暴露敏感信息。
summarize statusSummarize
生成摘要
Web page or remote document:
bash
summarize "https://example.com/article"
summarize "https://example.com/report.pdf" --length shortLocal file or stdin:
bash
summarize "./report.pdf"
summarize "./recording.m4a"
printf '%s\n' "Long text to summarize" | summarize -Use for unrendered Markdown/text. Use , , , or only when the task requires an override. Use , , or another installed CLI provider when the user requests that provider or no direct API provider is configured.
--plain--language--length--prompt--prompt-file--cli codex--cli claude网页或远程文档:
bash
summarize "https://example.com/article"
summarize "https://example.com/report.pdf" --length short本地文件或标准输入:
bash
summarize "./report.pdf"
summarize "./recording.m4a"
printf '%s\n' "需要摘要的长文本" | summarize -使用 参数获取未渲染的Markdown/纯文本内容。仅当任务需要覆盖默认设置时,才使用 、、 或 参数。当用户指定服务商或未配置直接API服务商时,使用 、 或其他已安装的CLI服务商。
--plain--language--length--prompt--prompt-file--cli codex--cli claudeExtract without a summary
仅提取内容(不生成摘要)
Use to stop after extraction or transcription:
--extractbash
summarize "https://example.com/article" --extract --format md
summarize "./report.pdf" --extract --format md
summarize "https://youtu.be/VIDEO_ID" --extract --format md--extract--markdown-mode llm使用 参数在完成提取或转录后停止操作:
--extractbash
summarize "https://example.com/article" --extract --format md
summarize "./report.pdf" --extract --format md
summarize "https://youtu.be/VIDEO_ID" --extract --format md--extract--markdown-mode llmYouTube, audio, and video
YouTube、音频与视频处理
Default transcript selection:
bash
summarize "https://youtu.be/VIDEO_ID"
summarize "https://youtu.be/VIDEO_ID" --extract --format md --timestampsUse to require web captions or to require the download/transcription path. Keep unless the user needs a specific source.
--youtube web--youtube yt-dlpautoLocal or remote audio/video:
bash
summarize "./interview.mp3" --extract
summarize "./interview.mp4" --extract --timestamps
summarize "./interview.mp3" --extract --diarize--transcriber autoFor slides:
bash
summarize "https://youtu.be/VIDEO_ID" --slides
summarize "./talk.mp4" --slides --extractSlide extraction may require ; OCR requires .
yt-dlptesseract默认转录内容选择:
bash
summarize "https://youtu.be/VIDEO_ID"
summarize "https://youtu.be/VIDEO_ID" --extract --format md --timestamps使用 参数强制使用网页字幕,或使用 参数强制采用下载/转录路径。除非用户需要特定来源,否则保持默认的 选项。
--youtube web--youtube yt-dlpauto本地或远程音频/视频:
bash
summarize "./interview.mp3" --extract
summarize "./interview.mp4" --extract --timestamps
summarize "./interview.mp3" --extract --diarize默认使用 。仅当用户要求或排查服务商问题时,才指定明确的转录工具。说话人分离(Diarization)可能需要配置ElevenLabs或OpenAI权限。说话人识别是单独的可选步骤;若无证据,请勿推断身份。
--transcriber auto幻灯片提取:
bash
summarize "https://youtu.be/VIDEO_ID" --slides
summarize "./talk.mp4" --slides --extract幻灯片提取可能需要 ;OCR功能需要 。
yt-dlptesseractJSON for automation
用于自动化的JSON输出
Use JSON when another command or agent will parse the result:
bash
summarize "https://example.com" --json --metrics off > result.json
jq -r '.summary // .extracted.content // empty' result.jsonThe stable top-level envelope contains , , , , , , and . or can be when extraction or a no-model path handles the input. In mode, read extracted text from .
inputenvextractedpromptllmmetricssummarysummaryllmnull--extract --json.extracted.contentJSON stays on stdout. Progress, warnings, and finish metrics stay on stderr. Do not merge stderr into stdout before parsing. Use only when the task needs usage details.
--metrics detailed当其他命令或Agent需要解析结果时,使用JSON格式:
bash
summarize "https://example.com" --json --metrics off > result.json
jq -r '.summary // .extracted.content // empty' result.json稳定的顶层结构包含 、、、、、 和 。当输入由提取或无模型路径处理时, 或 可能为 。在 模式下,从 读取提取的文本。
inputenvextractedpromptllmmetricssummarysummaryllmnull--extract --json.extracted.contentJSON内容输出到标准输出(stdout)。进度、警告和完成指标输出到标准错误(stderr)。解析前请勿将stderr合并到stdout。仅当任务需要使用详情时,才使用 参数。
--metrics detailedConfiguration and dependencies
配置与依赖
Precedence: CLI flags, process environment, , built-in defaults. Prefer flags for one run; change config only when the user asks for a persistent default.
~/.summarize/config.jsonUseful diagnostics:
bash
summarize status --verbose
summarize status --probe
summarize "INPUT" --verbosePlain web summaries need no media tools. Media paths may use , , 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.
ffmpegyt-dlpInputs 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.
优先级:CLI参数 > 进程环境变量 > > 内置默认值。单次运行优先使用参数;仅当用户要求设置持久默认值时,才修改配置。
~/.summarize/config.json实用诊断命令:
bash
summarize status --verbose
summarize status --probe
summarize "INPUT" --verbose纯网页摘要无需媒体工具。媒体处理可能会使用 、、本地Whisper/ONNX或已配置的云转录服务。网站内容提取的备用方案可能使用Firecrawl。在安装工具或修改配置前,先从错误信息中确认具体缺失的功能。
ffmpegyt-dlp输入内容可能会发送至所选的模型、提取、OCR或转录服务商。对于机密内容,运行命令前需确认已获批准的服务商或使用已获批准的本地处理路径。
Verify
结果验证
After every run:
- Require exit status .
0 - Require non-empty summary or extracted content.
- For JSON, parse stdout with or another JSON parser.
jq - For source-sensitive work, inspect ,
extracted, and stderr diagnostics rather than assuming the selected path.llm - Re-run the exact final command after changing provider, config, or flags.
For current option details, run and read the repository documentation:
summarize --help- Quickstart
- Main command
- Configuration
- YouTube
- Media
- Extraction
每次运行后:
- 确保退出状态为 。
0 - 确保摘要或提取内容非空。
- 对于JSON格式,使用 或其他JSON解析器解析stdout内容。
jq - 对于对来源敏感的工作,检查 、
extracted和stderr诊断信息,而非假设所选处理路径正确。llm - 修改服务商、配置或参数后,重新运行最终确定的命令。
如需了解当前选项的详细信息,运行 并查阅仓库文档:
summarize --help- 快速入门
- 主命令
- 配置
- YouTube处理
- 媒体处理
- 仅提取内容
Ownership
维护说明
This file is the canonical agent workflow for the Summarize product. Keep generic agent workflows in ; keep Summarize CLI behavior here. Downstream integrations should link to this file at a released tag or pinned commit and retain only their packaging or integration-specific notes. Do not maintain a second broad command guide downstream.
openclaw/agent-skills本文件是Summarize产品的标准Agent工作流。通用Agent工作流请存放于 ;Summarize CLI的行为说明请保留于此。下游集成应链接至本文件的已发布标签或固定提交,仅保留其打包或集成相关的特定说明。请勿在下游维护第二份通用命令指南。
openclaw/agent-skills