youtube-studio

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

YouTube Studio Skill

YouTube Studio Skill

Overview

概述

Automates YouTube Studio creator operations including video uploads, channel management, analytics review, and content optimization through browser automation.
通过浏览器自动化,实现YouTube Studio创作者操作的自动化,包括视频上传、频道管理、数据查看和内容优化。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/youtube-studio/install.sh | bash
Or manually:
bash
cp -r skills/youtube-studio ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/youtube-studio/install.sh | bash
或者手动安装:
bash
cp -r skills/youtube-studio ~/.canifi/skills/

Setup

配置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set GOOGLE_EMAIL "your-email@example.com" canifi-env set GOOGLE_PASSWORD "your-password"
undefined
canifi-env set GOOGLE_EMAIL "your-email@example.com" canifi-env set GOOGLE_PASSWORD "your-password"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭证,由你掌控。 Canifi LifeOS尊重你的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭证:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. Claude将使用你的已认证会话,全程不会获取你的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果你愿意共享凭证,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭证仅能在你的本地设备上访问,绝不会被传输。

Capabilities

功能

  • Upload and publish videos
  • Edit video details and thumbnails
  • View channel analytics
  • Manage comments
  • Create and schedule posts
  • Access revenue reports
  • Edit channel settings
  • Manage playlists from creator perspective
  • 上传并发布视频
  • 编辑视频详情和缩略图
  • 查看频道数据
  • 管理评论
  • 创建并安排帖子发布
  • 访问收益报告
  • 编辑频道设置
  • 从创作者视角管理播放列表

Usage Examples

使用示例

Example 1: Upload Video

示例1:上传视频

User: "Upload this video to my YouTube channel"
Claude: I'll upload that video.
- Navigate to studio.youtube.com
- Click Create > Upload video
- Select and upload video file
- Add title, description, tags
- Set visibility and publish
- Confirm upload complete
用户:"把这个视频上传到我的YouTube频道"
Claude:我会完成视频上传。
- 导航至studio.youtube.com
- 点击创建 > 上传视频
- 选择并上传视频文件
- 添加标题、描述、标签
- 设置可见性并发布
- 确认上传完成

Example 2: Check Analytics

示例2:查看数据

User: "Show me my YouTube channel analytics for this month"
Claude: I'll pull your analytics.
- Navigate to Analytics section
- Select this month's date range
- Gather views, watch time, subscribers
- Compile revenue if monetized
- Present performance summary
用户:"给我看我YouTube频道本月的数据"
Claude:我会提取你的数据。
- 导航至数据板块
- 选择本月的日期范围
- 收集观看量、观看时长、订阅者数据
- 如果已 monetize,整理收益数据
- 呈现表现总结

Example 3: Manage Comments

示例3:管理评论

User: "Review and reply to recent comments"
Claude: I'll manage the comments.
- Navigate to Comments section
- List recent comments
- Reply to selected comments
- Handle moderation if needed
- Confirm responses posted
用户:"查看并回复近期评论"
Claude:我会管理这些评论。
- 导航至评论板块
- 列出近期评论
- 回复选定的评论
- 必要时处理审核
- 确认回复已发布

Example 4: Update Video Details

示例4:更新视频详情

User: "Update the description on my latest video"
Claude: I'll update that video.
- Navigate to Content section
- Find latest video
- Click edit details
- Update description
- Save changes
- Confirm updated
用户:"更新我最新视频的描述"
Claude:我会更新该视频的信息。
- 导航至内容板块
- 找到最新视频
- 点击编辑详情
- 更新描述
- 保存更改
- 确认已更新

Authentication Flow

认证流程

  1. Navigate to studio.youtube.com via Playwright MCP
  2. Sign in with Google credentials from canifi-env
  3. Handle 2FA if enabled (notify user via iMessage)
  4. Verify Studio dashboard access
  5. Maintain session cookies
  1. 通过Playwright MCP导航至studio.youtube.com
  2. 使用canifi-env中的Google凭证登录
  3. 如果启用了2FA,通过iMessage通知用户
  4. 验证Studio仪表盘访问权限
  5. 保留会话Cookie

Error Handling

错误处理

  • Login Failed: Retry Google sign-in flow
  • Session Expired: Re-authenticate automatically
  • 2FA Required: iMessage for verification code
  • Upload Failed: Check file format and size
  • Processing Stuck: Wait or notify user
  • Copyright Claim: Notify user of claim details
  • Monetization Error: Check account status
  • Analytics Delayed: Data may take 48+ hours
  • 登录失败:重试Google登录流程
  • 会话过期:自动重新认证
  • 需要2FA:通过iMessage发送验证码请求
  • 上传失败:检查文件格式和大小
  • 处理停滞:等待或通知用户
  • 版权申诉:向用户通知申诉详情
  • Monetization错误:检查账户状态
  • 数据延迟:数据可能需要48小时以上才能更新

Self-Improvement Instructions

自我改进说明

When encountering new YouTube Studio features:
  1. Document new dashboard elements
  2. Add support for new creator tools
  3. Log successful upload patterns
  4. Update for Studio redesigns
当遇到YouTube Studio的新功能时:
  1. 记录新的仪表盘元素
  2. 添加对新创作者工具的支持
  3. 记录成功的上传模式
  4. 针对Studio界面更新进行适配

Notes

注意事项

  • YouTube Studio for channel management only
  • Video processing takes time after upload
  • Analytics have 24-48 hour delay
  • Monetization requires Partner Program
  • Copyright system is automated
  • Community guidelines affect visibility
  • Premiere and scheduling are separate flows
  • YouTube Studio仅用于频道管理
  • 视频上传后需要一定处理时间
  • 数据存在24-48小时的延迟
  • Monetization需要加入合作伙伴计划
  • 版权系统为自动化机制
  • 社区准则会影响内容可见性
  • 首映和排期是独立的流程