Communitygithub.com

AKCodez/higgsfield-claude-skills

完整的UGC廣告影片管道——在Higgsfield上生成角色圖片,然後從中建立Seedance 2.0影片。自動化協調從圖片提示到完成UGC影片的整個流程。

higgsfield-claude-skills 是什麼?

這個技能(/ugc-video-auto)提供了一個完整的端到端自動化流程,用於在Higgsfield平台上建立UGC(用戶生成內容)廣告影片。它首先使用Soul 2.0模型生成角色圖片,然後自動將該圖片導入Seedance 2.0影片創建管道,最後生成一段成品影片。該技能專為需要快速製作高轉換率UGC廣告的開發者和行銷人員設計,例如推薦、開箱或產品展示等影片類型。它需要Playwright MCP工具才能運作,並透過模擬瀏覽器操作來處理Higgsfield的複雜網頁介面,包括表單填寫、對話框互動和富文字編輯器(Lexical)。該技能可以整合到Claude Code和Codex等AI代理中,讓使用者只需簡單的提示即可觸發完整的建立流程,而無需手動操作平台。

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

在你喜歡的 AI 中提問

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

說明文件

UGC 影片自動化 — 透過 Playwright 的完整管道

此技能會協調 Higgsfield 上完整的 UGC 廣告影片管道:產生角色圖片 → 選取圖片並用於影片 → 加入 UGC 影片提示 → 產生 Seedance 2.0 影片。所有步驟皆透過 Playwright 自動化完成。


管道概覽

步驟 1: 產生角色圖片  →  /image/soul-v2
步驟 2: 導航至影片頁面  →  /create/video?model=seedance_2_0
步驟 3: 從圖庫選取圖片 →  上傳對話框 →「圖片生成」分頁
步驟 4: 編寫 UGC 影片提示 →  Lexical 編輯器 (contenteditable)
步驟 5: 設定與產生      →  點擊「產生」

先決條件

  • 使用者必須在 Playwright 瀏覽器工作階段中已登入 higgsfield.ai
  • 必須啟用 Playwright MCP 外掛
  • 首次使用前,請使用 ToolSearch 載入每個 Playwright 工具

輸入需求

使用者需提供:

  1. 角色描述 或預先製作好的圖片提示(叫用 /ugc-hot-girl 來產生一個)
  2. 產品/品牌背景 — UGC 影片要廣告的內容
  3. 影片風格 — 推薦、產品展示、開箱、反應等

可選的覆蓋設定:

  • 圖片模型: Soul 2.0(預設,最適合人像)
  • 影片模型: Seedance 2.0(預設)
  • 長度: 5 秒、8 秒(預設)、10 秒
  • 比例: 自動、16:9、9:16(TikTok/Reels)、1:1
  • 解析度: 720p(預設)、1080p

完整自動化流程

第一階段:產生角色圖片

步驟 1.1:導航至圖片生成頁面

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

等待頁面載入,擷取快照。

步驟 1.2:輸入圖片提示

找到文字框(Playwright ID: hf:tour-image-prompt,佔位文字:「描述您想像的場景」):

browser_click → ref: <文字框參考>, element: "圖片提示文字框"
browser_type → ref: <文字框參考>, text: "<角色圖片提示>"

如果使用者尚未提供圖片提示,請先使用 /ugc-hot-girl 產生一個。

步驟 1.3:產生圖片

找到「產生」按鈕(顯示「產生 XXXX 剩餘免費次數」):

要求使用者確認 — 這會消耗點數或免費生成次數。

browser_click → ref: <產生按鈕參考>, element: "產生按鈕"

步驟 1.4:等待生成

browser_wait_for → time: 20

擷取螢幕截圖。確認新圖片顯示在歷史記錄網格的第一個項目。透過檢查第一個網格元素的 innerHTML 是否包含帶有新資產 URL 的 <img> 標籤來確認。


第二階段:從產生的圖片建立影片

步驟 2.1:導航至 Seedance 2.0 影片頁面

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

等待頁面載入,擷取快照。確認「模型」按鈕中顯示「Seedance 2.0」。

步驟 2.2:開啟上傳媒體對話框

找到上傳區域 — 尋找包含下列內容的 generic [cursor=pointer]:

  • paragraph: 上傳媒體
  • paragraph: 圖片、影片或音訊
browser_click → ref: <上傳區域參考>, element: "上傳媒體區域"

這會開啟一個對話框,分頁包括:上傳、圖片生成、影片生成、元素、喜歡。

步驟 2.3:切換至「圖片生成」分頁

browser_click → ref: <圖片生成分頁參考>, element: "圖片生成分頁"

在對話框的分頁列中尋找 button "Image Generations"。

步驟 2.4:選取產生的圖片

最新產生的圖片是網格中的第一個項目。

它最初顯示為 button "Check eligibility"。點擊它:

browser_click → ref: <第一張圖片參考>, element: "第一張圖片(最新生成)"

點擊後,該按鈕會轉變為一個含有圖片預覽和綠色勾號的 generic [cursor=pointer] — 表示它已被選中且符合資格。

重要:清單中的第一個「Check eligibility」按鈕永遠是最新的圖片。點擊後,其參考會從快照中消失,並被一個新的通用元素取代。

步驟 2.5:關閉對話框

browser_press_key → key: "Escape"

擷取快照。驗證:

  • 上傳區域不再顯示「上傳媒體」文字
  • 取而代之的是顯示一個包含巢狀圖片元素(48px 縮圖)的 generic [cursor=pointer]
  • 舊的 paragraph: 上傳媒體 和 paragraph: 圖片、影片或音訊 已消失

步驟 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"

擷取快照。文字框現在應顯示佔位文字:「詳細描述您的場景。使用 @ 來參考資產」

步驟 2.7:輸入 UGC 影片提示

清除後,擷取快照以取得新的文字框參考。然後緩慢地輸入(Lexical 編輯器需要此方式):

browser_type → ref: <文字框參考>, text: "<UGC 影片提示>", slowly: true

UGC 影片提示範本(根據風格選擇):

推薦 / 談話式:

@image1 中的女性直接對著鏡頭說話,搭配自然的手勢,溫暖的黃金時刻光線,營造休閒真實的氛圍。她說話時充滿熱情,稍微前傾以加強語氣。柔和的散景背景,淺景深。自然的皮膚紋理,真實的嘴唇動作,TikTok UGC 推薦風格。順暢的手持攝影機,24fps。

產品展示:

@image1 中的女性手持產品朝向鏡頭,轉動產品以顯示不同角度。興奮真摯的表情,睜大眼睛。環形燈照明,乾淨的背景。她指著產品特色,熱情地點頭。特寫自拍構圖,iPhone 品質的影片,真實的 UGC 感覺。

反應 / 開箱:

@image1 中的女性懷著興奮的期待打開包裹,拿出產品並露出真誠的喜悅。驚訝的表情,張開嘴,然後綻放出燦爛的笑容。自然的臥室燈光,休閒的場景。手持攝影機的感覺,真實的開箱能量,TikTok 風格。

前後對比:

@image1 中的女性一開始看起來懷疑,懷疑地觸碰自己的臉。然後她塗抹產品,表情轉變為驚訝,難以置信地觸摸自己的皮膚。柔和的環形燈,浴室鏡子場景。切換式的轉變時刻,真誠的反應,UGC 推薦。

生活方式 / 日常:

@image1 中的女性走過一個明亮的現代空間,在日常中自然地與產品互動。自然晨光,放鬆的動作,真實隨意的能量。攝影機輕輕跟拍,淺景深。令人嚮往但 relatable 的生活方式內容。

步驟 2.8:設定影片設定(可選)

對於大多數 UGC 來說,預設設定運作良好:

  • 長度:8 秒(適合短影音)
  • 比例:自動(或選擇 9:16 給 TikTok/Reels)
  • 解析度:720p

若要為 TikTok 直立影片更改比例:

browser_click → ref: <比例按鈕參考>, element: "比例選擇器"

然後從下拉選單中選擇「9:16」。

步驟 2.9:產生影片

擷取顯示最終表單狀態的螢幕截圖。

要求使用者確認 — 影片生成比圖片消耗更多點數。

「產生」按鈕會顯示點數成本(例如「產生 30 20」):

browser_click → ref: <產生按鈕參考>, element: "產生影片按鈕"

步驟 2.10:監控生成進度

點擊「產生」後:

  1. 影片進入生成佇列
  2. 檢查「歷史記錄」分頁以查看進度
  3. 定期擷取螢幕截圖以顯示狀態
  4. Seedance 2.0 影片通常需要 1-3 分鐘

關鍵元素模式參考

圖片生成頁面 (/image/soul-v2)

元素模式
提示文字框textbox 且 ID 為 hf:tour-image-prompt
模型選擇器group > button 且包含「Soul 2.0」
長寬比button 且顯示「3:4」
解析度button 且顯示「2k」
產生按鈕button "Generate XXXX free gens left"
第一個結果歷史記錄網格中的第一個 generic 子元素

影片建立頁面 (/create/video)

元素模式
上傳區域(空白)generic [cursor=pointer] 且包含 paragraph: Upload media
上傳區域(已填入)generic [cursor=pointer] 且包含巢狀圖片縮圖,無「Upload media」文字
上傳對話框dialog 且包含分頁列:Uploads, Image Generations 等
圖片生成分頁對話框中的 button "Image Generations"
圖庫中的第一張圖片對話框網格中的第一個 button "Check eligibility"
已選取的圖片generic [cursor=pointer] 且包含巢狀 img(取代 Check eligibility 按鈕)
提示編輯器[data-lexical-editor] contenteditable div
提示文字框(快照中)聚焦 Lexical 編輯器後的 textbox [active]
模型按鈕button "Model" 且包含「Seedance 2.0」
長度按鈕button "Duration"
比例按鈕button "Auto Ratio"
解析度按鈕button "720p Resolution"
產生按鈕button "Generate XX XX" 且包含點數成本

錯誤處理

  • 未登入:要求使用者登入(! open https://higgsfield.ai)
  • 缺少圖片提示列:重新整理頁面 — 這是平台偶發的錯誤
  • 「Check eligibility」沒有轉變:該圖片可能與 Seedance 2.0 不相容。嘗試其他圖片或重新生成
  • Lexical 編輯器無法清除:嘗試三擊以選取全部,然後按 Backspace。或使用 browser_evaluate 來清除 innerHTML
  • 對話框無法透過 Escape 關閉:點擊對話框外部區域
  • 點數不足:在生成之前警告使用者。影片比圖片消耗更多點數
  • 參考失效:每次互動前務必擷取新的快照。任何頁面狀態變更後,參考都可能改變

端到端工作流程範例

使用者:「為我的新精華液建立一支有辣妹推廣的 UGC 廣告影片」

1. 叫用 /ugc-hot-girl → 產生美容/護膚圖片提示:
   「Attractive young woman, early 20s, clear dewy skin, dark brown hair in
    messy bun... ring light illumination... photorealistic, 4K...」

2. 第一階段 — 圖片生成:
   → 導航至 /image/soul-v2
   → 輸入圖片提示
   → 使用者確認後 → 點擊「產生」
   → 等待 15-20 秒 → 圖片出現在網格中 ✓

3. 第二階段 — 影片建立:
   → 導航至 /create/video?model=seedance_2_0
   → 點擊上傳區域 → 圖片生成分頁
   → 點擊第一張圖片 (Check eligibility) → Escape
   → 圖片已載入表單 ✓
   → 清除舊提示 → 輸入 UGC 推薦提示:
     「The woman from @image1 holds up a small serum bottle, examining it
      with genuine curiosity. She applies a drop to her fingertip, touches
      her cheek, and her expression lights up with delight...」
   → 將比例設為 9:16 以符合 TikTok
   → 使用者確認後 → 點擊「產生」
   → 影片生成中... 完成 ✓

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.

相關技能