Youtube Research logo

Youtube Research

Community
bradautomates
youtube-research

Research high-performing YouTube videos in a niche using TubeLab's outlier detection API. Identifies outlier videos, analyzes top 3 relevant videos with AI, and generates reports with actionable hook formulas. Use when asked to: - Find trending videos in a YouTube niche - Research competitor content - Discover viral video patterns - Generate content ideas based on what's working - Run YouTube research - Find outlier videos - Analyze hooks and content structure Triggers: "youtube research", "find outlier videos", "research YouTube trends", "what videos are performing well", "find content ideas for my channel", "youtube trends"

Overview

Publisherbradautomates
Repositoryhead-of-content
Skill nameyoutube-research
Stars
281
Forks
47
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by bradautomates on GitHub. Read the source before you install it.

Installation

Install the Youtube Research AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/bradautomates/head-of-content/tree/main/.claude/skills/youtube-research
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bradautomates/head-of-content.git /tmp/head-of-content
mkdir -p .claude/skills
cp -r /tmp/head-of-content/.claude/skills/youtube-research .claude/skills/youtube-research
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Youtube Research in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Youtube Research on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Youtube Research is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

YouTube Research

Research high-performing YouTube outlier videos, analyze top content with AI, and generate actionable reports.

Prerequisites

  • TUBELAB_API_KEY environment variable. Get key from https://tubelab.net/settings/api
  • GEMINI_API_KEY environment variable (for video analysis)
  • google-genai and requests Python packages

Workflow

Step 1: Create Run Folder

bash
mkdir -p youtube-research/$(date +%Y-%m-%d_%H%M%S)

Step 2: Get Channel ID

Read .claude/context/youtube-channel.md to get the channel ID.

Step 3: Fetch Channel Videos

bash
python scripts/get_channel_videos.py CHANNEL_ID --format summary

This returns JSON with the channel's video titles and view counts.

Step 4: Analyze Channel

Analyze the channel data to extract:

  • keywords: 4 search terms for the channel's direct niche
  • adjacent-keywords: 4 search terms for topics the same audience watches
  • audience: 2-3 profiles with objections, transformations, stakes
  • formulas: Reusable title templates

See references/channel-analysis-schema.md for the full schema and example output.

Step 5: Search for Outliers

Run the outlier search with both keyword sets:

bash
python .claude/skills/youtube-research/scripts/find_outliers.py \
  --keywords "keyword1" "keyword2" "keyword3" "keyword4" \
  --adjacent-keywords "adjacent1" "adjacent2" "adjacent3" "adjacent4" \
  --output-dir youtube-research/{run-folder} \
  --top 5

This runs two searches:

  • Direct niche: keywords with 5K+ views threshold
  • Adjacent audience: adjacent-keywords with 10K+ views threshold

Output files:

  • outliers.json - All outliers normalized for video analysis
  • report.md - Basic markdown report
  • thumbnails/*.jpg - Video thumbnails
  • transcripts/*.txt - Video transcripts

Step 6: Filter Relevant Videos for Analysis

Read outliers.json and the user's niche from .claude/context/youtube-channel.md.

CRITICAL: Select MAX 3 videos that are most relevant to the user's niche. Filter by:

  1. Title relevance: Title contains keywords related to user's niche/topics
  2. Transcript relevance: If transcript exists, check it mentions relevant topics
  3. Direct niche priority: Prefer videos from direct keyword search over adjacent

Skip videos that are clearly outside the user's content style (e.g., entertainment/vlogs when user does tutorials).

Write the filtered videos to {RUN_FOLDER}/filtered-outliers.json:

json
{
  "outliers": [/* max 3 relevant videos */],
  "filter_reason": "Selected based on relevance to [user's niche]"
}

Step 7: Analyze Top Videos with AI

bash
python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py \
  --input {RUN_FOLDER}/filtered-outliers.json \
  --output {RUN_FOLDER}/video-analysis.json \
  --platform youtube \
  --max-videos 3

Extracts from each video:

  • Hook technique and replicable formula
  • Content structure and sections
  • Retention techniques
  • CTA strategy

