Agent skill

Youtube Analytics

by OpenClaudia in OpenClaudia/openclaudia-skills

Analyze YouTube channel and video performance using the YouTube Data API.

MITAuto-check: notesMarketing & SEO

Install Youtube Analytics

skills CLI
$ npx skills add OpenClaudia/openclaudia-skills --skill youtube-analytics -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install OpenClaudia/openclaudia-skills youtube-analytics --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/OpenClaudia/openclaudia-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/youtube-analytics .claude/skills/youtube-analytics && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
youtube-analytics
GitHub stars
713
Token cost
~1.7k tokens
SKILL.md length
441 words
Files
1
Skills in repo
74
Repo updated
First seen
Licence
MIT

At a glance

Analyze YouTube channel and video performance using the YouTube Data API.

  • Works in 4 steps: Channel Overview → Top Performing Content → Content Gaps → …
  • The user says YouTube analytics
  • SKILL.md covers Prerequisites, API Reference, Analysis Process and Output Format, plus 2 more sections
  • Calls curl; reaches googleapis.com and console.cloud.google.com; needs YOUTUBE_API_KEY

What it does

Youtube Analytics is an agent skill from OpenClaudia/openclaudia-skills. Analyze YouTube channel and video performance using the YouTube Data API. Use when the user says "YouTube analytics", "check my channel", "video performance", "YouTube stats", "channel analysis", "compare YouTube channels", "YouTube SEO", or asks about YouTube metrics, views, subscribers, or content performance.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Marketing & SEO, covering Content marketing. It works with YouTube. The repository describes itself as: 77 open-source marketing skills for Claude Code, Codex, and other AI coding agents. SEO, content, email, ads, analytics, and growth. The licence is MIT.

When your agent uses it

  • The user says YouTube analytics
  • Check my channel
  • Video performance
  • Channel analysis

Example prompts

  • “YouTube analytics”
  • “check my channel”
  • “video performance”
  • “/youtube-analytics”

Requirements

  • A credential in YOUTUBE_API_KEY

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Channel Overview
  2. Top Performing Content
  3. Content Gaps
  4. YouTube SEO Analysis

What it can do on your machine

Read from SKILL.md and the folder at commit 28bf209. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • googleapis.com
    • console.cloud.google.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • YOUTUBE_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Youtube Analytics loads about 1.7k tokens when it runs. Until then it costs about 83 tokens; SKILL.md has 441 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~83
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:12
    t in environment variables or `~/.claude/.env.global`. If not found, inform the user:
  • NoteMentions a .env fileSKILL.md:17
    Or add it to ~/.claude/.env.global

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from OpenClaudia/openclaudia-skills at commit 28bf209, republished under its MIT licence (© OpenClaudia). 441 words, ~1,661 tokens.

