youtube
Work with YouTube: read channels, videos, search, playlist items; upload videos and post comments (with confirmation). Trigger phrases: youtube, videos, upload video, youtube comment.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- youtube
- tagline
- Read channels and videos, search, plus uploads and comments with confirmation.
- metadata
- { "includeInPrompt": true }
- description
- Work with YouTube: read channels, videos, search, playlist items; upload videos and post comments (with confirmation). Trigger phrases: youtube, videos, upload video, youtube comment.
- catalog_auth
- OAuth 2.0 (per-user)
- catalog_hosts
- [ "www.googleapis.com" ]
02 资源文件 1
- 脚本bin/youtube.py12.1 KB
03 SKILL.md 正文
YouTube
Purpose
Read public YouTube data (channels, videos with stats, search, playlist items) and write to the authenticated user's channel: upload video files and post top-level comments. Use when the user mentions YouTube or videos.
Tooling
All commands go through bin/youtube.py:
bin/youtube.py auth # verify the OAuth token
bin/youtube.py channel --id UC_abc123 # show a channel
bin/youtube.py video --id dQw4w9WgXcQ # show a video
bin/youtube.py search --query "repair cafe" --limit 10 # search videos
bin/youtube.py playlist-items --playlist-id PL_abc123 --limit 25 # list playlist items
bin/youtube.py upload --file demo.mp4 --title "Demo" --description "..." \
--privacy private \
--confirm 'upload "demo.mp4" as private video "Demo"'
bin/youtube.py comment --video-id dQw4w9WgXcQ --text "Great build!" \
--confirm 'post comment on video dQw4w9WgXcQ: "Great build!"'
The auth check uses the 1-unit /channels?mine=true endpoint, never the expensive search endpoint. upload does a resumable upload in one chunk (session init, then a single PUT of the file bytes); --privacy defaults to private. comment posts a top-level comment as the authenticated channel.
Auth
- Provider id:
youtube(credential is collected ascustom.youtube) - Collection: OAuth 2.0 via the secure credential flow (
credentials.request_api_access); Google Cloud Console OAuth client with the YouTube Data API v3 enabled. The token is sent asAuthorization: Bearer <token>. - Required scopes:
https://www.googleapis.com/auth/youtube.readonly(reads),https://www.googleapis.com/auth/youtube.upload(uploads),https://www.googleapis.com/auth/youtube.force-ssl(comments; this is the scope commentThreads.insert requires). If reads work but writes 403, re-approve with all three scopes. - Allowed hosts:
www.googleapis.com - Status check:
bin/youtube.py auth(must return"ok": true) - Quota binding constraint: YouTube grants 10,000 quota units per day by default.
searchcosts 100 units per call, a comment costs 50, and an upload costs ~1,600 (reported by secondary sources; not in Google's own docs — treat as approximate), so use them sparingly. Favor the 1-unit reads and cache results aggressively: do not re-run the same lookup twice in a session.
Operating Rules
- Reads (
auth,channel,video,search,playlist-items) need no confirmation. - Writes need exact-match confirmation on every call.
uploadrequires--confirmwith the exact string the CLI echoes (names the file, the privacy setting, and the title) because it puts a video on the user's channel.commentrequires--confirmwith its echoed string (video ID plus the first 60 chars of the text) because the comment is public immediately. - Keep every upload
privateby default; only use--privacy publicwhen the user explicitly asks. - Never exfiltrate the credential: the CLI only ever handles surrogates. Do not print, log, or transmit the token value.
Files
- SKILL.md
- bin/youtube.py
Maturity
🧪 Draft: written from Google's public API docs; not yet live-tested end-to-end. The upload flow (resumable session + byte PUT) and comment path have not been verified in a live flow.
04 同仓库更多 Skills
web-scrape
Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open/fetch fails on JS-heavy pages, or when you need clean markdown/structured extraction from a site. Requires FIRECRAWL_API_KEY.
design-taste-frontend
tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML/CSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, "AI-made", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
requesting-code-review
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).