Communitygithub.com

UGCビデオ自動生成 — 完全パイプライン(Playwright対応)

Higgsfield上でキャラクター画像を生成し、それをもとにSeedance 2.0ビデオを作成する、UGC広告ビデオの完全自動パイプラインです。画像プロンプトから完成ビデオまでを統合的にオーケストレーションします。

UGCビデオ自動生成 — 完全パイプライン(Playwright対応) とは?

このスキルは、Higgsfieldプラットフォーム上でUGC(ユーザー生成コンテンツ)広告ビデオを完全自動で作成するエンドツーエンドパイプラインです。Playwright MCPツールを使用してブラウザ操作を自動化し、キャラクター画像の生成からビデオプロンプトの入力、Seedance 2.0ビデオの生成までを一貫して実行します。ユーザーはキャラクターの説明とプロダクト/ブランドのコンテキストを提供するだけで、本格的なUGCスタイルのビデオ広告を生成できます。対応するビデオスタイルは、証言型、プロダクトショーケース、アンボクシング、リアクション、ビフォー/アフター、ライフスタイルなど多岐にわたります。ユーザーは各ステップで確認を求められ、クレジット消費をコントロールできます。

対応✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/AKCodez/higgsfield-claude-skills/tree/HEAD/ugc-video-auto

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

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

ドキュメント

UGCビデオ自動生成 — Playwrightによる完全パイプライン

このスキルは、Higgsfield上でのUGC広告ビデオパイプライン全体を自動化します。キャラクター画像の生成 → ビデオ用に選択 → UGCビデオプロンプトの追加 → Seedance 2.0ビデオの生成 の流れを、Playwrightで完全自動化します。


パイプライン概要

Step 1: キャラクター画像を生成    →  /image/soul-v2
Step 2: ビデオページに移動        →  /create/video?model=seedance_2_0
Step 3: ギャラリーから画像を選択  → アップロードダイアログ → 「Image Generations」タブ
Step 4: UGCビデオプロンプトを入力 → Lexicalエディタ(contenteditable)
Step 5: 設定して生成              →  Generateボタンをクリック

前提条件

  • Playwrightブラウザセッションでhiggsfield.aiにログインしていること
  • Playwright MCPプラグインが有効であること
  • 各Playwrightツールは初回使用前にToolSearchでロードすること

入力要件

ユーザーは以下の情報を提供します:

  1. キャラクターの説明、または事前作成済みの画像プロンプト(生成には/ugc-hot-girlを呼び出し)
  2. プロダクト/ブランドのコンテキスト — ビデオが何を宣伝するか
  3. ビデオスタイル — 証言型、プロダクトショーケース、アンボクシング、リアクションなど

オプションの上書き:

  • 画像モデル: Soul 2.0(デフォルト、ポートレートに最適)
  • ビデオモデル: Seedance 2.0(デフォルト)
  • 尺: 5秒、8秒(デフォルト)、10秒
  • アスペクト比: 自動、16:9、9:16(TikTok/Reels)、1:1
  • 解像度: 720p(デフォルト)、1080p

完全自動化フロー

フェーズ1: キャラクター画像の生成

Step 1.1: 画像生成ページへ移動

browser_navigate → url: "https://higgsfield.ai/image/soul-v2"

ページの読み込みを待ち、スナップショットを取得します。

Step 1.2: 画像プロンプトを入力

テキストボックス(Playwright ID: hf:tour-image-prompt、プレースホルダー: "Describe the scene you imagine")を見つけます:

browser_click → ref: <textbox_ref>, element: "Image prompt textbox"
browser_type → ref: <textbox_ref>, text: "<キャラクター画像プロンプト>"

ユーザーが画像プロンプトを提供していない場合は、まず/ugc-hot-girlを使用してプロンプトを生成します。

Step 1.3: 画像を生成

Generateボタン("Generate XXXX free gens left"と表示)を見つけます:

ユーザーに確認を求めます — これによりクレジット/無料生成が消費されます。

browser_click → ref: <generate_button_ref>, element: "Generate button"

Step 1.4: 生成を待機

browser_wait_for → time: 20

スクリーンショットを撮ります。新しい画像が履歴グリッドの最初のアイテムとして表示されることを確認します。最初のグリッド要素のinnerHTMLに、新しいアセットURLを持つ<img>タグが含まれていることを確認してください。


フェーズ2: 生成した画像からビデオを作成

Step 2.1: Seedance 2.0ビデオページに移動

browser_navigate → url: "https://higgsfield.ai/create/video?model=seedance_2_0"

ページの読み込みを待ち、スナップショットを取得します。モデルボタンに「Seedance 2.0」と表示されていることを確認します。

Step 2.2: アップロードメディアダイアログを開く

アップロード領域を見つけます — generic [cursor=pointer]に以下が含まれているものを探します:

  • paragraph: Upload media
  • paragraph: Image, Video or Audio
browser_click → ref: <upload_area_ref>, element: "Upload media area"

これによりダイアログが開き、タブ「Uploads, Image Generations, Video Generations, Elements, Liked」が表示されます。

Step 2.3: 「Image Generations」タブに切り替え

browser_click → ref: <image_gen_tab_ref>, element: "Image Generations tab"

ダイアログのタブバーからbutton "Image Generations"を探します。

Step 2.4: 生成した画像を選択

最も最近生成された画像はグリッドの最初のアイテムです。

最初はbutton "Check eligibility"として表示されます。これをクリックします:

browser_click → ref: <first_image_ref>, element: "First image (most recent generation)"

クリック後、ボタンはgeneric [cursor=pointer]に変わり、画像プレビューと緑色のチェックマークが表示されます — これで選択され、有効になったことを示します。

重要: リスト内の最初の「Check eligibility」ボタンは常に最新画像です。クリック後、そのrefはスナップショットから消え、新しいgeneric要素に置き換わります。

Step 2.5: ダイアログを閉じる

browser_press_key → key: "Escape"

スナップショットを取得します。以下を確認:

  • アップロード領域に「Upload media」というテキストが表示されなくなっていること
  • 代わりに、ネストされた画像要素(48pxサムネイル)を持つgeneric [cursor=pointer]が表示されていること
  • 古いparagraph: Upload mediaとparagraph: Image, Video or Audioがなくなっていること

Step 2.6: 既存のプロンプトをクリア

ビデオページは標準のテキストボックスではなく、Lexicalリッチテキストエディタ(contenteditableなdiv)を使用しています。クリアするには:

browser_evaluate → function: "() => { const el = document.querySelector('[data-lexical-editor]'); el.focus(); el.click(); }"
browser_press_key → key: "Control+a"
browser_press_key → key: "Backspace"

スナップショットを取得します。テキストボックスに"Describe your scene in detail. Use @ to reference assets"というプレースホルダーが表示されているはずです。

Step 2.7: UGCビデオプロンプトを入力

クリア後、スナップショットを取得して新しいテキストボックスのrefを取得します。次にゆっくり入力します(Lexicalエディタではこれが必要です):

browser_type → ref: <textbox_ref>, text: "<UGCビデオプロンプト>", slowly: true

UGCビデオプロンプトテンプレート(スタイルに応じて選択):

証言型 / トーキングヘッド:

@image1の女性が自然な手のジェスチャーを交えながらカメラに向かって話しています。暖かなゴールデンアワーの照明、カジュアルで本物らしい雰囲気。熱意を持って話し、強調するためにわずかに前傾姿勢。柔らかなボケ味の背景、浅い被写界深度。自然な肌の質感、リアルな唇の動き、TikTok UGC証言スタイル。滑らかなハンドヘルドカメラ、24fps。

プロダクトショーケース:

@image1の女性がプロダクトをカメラに向けて持ち上げ、さまざまな角度で見せながら回しています。興奮した本物の表情、大きく見開いた目。リングライト照明、清潔な背景。プロダクトの特徴を指さしながら熱心にうなずきます。顔寄せのセルフィーフレーミング、iPhone品質のビデオ、本格的なUGCの雰囲気。

リアクション / アンボクシング:

