Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

youtube-publisher

БесплатноЗапускает вложенные скриптыНе проверен

Upload and fully manage YouTube videos and live events: metadata, thumbnails, captions, playlists, scheduled broadcasts, encoder streams, binding, lifecycle…

wlzhот wlzh★ 703 звезды на GitHub

Об этом скилле

🔴 Strict Execution Rule (Highest Priority)

Resource comments: scripts/youtube-resource-comments.ts is a JSON-stdin transport for owner-verified inspection and a SINGLE non-retried top-level comment POST. Invoke it through Duanku's duanku-youtube-publish-blog-pipeline/scripts/resource_comments.py durable state machine, not as an untracked standalone POST. Pinning is browser-only; follow that skill's references/RESOURCE-COMMENTS.md, automatically pin and refresh-verify, and never claim that the Data API pins comments. No media upload or visibility change is part of comment recovery.

Every instruction, step, and check in this SKILL.md must be followed exactly as written — no deviations allowed.

  • Scripts must be actually executed: The youtube-upload.ts script must be run with all required parameters. Do not simulate or manually construct API calls.
  • Steps must not be skipped or merged: Execute authentication, metadata sanitization, and upload in the defined order. Each step must succeed before the next begins.
  • Checks must not be omitted: All metadata validation (title ≤100 chars, description ≤5000 chars, tags ≤500 chars) and upload verification must be fully executed.
  • Config must be read from files: OAuth credentials and default settings must be read from the configured files. Do not hardcode.

YouTube Publisher

First time? If setup_complete: false above, run ./SETUP.md first, then set setup_complete: true.

Upload videos to YouTube with full metadata control.

Live broadcasts and encoder streams

Use youtube-live.ts to list, inspect, schedule, update, bind, transition, and delete YouTube Live broadcasts and encoder streams. Mutating commands support --dry-run; destructive deletion, live/completed transitions, and stream-key disclosure require explicit --yes. Stream keys are redacted from ordinary output.

The safe default is one dedicated named encoder stream per independent show/event. Intentional reuse across active or upcoming broadcasts requires --allow-shared-stream.

Read references/live-streaming.md before operating a live event. Scheduled timestamps must include an explicit timezone (Z or ±HH:MM).

The skill passes --inherit-previous before creation unless the user requests a clean profile. The raw CLI remains deterministic and offline without that explicit flag.

An interrupted video insert is never retried inside youtube-upload.ts. Recovery must identify exactly one recent same-title video with a verified non-zero duration. Persistent P0D exits 42 with PERSISTENT_P0D_VIDEO_ID; unavailable or inconclusive inspection exits 43 with AMBIGUOUS_UPLOAD_VIDEO_ID. Inspect the channel before another insert.

Caption recovery updates one exact language/name track in place or inserts a new track. It never deletes an existing caption before the replacement upload succeeds.

Metadata sanitization

  • > in title/description is automatically rewritten to 》
  • < in title/description is automatically rewritten to 《
  • Use this when YouTube rejects metadata because of special characters

Quick Start

cd ~/.claude/skills/youtube-publisher/scripts

# First time: authenticate
npx ts-node youtube-upload.ts --auth

# Upload video
npx ts-node youtube-upload.ts \
  --video /path/to/video.mp4 \
  --title "My Awesome Video" \
  --description "Check out this amazing content!" \
  --tags "tech,ai,tutorial" \
  --privacy unlisted

# Upload as YouTube Short (vertical video)
npx ts-node youtube-upload.ts \
  --video /path/to/short.mp4 \
  --title "Quick Tip #Shorts" \
  --description "A quick tip for you!" \
  --privacy public \
  --short

Options

Option Short Description
--video -v Video file path (required)
--title -t Video title (required)
--description -d Video description
--tags Comma-separated tags
--privacy -p Privacy: public, unlisted, private (default: unlisted)
--category -c Category ID (default: 22 = People & Blogs)
--thumbnail Custom thumbnail image (local path or URL)
--subtitles Subtitle file path (SRT/VTT)
--subtitle-lang Subtitle language code (default: zh)
--subtitle-name Subtitle display name (default: 中文)
--short Mark as YouTube Short
--auth Run OAuth2 authentication flow
--dry-run Preview without uploading

Playlist catalog export

Export every public playlist owned by the authenticated channel, including ordered video IDs and thumbnails. The blog synchronizer consumes this deterministic JSON to build /series/, GitHub series pages, and the resource-site guide hub.

This command is read-only. The author manually maintains playlist membership before requesting the final notification; export-playlists.ts must never add, remove, reorder or infer playlist membership. The notification pip

Полный SKILL.md на GitHub

Установить youtube-publisher в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.gitignoreSETUP.mdSETUP_zh.mdSKILL_zh.mdreferences/CHANGELOG.mdreferences/live-streaming.mdscripts/.env.examplescripts/.gitignorescripts/authenticate.tsscripts/export-playlists.tsscripts/list-recent.tsscripts/list-uploads.tsscripts/package-lock.jsonscripts/package.jsonscripts/reauth.tsscripts/tsconfig.jsonscripts/upload-captions.tsscripts/upload-thumbnail.tsscripts/youtube-caption-upsert.tsscripts/youtube-live-cli.tsscripts/youtube-live-service.tsscripts/youtube-live.tsscripts/youtube-resource-comments.tsscripts/youtube-update-description.tsscripts/youtube-upload-recovery.tsscripts/youtube-upload.ts

FAQ

Что делает скилл youtube-publisher?

Upload and fully manage YouTube videos and live events: metadata, thumbnails, captions, playlists, scheduled broadcasts, encoder streams, binding, lifecycle transitions, and cleanup.

Как установить скилл youtube-publisher?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл youtube-publisher запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить youtube-publisher с