by AgriciDaniel
Claude Code skill: one topic in, one ranked YouTube research workbook out. Searches YouTube Data API v3, ranks by views, engagement, momentum or breakout, and writes Videos, Channels, Summary, Comments and Transcripts sheets with hooks and replay hotspots. Appends into an existing social ads sheet.
# Add to your Claude Code skills
git clone https://github.com/AgriciDaniel/youtube-scoutGuides for using ai agents skills like youtube-scout.
See how youtube-scout compares with popular alternatives.
youtube-scout is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by AgriciDaniel. Claude Code skill: one topic in, one ranked YouTube research workbook out. Searches YouTube Data API v3, ranks by views, engagement, momentum or breakout, and writes Videos, Channels, Summary, Comments and Transcripts sheets with hooks and replay hotspots. Appends into an existing social ads sheet. It has 50 GitHub stars.
youtube-scout's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/AgriciDaniel/youtube-scout" and add it to your Claude Code skills directory (see the Installation section above). youtube-scout ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
youtube-scout is primarily written in Python. It is open-source under AgriciDaniel on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh youtube-scout against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
One topic in, one ranked research workbook out. The script does the whole job; your role is to run it with the right flags, then relay the result.
python3 "${CLAUDE_SKILL_DIR}/scripts/scout.py" <topic words> [flags]
Pass the user's topic as words after the script (quotes optional, the script joins them).
The API key is read from YOUTUBE_API_KEY in the environment, then from the file named by
SCOUT_ENV_FILE, then ~/.config/scout/.env, then ./.env. If the user keeps keys in another
env file, load it into the environment first (for example set -a; . <keyfile>; set +a in the
same Bash call) rather than copying the key anywhere. Never echo the key. The run prints
progress lines to stderr; a full run with --hooks on 50 videos takes a few minutes because
yt-dlp probes each video, so allow a long Bash timeout.
If the script reports that openpyxl is missing, run once:
pip install -r "${CLAUDE_SKILL_DIR}/requirements.txt" --quiet
| Flag | Default | Meaning |
|---|---|---|
--max N |
50 | Videos to collect, 1 to 200. Each block of 50 uses one of the 100 daily search calls. |
--since |
any | hour, today, week, month, year, any |
--length |
any | short (under 4 min), medium (4 to 20), long (over 20) |
--sort |
views | views, engagement, likes, recent, momentum (views per day), breakout (views per subscriber) |
--comments [N] |
off | Top N comments per video (default 20) into a Comments sheet, plus Top Comment on each video row. 1 quota unit per video. |
--hooks [SECONDS] |
off | yt-dlp probe per video, no quota: Hook (first SECONDS of captions, default 15), Vertical, FPS, Most Replayed s, Replay Hotspots, Chapters, and a Transcripts sheet with the full transcript. |
--out PATH |
./scout-<topic>-<date>.xlsx |
Write a new workbook |
--into PATH |
off | Append into an existing workbook's Videos sheet, skip Video IDs already present, re-sort. Comments and Transcripts sheets are created or extended there too. A timestamped .backup- copy is written next to the file first. The file must be closed in Excel. |
--download [N] |
off | Save thumbnails for every video (Thumbnail File) and mp4s for the top N (Local File) into ./downloads/; all videos when N is omitted. Full downloads can be slow, so prefer a small N. |
--transcribe [MODEL] |
off | Transcribe audio locally with Whisper for every video that has no caption transcript (default model turbo, GPU recommended). Uses the downloaded mp4 or fetches audio only. Fills Hook, Transcript Words, Transcript Source, and the Transcripts sheet. No quota, no caption requests. |
--dry-run |
off | Fetch and print only |
--json |
off | Also print rows as JSON |
Mapping user phrasing: "this month" means --since month, "shorts" means --length short,
"what are people saying" or "objections" means --comments, "hooks", "scripts", "openers",
"transcripts" or "most replayed" means --hooks, "creators to reach out to" means look at the
Channels sheet, "add to my sheet" means --into <that file>. "Everything" or "full research"
means --comments --hooks. When the user names no file and no flags, use the defaults.
The script prints a top-10 table to stdout and status lines to stderr. Relay:
--into).warning:
lines (a few yt-dlp probe failures are normal).Mention once, when relevant, that Shares, Spark Code, Sheet Views, and Ad Status stay blank for
YouTube rows: YouTube's API exposes no share count, and the other three are manual columns in the
user's sheet. Engagement % for YouTube rows is (likes + comments) / views. Click-through rate,
retention, impressions, and demographics are not available for other people's videos; the
replay heatmap from --hooks is the closest public proxy for retention.
| Code | Meaning | What to tell the user |
|---|---|---|
| 0 | success | relay the report |
| 1 | usage error | fix the flags and rerun |
| 2 | no API key | export YOUTUBE_API_KEY, or put it in ~/.config/scout/.env, or point SCOUT_ENV_FILE at the key file |
| 3 | quota exhausted | the 100 daily searches or 10,000 daily units are used up; they reset at midnight Pacific |
| 4 | invalid API key | check the YOUTUBE_API_KEY value in the key file |
| 5 | other API or network error | show the message, suggest retry |
| 6 | file error | the --into file is missing or openpyxl is not installed |
Videos: the base columns follow OWT-Social-Ads.xlsx (Platform, Creator, Handle, Video ID,
Video Link, Posted as Unix epoch, Views, Likes, Comments, Shares, Engagement %, Duration s,
Spark Code, Local File, Sheet Views, Ad Status). In a new workbook, columns that would be blank
on every row are left out (Shares, Spark Code, Sheet Views, Ad Status always; Local File and
Thumbnail File without --download; the comment and hook columns without their flags). In
--into mode the full layout is kept so it lines up with the existing sheet. Then:
--comments: Top Comment, Top Comment Likes, Comments Off.--hooks: Hook, Vertical, FPS, Most Replayed s, Replay Hotspots (true peaks of the
"most replayed" curve, the opening decay is ignored), Chapters, Transcript Words. Format is
corrected to Video when a short clip turns out to be horizontal. Hook and Transcript stay blank
when a video has no captions at all, and the replay columns stay blank when YouTube has not
published a heatmap for it (it needs enough views), so partial coverage is normal.--hooks caches every yt-dlp probe and caption under ~/.cache/scout/ for 7 days, so a rerun
of the same topic (or a --into run on the same videos) only fetches what is missing. YouTube
rate-limits caption downloads after bursts (HTTP 429); the script paces fetches 1.5 s apart and
retries with backoff, and if some still fail it prints one warning with the count. Tell the
user the block is per IP and can last hours: add --transcribe to fill the gaps locally, or rerun
later. SCOUT_CAPTION_DELAY, SCOUT_CACHE_DIR, and SCOUT_DOWNLOAD_FORMAT override the pacing, cache location, and download format (default: 480p video and audio streams merged into mp4).
For "cover every column" or a full demo, use --comments --hooks --transcribe --download 10.
Usually blank, kept for the rare hit: AI Disclosure (YouTube only returns it in some cases), Live, Blocked Regions, Location, Paid Promotion. Tags are blank when the creator added none.
--hooks or --transcribe: Transcript Source says captions or whisper per row.--download [N]: Thumbnail File for every row, Local File (column N) for the top N.Channels: one row per channel in the sample, sorted by sample views: handle, subscribers, channel totals, country, created, videos in sample, sample views, sample average engagement, best video and link, keywords, topics. This is the creator outreach list.
Summary: topic, run date, filters, quota, totals, median and mean views, average engagement, median duration, Shorts share, paid promotion share, captions share, published range, top video, top channels, top tags, categories, languages, channel countries.
Comments (flag): Video ID, Handle, Title, Author, Comment, Likes, Replies, Published, link.
Transcripts (flag): Video ID, Handle, Title, Language, Source, Transcript Words, Hook, full Transcript (capped at 32,000 characters), link.
Header styling, frozen header, autofilter, number formats, and hyperlinks are reproduced on
every sheet. New workbooks only get Channels and Summary; --into leaves those out because
aggregates over a mixed sheet would mislead.
One topic in, one ranked YouTube research workbook out. Type /scout matcha recipe in
Claude Code and get an .xlsx with the most relevant videos ranked by performance, the
creators behind them, what the audience says in the comments, the opening lines that hooked
viewers, and the moments people replay.
Not affiliated with, sponsored by, or endorsed by YouTube or Google. YouTube and Google product names are trademarks of their owners.
--into your-sheet.xlsx appends YouTube rows next to TikTok and Instagram rows, dedups by
video id, re-sorts, and keeps your manual columns and hyperlinks intact.| Sheet | Contents |
|---|---|
| Videos | One row per video. Identity, performance, channel context, metadata, and (with flags) top comment, hook, replay hotspots. |
| Channels | One row per creator in the sample: subscribers, channel totals, country, videos in sample, sample views, average engagement, best video. Your outreach list. |
| Summary | Topic, filters, quota used, totals, median and mean views, Shorts share, paid promotion share, top channels, top tags, categories, languages, countries. |
| Comments | With --comments: top N comments per video with likes and reply counts. |
| Transcripts | With --hooks or --transcribe: hook text and full transcript per video, with its source (captions or Whisper). |
No GitHub account is needed to install.
git clone https://github.com/AgriciDaniel/youtube-scout.git
cd youtube-scout
./install.sh # copies the skill to ~/.claude/skills/scout
python3 -m pip install --user openpyxl
python3 -m pip install --user yt-dlp # optional, for --hooks, --download, and --transcribe
./install.sh --target codex, --target agents, --target portable, or --target all
install to other agent runtimes. ./uninstall.sh removes it.
/plugin marketplace add AgriciDaniel/youtube-scout
/plugin install youtube-scout@agricidaniel-youtube-scout
Create a YouTube Data API v3 key in Google Cloud Console, restrict it to that API, then either export it or put it in a key file:
export YOUTUBE_API_KEY=... # for the session
# or
mkdir -p ~/.config/scout && chmod 700 ~/.config/scout
printf 'YOUTUBE_API_KEY=...\n' > ~/.config/scout/.env && chmod 600 ~/.config/scout/.env
SCOUT_ENV_FILE=/path/to/keys.env points the skill at any other env file.
/scout matcha recipe
/scout iced matcha latte --since month --length short --max 100
/scout ai seo --comments --hooks
/scout ai seo --comments --hooks --transcribe --download 10
/scout matcha recipe --into OWT-Social-Ads.xlsx
/scout matcha recipe --sort breakout --dry-run
Each run prints a top-10 table and writes scout-<topic>-<date>.xlsx in the current folder.
| Flag | Default | Meaning |
|---|---|---|
--max N |
50 | Videos to collect, 1 to 200. Each block of 50 uses one of your 100 daily searches. |
--since |
any | hour, today, week, month, year, any |
--length |
any | short (under 4 min), medium (4 to 20), long (over 20) |
--sort |
views | views, engagement, likes, recent, momentum (views per day), breakout (views per subscriber) |
--comments [N] |
off | Top N comments per video (default 20). 1 quota unit per video. |
--hooks [SECONDS] |
off | yt-dlp probe: hook text (first SECONDS of captions, default 15), vertical, FPS, replay hotspots, chapters, full transcript. No quota. |
--out PATH |
./scout-<topic>-<date>.xlsx |
Write a new workbook |
--into PATH |
off | Append into an existing workbook, dedup by video id, re-sort, backup first |
--download [N] |
off | Save thumbnails for every video and mp4s for the top N (all when N is omitted) into ./downloads/ |
--transcribe [MODEL] |
off | Transcribe audio locally with Whisper for videos without caption transcripts (default model turbo, GPU recommended). Fills Hook, Transcript Words, and the Transcripts sheet. No quota, no caption requests. |
--dry-run |
off | Fetch and print only |
--json |
off | Also print rows as JSON |
/scout ai seo, 50 videos, one search call:
# Views Eng % V/day V/Sub Len Fmt Handle Title
1 544,925 2.37 1,048 0.8 7:26 Video ahrefscom SEO in 2025: How I'd Learn it if I Were Starting O
2 374,587 1.51 612 83.4 0:08 Short webhivedigital Best SEO Tools For 2025 #SEO #SEOtools #googlerank
3 205,208 2.97 1,387 6.1 50:46 Video surferseo The Complete SEO & AI SEO Course for 2026 (Full Be
4 149,955 3.29 318 4.5 18:10 Video surferseo How to Dominate AI Search Results in 2026 (ChatGPT
5 134,896 2.30 219 0.7 28:27 Video levelingupofficial RIP SEO: Here's What Works Now in an AI World
The Summary sheet for that run reported 14% Shorts, a median length of 12 minutes, and a creator with 4,490 subscribers whose 8-second Short reached 375,000 views (views per subscriber 83). Those are the rows worth studying.
topic
| search.list (relevance, paginated, 1 of 100 daily search calls per 50)
v
video ids
| videos.list (snippet, statistics, contentDetails, status, topicDetails,
| recordingDetails, paidProductPlacementDetails, liveStreamingDetails)
| channels.list (snippet, statistics, topicDetails, brandingSettings)
| videoCategories.list
v
rows --sort--> Videos / Channels / Summary sheets
| --comments: commentThreads.list per video (1 unit each)
| --hooks: yt-dlp -j per video, json3 captions, heatmap peaks (no quota, cached)
| --transcribe: local Whisper on the downloaded file or fetched audio (no quota, cached)
v
scout-<topic>-<date>.xlsx or --into existing.xlsx
Engagement % is (likes + comments) / views. Views per day uses the video age with a floor of six hours. Format is Short when a video is 180 seconds or less and not confirmed horizontal.
search.list calls a day, plus
10,000 units a day for everything else. A default 50-video run uses 1 search call and
3 units; adding --comments adds 1 unit per video. The run prints what it used.~/.cache/scout/ for 7 days, and stops trying after one hard failure. --transcribe fills
the gaps by transcribing the audio locally with Whisper, which never touches the caption
endpoint. The Transcript Source column says which rows came from captions and which from
Whisper.--download 10 saves mp4s for
the top 10 only, plus thumbnails for every row.yt-dlp -U usually fixes it within a day.
Metadata columns still fill when captions fail.Does it need OAuth? No. An API key is enough for everything the skill reads.
Can I use it on my own channel's analytics? No. Retention and traffic sources live in YouTube Analytics, which is a diffe