youtube-uploader by aviz85/claude-skills-library
npx skills add https://github.com/aviz85/claude-skills-library --skill youtube-uploader首次使用? 如果上方显示
setup_complete: false,请先运行./SETUP.md,然后设置setup_complete: true。
上传视频到 YouTube,并提供完整的元数据控制。
cd ~/.claude/skills/youtube-uploader/scripts
# 首次使用:身份验证
npx ts-node youtube-upload.ts --auth
# 上传视频
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
# 上传为 YouTube Short(竖版视频)
npx ts-node youtube-upload.ts \
--video /path/to/short.mp4 \
--title "Quick Tip #Shorts" \
--description "A quick tip for you!" \
--privacy public \
--short
| 选项 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 简写 |
|---|
| 描述 |
|---|
--video | -v | 视频文件路径(必需) |
--title | -t | 视频标题(必需) |
--description | -d | 视频描述 |
--tags | 逗号分隔的标签 | |
--privacy | -p | 隐私设置:public, unlisted, private(默认:unlisted) |
--category | -c | 分类 ID(默认:22 = 人物与博客) |
--thumbnail | 自定义缩略图图片路径 | |
--playlist | 添加到播放列表 ID | |
--short | 标记为 YouTube Short | |
--auth | 运行 OAuth2 身份验证流程 | |
--dry-run | 预览而不上传 |
| ID | 分类 |
|---|---|
| 1 | 电影与动画 |
| 2 | 汽车与交通工具 |
| 10 | 音乐 |
| 15 | 宠物与动物 |
| 17 | 体育 |
| 19 | 旅行与活动 |
| 20 | 游戏 |
| 22 | 人物与博客 |
| 23 | 喜剧 |
| 24 | 娱乐 |
| 25 | 新闻与政治 |
| 26 | 操作指南与时尚 |
| 27 | 教育 |
| 28 | 科学与技术 |
首次设置需要 OAuth2 身份验证:
npx ts-node youtube-upload.ts --auth.youtube-token.json令牌会自动刷新。如果过期,请重新运行 --auth。
创建 scripts/.env:
YOUTUBE_CLIENT_ID=your_client_id
YOUTUBE_CLIENT_SECRET=your_client_secret
从 Google Cloud Console 获取凭据:
npx ts-node youtube-upload.ts \
-v tutorial.mp4 \
-t "How to Use Claude Code - Complete Guide" \
-d "Learn everything about Claude Code in this comprehensive tutorial.
Timestamps:
00:00 Introduction
02:30 Getting Started
05:00 Advanced Features
#ClaudeCode #AI #Tutorial" \
--tags "claude code,ai,tutorial,anthropic,coding" \
--category 28 \
--privacy public
npx ts-node youtube-upload.ts \
-v short_video.mp4 \
-t "Mind-blowing AI trick! #Shorts" \
-d "This will change how you work! #AI #Tech" \
--privacy public \
--short
npx ts-node youtube-upload.ts \
-v episode5.mp4 \
-t "Podcast Episode 5" \
--playlist PLxxxxxxxxxxxxxx \
--privacy unlisted
成功时返回:
每周安装次数
97
代码仓库
GitHub 星标数
16
首次出现
2026年1月22日
安全审计
安装于
opencode73
codex71
gemini-cli70
claude-code66
github-copilot64
cursor61
First time? If
setup_complete: falseabove, run./SETUP.mdfirst, then setsetup_complete: true.
Upload videos to YouTube with full metadata control.
cd ~/.claude/skills/youtube-uploader/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
| Option | Short | Description |
|---|---|---|
--video | -v | Video file path (required) |
--title | -t | Video title (required) |
--description | -d | Video description |
--tags | Comma-separated tags | |
--privacy |
| ID | Category |
|---|---|
| 1 | Film & Animation |
| 2 | Autos & Vehicles |
| 10 | Music |
| 15 | Pets & Animals |
| 17 | Sports |
| 19 | Travel & Events |
| 20 | Gaming |
| 22 | People & Blogs |
| 23 | Comedy |
| 24 | Entertainment |
| 25 | News & Politics |
| 26 | Howto & Style |
| 27 | Education |
| 28 | Science & Technology |
First-time setup requires OAuth2 authentication:
npx ts-node youtube-upload.ts --auth.youtube-token.jsonToken refreshes automatically. Re-run --auth if expired.
Create scripts/.env:
YOUTUBE_CLIENT_ID=your_client_id
YOUTUBE_CLIENT_SECRET=your_client_secret
Get credentials from Google Cloud Console:
npx ts-node youtube-upload.ts \
-v tutorial.mp4 \
-t "How to Use Claude Code - Complete Guide" \
-d "Learn everything about Claude Code in this comprehensive tutorial.
Timestamps:
00:00 Introduction
02:30 Getting Started
05:00 Advanced Features
#ClaudeCode #AI #Tutorial" \
--tags "claude code,ai,tutorial,anthropic,coding" \
--category 28 \
--privacy public
npx ts-node youtube-upload.ts \
-v short_video.mp4 \
-t "Mind-blowing AI trick! #Shorts" \
-d "This will change how you work! #AI #Tech" \
--privacy public \
--short
npx ts-node youtube-upload.ts \
-v episode5.mp4 \
-t "Podcast Episode 5" \
--playlist PLxxxxxxxxxxxxxx \
--privacy unlisted
On success, returns:
Weekly Installs
97
Repository
GitHub Stars
16
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode73
codex71
gemini-cli70
claude-code66
github-copilot64
cursor61
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
40,000 周安装
-p |
| Privacy: public, unlisted, private (default: unlisted) |
--category | -c | Category ID (default: 22 = People & Blogs) |
--thumbnail | Custom thumbnail image path |
--playlist | Add to playlist ID |
--short | Mark as YouTube Short |
--auth | Run OAuth2 authentication flow |
--dry-run | Preview without uploading |