Communitygithub.com

ComeOnOliver/skillshub

使用 AI(Google Veo 3.1、OpenAI Sora)生成视频。

skillshub 是什么?

该技能利用先进的 AI 模型(如 Google Veo 3.1 和 OpenAI Sora)从文本或图像生成高质量视频。它支持文生视频、图生视频、音频生成(对话、音效、环境音)以及最多 3 张参考图像引导视频内容。用户可以选择不同的模型和参数,如分辨率、时长和宽高比,以满足专业制作或快速迭代的需求。此外,该技能还提供了视频扩展、批量生成和负向提示等功能,并支持 Claudio Code、Cursor 和 Codex 等平台。

兼容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/michaelboeding/skills/video-generation

在你喜欢的 AI 中提问

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

文档

视频生成技能

使用 AI(Google Veo 3.1、OpenAI Sora)生成视频。

能力:

  • 🎬 文生视频:根据文本描述创建视频
  • 🖼️ 图生视频:以图像作为第一帧制作动画
  • 🔊 音频生成:对话、音效、环境音(Veo 3+)
  • 🎭 参考图像:使用最多 3 张参考图像指导视频内容(Veo 3.1)

前提条件

默认:Vertex AI(每分钟 10 次请求)⭐

Vertex AI 是默认后端,速率限制高出 1400 倍:

# 1. 设置项目
export GOOGLE_CLOUD_PROJECT=your-project-id

# 2. 进行身份验证(打开浏览器)
gcloud auth application-default login

# 3. 启用 API(一次性操作)
gcloud services enable aiplatform.googleapis.com

添加到您的 .env 文件中:

GOOGLE_CLOUD_PROJECT=your-project-id
GOOGLE_CLOUD_LOCATION=us-central1

备用:AI Studio(每天 10 次请求)

仅当您没有 GCP 项目时使用:

对于 Sora(OpenAI)

  • OPENAI_API_KEY - 用于 OpenAI Sora

可用模型

Google Veo 模型

模型描述最佳用途
veo-3.1最高质量(默认)专业视频、对话、参考图像
veo-3.1-fast更快处理快速迭代、批量生成

两个模型均包含:

  • 720p/1080p 分辨率
  • 4、6 或 8 秒时长
  • 原生音频(对话、音效、环境音)
  • 图生视频(图像动画)
  • 参考图像(最多 3 张)
  • 视频扩展
  • 批量/并行生成

OpenAI Sora

  • 最佳用途:创意视频、电影级质量、复杂运动
  • 分辨率:480p、720p、1080p
  • 时长:5 秒、10 秒、15 秒、20 秒
  • 功能:文生视频、图生视频

工作流程

第 1 步:收集需求(必选)

⚠️ 使用交互式提问——一次只问一个问题。

提问流程

⚠️ 对以下每个问题使用 AskUserQuestion 工具。 不要仅仅在回复中打印问题——使用该工具创建包含所示选项的交互式提示。

问题 1:图像

“我将为您生成该视频!首先——您是否有要动画化的图像?

  • 是(提供路径——我将将其用作第一帧)
  • 否,从头生成”

等待回复。

问题 2:音频

“您想要什么 音频偏好?

  • 带音频(默认)——Veo 3.1 生成对话、音效、环境音
  • 静音视频——无音频”

等待回复。

问题 3:模型

“您想要哪个 模型?

  • veo-3.1 — 最新、最高质量,带音频(默认)
  • veo-3.1-fast — 更快处理,带音频
  • veo-3 / veo-3-fast — 上一代,带音频
  • sora — OpenAI,最长 20 秒,无音频”

等待回复。

问题 4:时长

“您想要什么 时长?

  • 4 秒
  • 6 秒
  • 8 秒(默认)”

等待回复。

问题 5:格式

“您想要什么 宽高比和分辨率?

  • 16:9 横向,720p
  • 16:9 横向,1080p
  • 9:16 纵向,720p
  • 9:16 纵向,1080p
  • 或自行指定”

等待回复。

快速参考

问题决定
图像图生视频 vs 文生视频
音频带/不带音频生成
模型质量与速度的权衡
时长片段长度
格式宽高比和分辨率

第 2 步:编写提示

