Communitygithub.com

YouTube 行銷技能集

協助 AI 代理創建高效能 YouTube 內容並整合 YouTube Data API。涵蓋長影音策略、Shorts、SEO 優化、縮圖設計、上傳自動化、分析、營利路徑與成長策略。

YouTube 行銷技能集 是什麼?

此技能集專為 AI 代理設計,以系統化方式處理 YouTube 內容創建與頻道優化,涵蓋從演算法理解到實際 API 整合的完整工作流程。技能文件詳細說明 YouTube 的「搜尋」與「推薦」兩大流量來源,強調標題、描述、標籤的關鍵字匹配,以及縮圖(點擊率)和觀看時長(留存率)的重要性。文件進一步區分長影音(8-20 分鐘)、Shorts(60 秒內直式影片)和社群貼文三種格式,並為每種格式提供具體的製作規格與留存技巧。SEO 部分則提供從標題字數、描述結構到縮圖設計的詳細指引。 技能集的核心是提供完整的 TypeScript 程式碼範例,示範如何使用 Google 認證庫(`googleapis`)存取 YouTube Data API v3。範例涵蓋影片上傳(含排程發佈)、縮圖設定、Shorts 上傳(需在標題加入 `#Shorts`)、播放清單建立與影片加入等操作。此外,還包含使用 `youtubeAnalytics` API 查詢頻道統計資料(如觀看次數、估計觀看分鐘數、平均觀看持續時間、訂閱者增加數)和找出表現最佳影片的程式碼。 此技能集支援 Claude Code、Cursor、Codex 等擅長執行授權 API 呼叫的 AI 代理。其價值在於將 YouTube 頻道的策略性決策(如發佈時間、內容組合)與自動化操作(上傳、排程、分析報告)整合為單一技能,讓代理能直接根據使用者需求(如「優化並排程我的教學影片」)自動執行從 SEO 撰寫、縮圖上傳到分析報告的完整流程。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

YouTube 行銷

概述

此技能集協助 AI 代理創建高效能的 YouTube 內容,並整合 YouTube Data API。內容涵蓋長影音策略、Shorts、SEO 優化、縮圖設計、上傳自動化、數據分析、營利路徑,以及配合 YouTube 搜尋與推薦演算法的成長策略。

使用說明

演算法與發現機制

搜尋(YouTube 是第二大搜尋引擎): 標題/描述/標籤的關鍵字比對、影片逐字稿索引、互動率(點擊率 + 觀看時間)、新內容加成。

推薦(佔 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 Data 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') } });

// 上傳 Shorts(直式影片 + 標題含 #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,
});

營利

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:優化並排程教學影片上傳

使用者提示:「將我的 Next.js 認證教學影片上傳到 YouTube,做好 SEO 優化,設定自訂縮圖,並安排在星期六下午 3 點 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:分析頻道表現並找出成長機會

使用者提示:「提取我過去 30 天的 YouTube 數據分析,告訴我哪些影片帶來最多訂閱者,以及我的流量從哪裡來。」

代理將執行:

  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.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相關技能