Token导航 LogoToken导航TokenDH.com
开发执行命令github未标认证来源可访问许可证需确认审计提醒

youtube-fetcherYouTube 抓取器

Agent Skill

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

总安装

643

周安装

26

GitHub Stars

19

下载量

202
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jimmysadek/youtube-fetcher-to-markdown --skill youtube-fetcher

简介

用于处理 YouTube 视频内容抓取与转换。

  • 适合在开发环境中将 YouTube 视频转为 Markdown 格式。
  • 通过 npx skills add 命令从 GitHub 仓库安装。
  • 需检查仓库维护状态及是否涉及外部 API 调用权限。
  • youtube-fetcher 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

YouTube Fetcher

Overview

Fetches transcripts from YouTube videos and saves them as structured Markdown files with YAML frontmatter. Uses two tools:

  • yt-dlp — video metadata (title, channel, description, duration, chapters)
  • youtube-transcript-api — transcript/captions extraction

Each file includes full video metadata, the video description (with links and chapters), and the transcript. Files are saved to ~/yt_transcripts/ with the naming convention YYYY-MM-DD_video-title-slug_[VIDEO_ID].md.

When to Use This Skill

  • User shares a YouTube URL (any format) or video ID
  • User wants a transcript, captions, subtitles, or "the text" from a video
  • Note-taking or summarization workflows involving YouTube content
  • User pastes a YouTube link — even without explicit instructions, default to fetching

How Claude Should Use This Skill

The script path is: ~/.config/skillshare/skills/youtube-fetcher/scripts/fetch_transcript.py

Always use --force when running from Claude — the duplicate check uses an interactive prompt that doesn't work in non-interactive contexts. If you need to check for duplicates first, look for matching files in ~/yt_transcripts/ yourself.

Typical workflow:

  1. Run the script with --force to fetch the transcript
  2. Tell the user where the file was saved
  3. If the user wants a summary or analysis, read the saved file and process it

Example invocation:

python3 ~/.config/skillshare/skills/youtube-fetcher/scripts/fetch_transcript.py "https://www.youtube.com/watch?v=VIDEO_ID" --force

If the user wants the transcript in the conversation (not just saved to a file), add --stdout:

python3 ~/.config/skillshare/skills/youtube-fetcher/scripts/fetch_transcript.py "URL" --force --stdout

If deps are missing, the script exits with code 2 and prints install instructions. Run the pip/brew commands it suggests.

Prerequisites

The script checks dependencies automatically on each run and will guide you through installation if anything is missing. You can also run a manual check:

python3 ~/.config/skillshare/skills/youtube-fetcher/scripts/fetch_transcript.py --check-deps

Required:

pip install youtube-transcript-api requests

Recommended (for video description, chapters, duration):

brew install yt-dlp  # or: pip install yt-dlp

Usage

Default (saves structured Markdown to ~/yt_transcripts/)

python3 ~/.config/skillshare/skills/youtube-fetcher/scripts/fetch_transcript.py <youtube_url_or_id>

This creates a file like ~/yt_transcripts/2026-03-04_video-title-here_[dQw4w9WgXcQ].md.

Duplicate Detection

If a video was already transcribed, the script will:

  • Interactive terminal: prompt Re-transcribe anyway? [y/N]:
  • Non-interactive (Claude, pipes, scripts): auto-skip and suggest --force

Use --force to always re-fetch regardless of duplicates.

Options

# With timestamps in transcript body
python3 .../fetch_transcript.py <url> --timestamps

# Specific language
python3 .../fetch_transcript.py <url> --lang es

# Override source project name
python3 .../fetch_transcript.py <url> --source "my-project"

# Custom output path
python3 .../fetch_transcript.py <url> --output ~/notes/my-transcript.md

# Skip video description (transcript only)
python3 .../fetch_transcript.py <url> --no-description

# Force re-fetch (skip duplicate check)
python3 .../fetch_transcript.py <url> --force

# Print to stdout instead of saving
python3 .../fetch_transcript.py <url> --stdout

# JSON or SRT format (raw, no Markdown wrapping)
python3 .../fetch_transcript.py <url> --format json
python3 .../fetch_transcript.py <url> --format srt

# List available transcripts for a video
python3 .../fetch_transcript.py <url> --list

# Check dependencies
python3 .../fetch_transcript.py --check-deps

Exit Codes

CodeMeaning
0Success
1Runtime error (fetch failed, invalid URL)
2Missing required dependencies
3Duplicate skipped (user declined re-fetch or non-interactive)

Output Structure

File Location

~/yt_transcripts/YYYY-MM-DD_video-title-slugified_[VIDEO_ID].md

File Content

---
title: "Video Title"
channel: "Channel Name"
url: "https://www.youtube.com/watch?v=VIDEO_ID"
video_id: "VIDEO_ID"
fetched: "2026-03-04"
source_project: "JARVIS-Obsidian-Setup"
language: "en"
caption_type: "manual"
duration: "36m 26s"
upload_date: "2024-01-15"
tags:
  - yt-transcript
---

# Video Title

## Video Details

| Field    | Value |
|----------|-------|
| URL      | https://www.youtube.com/watch?v=VIDEO_ID |
| Channel  | Channel Name |
| Duration | 36m 26s |
| Uploaded | 2024-01-15 |
| Fetched  | 2026-03-04 |
| Source   | JARVIS-Obsidian-Setup |
| Language | en (manual) |

## Video Description

The video description text with links, summaries, etc.

### Chapters

- `00:00` Intro
- `02:23` My Testimony
- ...

## Transcript

The full transcript text here...

Accepted URL Formats

  • https://www.youtube.com/watch?v=VIDEO_ID
  • https://youtu.be/VIDEO_ID
  • https://youtube.com/embed/VIDEO_ID
  • Just the video ID directly

Limitations

  • Only works on videos that have captions (manual or auto-generated)
  • Cannot transcribe videos without any captions — use Whisper for that
  • Some videos have captions disabled by the uploader

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

39.05%
按下载量换算79

Claude

28.09%
按下载量换算57

Cursor

19.29%
按下载量换算39

Gemini CLI

8.94%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/jimmysadek/youtube-fetcher-to-markdown --skill youtube-fetcher 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills