Youtube search
Skill bg-szy/TOP-SKILLS/skills/claude-code-skills/youtube-search
全球最大的 Claude Code 技能聚合库 · 收录 3900+ 来自 12+ 来源的技能,提供在线搜索与趋势分析看板 / The world's largest Claude Code skill aggregation hub — 3900+ skills from 12+ sources with online search and trend dashboard
npx -y skills add bg-szy/TOP-SKILLS --skill youtube-searchAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Search YouTube and return structured video results with metadata and engagement metrics using yt-dlp. USE WHEN youtube search, find videos, search videos, video research, youtube results, channel research, video metrics, trending videos, content research. Even if the user just says "search YouTube for X" or "find videos about X", use this skill.
SKILL.md
4.2 KB, 917 tokens by cl100k_base, as published. Nobody here has run it
YouTubeSearch
Search YouTube by query and return structured, human-readable results with metadata and engagement metrics.
What It Does
Runs a yt-dlp search against YouTube, returning the top N results (default 20) filtered to a recent time window (default 6 months). Each result includes:
- Title and URL
- Channel name and subscriber count
- View count and duration
- Upload date
- Engagement ratio (views / subscribers) — a quick signal for whether a video over- or under-performed relative to the channel's audience
Numbers are human-readable (e.g., 1.2M, 45.3K). Results are separated by dividers for easy scanning.
Requirements
yt-dlpinstalled and in PATHjqinstalled and in PATHbcinstalled (standard on macOS/Linux)
Usage
Run the bundled script:
bash ~/.claude/skills/YouTubeSearch/scripts/yt-search.sh "<search query>" [--count N] [--months N]
Parameters
| Flag | Default | Description |
|---|---|---|
| (positional) | — | Search query (required) |
--count | 20 | Number of results to return |
--months | 6 | Only include videos from the last N months |
Examples
# Basic search — top 20 results from last 6 months
bash ~/.claude/skills/YouTubeSearch/scripts/yt-search.sh "kubernetes security best practices"
# Narrow to 5 results from the last month
bash ~/.claude/skills/YouTubeSearch/scripts/yt-search.sh "rust async tutorial" --count 5 --months 1
# Broader window — last 2 years
bash ~/.claude/skills/YouTubeSearch/scripts/yt-search.sh "home lab setup" --months 24
Interpreting the Engagement Ratio
The views-to-subscribers ratio helps identify standout content:
- > 1.0x — The video got more views than the channel has subscribers. Strong signal that the topic resonated or the algorithm boosted it.
- 0.3x - 1.0x — Typical range for established channels.
- < 0.3x — Below average reach. Could mean the topic is niche, the thumbnail/title underperformed, or the channel's audience has moved on.
This metric is most useful for comparing videos on the same topic — a 5.0x ratio on a small channel often means the content hit a nerve.
How Claude Should Use This
When the user asks to search YouTube or find videos:
- Run the script with the user's query and any specified flags
- Present the results — the script output is already formatted for terminal reading
- If the user wants analysis (e.g., "which of these are worth watching?"), use the engagement ratio and view counts to highlight standouts
- If subscriber count shows "N/A" for many results, that's normal — yt-dlp can't always fetch channel metadata from search results
Troubleshooting
- No results: Try broadening the query or increasing
--months - Slow: Each result requires a metadata fetch. Reduce
--countfor faster results. - "N/A" for subscribers: yt-dlp sometimes can't resolve channel follower counts from search. The other fields will still populate.
Gotchas
- API
order=datestill applies relevance ranking — recent uploads can be deprioritized. Two-query merge (date + relevance) is the workaround. - Quota is per-project per-day — search is expensive (100 units/query); bursting locks the project out for the day.
regionCodeparameter changes results — same query from different regions returns different videos; default is viewer's IP geo.- Transcript API is separate from search API — transcript availability is per-video; some videos have none and the API returns no error.
- Channel ID vs Channel username: handles (
@name) vs legacy usernames vs IDs are three different identifiers; resolution requires explicit channel-list call. - Embedded videos blocked by uploader: search may return them, but a downstream tool that embeds will fail without warning — check
status.embeddable.