gws-youtube

gws-youtube is a skill for Claude Code from jtsternberg/claude-plugins. It costs 43 tokens per session (2,387 once invoked), scanned A, original, MIT.

A set of commands for managing the authenticated user's YouTube playlists through the gws command-line tool. It can inspect playlists and their videos using the selected Google account.

In plain words
What is it for?
Use it to list playlists, add or remove videos, find duplicates, deduplicate playlists, merge them, and clean up playlist contents.
Why use it?
It avoids repeating playlist cleanup by hand and keeps YouTube operations tied to the correct signed-in account.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the gws plugin — 7 skills shipped together

Good fit Use it to list playlists, add or remove videos, find duplicates, deduplicate…

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add jtsternberg/claude-plugins
Claude Code
/plugin install gws

Made for: Claude Code.

Or install gws, the plugin that ships this one along with the rest of its 7 skills.

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 gws-youtube

README.md
[![agentmods](https://agentmods.dev/badge/skills/jtsternberg/claude-plugins/youtube.svg)](https://agentmods.dev/skills/jtsternberg/claude-plugins/youtube)
Your own site
<a href="https://agentmods.dev/skills/jtsternberg/claude-plugins/youtube"><img src="https://agentmods.dev/badge/skills/jtsternberg/claude-plugins/youtube.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,387 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00043 $0.02387
Opus 5 $0.00022 $0.01193
Sonnet 5 $0.00009 $0.00477
Haiku 4.5 $0.00004 $0.00239

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

Security

Grade A, and why

gws-youtube scanned grade A 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 6d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: 'Bash(bash *) Bash(jq *) Bash(curl *) Bash(python3 *)'
plugins/gws/skills/youtube/SKILL.md · 226 lines

How it starts

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

YouTube (gws)

Manage the authenticated user's YouTube playlists via bash primitives in plugins/gws/scripts/youtube-*.sh. All operations resolve the active gws account via account-common.sh and read client_secret.json from that account's config dir. Tokens persist as <account-dir>/youtube_credentials.json mode 0600 (plaintext, matching the gws plugin's bash-script convention).

Prerequisites

Confirm the user is authenticated for YouTube on the active account:

# Codex: this path resolves under Claude Code; substitute the directory containing this plugin.
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}"
test -f "$(jq -r '.' <(bash "$PLUGIN_ROOT/scripts/account-current.sh" --json) 2>/dev/null | jq -r '.config_dir // empty')/youtube_credentials.json" \
  && echo "youtube credentials present" \
  || echo "NOT AUTHENTICATED — run youtube-login.sh from the resolved plugin root"

If not authenticated, run youtube-login.sh first (PKCE + loopback flow, opens a browser tab on macOS/Linux).

GCP API Enable (one-time, gnarly)

The OAuth flow succeeds before this matters, but the FIRST data-API call will fail with HTTP 403 accessNotConfigured until YouTube Data API v3 is enabled on the GCP project tied to the gws OAuth client. The error message contains the project number and a direct enable URL. Extract it and show it to the user verbatim:

https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=<PROJECT_NUMBER>

After the user clicks "Enable" and waits ~30 seconds, retry the call. This is a one-time setup per GCP project, not per account.

Primitives

All scripts share the same flag conventions:

  • --account=LABEL — override the active gws account
  • --json — machine-readable output (default: human table)
  • --force-refresh — refresh access token before the API call (testing aid)
  • --help — usage text

Mutating scripts (add, remove) additionally support:

  • --yes / -y — skip the interactive [y/N] confirmation prompt
  • --dry-run — print the plan; make no destructive API call

Read the full file on GitHub · 226 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. 6d ago First seen · 226 lines · 43 tokens per session scan A bb324c190dcf

Subscribe to this mod's changes

gws-youtube is a skill published in the GitHub repository jtsternberg/claude-plugins (5 stars, last pushed 2d ago), licensed MIT. It adds 43 tokens to every session and 2,387 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens