Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

youtube-to-slidesYouTube 到幻灯片

Agent Skill

youtube-to-slides 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

233

周安装

10

GitHub Stars

3

下载量

82
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:youtube-to-slides(YouTube 到幻灯片)
来源仓库:https://github.com/ambershen/youtube-to-slides
仓库路径:skills/youtube-to-slides
安装命令:
npx skills add https://github.com/ambershen/youtube-to-slides --skill youtube-to-slides
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ambershen/youtube-to-slides --skill youtube-to-slides

简介

把 YouTube 视频内容转化为演示文稿。

  • 适合教学、汇报或会议材料准备。
  • 通过 npx skills add 命令从指定仓库安装。
  • 应确保关键信息完整传达。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • youtube-to-slides 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

youtube-to-slides

Convert YouTube videos into beautiful infographic slide decks.

Natural Language Examples

Users can invoke this skill with natural language. Here are examples of what they might say and how to handle each:

Setup and troubleshooting:

  • "Set up youtube-to-slides" → Run setup.sh
  • "Check if youtube-to-slides is ready" → Run check-env.sh
  • "I need to configure my API keys" → Guide to .env setup
  • "It's not working" → Run check-env.sh, read diagnostics, consult references/TROUBLESHOOTING.md

Generate slides:

Choose a style:

  • "Use the davinci style" → --style davinci
  • "Make it look like a magazine" → --style magazine
  • "Comic book style please" → --style comic
  • "Geek / bulletin board style" → --style geek
  • "Chalkboard style" → --style chalkboard
  • "Collage / dreamcore style" → --style collage
  • "Newspaper style" → --style newspaper

Control slide count:

  • "Just give me 4 slides" → --max-sections 4
  • "Make as many slides as needed" → --max-sections 0

Preview without generating images:

  • "Do a dry run first"
  • "Just show me the prompts, don't generate images yet"

Argument Parsing

Parse $ARGUMENTS to extract:

  • url (required) — YouTube video URL. Supports formats: https://youtu.be/ID, https://www.youtube.com/watch?v=ID, https://youtube.com/watch?v=ID
  • --style (optional, default: davinci) — One of: davinci, magazine, comic, geek, chalkboard, collage, newspaper
  • --max-sections (optional, default: 8) — Maximum number of slide sections to generate. Use 0 for unlimited.
  • --dry-run (optional) — Show prompts without generating images
  • --ar (optional, default: 16:9) — Aspect ratio: 16:9, 4:3, or 1:1

If no URL is provided, ask the user for one. If the URL looks invalid (not a YouTube URL), tell the user and ask for a valid one.

For style guidance, read references/STYLES.md in this skill directory.

Execution Steps

Step 1: Pre-flight Check

Run the environment check script:

bash "$SKILL_DIR/scripts/check-env.sh"
  • If it exits 0, proceed to Step 2.
  • If it exits non-zero, read its output for diagnostics:

- Missing virtual environment or package — Run the setup script: bash "$SKILL_DIR/scripts/setup.sh" Then re-run check-env.sh to confirm. - Missing API key — Tell the user: 1. Copy the example env file: cp "$SKILL_DIR/.env.example" "$SKILL_DIR/.env" 2. Add their Gemini API key (get one free at https://aistudio.google.com/apikey) 3. See references/TROUBLESHOOTING.md for detailed setup steps. - Note: The .env file is gitignored and stays local. The key is only sent to the Google Gemini API over HTTPS and is never logged or transmitted elsewhere. - After fixing, re-run check-env.sh to confirm everything passes.

If the user just asks to "set up" or "install" the skill, run both setup.sh and check-env.sh, then report the result.

Step 2: Run the Pipeline

Build the command from parsed arguments and run:

bash "$SKILL_DIR/scripts/run.sh" "<url>" --style <style> --max-sections <max_sections> --ar <ar>

Add --dry-run flag if requested.

This takes 3-5 minutes for a full run. Inform the user that generation is in progress and what style/settings are being used.

Step 3: Present Results

After successful completion:

  1. Determine the video ID from the URL (the 11-character ID, e.g. twzLDx9iers from https://youtu.be/twzLDx9iers)
  2. Read output/<video_id>/metadata.json to get the list of generated slides
  3. Present a summary to the user:

- Video title and channel - Style used - Number of slides generated - List each slide with its title and file path

  1. Show the user how to open the slides: open output/<video_id>/

Error Handling

If the pipeline fails, check output for common errors and consult references/TROUBLESHOOTING.md:

  • 429 Rate Limit — Gemini rate limit hit. The tool has built-in retry logic. If it still fails, suggest waiting 60 seconds and retrying.
  • No transcript available — The video may not have captions. Inform the user.
  • Invalid URL — Ask the user for a valid YouTube URL.
  • API key errors — Guide user to set up their .env file with valid keys.

Security

  • API key (Gemini only) is stored in a local .env file that is gitignored. It is only sent to the Google Gemini API over HTTPS for AI summarization and image generation. The key is never logged, printed, or transmitted to any other endpoint.
  • Video metadata is fetched via yt-dlp, which scrapes public YouTube pages directly — no API key required.
  • Scripts (setup.sh, check-env.sh, run.sh) are local shell scripts within this skill directory. They do not download or execute remote code. setup.sh creates a Python virtual environment and installs the local package. run.sh loads the .env file and invokes the yt-slides CLI. check-env.sh verifies the environment is configured.
  • Network calls are limited to: Google Gemini API (AI summarization and image generation), YouTube (video metadata via yt-dlp, transcripts), and PyPI (only during setup.sh for dependency installation).

Variable Reference

  • $SKILL_DIR — Absolute path to this skill's directory (skills/youtube-to-slides/)
  • $ARGUMENTS — Raw argument string passed by the user

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.68%
按下载量换算29

Claude

28.74%
按下载量换算24

Cursor

19.78%
按下载量换算16

Gemini CLI

9.57%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills