Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

youtube-toolsYouTube 工具

Agent Skill

youtube-tools 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,540

周安装

195

GitHub Stars

11

下载量

1,591
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/casper-studios/casper-marketplace --skill youtube-tools

简介

提供 YouTube 内容创作与管理的综合工具集。

  • 适合多任务协同与工作流整合。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 通过 npx skills add 命令安装。
  • 需梳理各子技能依赖关系与冲突风险。
  • youtube-tools 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

YouTube Tools (yt-dlp)

Overview

Free, local YouTube operations using yt-dlp. No API keys required, no per-video costs. Works offline after installation.

When to Use This vs Apify

┌─────────────────────────────────────────────────────────────────┐
│ DECISION: YouTube Tools (yt-dlp) vs Apify                       │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│ Use youtube-tools (FREE) when:                                  │
│ ├── Downloading videos to local storage                         │
│ ├── Extracting transcripts/subtitles                            │
│ ├── Getting video metadata (title, duration, views, etc.)       │
│ ├── Bulk downloading playlists or channels                      │
│ ├── Converting to audio-only (MP3)                              │
│ └── You want zero API costs                                     │
│                                                                 │
│ Use apify-scrapers when:                                        │
│ ├── Scraping YouTube SEARCH results                             │
│ ├── Getting comments at scale                                   │
│ ├── Channel analytics and statistics                            │
│ ├── Trending video discovery                                    │
│ └── You need cloud-based processing                             │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Quick Decision Tree

What do you need?
│
├── Download video(s)
│   ├── Single video → scripts/download_video.py URL
│   ├── Multiple videos → scripts/download_video.py --urls-file list.txt
│   ├── Playlist → scripts/download_video.py "playlist_url"
│   ├── Audio only → scripts/download_video.py URL --audio-only
│   └── Specific quality → scripts/download_video.py URL --quality 720p
│
├── Get transcript/subtitles
│   ├── Auto-generated captions → scripts/get_transcript.py URL
│   ├── Manual subtitles → scripts/get_transcript.py URL --manual-only
│   ├── Specific language → scripts/get_transcript.py URL --lang es
│   └── All available → scripts/get_transcript.py URL --all-langs
│
├── Get video metadata
│   ├── Single video → scripts/get_video_info.py URL
│   ├── Multiple videos → scripts/get_video_info.py --urls-file list.txt
│   └── Playlist info → scripts/get_video_info.py "playlist_url"
│
└── Advanced
    ├── Age-restricted → scripts/download_video.py URL --cookies-from-browser chrome
    ├── Private videos → Requires authentication (see references/yt-dlp-guide.md)
    └── Live streams → scripts/download_video.py URL --live-from-start

Environment Setup

# Install yt-dlp (required)
pip install yt-dlp

# Optional: Install ffmpeg for format conversion
# macOS
brew install ffmpeg

# Ubuntu/Debian
sudo apt install ffmpeg

# Windows
winget install ffmpeg

No API keys required! This is completely free.

Common Usage

Download Single Video

python scripts/download_video.py "https://www.youtube.com/watch?v=VIDEO_ID"

Download with Specific Quality

python scripts/download_video.py "https://youtu.be/VIDEO_ID" --quality 1080p

Download Audio Only (MP3)

python scripts/download_video.py "https://youtube.com/watch?v=VIDEO_ID" --audio-only

Download Entire Playlist

python scripts/download_video.py "https://youtube.com/playlist?list=PLAYLIST_ID" --output-dir ./videos

Bulk Download from File

# Create urls.txt with one URL per line
python scripts/download_video.py --urls-file urls.txt --output-dir ./downloads

Get Transcript

python scripts/get_transcript.py "https://youtube.com/watch?v=VIDEO_ID"

Get Transcript in Specific Language

python scripts/get_transcript.py "https://youtu.be/VIDEO_ID" --lang es

Get Video Metadata

python scripts/get_video_info.py "https://youtube.com/watch?v=VIDEO_ID"

Get Metadata for Multiple Videos

python scripts/get_video_info.py --urls-file videos.txt --output metadata.json

Output Location

All outputs save to .tmp/youtube/ by default:

  • Videos: .tmp/youtube/videos/
  • Audio: .tmp/youtube/audio/
  • Transcripts: .tmp/youtube/transcripts/
  • Metadata: .tmp/youtube/metadata/

Cost

FREE - No API keys, no per-video costs, no subscriptions.

Security Notes

Safe by Design

  • URL validation: Only accepts YouTube URLs (youtube.com, youtu.be)
  • Filename sanitization: Removes dangerous characters
  • Output restriction: Only writes to .tmp/ directory
  • No shell injection: Uses subprocess with argument lists, not string concatenation
  • No stored credentials: Cookies only used when explicitly requested

Copyright Warning

  • Only download content you have rights to access
  • Respect YouTube's Terms of Service
  • Do not redistribute copyrighted content
  • Use for personal/educational purposes

Rate Limiting

  • yt-dlp has built-in rate limiting
  • For bulk downloads, use --sleep-interval 5 to avoid throttling
  • YouTube may temporarily block IPs with excessive requests

Troubleshooting

Issue: "Video unavailable"

Cause: Video is private, age-restricted, or region-locked Solution: Use --cookies-from-browser chrome for age-restricted content

Issue: "Unable to extract video data"

Cause: YouTube changed their page structure Solution: Update yt-dlp: pip install -U yt-dlp

Issue: No subtitles found

Cause: Video has no captions (auto or manual) Solution: Use --list-subs to see available subtitles first

Issue: Slow downloads

Cause: YouTube throttling or network issues Solution: Try --concurrent-fragments 4 for faster downloads

Issue: Format conversion failed

Cause: ffmpeg not installed Solution: Install ffmpeg (see Environment Setup)

Integration Patterns

Download + Transcribe + Summarize

# 1. Download video
python scripts/download_video.py "URL" --output-dir .tmp/video

# 2. Get transcript
python scripts/get_transcript.py "URL" --output .tmp/transcript.txt

# 3. Use content-generation to summarize
# (transcript file is now ready for summarization)

Bulk Research Workflow

# 1. Get metadata for research videos
python scripts/get_video_info.py --urls-file research_videos.txt --output .tmp/metadata.json

# 2. Download transcripts for text analysis
python scripts/get_transcript.py --urls-file research_videos.txt --output-dir .tmp/transcripts

# 3. Use parallel-research to analyze content

Course Content Download

# Download entire playlist as course modules
python scripts/download_video.py "PLAYLIST_URL" --output-dir .tmp/course --quality 720p

# Get all transcripts for notes
python scripts/get_transcript.py "PLAYLIST_URL" --output-dir .tmp/course/transcripts

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.66%
按下载量换算567

Claude

29.32%
按下载量换算466

Cursor

20.54%
按下载量换算327

Gemini CLI

10.64%
按下载量换算169

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills