/youtube-plugin:youtube-upload path to a video to upload, or the id of an uploaded video to editfrom youtube-plugin
Uploads videos to YouTube via Data API v3 and edits title, description, tags, or thumbnails. Handles OAuth, metadata collection, and dry-run validation.
Ships in youtube-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
scripts/youtube_api.py wraps the four calls this needs: a resumable
videos.insert, thumbnails.set, videos.update, and videos.list for
read-back. Every write subcommand has --dry-run, which validates the input
and prints the exact request without network access or the Google client
libraries.
| Use this skill when... | Use instead when... |
|---|---|
| Uploading a video file, setting its metadata and thumbnail | The video should be visible only to a Workspace organization: upload here, then youtube-studio-share |
| Changing a title, description, tags, category or privacy after upload | Generating chapter lines or extracting a thumbnail frame: video-plugin |
YOUTUBE_CLIENT_SECRETS must name a Desktop OAuth
client JSON, and uv run ${CLAUDE_SKILL_DIR}/scripts/youtube_api.py auth must
have been run. If either is missing, stop and point the user at
REFERENCE.md § One-time OAuth setup. The token is cached at
${XDG_CONFIG_HOME:-~/.config}/youtube-plugin/token.json (mode 0600),
outside any repository.whoami and show the user CHANNEL_TITLE and
CHANNEL_HANDLE. The token belongs to whichever Google account consented,
and the wrong account is the common failure: in practice the first browser
profile was a personal account and the right one was in a second browser.< or >),
description file (5000 bytes max), tags, category id (categories --region FI
lists valid ids; the default is 22), privacy (default private).
Chapter lines in the description come from video-plugin; the script checks
YouTube's chapter rules (first at 0:00, at least 3, each at least 10 s) and
reports violations as STATUS=WARN.--made-for-kids yes|no sets status.selfDeclaredMadeForKids.--synthetic-media yes|no sets status.containsSyntheticMedia, YouTube's
disclosure for realistic altered or synthetic content (AI-generated
footage or voice included). Whether a video needs it is the uploader's
call; ask, never infer.REQUEST_BODY:
uv run ${CLAUDE_SKILL_DIR}/scripts/youtube_api.py upload clip.mp4 --title "…" --description-file desc.txt --tag … --made-for-kids no --synthetic-media no --thumbnail thumb.jpg --dry-run
AskUserQuestion, then run the same command without
--dry-run. It prints VIDEO_ID, WATCH_URL and STUDIO_EDIT_URL. A
failed thumbnail after a successful upload is a WARN; the video id is
still reported, and thumbnail <id> <image> retries only the thumbnail.youtube-studio-share. The API cannot do it: status.privacyStatus accepts
only private, public and unlisted, and no field or method shares a
private video with people or a domain.uv run ${CLAUDE_SKILL_DIR}/scripts/youtube_api.py update <id> --title "New title" --dry-run
uv run ${CLAUDE_SKILL_DIR}/scripts/youtube_api.py update <id> --description-file desc.txt
videos.update deletes every mutable property of a named part that the request
omits, so a body carrying only a new title would wipe the description and tags.
update therefore reads the current snippet and status first and resends
them merged with the change. The dry run cannot read the live video; pass
--current-json with a saved videos.list item to preview the merged body.
Run status <id> after any write and compare TITLE, PRIVACY and
CHAPTER_COUNT against what was sent. Processing is staged: SD is ready first,
HD a few minutes later. PROCESSING_STATUS=processing corresponds to Studio
showing visibility as "Pending" (Odottaa).
| Call | Cost | Bucket |
|---|---|---|
videos.insert | 1 unit | Video Uploads, 100 calls/day by default |
videos.update | 50 units | shared 10,000 units/day |
thumbnails.set | 50 units | shared |
videos.list, channels.list, videoCategories.list | 1 unit | shared |
Source: Quota costs for API requests (page last updated 2026-10-15, read 2026-10-29). The separate upload bucket dates from 2026-06-01; before 2025-12-04 an upload cost about 1600 units (revision history).
| Output | Cause | Fix |
|---|---|---|
no_client_secrets | YOUTUBE_CLIENT_SECRETS unset or not a file | REFERENCE.md § One-time OAuth setup |
no_token | auth never run, or the refresh token expired | Run auth. An OAuth app left in "Testing" status gets refresh tokens that expire after 7 days |
http_403: forbidden on thumbnails.set | Custom thumbnails need a verified YouTube account | Verify the account in YouTube, then retry thumbnail |
http_403: quotaExceeded | Daily quota spent | Wait for the reset at midnight Pacific Time |
http_400: uploadLimitExceeded | The channel has hit its own upload limit | Wait; this is a channel limit, not API quota |
video_not_found | Wrong id, or the token's channel does not own it | Run whoami |
API facts, field limits and the OAuth setup steps: REFERENCE.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub laurigates/claude-plugins --plugin youtube-plugin2 skills in this plugin
Other plugins' skills for the same job