channel-analysis
Deep-analyze a whole YouTube channel (your own or a competitor's) over a date range and produce a visual report of the best topics, hooks, formats and non-obvious patterns, comparing winners against losers. Use when the creator says "analyze my channel", "analyze <channel>", "what's working for X", or asks for a recurring channel report.
How do I install this agent skill?
npx skills add https://github.com/mohcen56/ytb-research-skills --skill channel-analysisIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill runs local scripts to interact with the YouTube API and reads stored credentials from an environment file, so use credentials with limited scope. It also processes external content like video transcripts and comments, which presents a surface for indirect prompt injection.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · 2 issues
What does this agent skill do?
Deep channel analysis
Inputs (ask if missing, one question at a time)
- Channel (handle, URL or ID): the creator's own or one from
brand/about_me/competitors.md. - Date range: default last 60 days for the creator's own channel, 90 for competitors.
- All videos (default, so winners can be compared with losers) or only the top 10-15 by outlier score.
- Format: long-form, Shorts, or both.
Gather with tools/yt.py (free)
python tools/yt.py channel <channel> --days 60 --json(--long/--shortsto filter): subs, the uploads in range with views, likes, comments and duration, and each video's outlier × = views ÷ the median in that window. Needs the API key intools/.env; if it's missing, stop and point totools/YT_API_KEY_SETUP.md.- Split into winners (outlier ≥ 2×) and the rest.
- For every winner plus about 5 average videos:
python tools/yt.py transcript <url>and take the first ~20 seconds (the hook) and the structure. - Top 1-3 winners:
python tools/yt.py watch <url>and read the contact sheets for format, visuals and packaging. python tools/yt.py comments <url>on the top 2 winners: what people quote and feel.- Never invent numbers. If something fails (quota, private video), say so and add a "missing data" note.
Analyze
For winners vs the rest, compare: topics, hooks (first-line pattern: question, then-vs-now, bold claim, story), formats (talking head, essay, tutorial, list, battle), titles and thumbnails, length, publish timing, and the non-obvious patterns (what ALL winners share that no average video has). Each insight needs 2+ example videos as proof.
Output
- An HTML report published as an artifact: headline insight, a winners table with thumbnails and links, sections for topics, hooks, formats and non-obvious patterns, and "Do next: 3 video ideas" that fit the creator (
brand/about_me/) . - Save the raw notes to
research/<channel>_<YYYY-MM-DD>.mdso other skills (hook-machine) can reuse them. - Offer a recurring refresh every 2 weeks (scheduled task) only if the creator asks.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/mohcen56/ytb-research-skills/channel-analysis">View channel-analysis on skillZs</a>