youtube-channel-insights

youtube-channel-insights is a skill for Claude Code, Codex from nikhilbhansali/youtube-data-skills. It costs 160 tokens per session (3,806 once invoked), scanned B, original, MIT.

A private analytics tool for your own YouTube channel, using data available only to the channel owner. YouTube Analytics shows information such as how long people watched, where they came from, who they are, which videos gained subscribers, and revenue.

In plain words
What is it for?
Use it to understand audience retention, watch time, demographics, subscriber growth, traffic sources, and channel earnings.
Why use it?
It fills in details that public YouTube data cannot show, such as viewer drop-off points and traffic sources.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to understand audience retention, watch time, demographics, subscriber growth, traffic sources, and channel earnings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nikhilbhansali/youtube-data-skills/youtube-channel-insights
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nikhilbhansali/youtube-data-skills --skill youtube-channel-insights
Clone the repo
git clone --depth 1 https://github.com/nikhilbhansali/youtube-data-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for youtube-channel-insights

README.md
[![agentmods](https://agentmods.dev/badge/skills/nikhilbhansali/youtube-data-skills/youtube-channel-insights/github.svg)](https://agentmods.dev/skills/nikhilbhansali/youtube-data-skills/youtube-channel-insights)
Your own site
<a href="https://agentmods.dev/skills/nikhilbhansali/youtube-data-skills/youtube-channel-insights"><img src="https://agentmods.dev/badge/skills/nikhilbhansali/youtube-data-skills/youtube-channel-insights/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for youtube-channel-insights

Your own site · 80×15
<a href="https://agentmods.dev/skills/nikhilbhansali/youtube-data-skills/youtube-channel-insights"><img src="https://agentmods.dev/badge/skills/nikhilbhansali/youtube-data-skills/youtube-channel-insights.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 160 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,806 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00160 $0.03806
Opus 5 $0.00080 $0.01903
Sonnet 5 $0.00032 $0.00761
Haiku 4.5 $0.00016 $0.00381

Measured 12d ago against content hash 76af781a4bf4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

youtube-channel-insights scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/auth.py, scripts/fetch_insights.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 600 ~/.config/youtube-skills/client_secret.json
skills/youtube-channel-insights/SKILL.md · 265 lines

How it starts

The opening of the file, as written. The whole thing — 265 lines — stays where its author put it; the contents beside it link to each section on GitHub.

YouTube Channel Insights

Analyze your own channel with the data only the channel owner can see. The other skills in this suite read public data; this one authenticates as you and pulls retention, traffic sources, watch time, demographics, subscriber attribution, and revenue from the YouTube Analytics API v2.

Question Public Data API This skill
How many views? Yes Yes
How long did people watch? No Yes (watch time, avg view %)
Where did viewers drop off? No Yes (retention curve)
Where did the traffic come from? No Yes (Search / Suggested / Browse)
Who is the audience? No Yes (age, gender, country, device)
Which videos gained subscribers? No Yes
What did it earn? No Yes (with --with-revenue)

One-time setup

The user does this once, then never again. Walk them through it if python3 scripts/auth.py --check reports anything missing.

  1. Create or reuse a Google Cloud projectconsole.cloud.google.com. Any project works, including one already used for a Data API key.
  2. Enable both APIs in APIs & Services > Library:
    • YouTube Data API v3 (used to attach titles, durations, and publish dates to analytics rows)
    • YouTube Analytics API (the actual insights) Both are required. Missing the Analytics API is the single most common cause of a 403.
  3. Configure the OAuth consent screenAPIs & Services > OAuth consent screen:
    • User type: External
    • Fill in app name and your email
    • Add your own Google account under Test users
    • Then PUBLISH the app to Production. This matters: while the consent screen sits in Testing mode, Google expires refresh tokens after 7 days, so you would have to re-authorize every week. Publishing without Google verification is fine for a personal, single-user tool — you will see an "unverified app" warning at sign-in and can click through via Advanced > Go to (app).
  4. Create an OAuth client IDAPIs & Services > Credentials > Create Credentials > OAuth client ID:
    • Application type: Desktop app
    • Download the JSON
  5. Save the file as ~/.config/youtube-skills/client_secret.json:
    mkdir -p ~/.config/youtube-skills
    mv ~/Downloads/client_secret_*.json ~/.config/youtube-skills/client_secret.json
    chmod 600 ~/.config/youtube-skills/client_secret.json
    
  6. Install dependencies and authorize:
    pip3 install google-api-python-client google-auth-oauthlib
    python3 scripts/auth.py                  # analytics + channel read access
    python3 scripts/auth.py --with-revenue   # also unlock revenue / RPM metrics
    
    A browser opens. Sign in with the Google account that owns the channel. The token lands in ~/.config/youtube-skills/token.json (mode 600) and refreshes itself from then on.

Read the full file on GitHub · 265 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 265 lines · 160 tokens per session scan B 76af781a4bf4

Subscribe to this mod's changes

youtube-channel-insights is a skill published in the GitHub repository nikhilbhansali/youtube-data-skills (2 stars, last pushed 25d ago), licensed MIT. It adds 160 tokens to every session and 3,806 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens