youtube-search
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.
What this skill does
# 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-dlp` installed and in PATH - `jq` installed and in PATH - `bc` installed (standard on macOS/Linux) ## Usage Run the bundled script: ```bash 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 ```bash # 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: 1. Run the script with the user's query and any specified flags 2. Present the results — the script output is already formatted for terminal reading 3. If the user wants analysis (e.g., "which of these are worth watching?"), use the engagement ratio and view counts to highlight standouts 4. 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 `--count` for 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=date` still 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. - **`regionCode` parameter 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`.
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.