youtube

youtube is a skill for Claude Code, Codex from agentproto/ts. It costs 45 tokens per session (1,006 once invoked), scanned A, original, Apache-2.0.

A browser-based YouTube assistant for searching channels and videos, and reviewing comments and commenters. It can also perform account actions such as liking, commenting, and subscribing when allowed.

In plain words
What is it for?
Use it to research YouTube channels, videos, comments, commenters, and search results, or to automate likes, comments, and subscriptions with permission.
Why use it?
It removes the need to manually search YouTube and inspect related accounts or discussions. Logged-in actions can be handled through the user's own session.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to research YouTube channels, videos, comments, commenters, and search results, or to automate likes, comments, and subscriptions with permission.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentproto/ts/youtube
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 agentproto/ts --skill youtube
Clone the repo
git clone --depth 1 https://github.com/agentproto/ts

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentproto/ts/youtube/github.svg)](https://agentmods.dev/skills/agentproto/ts/youtube)
Your own site
<a href="https://agentmods.dev/skills/agentproto/ts/youtube"><img src="https://agentmods.dev/badge/skills/agentproto/ts/youtube/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentproto/ts/youtube"><img src="https://agentmods.dev/badge/skills/agentproto/ts/youtube.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,006 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00045 $0.01006
Opus 5.5 $0.00018 $0.00402
Sonnet 5.5 $0.00009 $0.00201
Haiku 4.5 $0.00005 $0.00101

Measured 1mo ago against content hash 7bd735deaf3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

youtube scanned grade A with 0 findings 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 1mo ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skill-pack-bureau/src/skills/youtube/SKILL.md · 99 lines

How it starts

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

YouTube — recon plan (InnerTube API)

Internal API: InnerTube — POST https://www.youtube.com/youtubei/v1/<endpoint>?key=<INNERTUBE_API_KEY>&prettyPrint=false, body { context: <INNERTUBE_CONTEXT>, ...params }. The web app uses this for everything.

Config + auth (from the page)

  • INNERTUBE_API_KEY + INNERTUBE_CONTEXT live in ytcfg. Read in-page:
    ;() => ({
      key: ytcfg.get("INNERTUBE_API_KEY"),
      ctx: ytcfg.get("INNERTUBE_CONTEXT"),
    })
    
  • Public reads: often work with just key + context (no auth).
  • Personalized / write (subscriptions, comments, like): need SAPISIDHASH auth:
    • Authorization: SAPISIDHASH <ts>_<SHA1(ts + " " + SAPISID + " " + origin)> where SAPISID = the SAPISID (or __Secure-3PAPISID) cookie, origin = https://www.youtube.com, ts = unix seconds. Compute SHA-1 in-page (SubtleCrypto). Also send X-Goog-AuthUser: 0, Origin, cookies (auto).

In-page fetch:

;async (endpoint, body) => {
  const key = ytcfg.get("INNERTUBE_API_KEY")
  const r = await fetch(
    `/youtubei/v1/${endpoint}?key=${key}&prettyPrint=false`,
    {
      method: "POST",
      headers: {
        "content-type": "application/json" /* + SAPISIDHASH for writes */,
      },
      body: JSON.stringify({
        context: ytcfg.get("INNERTUBE_CONTEXT"),
        ...body,
      }),
    }
  )
  return await r.json()
}

Endpoints to test

Purpose endpoint params
Channel / home / playlist browse browseId (channel UC…), params
Watch page → video + comments token next videoId
Comments (+ who/likes) next (continuation token from the watch next) continuation
Search search query, params
Video metadata player videoId
WRITE: comment comment/create_comment / create_comment_reply createCommentParams
WRITE: like/dislike like/like / like/dislike / like/removelike target.videoId
WRITE: subscribe subscription/subscribe / unsubscribe channelIds

Read the full file on GitHub · 99 lines

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. 1mo ago First seen · 99 lines · 45 tokens per session scan A 7bd735deaf3b

Subscribe to this mod's changes

youtube is a skill published in the GitHub repository agentproto/ts (10 stars, last pushed today), licensed Apache-2.0. It adds 45 tokens to every session and 1,006 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. 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

demo-recorder

Use when the user wants a scripted screen-recording demo video of a web app, a narration script or text-to-speech voice-over for one, or a dubbed cut.

sammcj/agentic-coding · 39 tokens

playwright

Use when the task requires capturing or automating a real browser from the terminal.

openai/openai-agents-python · 19 tokens

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

VoltAgent/voltagent · 52 tokens

browser-tools

Safety rules over the upstream agent-browser skill (scraping ethics, auth, request pacing, local URLs). URL policy is the Claude Code sandbox's job when the operator enables it. Use for browser automation.

yonatangross/orchestkit · 44 tokens

qa-screenshot

Screenshot a page (deploy preview or a dev server on localhost) in the sandbox's headless Chromium, look at it, and embed it in a task comment. Use to verify a visual change or record before/after evidence.

decocms/studio · 50 tokens

skill-creator-primer

You MUST load this skill before the skill-creator skill AND before making ANY change to, or conducting a review of ANY Agent Skill. Triggers include creating, editing, reviewing, or contributing to any part of an Agent Skill (description, frontmatter, body, references, scripts, trigger evals, conflicts, etc).

sammcj/agentic-coding · 74 tokens