Youtube Research logo

Youtube Research

Community
manojbajaj95
youtube-research

Research YouTube topics, analyze competitor videos, deconstruct viral content, and query the YouTube Data API. Use when researching a video topic before planning, analyzing video transcripts for viral patterns, searching competitor channels, or fetching video and channel stats via the YouTube Data API v3.

Overview

Publishermanojbajaj95
Repositoryclaude-gtm-plugin
Skill nameyoutube-research
Stars
109
Forks
34
Bundled files
2
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.

  • 2 bundled files

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

  • Open source

    Published by manojbajaj95 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/manojbajaj95/claude-gtm-plugin/tree/main/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/manojbajaj95/claude-gtm-plugin.git /tmp/claude-gtm-plugin
mkdir -p .claude/skills
cp -r /tmp/claude-gtm-plugin/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

Workspace Context

Read bootstrap context before asking questions: strategy/brand.md for brand, audience, offer, channels, tools, constraints, and metrics; about/me.md for personal voice; content/ideas.md and content/calendar.md for content planning. Use legacy product-marketing context files only as fallback. Save generated drafts to content/<platform>/drafts/YYYY-MM-DD_short-topic-slug.md, and route durable learnings back to strategy/brand.md, about/me.md, or content/ideas.md.

Operating Contract

This skill is self-contained for its frontmatter scope: use its local instructions, references, scripts, and assets as the playbook; ask only for missing task-specific inputs; hand off to adjacent skills instead of expanding scope; and return an actionable artifact, decision, plan, draft, or diagnostic.

Three modes in one skill:

  1. Topic Research — competitive landscape, content gaps, strategic insights before planning a video
  2. Video Analysis — forensic deconstruction of transcripts to extract viral formulas and retention mechanics
  3. API Queries — direct YouTube Data API v3 access for search, stats, comments, and channel info

When to Use

  • Researching a video topic before planning production
  • Analyzing a competitor video to extract what makes it work
  • Fetching channel stats, video metrics, or comments via the API
  • Identifying content gaps and opportunities in a niche

YouTube Data API Setup

1. Get an API Key

  1. Go to Google Cloud Console → APIs & Services → Library
  2. Enable YouTube Data API v3
  3. Create Credentials → API Key
bash
export YOUTUBE_API_KEY="your-api-key-here"

Important: When piping curl output, wrap the command in bash -c '...' to preserve env vars:

bash
bash -c 'curl -s "https://..." -H "..." | jq .'

2. Key API Commands

Search Videos:

bash
bash -c 'curl -s "https://www.googleapis.com/youtube/v3/search?part=snippet&q=YOUR_QUERY&type=video&maxResults=10&order=viewCount&key=${YOUTUBE_API_KEY}"' | jq '.items[] | {videoId: .id.videoId, title: .snippet.title, channel: .snippet.channelTitle}'

Get Video Details (stats, duration):

bash
bash -c 'curl -s "https://www.googleapis.com/youtube/v3/videos?part=snippet,statistics,contentDetails&id=VIDEO_ID&key=${YOUTUBE_API_KEY}"' | jq '.items[0] | {title: .snippet.title, views: .statistics.viewCount, likes: .statistics.likeCount, duration: .contentDetails.duration}'

Get Channel by Handle:

bash
bash -c 'curl -s "https://www.googleapis.com/youtube/v3/channels?part=snippet,statistics&forHandle=@HANDLE&key=${YOUTUBE_API_KEY}"' | jq '.items[0] | {id: .id, title: .snippet.title, subscribers: .statistics.subscriberCount, videos: .statistics.videoCount}'

Get Video Comments:

bash
bash -c 'curl -s "https://www.googleapis.com/youtube/v3/commentThreads?part=snippet&videoId=VIDEO_ID&maxResults=20&order=relevance&key=${YOUTUBE_API_KEY}"' | jq '.items[] | {author: .snippet.topLevelComment.snippet.authorDisplayName, text: .snippet.topLevelComment.snippet.textDisplay, likes: .snippet.topLevelComment.snippet.likeCount}'

Get Trending Videos:

bash
bash -c 'curl -s "https://www.googleapis.com/youtube/v3/videos?part=snippet,statistics&chart=mostPopular&regionCode=US&maxResults=10&key=${YOUTUBE_API_KEY}"' | jq '.items[] | {title: .snippet.title, channel: .snippet.channelTitle, views: .statistics.viewCount}'

Quota: 10,000 units/day. Search = 100 units. Most others = 1 unit.

See YouTube Data API docs for full reference.


Mode 1: Topic Research

Conduct research before planning a new video. Focus on insights and big levers — not data dumping.

Workflow

Step 0: Create research file

Save all research to: ./youtube/episode/[episode_number]_[topic_short_name]/research.md

If it already exists, read it and continue from where it left off.

Step 1: Understand the topic

  • What problem does this video solve?
  • Why would someone click on it?
  • What makes it relevant now?

Step 2: Research your own channel

Use the API to find related videos you've already published. Document:

  • Related videos (title, video ID, URL, key metrics)
  • What's already been covered and how to differentiate

Step 3: Competitor research

Search for 5–8 top videos on the topic. For each:

  • Get video details (views, likes, duration)
  • Note the title, angle, and what makes it successful
  • Synthesize common patterns and approaches

Step 4: Content gap analysis

Document:

  • What's saturated — 3–5 over-covered angles
  • Gaps (Opportunities) — rated ⭐⭐⭐ high / ⭐⭐ medium / ⭐ low
  • Recommended focus — specific angle + unique value proposition

Rating criteria:

  • ⭐⭐⭐ High: Significant gap, strong demand, clear differentiation
  • ⭐⭐ Medium: Moderate gap, some competition, good potential
  • ⭐ Low: Minor gap, heavily competed

Research File Template

markdown
# [Episode]: [Topic] - Research

## Episode Overview
**Topic**: [Brief description]
**Target Audience**: [Who this is for]
**Goal**: [What viewers will learn/gain]

## YouTube Research
### Your Previous Videos
[Related videos with metrics]

### Top Competing Videos
[5-8 videos: title, channel, views, angle, what works]

### Key Insights
[Patterns and findings synthesized]

## Content Gap Analysis
### What's Already Well-Covered
[List]

### Content Gaps (Opportunities)
[Rated list with ⭐ ratings]

### Recommended Focus
[Specific angle and unique value proposition]

## Production Notes
**Status**: Research Complete
**Created**: [Date]

Parallel Research

If the host environment supports parallel research, split focused tasks such as competitor search, own-channel review, and comment mining. Otherwise, do them sequentially and synthesize findings after each section.

Pitfalls

  • Data dumping — Limit to 5–8 competitors, synthesize patterns instead of listing every video
  • Vague gaps — "Not much content on this" → identify the specific missing angle
  • Long reports — Focus on insights and big levers

Next step: Use youtube-content skill to plan the video based on this research.


Mode 2: Video Analysis

Forensic deconstruction of video transcripts to extract viral formulas, hooks, and retention mechanics.

Getting the Transcript

Auto-fetch:

bash
python skills/youtube-research/scripts/fetch_transcript.py "YOUTUBE_URL_OR_VIDEO_ID"

Manual paste: YouTube's built-in transcript (click "..." → "Show transcript") or ytscribe.ai.

Analysis Framework

Approach the transcript like a crime scene — extract everything systematically. See reference/analysis-framework.md for the full checklist and templates.

Analyze these 11 dimensions:

  1. Hook Architecture — Primary hook (first 3–8s), hook type, secondary hooks, fill-in-blank templates
  2. Structural Blueprint — Content framework (PAS, Story-Lesson-CTA, List-Depth-Summary), beat map, pacing
  3. Retention Mechanics — Open loops, pattern interrupts, curiosity gaps, payoff points
  4. Emotional Engineering — Emotional arc, trigger words, identity hooks, Us vs. Them dynamics
  5. Storytelling Elements — Narrative framework, character positioning, conflict/stakes, specificity
  6. Linguistic Patterns — Power phrases, sentence rhythm, repetition, conversational triggers
  7. Algorithm Signals — Watch time optimizers, engagement bait, share/save triggers
  8. CTA Architecture — Primary CTA, soft CTAs, timing, value exchange
  9. Viral Coefficient — Shareability score (1–10), comment bait density, crossover potential
  10. Reusable Templates — Fill-in-blank opening hooks (3 variations), section templates, transition library
  11. Implementation Playbook — Top 10 steal-this elements, niche adaptation, A/B test suggestions

Before Analysis, Collect Context

  • Your niche/topic
  • Your content style (casual, educational, hype, etc.)
  • Target platform and video length goal

Output Format

Structure output with all 11 sections. End with a Quick Reference Cheatsheet — one-page summary of all extracted patterns for rapid implementation.


Tools

  • YouTube API: bash -c 'curl ...' with $YOUTUBE_API_KEY
  • MCP (if available): mcp__plugin_yt-content-strategist_youtube-analytics__search_videos, get_video_details, get_channel_details
  • Web: WebSearch and WebFetch for industry trends and context

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 YouTube topics, analyze competitor videos, deconstruct viral content, and query the YouTube Data API. Use when researching a video topic before planning, analyzing video transcripts for viral patterns, searching competitor channels, or fetching video and channel stats via the YouTube Data API v3.

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/manojbajaj95/claude-gtm-plugin/tree/main/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 manojbajaj95 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 👇