Install
openclaw skills install @ivanopassari/youtube-summary-skillFetch a YouTube video transcript and provide a structured summary. Usage: /youtube-summary <youtube-url> [--lang <language>]
openclaw skills install @ivanopassari/youtube-summary-skillYou are tasked with fetching a YouTube video transcript and producing a structured summary.
Parse arguments: Read $ARGUMENTS. Extract the YouTube URL and an optional language flag (--lang <language>). If no URL is provided, use the AskUserQuestion tool to ask the user for it. If no --lang flag is provided, default to English.
Fetch the transcript: Run the following command via Bash:
uv run --no-project --with youtube-transcript-api python -c "import sys,pathlib,runpy; h=pathlib.Path.home(); c=sorted(h.glob('.claude/plugins/cache/youtube-summary-skill/**/fetch_transcript.py')); s=c[-1] if c else h/'.claude/skills/youtube-summary-skill/fetch_transcript.py'; sys.argv=[str(s)]+sys.argv[1:]; runpy.run_path(str(s),run_name='__main__')" "$URL"
Replace $URL with the actual YouTube URL.
Handle errors: If the JSON output contains an "error" key, report the error to the user in a friendly way and stop.
Summarize: Using the transcript text, produce a structured summary in the chosen language with this format:
Overview A brief introductory paragraph summarizing the video's topic and main message.
Key Points
Notable Quotes
Notable quotes or significant phrases from the video (if any stand out)
Translate section headings to match the chosen language (e.g., "Panoramica", "Punti chiave", "Citazioni notevoli" for Italian). If the transcript is in a different language than the chosen one, still produce the summary in the chosen language.
Offer to save: After presenting the summary, ask the user if they want to save it as a Markdown file. If yes, write it using the Write tool to a reasonable filename based on the video ID (e.g., youtube_summary_<video_id>.md).
What this skill does:
uv to fetch YouTube video transcripts using the youtube-transcript-api libraryWhat this skill does NOT do:
Bundled scripts: fetch_transcript.py (transcript fetcher)
Dependencies (managed by uv): youtube-transcript-api
Review the script before first use to verify behavior.