See the video-content-analyzer skill for full output schema and hook/format types.

Step 8: Generate Final Report

Read {RUN_FOLDER}/outliers.json and {RUN_FOLDER}/video-analysis.json, then generate {RUN_FOLDER}/report.md.

Report Structure:

markdown
# YouTube Research Report

Generated: {date}

## Top Performing Hooks

Ranked by engagement. Use these formulas for your content.

### Hook 1: {technique} - {channelTitle}
- **Video**: "{title}"
- **Opening**: "{opening_line}"
- **Why it works**: {attention_grab}
- **Replicable Formula**: {replicable_formula}
- **Views**: {viewCount} | **zScore**: {zScore}
- [Watch Video]({url})

[Repeat for each analyzed video]

## Content Structure Patterns

| Video | Format | Pacing | Key Retention Techniques |
|-------|--------|--------|--------------------------|
| {title} | {format} | {pacing} | {techniques} |

## CTA Strategies

| Video | CTA Type | CTA Text | Placement |
|-------|----------|----------|-----------|
| {title} | {type} | "{cta_text}" | {placement} |

## All Outliers

### Direct Niche
| Rank | Channel | Title | Views | zScore |
|------|---------|-------|-------|--------|
[List direct niche outliers]

### Adjacent Audience
| Rank | Channel | Title | Views | zScore |
|------|---------|-------|-------|--------|
[List adjacent outliers]

## Actionable Takeaways

[Synthesize patterns into 4-6 specific recommendations based on video analysis]

Focus on actionable insights. The "Top Performing Hooks" section with replicable formulas should be prominent.

Quick Reference

Full pipeline:

bash
RUN_FOLDER="youtube-research/$(date +%Y-%m-%d_%H%M%S)" && mkdir -p "$RUN_FOLDER" && \
python .claude/skills/youtube-research/scripts/find_outliers.py \
  --keywords "k1" "k2" "k3" "k4" \
  --adjacent-keywords "a1" "a2" "a3" "a4" \
  --output-dir "$RUN_FOLDER" --top 5

Then filter outliers for niche relevance (max 3), run video analysis, and generate the report.

Script Reference

get_channel_videos.py

python .claude/skills/youtube-research/scripts/get_channel_videos.py CHANNEL_ID [--format json|summary]
ArgDescription
CHANNEL_IDYouTube channel ID (24 chars)
--formatjson (full data) or summary (for analysis)

find_outliers.py

python .claude/skills/youtube-research/scripts/find_outliers.py --keywords K1 K2 K3 K4 --adjacent-keywords A1 A2 A3 A4 --output-dir DIR [options]
ArgDescription
--keywordsDirect niche keywords (4 recommended)
--adjacent-keywordsAdjacent topic keywords (4 recommended)
--output-dirOutput directory (required)
--topVideos per category (default: 5)
--daysDays back to search (default: 30)
--jsonAlso save raw JSON data

Output: outliers.json, report.md, thumbnails/, transcripts/

Scoring Algorithm

Videos ranked by: zScore × recency_boost

  • zScore: How much video outperforms its channel average
  • recency_boost: 1.0 for today, decays 5%/day (min 0.3×)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Youtube Research AI skill do?

Research high-performing YouTube videos in a niche using TubeLab's outlier detection API. Identifies outlier videos, analyzes top 3 relevant videos with AI, and generates reports with actionable hook formulas. Use when asked to: - Find trending videos in a YouTube niche - Research competitor content - Discover viral video patterns - Generate content ideas based on what's working - Run YouTube research - Find outlier videos - Analyze hooks and content structure Triggers: "youtube research", "find outlier videos", "research YouTube trends", "what videos are performing well", "find content ide...

Why use Youtube Research on TypingMind?

Because you install it once and use it with any model. Youtube Research is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Youtube Research in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/bradautomates/head-of-content/tree/main/.claude/skills/youtube-research. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Youtube Research?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Youtube Research?

As many as you like. As long as a model supports skills, you can use Youtube Research with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Youtube Research AI skill free?

Yes. It is published on GitHub by bradautomates under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