@image1の女性が期待に胸を膨らませてパッケージを開け、プロダクトを取り出して心から喜ぶリアクション。驚いた表情、口を開けて、すぐに笑顔に。自然なベッドルームの照明、カジュアルな設定。ハンドヘルドカメラ感、本格的なアンボクシングのエネルギー、TikTokスタイル。

ビフォー/アフター:

@image1の女性は最初は懐疑的な表情で、疑わしそうに自分の顔を触っています。次にプロダクトを塗布すると、表情が驚きに変わり、信じられない思いで肌に触れます。柔らかいリングライト、バスルームの鏡の設定。分割画面風の変身シーン、本物の反応、UGC証言。

ライフスタイル / 日常の一コマ:

@image1の女性が明るくモダンな空間を歩きながら、普段のルーティンの一部としてプロダクトをカジュアルに使っています。自然な朝の光、リラックスした動き、本物の率直なエネルギー。カメラは優しく追従し、浅い被写界深度。憧れを抱かせるが共感できるライフスタイルコンテンツ。

Step 2.8: ビデオ設定を構成(オプション)

デフォルト設定でほとんどのUGCに十分対応できます:

  • 尺: 8秒(ショートフォームに最適)
  • アスペクト比: 自動(TikTok/Reelsの場合は9:16を推奨)
  • 解像度: 720p

TikTok縦向きに変更する場合:

browser_click → ref: <ratio_button_ref>, element: "Ratio selector"

次にドロップダウンから「9:16」を選択します。

Step 2.9: ビデオを生成

最終フォームの状態をスクリーンショットで撮ります。

ユーザーに確認を求めます — ビデオ生成は画像よりも多くのクレジットを消費します。

Generateボタンはクレジットコストを表示します(例:「Generate 30 20」):

browser_click → ref: <generate_button_ref>, element: "Generate video button"

Step 2.10: 生成を監視

Generateをクリックした後:

  1. ビデオが生成キューに入ります
  2. 履歴タブで進行状況を確認します
  3. 定期的にスクリーンショットを撮ってステータスを表示します
  4. Seedance 2.0ビデオは通常1〜3分かかります

主要要素パターンリファレンス

画像生成ページ(/image/soul-v2)

要素パターン
プロンプトテキストボックスID hf:tour-image-prompt の textbox
モデルセレクタ「Soul 2.0」を含む group > button
アスペクト比「3:4」を表示する button
解像度「2k」を表示する button
Generateボタン「Generate XXXX free gens left」の button
最初の結果履歴グリッド内の最初の generic 子要素

ビデオ作成ページ(/create/video)

要素パターン
アップロード領域(空)paragraph: Upload media を含む generic [cursor=pointer]
アップロード領域(画像あり)画像サムネイルがネストされ、「Upload media」テキストのない generic [cursor=pointer]
アップロードダイアログタブバー(Uploads, Image Generations等)を持つ dialog
Image Generationsタブダイアログ内の button "Image Generations"
ギャラリーの最初の画像ダイアロググリッド内の最初の button "Check eligibility"
選択された画像ネストされたimgを持つ generic [cursor=pointer](Check eligibilityボタンを置き換え)
プロンプトエディタ[data-lexical-editor] contenteditable div
プロンプトテキストボックス(スナップショット内)Lexicalエディタにフォーカスした後の textbox [active]
モデルボタン「Seedance 2.0」を含む button "Model"
尺ボタンbutton "Duration"
アスペクト比ボタンbutton "Auto Ratio"
解像度ボタンbutton "720p Resolution"
Generateボタンクレジットコストを表示する button "Generate XX XX"

エラーハンドリング

  • ログインしていない: ユーザーにログインを依頼(! open https://higgsfield.ai)
  • 画像プロンプトバーがない: ページをリフレッシュ — これは断続的なプラットフォームのバグです
  • 「Check eligibility」が変化しない: 画像がSeedance 2.0と互換性がない可能性があります。別の画像を試すか、再生成してください
  • Lexicalエディタがクリアできない: トリプルクリックで全選択してからBackspaceを試すか、browser_evaluateでinnerHTMLをクリアします
  • Escapeでダイアログが閉じない: ダイアログ領域外をクリックします
  • クレジット不足: 生成前にユーザーに警告します。ビデオは画像よりも高コストです
  • 古いref: 各操作の前に必ず新しいスナップショットを取得します。ページの状態が変わるとrefも変わります

エンドツーエンドのワークフロー例

ユーザー: 「私の新しいスキンケアセラムを宣伝する、魅力的な女性を使ったUGC広告ビデオを作成して」

1. /ugc-hot-girlを呼び出し → 美容/スキンケア画像プロンプトを生成:
   "20代前半の魅力的な若い女性、透明感のある潤った肌、濃い茶色の髪を
    ルーズなお団子に... リングライト照明... フォトリアリスティック、4K..."

2. フェーズ1 — 画像生成:
   → /image/soul-v2に移動
   → 画像プロンプトを入力
   → ユーザーに確認 → Generateをクリック
   → 15〜20秒待機 → グリッドに画像が表示 ✓

3. フェーズ2 — ビデオ作成:
   → /create/video?model=seedance_2_0に移動
   → アップロード領域をクリック → Image Generationsタブ
   → 最初の画像(Check eligibility)をクリック → Escape
   → 画像がフォームに読み込まれた ✓
   → 古いプロンプトをクリア → UGC証言プロンプトを入力:
     "@image1の女性が小さなセラムボトルを手に取り、好奇心を持って
      調べています。一滴を指先に取り、頬に触れ、喜びで表情が
      輝きます..."
   → アスペクト比をTikTok用に9:16に設定
   → ユーザーに確認 → Generateをクリック
   → ビデオ生成中...完了 ✓

4. 報告: 「UGCビデオの準備ができました!履歴タブで確認してください。」

パイプラインスキルリファレンス

ステップスキル機能
1/ugc-hot-girlキャラクター画像プロンプトを生成
2/higgsfield-image-auto画像生成ステップのみを自動化
3/seedance-auto-generateビデオ生成ステップのみを自動化(ローカルファイルから)
完全/ugc-video-autoこのスキル — パイプライン全体をエンドツーエンドで実行

個別のスキルを別々に使用することも、/ugc-video-autoを呼び出して一度にすべてを実行することもできます。

Individual skills in this repo

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

AKCodez/higgsfield-claude-skills

Generate cinematic film-style video prompts for Seedance 2.0 on Higgsfield. Use whenever the user wants cinematic, film-like, movie-quality, Hollywood-style, dramatic, or professional film-quality AI video. Triggers on: cinematic, film look, movie scene, dramatic lighting, depth of field, lens flare, anamorphic, letterbox, noir, epic, Steadicam, dolly, crane shot, or any cinematic video generation request. Always use this skill even if the user doesn't explicitly say "cinematic" but describes a film-like aesthetic.

AKCodez/higgsfield-claude-skills

Generate 3D CGI and rendered video prompts for Seedance 2.0 on Higgsfield. Use whenever the user wants 3D rendered, CGI, Pixar-style, Unreal Engine, photorealistic 3D, computer-generated, or digitally rendered video content. Triggers on: 3D animation, CGI, rendered, Blender, Unreal Engine, octane render, ray tracing, volumetric, subsurface scattering, physically based rendering, or any 3D/CG video request. Always use even if the user just says "make it look 3D" or describes a rendered aesthetic.

AKCodez/higgsfield-claude-skills

Generate cartoon and animation style video prompts for Seedance 2.0 on Higgsfield. Use whenever the user wants cartoon, 2D animation, cel-shaded, hand-drawn, illustrated, flat animation, or motion graphics animation style video. Triggers on: cartoon, animation, cel shading, hand-drawn, illustrated, flat design animation, vector animation, retro cartoon, rubber hose, motion graphics, or any cartoon/animated style request. Use even for vague requests like "make it look animated" or "fun colorful style.

AKCodez/higgsfield-claude-skills

Convert comic book panels, manga pages, webtoons, and illustrated storyboards into animated video using Seedance 2.0 on Higgsfield. Use whenever the user wants to animate comics, bring illustrations to life, convert manga to video, animate storyboards, or create motion from static sequential art. Triggers on: comic to video, manga animation, panel animation, storyboard to video, webtoon animation, comic book motion, sequential art, graphic novel animation, or any illustrate-to-animate request. Use even when user says "make this drawing move" or "animate this page.

AKCodez/higgsfield-claude-skills

Generate e-commerce product advertisement video prompts for Seedance 2.0 on Higgsfield. Use whenever the user wants product ads, e-commerce videos, product showcases, unboxing, product demos, shopping ads, fashion ads, beauty ads, food ads, or any commercial product video for online selling. Triggers on: product ad, e-commerce, product showcase, Amazon video, Shopify ad, Instagram shop, TikTok shop, product commercial, fashion video, beauty ad, food ad, product demo, dropshipping video, or any product promotional video request. Use even for "make a video for my product" or "product promo.

AKCodez/higgsfield-claude-skills

Generate product 360° turntable, multi-angle showcase, and product reveal video prompts for Seedance 2.0 on Higgsfield. Use whenever the user wants a product rotation video, turntable showcase, product reveal, 360 view, multi-angle product display, product beauty shot, hero product video, or unboxing reveal. Triggers on: product 360, turntable, product rotation, multi-angle, product reveal, product showcase, hero shot, beauty shot, product spin, unboxing, or any request to showcase a physical product from multiple angles. Use even for "show my product from all sides" or "make a product video.

AKCodez/higgsfield-claude-skills

Generate music video and beat-synced visual content prompts for Seedance 2.0 on Higgsfield. Use whenever the user wants to create a music video, lyric video, beat-synced visuals, performance video, concert visual, album art animation, or music-driven visual content. Triggers on: music video, lyric video, beat sync, music visualization, performance video, concert visual, album visual, song video, music clip, beat drop visual, rhythm sync, or any music-driven video request. Use even for "make visuals for my song" or "video for this track.

AKCodez/higgsfield-claude-skills

Generate viral social media hook video prompts for TikTok, Instagram Reels, and YouTube Shorts using Seedance 2.0 on Higgsfield. Use whenever the user wants to create scroll-stopping hooks, viral short-form video, attention-grabbing openers, TikTok content, Reels content, Shorts content, or any social-media-optimized video. Triggers on: social media video, TikTok, Instagram Reels, YouTube Shorts, viral video, hook, scroll-stopper, short-form, trending, engagement, views, or any request for social media video content. Use even for "make something that gets views" or "viral content.

AKCodez/higgsfield-claude-skills

Generate brand storytelling and narrative video prompts for Seedance 2.0 on Higgsfield. Use whenever the user wants to create a brand story video, company origin story, mission video, about us video, brand film, corporate narrative, founder story, brand anthem, company culture video, or emotional brand content. Triggers on: brand story, brand video, company story, origin story, about us, mission video, brand film, brand anthem, corporate video, company culture, founder story, brand narrative, or any request for brand/company storytelling video. Use even for "tell our company story" or "make a video about our mission.

AKCodez/higgsfield-claude-skills

Generate real estate, architecture, and interior design showcase video prompts for Seedance 2.0 on Higgsfield. Use whenever the user wants property tours, real estate listings, architecture showcases, interior design videos, home staging content, property marketing, virtual tours, construction reveals, or any real estate/architecture video. Triggers on: real estate, property, house, apartment, architecture, interior design, home tour, listing video, property marketing, virtual tour, building, construction, renovation, home staging, or any real estate/architecture video request. Use even for "make a video for my listing" or "showcase this property.

AKCodez/higgsfield-claude-skills

Generate a detailed AI image prompt for creating an attractive female UGC ad character. Use when the user wants to create a "hot girl" character image for UGC ads, influencer-style content, product testimonials, or social media ad creatives. Triggers on requests like "create a UGC girl", "hot girl for ads", "female influencer image", "UGC character", "testimonial girl", or any request for a female character for ad/UGC content.

関連スキル