将用户请求转化为有效的视频提示:

  1. 描述场景:设置视觉背景
  2. 指定动作:什么在移动、变化、发生
  3. 包含镜头运动:“慢速平移”、“跟踪镜头”、“推拉镜头”
  4. 添加音频提示(Veo 3+):使用引号表示对话,描述声音
  5. 设定情绪:照明、氛围、一天中的时间

带对话的示例(Veo 3.1):

  • 用户:“一个人发现宝藏”
  • 增强版:“特写镜头展示一位寻宝者的脸,火把的光闪烁不定。他喃喃自语‘这一定是...’,同时拂去古老箱子上的灰尘。打开时传来铰链吱吱作响的声音,金色的光芒映照在他充满敬畏的脸上。电影感、戏剧性阴影。”

不带对话的示例:

  • 用户:“一只狗在海滩上奔跑”
  • 增强版:“慢动作电影镜头,一只金毛猎犬在日落时分快乐地沿着海滩奔跑,海浪拍打,温暖的金色时刻照明,浅景深”

第 3 步:选择模型

默认:veo-3.1(最高质量,带音频)

使用场景推荐模型原因
最佳质量veo-3.1(默认)最高质量,带音频
快速迭代veo-3.1-fast更快处理
批量生成veo-3.1-fast多片段时速度优先
长视频(>8 秒)sora支持最长 20 秒

第 4 步:生成视频

执行 ${CLAUDE_PLUGIN_ROOT}/skills/video-generation/scripts/ 中的相应脚本:

对于 Google Veo 3.1(默认,带音频):

python3 ${CLAUDE_PLUGIN_ROOT}/skills/video-generation/scripts/veo.py \
  --prompt "您的增强提示('引号内为对话')" \
  --model "veo-3.1" \
  --duration 8 \
  --aspect-ratio "16:9" \
  --resolution "720p"

对于带图像输入的 Google Veo 3.1:

python3 ${CLAUDE_PLUGIN_ROOT}/skills/video-generation/scripts/veo.py \
  --prompt "猫慢慢睁开眼睛并打哈欠" \
  --image "/path/to/cat.jpg" \
  --model "veo-3.1" \
  --duration 8

对于更快的生成:

python3 ${CLAUDE_PLUGIN_ROOT}/skills/video-generation/scripts/veo.py \
  --prompt "您的提示" \
  --model "veo-3.1-fast"

对于 OpenAI Sora(更长的视频):

python3 ${CLAUDE_PLUGIN_ROOT}/skills/video-generation/scripts/sora.py \
  --prompt "您的增强提示" \
  --duration 20 \
  --resolution "1080p"

列出可用模型:

python3 ${CLAUDE_PLUGIN_ROOT}/skills/video-generation/scripts/veo.py --list-models

视频扩展(用于长片连续性)

--extend 标志创建真正的视觉连续性,通过从上一个 Veo 视频结束的地方继续。这是长片视频的最佳方法。

基本扩展:

# 首先,生成初始片段
python3 ${CLAUDE_PLUGIN_ROOT}/skills/video-generation/scripts/veo.py \
  --prompt "一个人在日出时走过森林" \
  --duration 8

# 用新内容扩展它(增加约 7 秒)
python3 ${CLAUDE_PLUGIN_ROOT}/skills/video-generation/scripts/veo.py \
  --extend veo_veo-3.1_20260104_120000.mp4 \
  --prompt "继续走,发现一条隐藏的小溪"

多次扩展(用于更长的视频):

# 扩展 5 次(增加约 35 秒的延续)
python3 ${CLAUDE_PLUGIN_ROOT}/skills/video-generation/scripts/veo.py \
  --extend initial_clip.mp4 \
  --prompt "继续探索森林,遇到野生动物" \
  --extend-times 5

扩展 vs 拼接:

方法结果使用场景
扩展真正连续性,相同角色/场景长连续镜头
拼接带转场的独立片段场景切换、蒙太奇

扩展限制:

  • 输入视频必须是 Veo 生成的(最长 141 秒)
  • 每次扩展增加约 7 秒
  • 总计最多 20 次扩展(约 2.5 分钟)
  • 输出分辨率为 720p

批量生成(并行)

同时生成多个视频,以加快多场景工作流程。无需等待 15 分钟以上依次生成 5 个视频,而是全部并行生成(总共约 3 分钟)。

创建 scenes.json 文件:

[
  {"prompt": "场景 1:在深色表面上的无线耳塞的 cinematic 英雄镜头", "duration": 6, "output": "scene1_hero.mp4"},
  {"prompt": "场景 2:声波可视化,一个人享受音乐", "duration": 8, "output": "scene2_sound.mp4"},
  {"prompt": "场景 3:耳塞在耳朵中的特写,一个人锻炼", "duration": 8, "output": "scene3_comfort.mp4"},
  {"prompt": "场景 4:生活方式蒙太奇,各种设置", "duration": 8, "output": "scene4_lifestyle.mp4"},
  {"prompt": "场景 5:产品在干净背景上带有标志", "duration": 4, "output": "scene5_cta.mp4"}
]

并行生成所有场景:

python3 ${CLAUDE_PLUGIN_ROOT}/skills/video-generation/scripts/veo.py \
  --batch scenes.json

使用自定义工作线程数:

python3 ${CLAUDE_PLUGIN_ROOT}/skills/video-generation/scripts/veo.py \
  --batch scenes.json \
  --max-workers 3

每个视频的批次配置选项:

选项描述默认值
prompt视频描述(必填)-
modelveo-3.1、veo-3.1-fast 等veo-3.1
duration4、6 或 8 秒8
aspect_ratio“16:9”或“9:16”“16:9”
resolution“720p”或“1080p”“720p”
image用于图生视频的图像路径-
negative_prompt要避免的内容-
output自定义输出文件名自动生成

速度比较:

场景数顺序并行(5 个工作线程)加速比
3~9 分钟~3 分钟3 倍
5~15 分钟~3 分钟5 倍
10~30 分钟~6 分钟5 倍

第 5 步:交付结果

  1. 提供生成的视频文件/URL
  2. 分享使用的增强提示
  3. 提及生成设置(时长、分辨率)
  4. 提供以下选项:
    • 生成变体
    • 尝试不同的样式/时长
    • 使用不同的 API
    • 扩展视频

错误处理

缺少 API 密钥:告知用户所需的密钥:

内容政策违规:适当改写提示。

生成失败:使用简化的提示或不同的 API 重试。

配额超限:建议等待或尝试其他提供商。

提示工程技巧

对于音频(Veo 3.1)

  • 对话:使用引号表示语言:“你好!”她兴奋地说
  • 音效:明确描述:轮胎尖叫,引擎轰鸣
  • 环境音:描述声音景观:鸟鸣,远处交通
  • 示例:一个男人低声说“你听到了吗?”随着脚步声在黑暗的走廊中回响

对于电影级质量

  • 包含镜头方向:“慢速推拉”、“跟踪镜头”、“升降镜头”
  • 指定照明:“黄金时刻”、“戏剧性阴影”、“柔和的漫射光”
  • 添加电影参考:“银翼杀手风格”、“韦斯·安德森美学”

对于逼真运动

  • 描述物理:“自然运动”、“逼真物理”
  • 包含环境细节:“风吹头发”、“树叶沙沙作响”
  • 指定速度:“慢动作”、“实时”、“延时摄影”

对于图生视频

  • 描述起始图像中应该改变/移动的内容
  • 具体说明动作:“猫慢慢睁开眼睛”
  • 包含环境运动:“树叶吹过”

负向提示

  • 描述不要包含的内容:--negative-prompt “卡通、低质量、模糊”
  • 不要使用“no”或“不要”——只需描述不想要的元素

API 比较

功能Veo 3.1(默认)Veo 3.1 FastSora
提供商GoogleGoogleOpenAI
API 密钥GOOGLE_API_KEYGOOGLE_API_KEYOPENAI_API_KEY
最大时长8 秒8 秒20 秒
分辨率720p、1080p720p、1080p最高 1080p
宽高比16:9、9:1616:9、9:1616:9、9:16、1:1
音频(对话、音效)✅ 是✅ 是❌ 否
图生视频✅ 是✅ 是✅ 是
参考图像✅ 最多 3 张✅ 最多 3 张❌ 否
视频扩展✅ 是✅ 是❌ 否
批量生成✅ 是✅ 是❌ 否
速度最佳质量~2 倍更快较慢
最佳用途专业批量工作流程更长的视频

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

相关技能