Download SKILL.mdSave it as .claude/skills/youtube-analytics/SKILL.md (or your agent's skills folder).
name
youtube-analytics
description
Analyze YouTube channel and video performance using the YouTube Data API. Use when the user says "YouTube analytics", "check my channel", "video performance", "YouTube stats", "channel analysis", "compare YouTube channels", "YouTube SEO", or asks about YouTube metrics, views, subscribers, or content performance.

YouTube Analytics Skill

You are a YouTube analytics and strategy expert. Use the YouTube Data API v3 to analyze channels, videos, and search trends to provide actionable insights.

Prerequisites

This skill requires YOUTUBE_API_KEY. Check for it in environment variables or ~/.claude/.env.global. If not found, inform the user:

This skill requires a YouTube Data API v3 key. Set it via:
  export YOUTUBE_API_KEY=your_key_here
Or add it to ~/.claude/.env.global

Get your API key at: https://console.cloud.google.com/apis/credentials
Enable "YouTube Data API v3" in your Google Cloud project.

API Reference

Base URL: https://www.googleapis.com/youtube/v3

Channel Analysis

Get channel by username or handle:

bash
curl -s "https://www.googleapis.com/youtube/v3/channels?part=snippet,statistics,contentDetails,brandingSettings&forHandle=@{handle}&key=${YOUTUBE_API_KEY}"

Get channel by ID:

bash
curl -s "https://www.googleapis.com/youtube/v3/channels?part=snippet,statistics,contentDetails&id={channelId}&key=${YOUTUBE_API_KEY}"

Key metrics returned:

  • statistics.viewCount — Total channel views
  • statistics.subscriberCount — Subscriber count
  • statistics.videoCount — Total videos published
  • contentDetails.relatedPlaylists.uploads — Upload playlist ID (use to list all videos)
List Channel Videos

Get uploads playlist:

bash
curl -s "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet,contentDetails&playlistId={uploadsPlaylistId}&maxResults=50&key=${YOUTUBE_API_KEY}"
Video Performance

Get video statistics:

bash
curl -s "https://www.googleapis.com/youtube/v3/videos?part=snippet,statistics,contentDetails&id={videoId1},{videoId2}&key=${YOUTUBE_API_KEY}"

Key metrics:

  • statistics.viewCount — Views
  • statistics.likeCount — Likes
  • statistics.commentCount — Comments
  • contentDetails.duration — Video length (ISO 8601 format)
  • snippet.publishedAt — Publish date
  • snippet.tags — Video tags

Search videos by keyword:

bash
curl -s "https://www.googleapis.com/youtube/v3/search?part=snippet&q={keyword}&type=video&maxResults=10&order=relevance&key=${YOUTUBE_API_KEY}"

Search with filters:

  • order=viewCount — Most viewed
  • order=date — Most recent
  • order=rating — Highest rated
  • publishedAfter=2026-01-01T00:00:00Z — Filter by date
  • videoDuration=short|medium|long — Filter by length
  • regionCode=US — Filter by region

Analysis Process

Step 1: Channel Overview

Pull channel data and compute:

MetricCalculation
Avg views per videoTotal views / video count
Upload frequencyVideos per week/month (from recent 50 uploads)
Subscriber-to-view ratioAvg views / subscriber count
Engagement rate(Likes + Comments) / Views × 100
Step 2: Top Performing Content

List the last 50 videos and sort by:

  1. View count (absolute performance)
  2. Views per day since publish (velocity)
  3. Engagement rate (likes + comments / views)
  4. Like-to-view ratio

Identify patterns in top performers:

  • Common topics or keywords
  • Video length sweet spot
  • Thumbnail style (from title patterns)
  • Posting day and time
Step 3: Content Gaps

Search for the channel's core keywords and compare:

  • What top-ranking videos cover vs. what this channel has
  • Competitor channels ranking for the same keywords
  • Trending topics the channel hasn't addressed
Show full SKILL.md (162 more words)Show less
Step 4: YouTube SEO Analysis

For each video analyzed, check:

ElementBest PracticeScore
TitleKeyword in first 60 chars, compelling, <70 chars✓/✗
Description200+ words, keyword in first 2 lines, links, timestamps✓/✗
Tags5-15 relevant tags, mix of broad and specific✓/✗
Thumbnail(Cannot check via API — note this)N/A
End screens(Cannot check via API — note this)N/A

Output Format

markdown
# YouTube Channel Analysis: {Channel Name}
**Date:** {date}
**Subscribers:** {count}
**Total Views:** {count}
**Videos:** {count}
**Channel Age:** {years/months}

## Performance Overview

| Metric | Value | Benchmark |
|--------|-------|-----------|
| Avg views/video | {count} | {niche avg if known} |
| Upload frequency | {X}/week | 1-3/week recommended |
| Engagement rate | {X}% | 3-7% is good |
| Sub-to-view ratio | {X}% | >10% is healthy |

## Top 10 Videos by Views

| # | Title | Views | Likes | Comments | Published | Engagement |
|---|-------|-------|-------|----------|-----------|------------|
| 1 | {title} | {views} | {likes} | {comments} | {date} | {rate}% |

## Content Patterns

### What Works
- {Pattern 1: topic/format that consistently performs}
- {Pattern 2}

### Underperforming
- {Pattern that gets below-average views}

## SEO Opportunities

| Keyword | Search Volume | Competition | Channel Coverage |
|---------|--------------|-------------|-----------------|
| {keyword} | {if available} | {high/med/low} | {has video / missing} |

## Recommendations

1. **{Recommendation}** — {Why and expected impact}
2. **{Recommendation}** — {Why and expected impact}
3. **{Recommendation}** — {Why and expected impact}

Channel Comparison

When comparing channels, present:

markdown
## Channel Comparison

| Metric | {Channel A} | {Channel B} | {Channel C} |
|--------|-------------|-------------|-------------|
| Subscribers | {count} | {count} | {count} |
| Total views | {count} | {count} | {count} |
| Videos | {count} | {count} | {count} |
| Avg views/video | {count} | {count} | {count} |
| Upload frequency | {X}/week | {X}/week | {X}/week |
| Top video views | {count} | {count} | {count} |

Important Notes

  • The YouTube Data API has a daily quota of 10,000 units. Each search costs 100 units. Each video/channel lookup costs 1-3 units. Be efficient with API calls.
  • Batch video IDs in single requests (up to 50 per call) to conserve quota.
  • Subscriber counts below 1,000 are hidden by YouTube. The API returns 0 in these cases.
  • likeCount may not be available if the creator has hidden likes.
  • API results are public data only. For private analytics (watch time, CTR, audience retention), the channel owner needs YouTube Studio or YouTube Analytics API with OAuth.

© OpenClaudia, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/youtube-analytics of OpenClaudia/openclaudia-skills.

Open the folder on GitHubat commit 28bf209

Compare with similar skills

Youtube Analytics next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Youtube Analytics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Youtube Analytics this skillOpenClaudia/openclaudia-skills713—~1.7kAutomated safety check: NotesMIT
Content Engineaffaan-m/ECC276k3 repos~293Automated safety check: PassMIT
Content Engineaffaan-m/ECC276k—~608Automated safety check: PassMIT
Ecommerce Content MarketingLeoYeAI/openclaw-master-skills2.2k1 repos~5.3kAutomated safety check: PassMIT
Cheat Publish RegistrationXBuilderLAB/cheat-on-content7.2k—~1.3kAutomated safety check: NotesMIT
Apify Content Analyticssickn33/agentic-awesome-skills47k2 repos~1.2kAutomated safety check: NotesMIT

Similar skills

  • Content Engine

    affaan-m/ECC

    为X、LinkedIn、TikTok、YouTube、新闻通讯和跨平台重新利用的多平台活动创建平台原生内容系统。适用于当用户需要社交媒体帖子、帖子串、脚本、内容日历,或一个源资产在多个平台上清晰适配时。

    276k GitHub starsUsed in 3 repos~293 tokens
    Marketing & SEOAuto-check passed
  • Content Engine

    affaan-m/ECC

    X、LinkedIn、TikTok、YouTube、ニュースレター、マルチプラットフォームキャンペーンのプラットフォームネイティブなコンテンツシステムを作成します。ソーシャル投稿、スレッド、スクリプト、コンテンツカレンダー、または1つのソースアセットを複数プラットフォームにきれいに適応したい場合に使用します。

    276k GitHub stars~608 tokensUpdated 4 days ago
    Marketing & SEOAuto-check passed
  • Ecommerce Content Marketing

    LeoYeAI/openclaw-master-skills

    E-commerce content marketing strategy planner. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub starsUsed in 1 repo~5.3k tokens
    Writing & ContentAuto-check passed
  • Cheat Publish Registration

    XBuilderLAB/cheat-on-content

    Records that a piece of content went live by writing its URL, platform and publish time into the prediction file header and state file, leaving the prediction text untouched.

    7.2k GitHub stars~1.3k tokensUpdated 4 days ago
    Marketing & SEOAuto-check: notes
  • Apify Content Analytics

    sickn33/agentic-awesome-skills

    Track engagement metrics, measure campaign ROI, and analyze content performance across Instagram, Facebook, YouTube, and TikTok.

    47k GitHub starsUsed in 2 repos~1.2k tokens
    Data & AnalyticsAuto-check: notes
  • Google SEO APIs

    AgriciDaniel/claude-seo

    Pulls real Google data for SEO work: Search Console, PageSpeed Insights, CrUX field data, the Indexing API and GA4 organic traffic, through /seo google commands.

    19k GitHub starsUsed in 1 repo~4.2k tokens
    Marketing & SEOAuto-check passed

More from OpenClaudia/openclaudia-skills

All 74 skills in this repo
  • Competitor Traffic Report

    OpenClaudia/openclaudia-skills

    Build an interactive competitive-traffic report for any company and its rivals — monthly visits (SimilarWeb), organic search traffic and Domain Rating (Ahrefs) — as one self-contained HTML page with…

    713 GitHub stars~1.2k tokensUpdated 21 days ago
    Auto-check passed
  • Geo Difficulty

    OpenClaudia/openclaudia-skills

    Score how hard a keyword is to rank for in the AI-search era — page-level URL Rating of real competitors (not just domain DR), Ahrefs keyword difficulty, and whether a given site already ranks or is…

    713 GitHub stars~694 tokensUpdated 21 days ago
    Auto-check passed
  • Gsc Portfolio Audit

    OpenClaudia/openclaudia-skills

    Audit EVERY Google Search Console property at once — rank all sites by clicks and impressions with period-over-period deltas, then diff keywords per site to surface what is newly ranking, rising…

    713 GitHub stars~1k tokensUpdated 21 days ago
    Auto-check passed
  • Similarweb Traffic

    OpenClaudia/openclaudia-skills

    Fetch website traffic estimates (monthly visits, traffic sources, top countries, keywords, engagement, ranks) for any domain from SimilarWeb.

    713 GitHub stars~882 tokensUpdated 21 days ago
    Auto-check passed
  • Ahrefs Python

    OpenClaudia/openclaudia-skills

    Manages Ahrefs API usage in Python using ahrefs-python library.

    713 GitHub stars~1.9k tokensUpdated 21 days ago
    Auto-check passed
  • Ab Test Setup

    OpenClaudia/openclaudia-skills

    Design, plan, and analyze A/B tests with statistical rigor. An agent skill from OpenClaudia/openclaudia-skills.

    713 GitHub stars~1.7k tokensUpdated 21 days ago
    Auto-check passed

Works with

Categories

Questions about Youtube Analytics

What does Youtube Analytics do?

Analyze YouTube channel and video performance using the YouTube Data API. Youtube Analytics is an agent skill from OpenClaudia/openclaudia-skills. Analyze YouTube channel and video performance using the YouTube Data API.

When should I use Youtube Analytics?

Youtube Analytics fits situations like: the user says YouTube analytics; check my channel; video performance; channel analysis.

How do I install Youtube Analytics in Claude Code?

Run `npx skills add OpenClaudia/openclaudia-skills --skill youtube-analytics -a claude-code`. Or copy the skill folder (skills/youtube-analytics in OpenClaudia/openclaudia-skills) into .claude/skills/youtube-analytics in your project. Claude Code loads it when a task matches its description.

How do I install Youtube Analytics in Codex?

Run `npx skills add OpenClaudia/openclaudia-skills --skill youtube-analytics -a codex`. Or copy the skill folder (skills/youtube-analytics in OpenClaudia/openclaudia-skills) into .agents/skills/youtube-analytics in your project. Codex loads it when a task matches its description.

Can I use Youtube Analytics in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenClaudia/openclaudia-skills --skill youtube-analytics -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/youtube-analytics, .gemini/skills/youtube-analytics, .github/skills/youtube-analytics and .opencode/skills/youtube-analytics in your project.

What does Youtube Analytics need to run?

Going by SKILL.md and its folder, Youtube Analytics needs the command-line tools its instructions call (curl) and credentials named YOUTUBE_API_KEY. Our summary lists: A credential in YOUTUBE_API_KEY.

Does Youtube Analytics access the network?

SKILL.md names 2 domains. In commands or code: googleapis.com and console.cloud.google.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Youtube Analytics safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Youtube Analytics use?

Youtube Analytics is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Youtube Analytics use?

About 1.7k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Youtube Analytics?

Skills that share tags, products or a category with Youtube Analytics: Content Engine (affaan-m/ECC, 276k stars), Content Engine (affaan-m/ECC, 276k stars), Ecommerce Content Marketing (LeoYeAI/openclaw-master-skills, 2.2k stars) and Cheat Publish Registration (XBuilderLAB/cheat-on-content, 7.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Youtube Analytics?

OpenClaudia (a GitHub organization) maintains it in OpenClaudia/openclaudia-skills, which has 713 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on September 18, 2026.

Source: OpenClaudia/openclaudia-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.