Yt Competitive Analysis

Finds the videos that beat their channel's average by 2x or more across YouTube channels you pick, and shows the title patterns behind them.

Video & Audioyoutubecompetitor analysisvideo titlescontent strategyby ericosiu3.8kGitHub

What it is

Yt Competitive Analysis is for YouTube creators and marketers who want to know what is working for other channels in their niche. You list the channels to study by their @handles, or use one of two built-in sets of well-known AI and business creators, and the agent pulls their recent uploads through the official YouTube Data API. Instead of judging videos by raw view counts, it compares each one with that channel's own normal performance.

A short Python script fetches up to 100 recent videos per channel, from the last 30 days by default, splits them into long-form videos and Shorts (60 seconds or less), and works out each channel's average views for each format. Any video with more than twice the average is flagged as an outlier and ranked by its multiplier. It then counts the most common words in outlier titles and reports uploads per week. The skill also includes title formats the author considers proven, such as 'X, Clearly Explained' and 'Stop doing X, do Y instead'.

You get a console summary or a JSON file listing each channel's subscribers and cadence, the top outliers with links, and the most frequent title words. If you also share your own channel's analytics, it can compare a planned title and hook with your past videos, and it suggests checking results one to two days, 7 days and 28 days after publishing. It does not analyze thumbnails or video content, and word counts point to patterns rather than explain them.

What it can do

  • Pulls recent uploads for any list of YouTube handles, or for built-in sets of AI and business creators.
  • Separates long-form videos from Shorts and calculates each channel's average views per format.
  • Flags videos with more than twice their channel's average views and ranks them by multiplier.
  • Counts the most frequent words in outlier titles to surface recurring packaging patterns.
  • Reports subscribers, video count and uploads per week for each channel.
  • Exports results as a readable console report or a JSON file.

When to use it

  • You run a personal finance channel and want to see which recent videos from five rivals overperformed.
  • You are planning next month's titles and want examples of formats that are clearly beating their channel's norm.
  • Your agency is pitching a client and needs a quick snapshot of what is working for creators in that niche.
  • You want to know whether Shorts or long-form videos are doing better for the channels you follow.

How it works

  1. 1You name the channels by @handle, or pick the AI, business or combined preset, and a lookback period such as 30 or 60 days.
  2. 2The agent runs a Python script that looks up each channel and its recent uploads through the YouTube Data API.
  3. 3The script sorts videos into Shorts and long-form, calculates averages and marks anything above 2x as an outlier.
  4. 4It prints the channel summary, the top 15 outliers in each format and the most common title words, or saves everything as JSON.
  5. 5The agent interprets the patterns and, if you share your own analytics, compares proposed packaging with your past results.

Try asking

“Run a YouTube competitive analysis on @mkbhd, @LinusTechTips and @austinevans for the last 60 days”
“Which videos from the business creator set are outliers this month?”
“Find viral title patterns among AI YouTubers that I could use for my next video”
“Compare Shorts and long-form performance for these three channels”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add https://github.com/ericosiu/ai-marketing-skills/tree/main/yt-competitive-analysis
pnpm
pnpm dlx skills add https://github.com/ericosiu/ai-marketing-skills/tree/main/yt-competitive-analysis

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the yt-competitive-analysis folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/ericosiu/ai-marketing-skills.git
mkdir -p ~/.claude/skills
cp -r ai-marketing-skills/yt-competitive-analysis ~/.claude/skills/yt-competitive-analysis

Then just ask in plain language, for example: “Run a YouTube competitive analysis on @mkbhd, @LinusTechTips and @austinevans for the last 60 days”