/media-tools:youtube-search <topic> [max_results]from media-tools
Searches YouTube via yt-dlp, returning structured results (title, channel, views, duration, date, URL). Can fetch captions or download audio from a chosen video.
Ships in media-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Search YouTube through yt-dlp and present structured results. Users must respect YouTube's Terms of Service and copyright when downloading anything.
yt-dlp on PATH. Install with brew install yt-dlp (Homebrew also installs Deno), or python3 -m pip install -U "yt-dlp[default]" per the installation wiki. Search and metadata work on their own; downloads additionally need ffmpeg (for -x) and a JavaScript runtime such as Deno for YouTube's challenge solving - see the EJS wiki if a download fails with a challenge or "n function" error.
Parse the request into a query, a result count (default 10) and any filters from the table below. Done when every constraint the user stated maps to a flag.
Run the search (allow up to 300 s for --full runs):
uv run "${CLAUDE_SKILL_DIR}/scripts/yt_search.py" "<query>" -n 10 [options]
Done when the script prints results, or prints "No results" and you have retried once with looser filters.
Present the Markdown output as-is. If the user wants more on one video, run yt-dlp "<url>" --dump-json --no-download --no-warnings and pick the fields they asked about. Done when the user has the results table and every field they asked for.
Hand off if the user wants the content of a video, not just the link - follow Getting the words out of a video. Done when the captions file or the audio path is in hand.
| Flag | Default | Purpose |
|---|---|---|
-n, --max-results | 10 | Maximum results to return |
--months N | off | Only videos from the last N months. Implies --full |
--sort | relevance | relevance, views, or date (date implies --full) |
--min-views | - | Minimum view count |
--min-duration / --max-duration | - | Duration bounds in seconds |
--channel | - | Channel name, case-insensitive substring |
--json | off | Clean JSON on stdout, safe to pipe to jq |
--full | off | Visit each video: upload date, likes, comments, tags, description |
Fast vs full mode. Fast mode makes one request to the search results page and finishes in a few seconds, but YouTube's results page carries no upload dates (the Date column shows ?). Full mode visits each video (roughly 3-5 s each, over-fetching 3x to survive filters) and is the only way to filter or sort by date. Reach for --months only when recency genuinely matters - for evergreen topics (talks, tutorials, fundamentals) the canonical videos are often years old.
--min-duration 600 drops Shorts, clips and promos; --min-duration 1800 keeps only long-form talks, interviews and podcasts."<person> <topic>" returns videos by and about that person. To get only their own uploads, add --channel "<exact channel name>".Check for captions first - they are faster and free:
yt-dlp --list-subs "<url>"
Captions exist: fetch them as .vtt without downloading the video:
yt-dlp --skip-download --write-subs --write-auto-subs --sub-langs en -P "<dir>" -o "%(id)s.%(ext)s" "<url>"
No captions, or the user wants an accurate transcript: download the audio only, then hand the printed path to the transcribe skill:
yt-dlp -x --audio-format m4a -P "<dir>" -o "%(id)s.%(ext)s" --print after_move:filepath "<url>"
--print after_move:filepath prints the final file path on stdout - pass exactly that path to transcribe. Done when the .m4a exists at that path. For long videos, --download-sections "*10:00-25:00" grabs only a time range.
For trimming, splitting or re-encoding the downloaded file, use the ffmpeg-cli skill from this marketplace's ffmpeg plugin.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub henkisdabro/wookstar-claude-plugins --plugin media-toolsOther plugins' skills for the same job