Communitygithub.com

YouTube市场营销

创建、优化和管理 YouTube 内容,实现频道增长、受众建设和变现。在用户提出“在YouTube上增长”、“优化YouTube视频”、“YouTube SEO”、“YouTube Shorts策略”、“YouTube API集成”、“自动化YouTube上传”、“YouTube分析”、“YouTube缩略图”或“YouTube内容策略”时使用。涵盖长视频、Shorts、SEO、缩略图设计、YouTube数据API、分析、变现和增长策略。

YouTube市场营销 是什么?

该技能帮助 AI 代理创建高绩效的 YouTube 内容,并与 YouTube 数据 API 集成。它覆盖长视频策略、Shorts、SEO 优化、缩略图设计、上传自动化、分析、变现路径,以及针对 YouTube 搜索与推荐算法的增长策略。技能详细解释了算法发现机制(搜索和推荐),强调了点击率(CTR)、观看时长和观看者满意度(点赞、分享、评论)的重要性。它还提供了内容格式指南,包括长视频(8-20分钟)的结构和规范、Shorts(60秒以内竖屏视频)的最佳实践,以及社区帖子的使用建议。在 SEO 方面,技能涵盖了标题、描述、标签、缩略图和字幕的优化方法,并提供了 YouTube 数据 API v3 的类型脚本代码示例,用于视频上传、缩略图设置和播放列表管理。最后,技能还触及了分析查询、变现要求(YPP)和增长策略,例如建议每周发布 1-2 个长视频加上 3-5 个 Shorts。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/TerminalSkills/skills/tree/HEAD/skills/youtube-marketing

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

YouTube 市场营销

概述

此技能帮助 AI 代理创建高绩效的 YouTube 内容,并与 YouTube 数据 API 集成。它涵盖长视频策略、Shorts、SEO 优化、缩略图设计、上传自动化、分析、变现路径以及针对 YouTube 搜索与推荐算法的增长策略。

说明

算法与发现

搜索(YouTube 是第二大搜索引擎): 标题/描述/标签关键词匹配、视频转录索引、参与度(CTR + 观看时长)、新内容助力。

推荐(70%+ 的观看量来源): 点击率(缩略图 + 标题)、平均观看时长、会话时长、观看者满意度(点赞、分享、评论)、上传一致性。

影响触达的因素:标题党但名不副实、缓慢的开场、不一致的上传、误导性缩略图。

内容格式

长视频(8-20 分钟): 钩子(0-30 秒)-> 背景(30 秒-1 分钟)-> 主要内容 -> 号召性用语。规格:最低 1080p(首选 4K)、MP4 H.264、音频清晰度 -14 至 -12 LUFS。留存技巧:每 30-60 秒进行一次模式中断、开放式循环、章节/时间戳、视觉多样性。

Shorts(60 秒以内,9:16 竖屏): 第 1 秒内出现钩子、单一集中的想法、可循环的结尾、用作长视频的引流通道。每周发布 3-5 个 Shorts。

社区帖子(需 500+ 订阅者): 投票、图片、视频预告。在上传视频之间每周发布 2-3 次。

YouTube SEO

标题: 60-70 个字符,主要关键词靠近开头,数字 + 好处有效。公式:[主要关键词] — [好处/钩子] ([修饰符])。示例:"Next.js Authentication — Complete Guide (2026)"。

描述: 前 150 个字符出现在搜索中(前置关键词)。包含时间戳/章节(至少 3 个)。总字数 150-300 字。链接放在“折页”下方。

标签: 每个视频 5-15 个,主要关键词优先,混合精确匹配和更宽泛的术语。

缩略图: 1280x720px,高对比度,露脸表情,最多 3-5 个大号粗体文字,一致的品牌标识,三分法则。

字幕: 上传准确的 SRT 文件(自动字幕有错误)。YouTube 会将字幕文本编入搜索索引。多语言字幕可扩大全球覆盖范围。

YouTube 数据 API v3

import { google } from 'googleapis';

const oauth2Client = new google.auth.OAuth2(
  process.env.GOOGLE_CLIENT_ID, process.env.GOOGLE_CLIENT_SECRET, process.env.GOOGLE_REDIRECT_URI
);
oauth2Client.setCredentials(tokens);
const youtube = google.youtube({ version: 'v3', auth: oauth2Client });

// 上传视频
const res = await youtube.videos.insert({
  part: ['snippet', 'status'],
  requestBody: {
    snippet: {
      title: 'Next.js Authentication — Complete Guide (2026)',
      description: 'Learn how to implement auth in Next.js...\n\n0:00 Introduction\n1:23 Setup',
      tags: ['nextjs', 'authentication', 'tutorial'],
      categoryId: '28',
    },
    status: { privacyStatus: 'private', publishAt: '2026-03-01T15:00:00.000Z', selfDeclaredMadeForKids: false },
  },
  media: { body: fs.createReadStream('/path/to/video.mp4') },
});
await youtube.thumbnails.set({ videoId: res.data.id, media: { body: fs.createReadStream('/path/to/thumb.jpg') } });

// 上传 Short(竖屏视频 + 标题中包含 #Shorts)
await youtube.videos.insert({
  part: ['snippet', 'status'],
  requestBody: {
    snippet: { title: '3 Git Commands You Didn\'t Know #Shorts', tags: ['shorts', 'git'], categoryId: '28' },
    status: { privacyStatus: 'public', selfDeclaredMadeForKids: false },
  },
  media: { body: fs.createReadStream('/path/to/short-vertical.mp4') },
});

// 创建播放列表并添加视频
const playlist = await youtube.playlists.insert({
  part: ['snippet', 'status'],
  requestBody: { snippet: { title: 'Next.js Complete Course' }, status: { privacyStatus: 'public' } },
});
await youtube.playlistItems.insert({
  part: ['snippet'],
  requestBody: { snippet: { playlistId: playlist.data.id, resourceId: { kind: 'youtube#video', videoId: 'abc123' } } },
});

分析

const youtubeAnalytics = google.youtubeAnalytics({ version: 'v2', auth: oauth2Client });

// 频道统计
const stats = await youtubeAnalytics.reports.query({
  ids: 'channel==MINE', startDate: '2026-01-01', endDate: '2026-02-18',
  metrics: 'views,estimatedMinutesWatched,averageViewDuration,subscribersGained',
  dimensions: 'day', sort: '-day',
});

// 热门视频
const top = await youtubeAnalytics.reports.query({
  ids: 'channel==MINE', startDate: '2026-01-01', endDate: '2026-02-18',
  metrics: 'views,estimatedMinutesWatched,averageViewDuration,likes',
  dimensions: 'video', sort: '-views', maxResults: 20,
});

变现

YouTube 合作伙伴计划(YPP)要求: 1,000 名订阅者 + 4,000 小时观看时长(12 个月内)或 1,000 万次 Shorts 观看量(90 天内)。

收入来源: 广告收入(科技领域每千次展示费用 $3-8)、频道会员、超级留言/感谢、YouTube 购物、Shorts 收入分成。

超越 YPP: 赞助(科技领域每千次观看 $50-200)、联盟营销链接、自有产品/课程、咨询。

增长策略

每周上传 1-2 个长视频 + 3-5 个 Shorts。内容组合:50% 教程、25% Shorts、15% 蹭热点、10% 社区互动。前 48 小时:在所有地方分享、回复每一条评论、置顶一个提问评论、发布到相关社区。

示例

示例 1:优化并安排教程视频上传

用户提示: "Upload my Next.js authentication tutorial video to YouTube with proper SEO, a custom thumbnail, and schedule it for Saturday at 3 PM UTC."

代理将:

  1. 调用 youtube.videos.insert,设置 privacyStatus: 'private' 和 publishAt: '2026-03-07T15:00:00.000Z'
  2. 将标题设置为 "Next.js Authentication — Complete Guide (2026)",主要关键词前置
  3. 撰写一篇 200 字的描述,包含时间戳、关键词和“折页”下方的资源链接
  4. 添加 10 个相关标签,混合精确匹配和更宽泛的术语
  5. 通过 youtube.thumbnails.set 上传自定义缩略图

示例 2:分析频道表现并发现增长机会

用户提示: "Pull my YouTube analytics for the last 30 days and tell me which videos are driving the most subscribers and where my traffic is coming from."

代理将:

  1. 查询 youtubeAnalytics.reports,设置 dimensions: 'video' 和 metrics: 'subscribersGained,views,averageViewDuration',并按获得的订阅者排序
  2. 使用 dimensions: 'insightTrafficSourceType' 查询流量来源,以确定搜索、浏览和推荐的比例
  3. 展示驱动订阅最多的前 5 个视频及其观看时长和点击率指标
  4. 根据哪些流量来源最强,推荐内容策略调整

指南

  • 缩略图 + 标题决定了 80% 的点击决策——请在这些方面投入时间
  • 头 30 秒决定观众是否留下——立即使用钩子,避免冗长开场
  • 先将视频上传为“不公开列出”,设置缩略图,添加结束画面,然后再发布(避免默认缩略图导致低点击率)
  • 描述中的章节有助于提高留存率(观众会跳转到相关部分而不是离开)
  • 卡片和结束画面——始终指向你表现最好的视频或相关的播放列表
  • 上传 SRT 格式的字幕——自动字幕有错误,YouTube 会将字幕文本编入搜索索引
  • 一致性胜过病毒式传播——两年内每周发布 1 个视频胜过随机发布
  • Shorts 和长视频用途不同:Shorts 用于扩大触达,长视频用于增加观看时长和变现
  • 研究分析中的受众标签页,找到最佳发布时间
  • 每个视频都应该回答这个问题:“为什么点击这个视频,而不是其他关于同一主题的 10 个视频?”

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

TerminalSkills/skills

>- Run GitHub Actions locally with act. Use when a user asks to test GitHub Actions workflows locally, debug CI pipelines without pushing, or run workflows offline.

TerminalSkills/skills

>- You are an expert in AG2 (formerly AutoGen), the open-source multi-agent conversation framework. You help developers build systems where multiple AI agents collaborate through structured conversations — with tool use, human-in-the-loop, code execution, group chat orchestration, and nested conversations — for complex tasks like software development, research, and data analysis.

TerminalSkills/skills

>- Generate short-form videos with AI — script writing, text-to-speech narration, stock footage selection, subtitle generation, and video assembly. Use when: creating TikTok/YouTube Shorts/Reels content, automating video production, building content pipelines.

TerminalSkills/skills

>- Animate 3D objects and characters in Blender with Python. Use when the user wants to keyframe properties, create armatures and rigs, set up IK/FK chains, animate shape keys for facial animation, edit F-Curves, use the NLA editor to blend actions, add drivers for expression-based animation, or script any animation workflow in Blender.

TerminalSkills/skills

>- Automate motion capture and tracking workflows in Blender with Python. Use when the user wants to import BVH or FBX mocap data, retarget motion to armatures, track camera or object motion from video, solve camera motion, clean up motion capture data, or script any tracking pipeline in Blender.

TerminalSkills/skills

>- You are an expert in Bolt.new by StackBlitz, the AI-powered full-stack development environment that runs entirely in the browser. You help developers go from idea to deployed app in minutes using natural language prompts — Bolt generates complete applications with frontend, backend, database, and deployment, all running in a WebContainer without local setup.

TerminalSkills/skills

>- Assists with using Bun as an all-in-one JavaScript/TypeScript runtime, package manager, bundler, and test runner. Use when building HTTP servers, managing packages, running tests, or migrating from Node.js. Trigger words: bun, bun serve, bun install, bun test, bun build, javascript runtime, bun runtime.

TerminalSkills/skills

>- Self-host customer support with Chatwoot. Use when a user asks to set up open-source customer support, add live chat without SaaS costs, build a multi-channel inbox, or deploy a free Intercom alternative.

TerminalSkills/skills

>- You are an expert in Chi, the lightweight, idiomatic Go HTTP router built on `net/http`. You help developers build composable HTTP services using Chi's middleware stack, route groups, URL parameters, sub-routers, and context-based request scoping — providing Express-like ergonomics while staying 100% compatible with Go's standard library.

TerminalSkills/skills

When the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' or 'copy sweep.' This skill provides a systematic approach to editing marketing copy through multiple focused passes.

TerminalSkills/skills

>- Add live chat and customer support with Crisp. Use when a user asks to add a chat widget, implement live customer support, set up a help desk, create a knowledge base, or add a chatbot to a website.

TerminalSkills/skills

>- Assists with building custom interactive data visualizations using D3.js. Use when creating charts, graphs, maps, force layouts, or hierarchical diagrams that require fine-grained control beyond what charting libraries provide. Trigger words: d3, data visualization, chart, svg, scales, force graph, treemap, choropleth.

TerminalSkills/skills

dbt (data build tool) transforms data in your warehouse using SQL SELECT statements. Learn project setup, models, tests, documentation, incremental materializations, and integration with data warehouses like PostgreSQL, BigQuery, and Snowflake.

TerminalSkills/skills

>- You are an expert in dlt, the open-source Python library for building data pipelines. You help developers load data from any API, file, or database into warehouses and lakes using simple Python decorators — with automatic schema inference, incremental loading, and built-in data contracts. dlt is the "requests library for data pipelines.

TerminalSkills/skills

Data Version Control for ML projects. Track large datasets and models alongside Git, build reproducible ML pipelines, and run experiments with metric comparison. Works with any storage backend including S3, GCS, Azure, and local filesystems.

TerminalSkills/skills

>- You are an expert in E2B, the cloud platform for running AI-generated code in secure sandboxes. You help developers give AI agents the ability to execute code, install packages, read/write files, and run long processes in isolated cloud environments — each sandbox is a lightweight VM that boots in ~150ms with full Linux, filesystem, and networking.

TerminalSkills/skills

>- Transcode, convert, edit, and process audio and video with FFmpeg. Use when a user asks to convert video formats (webm to mp4, mkv to mp4), extract audio from video, compress video files, trim or cut clips, concatenate videos, add subtitles, create thumbnails, apply filters, change resolution or bitrate, re-encode media, create GIFs from video, add watermarks, normalize audio, stream media, or build automated media processing pipelines.

TerminalSkills/skills

>- Create advanced animations with GSAP. Use when building complex timelines, scroll-driven animations, SVG morphing, text animations, or high-performance web animations beyond CSS capabilities.

TerminalSkills/skills

>- Generate deterministic MP4 videos from HTML, CSS, media, and seekable animations using HeyGen's HyperFrames framework. Use when someone asks to "render HTML to video", "make a video with HyperFrames", "create a programmatic video", "turn an animation into MP4", "build a launch/product video from HTML", "render GSAP/Lottie/Three.js to video", or set up an agent-driven video pipeline. Covers init/preview/render/add/lint/inspect commands, data-* timing attributes, animation adapters, and the component catalog.

TerminalSkills/skills

When the user wants to perform load testing, stress testing, or performance testing of APIs and websites using k6. Also use when the user mentions "k6," "load test," "performance test," "stress test," "spike test," "soak test," "thresholds," "virtual users," or "VUs." For browser-based testing, see selenium.

相关技能