Communitygithub.com

ComeOnOliver/skillshub

AI(Google Veo 3.1、OpenAI Sora)を使って動画を生成します。

skillshub とは?

このスキルは、AIエージェント(Claude Code、Cursor、Codexなど)がテキストや画像から動画を生成できるようにするためのものです。Google Veo 3.1(Vertex AIまたはAI Studio経由)とOpenAI Soraという2つの主要な動画生成APIをサポートします。テキストからの動画生成、画像のアニメーション化、音声生成(台詞、効果音、環境音)、最大3枚の参照画像による動画内容のガイドなど、幅広い機能を提供します。また、動画の拡張、並列バッチ生成、プロンプトエンジニアリングのベストプラクティスもサポートしており、開発者は高品質な動画コンテンツを効率的に作成できます。デフォルトのバックエンドはVertex AIで、1分あたり10リクエストという高いレート制限を持ち、AI Studioは1日あたり10リクエストのフォールバックとして利用できます。

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

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

動画生成スキル

AI(Google Veo 3.1、OpenAI Sora)を使って動画を生成します。

機能:

  • 🎬 テキストから動画へ: テキスト説明から動画を作成
  • 🖼️ 画像から動画へ: 画像を最初のフレームとしてアニメーション化
  • 🔊 音声生成: 台詞、効果音、環境音(Veo 3+)
  • 🎭 参照画像: 最大3枚の参照画像で動画内容をガイド(Veo 3.1)

前提条件

デフォルト: Vertex AI(1分あたり10リクエスト)⭐

Vertex AIがデフォルトのバックエンドで、1400倍高いレート制限があります。

# 1. プロジェクトを設定
export GOOGLE_CLOUD_PROJECT=your-project-id

# 2. 認証(ブラウザが開きます)
gcloud auth application-default login

# 3. APIを有効化(1回のみ)
gcloud services enable aiplatform.googleapis.com

.envファイルに以下を追加:

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

フォールバック: AI Studio(1日あたり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: 要件を収集(必須)

⚠️ インタラクティブに質問してください — 一度に1つの質問をします。

質問フロー

⚠️ 以下の各質問にはAskUserQuestionツールを使用してください。応答内に質問を印刷するだけではなく、ツールを使用してオプション付きのインタラクティブプロンプトを作成してください。

Q1: 画像

「その動画を生成します! まず — アニメーション化する画像はありますか?

  • はい(パスを指定 — 最初のフレームとして使用します)
  • いいえ、ゼロから生成します」

応答を待ちます。

Q2: 音声

「音声の設定はどうしますか?

  • 音声あり(デフォルト) — Veo 3.1が台詞、効果音、環境音を生成します
  • 無音動画 — 音声なし」

応答を待ちます。

Q3: モデル

「どのモデルをご希望ですか?

  • veo-3.1 — 最新、最高品質、音声あり(デフォルト)
  • veo-3.1-fast — 高速処理、音声あり
  • veo-3 / veo-3-fast — 旧世代、音声あり
  • sora — OpenAI、最大20秒、音声なし」

応答を待ちます。

Q4: 再生時間

「再生時間は?

  • 4秒
  • 6秒
  • 8秒(デフォルト)」

応答を待ちます。

Q5: フォーマット

「アスペクト比と解像度は?

  • 16:9 横向き、720p
  • 16:9 横向き、1080p
  • 9:16 縦向き、720p
  • 9:16 縦向き、1080p
  • または指定」

応答を待ちます。

クイックリファレンス

質問決定事項
画像画像から動画 対 テキストから動画
音声音声生成の有無
モデル品質と速度のトレードオフ
再生時間クリップの長さ
フォーマットアスペクト比と解像度

ステップ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

バッチ生成(並列)

複数の動画を同時に生成し、マルチシーンワークフローを高速化します。5つの動画を順次生成するのに15分以上待つ代わりに、すべてを並列で生成します(合計約3分)。

scenes.jsonファイルを作成:

[
  {"prompt": "シーン1: 暗い表面のワイヤレスイヤホンの映画的なヒーローショット", "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 "cartoon, low quality, blurry"
  • 「no」や「don't」は使用せず、単に望ましくない要素を説明する

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

関連スキル