技能圖譜SKILLSGROVE
技能圖譜/短影片與自媒體/jholhewres/devclaw-skills/summarize

summarize

安裝

$npx skills add https://github.com/jholhewres/devclaw-skills --skill summarize
$git clone --depth 1 https://github.com/jholhewres/devclaw-skills.git /tmp/devclaw-skills && mkdir -p ~/.claude/skills && cp -r /tmp/devclaw-skills/skills/summarize ~/.claude/skills/summarize
請幫我安裝這個 Agent Skill:https://github.com/jholhewres/devclaw-skills/tree/0177c36eb6dcdfe3f891fd332ef538a3d84cc693/skills/summarize ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MITSummarize URLs, articles, YouTube videos, podcasts, and files
以下 SKILL.md 內容轉載自 jholhewres/devclaw-skills(提交 0177c36),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 DevClaw 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

Summarize

You can summarize content from various sources: web pages, articles, YouTube videos, and files.

Setup

yt-dlp (for YouTube transcripts):

  • macOS: brew install yt-dlp
  • Ubuntu: sudo apt install yt-dlp (or pip install yt-dlp)

pdftotext (for PDF extraction):

  • macOS: brew install poppler
  • Ubuntu: sudo apt install poppler-utils

readable (optional, better web extraction): npm install -g @mozilla/readability-cli

Summarizing a web page

  1. Fetch the page content:
# Method 1: curl + HTML strip (works everywhere)
curl -sL "URL" | sed 's/<script[^>]*>.*<\/script>//g' | sed 's/<style[^>]*>.*<\/style>//g' | sed 's/<[^>]*>//g' | sed '/^[[:space:]]*$/d' | head -500

# Method 2: readability-cli (better extraction, if installed)
readable "URL" 2>/dev/null | head -500
  1. Then summarize the extracted text using your reasoning capabilities.

YouTube video transcripts

# Get auto-generated subtitles (requires yt-dlp)
yt-dlp --write-auto-subs --skip-download --sub-lang pt,en -o "/tmp/%(id)s" "VIDEO_URL" 2>/dev/null
cat /tmp/*.vtt 2>/dev/null | grep -v "^[0-9]" | grep -v "^$" | grep -v "WEBVTT" | grep -v "^NOTE" | grep -v "\-\->" | sort -u

# Alternative: get video info first
yt-dlp --print title --print duration_string --print description "VIDEO_URL" 2>/dev/null

PDF files

# Extract text from PDF (requires pdftotext)
pdftotext /path/to/file.pdf - | head -500

# Alternative with python
python3 -c "
import subprocess
text = subprocess.check_output(['pdftotext', '/path/to/file.pdf', '-']).decode()
print(text[:5000])
"

Summarization guidelines

When summarizing, follow these best practices:

  1. Brief summary (default): 3-5 bullet points with the key takeaways.
  2. Detailed summary: Structured with sections, preserving important details.
  3. TL;DR: One sentence capturing the essence.

Always:

  • Preserve key facts, names, dates, and numbers.
  • Maintain the original language unless the user asks otherwise.
  • For technical content, keep important code snippets and terminology.
  • Mention the source URL/title in your summary.
  • Ask the user what level of detail they want if not specified.

Tips

  • Combine with web-search to find content, then summarize it.
  • For very long content, break into sections and summarize each.
  • Use head -N or tail -N to limit input when content is too large.
  • If yt-dlp is not installed: pip install yt-dlp or brew install yt-dlp.

Triggers

summarize, summary, transcribe, transcript, what does this video say, read and summarize, tl;dr, resumir, resumo, transcrever

檢視許可證全文(MIT)
MIT License

Copyright (c) 2026 DevClaw

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.