Communitygithub.com

generate-logo

將任何標誌圖片(PNG、JPG、WebP 或 SVG)轉換為五種風格的 5 秒動畫標誌揭曉(液態、霓虹、彈跳、透鏡、升起),產出 1080p60 MP4、透明 WebM 與關鍵幀表。

generate-logo 是什麼?

這個技能可將使用者提供的任何標誌圖片,自動生成 5 秒長的動畫標誌揭曉,支援五種風格:液態、霓虹、彈跳、透鏡與升起。每種風格都會產出 1080p60 的 MP4(含合成音效)、透明背景 WebM(選用 ProRes 4444 .mov 供剪輯軟體使用)以及關鍵幀表。此外,它還能為標誌加上雙色字標、產生方形或直向版本供社群媒體使用,甚至為特定標誌打造專屬風格。 技能完全在本機執行,不需任何 AI 影像服務或素材庫,而是透過 headless Chrome 逐幀渲染場景,再由 ffmpeg 編碼影片,音效則根據場景事件(落地、爆裂、閃爍)合成。使用者只需提供標誌圖片與簡單指令(如「製作動畫標誌」或「讓我的標誌動起來」),AI 代理便會自動分析標誌特徵、選擇最佳風格,並產出專業級的動畫成果。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/chydevit/Skill-create-videos/tree/HEAD/plugins/logo-skills/skills/generate-logo

在你喜歡的 AI 中提問

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

說明文件

產生標誌動畫

此技能將標誌圖片轉換為 5 秒動畫揭曉。每種風格都是一個場景,由 headless Chrome 逐幀渲染,ffmpeg 負責編碼幀,音效則根據場景報告的事件(落地、爆裂、閃爍)合成。此過程不使用任何 AI 影像服務、庫存素材或樣片。每種風格的最後一幀都是標誌檔案本身的像素,因此動畫永遠不會「重新繪製」品牌。

需求:Node 22+、ffmpeg(libx264、libvpx-vp9、prores_ks)以及 Chrome 或 Chromium。若 Chrome 不在標準路徑,請設定 CHROME_PATH。

工作流程

1. 找到並檢視標誌

找到使用者所指的檔案:檢查工作目錄、~/Downloads 和 ~/Desktop,或直接詢問。在渲染前先讀取圖片。注意它是否擁有透明或平面背景、有多少個獨立形狀、是否已包含字標,以及它的顏色。這決定了哪些風格會表現出色。在檢查預覽時請牢記這些資訊。

2. 確定需求,使用預設值而非提問

預設值為所有五種風格、1920×1080 @ 60 fps、自動背景,以及 MP4 加透明 WebM。僅在答案會改變輸出且你無法推斷時才提問。例如,使用者想加入名稱,但你不知道確切拼寫或顏色分割位置。

使用者想要選項
特定風格--styles liquid,neon
Instagram / 方形、TikTok / Reels / 直向--size square、--size vertical(或 --size 1280x720)
在標誌旁加上品牌名稱--text "Pharm|Kulen"(| 將文字分成取自標誌的兩種顏色)、--font "Arial Rounded MT Bold"、--text-colors "#0a3fa8,#ff9a00"
深色或淺色頁面--bg dark、--bg light、--bg "#0b1e2d"(霓虹永遠是深色)
供 Premiere / Final Cut 使用的檔案--prores(加入大型 ProRes 4444 .mov 含 Alpha 頻道)

3. 先預覽(幾秒,而非幾分鐘)

<skill>/scripts/animate.sh "<logo>" --preview --out "<out-dir>" [options]

這會為每種風格寫入 <name>-5s-<style>-preview.png(每種風格 10 張靜止幀),以及當有兩種或以上風格時的 <name>-5s-overview.png,並為每種風格產生 -info.json。閱讀概覽並檢查:

  • **去背:**乾淨的邊緣,且標誌內部無背景色或雜點。info.json 中的 keyedBackground 表示已對背景進行去背(檔案中無透明度)。
  • 分組: parts 是獨立形狀的數量,textParts 是找到的字母數量。字母必須被偵測為文字,霓虹閃爍、液態珠粒和彈跳掉落才會將其視為單詞處理。
  • **構圖:**無裁剪且尺寸看起來正確。

若有問題,請參閱下方「修正分析問題」。若使用者希望在完整渲染前有發言權,則將概覽展示給他們。

4. 渲染

<skill>/scripts/animate.sh "<logo>" --styles <list> --out "<out-dir>" [options]

每種風格大約需要 60–70 秒(不透與透明通道加上編碼)。若為四種或以上風格,請在背景執行。每種風格的輸出放置在輸出資料夾中: <name>-5s-<style>.mp4(含音效)、-alpha.webm、-alpha.mov(使用 --prores 時)、-sfx.wav、-keyframes.png 和 -info.json。

5. 交接前檢查

  • 閱讀每個 -keyframes.png。最後一幀必須是乾淨、完整的標誌。
  • 使用 ffprobe 確認時長為 5.000 秒以及尺寸。音效峰值已正規化至 −3 dB。
  • 將 MP4 和概覽傳送給使用者(可使用 SendUserFile 時),並以連結形式列出每個檔案。提及透明版本以及每種風格的簡短說明。

6. 迭代

時間控制位於 scripts/styles/<style>.mjs 中每種風格的 T 物件內。所有其他時間都依賴於此,音效也會自動跟隨,因此請在此修改。若需要五種風格無法提供的效果,或標誌形狀應有特定動作,請編寫新的風格。請參閱 references/custom-style.md。

風格

完整細節在 references/styles.md 中;若需為使用者選擇風格或解釋每種風格的作用,請閱讀該文件。

  • liquid:標誌主色的一滴液體落在頁面上,擴散成最大的形狀。其他形狀和字母則以珠粒形式擠出。最適合圓潤、有機的標誌。
  • neon:在深色頁面上,發光管線描繪每個形狀,標誌隨閃光亮起,字母像招牌一樣閃爍亮起。非常暗的形狀會變成白色。
  • bounce:大形狀翻滾或滾入,像塑膠一樣彈跳,接著是五彩紙屑爆發,然後字母掉落。活潑有趣。
  • lens:放大鏡在空白頁面上滑動,標誌僅透過鏡片顯示。接著從主要形狀縮小移出。適合搜尋、健康或洞察品牌。
  • rise:品牌顏色的細線展開成帶狀,形狀從中升起。平靜且商業化,適用於任何標誌。

修正分析問題

  • **JPG 標誌周圍有光暈或殘留背景:**背景是根據其邊框顏色進行去背的。若標誌觸及圖片邊緣,或位於漸層或照片上,請先將標誌剪下(匯出透明 PNG)並重新執行。
  • 白色細節消失(白色背景上的白色形狀):這是正確的去背。若這些白色部分必須顯示,請使用透明 PNG。
  • **字母未被偵測為文字:**字母需要在同一行主要形狀旁邊或下方有 3 個以上高度相近的獨立字母。連寫字或單一形狀的字標會被視為一個部分,這在「升起」和「透鏡」風格中仍能正常動畫。
  • 字標字型錯誤: --font 必須安裝在機器上。請檢查 fc-list,或在 macOS 上查看 /System/Library/Fonts。

製作專屬風格

當使用者有特定需求時,例如「藥丸應掉入定位」或「放大鏡應掃描」,請閱讀 references/custom-style.md。其中涵蓋了風格 API、引擎輔助工具、音效事件列表,以及過去成功製作標誌動畫的技術。這些包括將標誌重建為向量形狀、針對 PNG 檢查重建結果,並在最末端交回真實像素。

Individual skills in this repo

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

brand-loop

Make a seamless looping background video of glossy 3D liquid blobs in a brand's colours. Two colour families float slowly in zero gravity, each merging and pinching off like mercury, on a soft off-white studio backdrop with a warm gradient, faint ripple rings, soft drop shadows and shallow depth of field. It renders in Blender EEVEE at 4K 60 fps as H.264, HEVC 10-bit and 1080p, and the last frame flows into the first. Use it whenever the user wants a looping background, brand backdrop, abstract 3D or liquid loop, motion background for a website, stream, event screen or presentation, a "seamless loop", or a background for their logo or text, or types /brand-loop.

brand-promo

Make a ~50-second dark, kinetic studio showreel / promo video from a brand's own videos, its logo animation and a few lines of text. It has a typed intro, a ring of 3D cards, a glitchy title drop, and 3-5 spotlights (each work on a tilted card or a phone, playing its own sound). Then "Your story… next.", a 3D rush of clips, and the liquid logo reveal with the name, chips and website. It comes with an original synthesised score, narration (VoxCPM2, English or Khmer) and sound effects, as a 1080p60 MP4. Use it whenever the user wants a showreel, studio reel, portfolio video, agency or brand promo, "demo video" of their work, a promo like a template video, or a Khmer version of one, or types /brand-promo, even if they only hand over a few videos and a logo.

portfolio-reel

Make a ~30-second creator / freelancer / developer portfolio intro reel (1080p60 MP4) in one fixed, friendly motion-design style (template "skill 2"). A mustard-yellow gradient asks a hook question ("Looking for a … Video editor?"), a white circle wipes to a profile hero (round avatar, badge pill, "Hello, I'm …", roles split by bars, a black "Here's my work ↑" button). The page then scrolls through 1-4 work sections on light grey with window-light shadows, each a title plus 1-3 rounded cards playing the user's own clips or showing their pictures. A yellow light wipe brings two closing lines, then a black social profile card pops up with counting stats, a cursor clicks Follow (it turns into Following) and the card flips in 3D to its back. Two UIs: "classic" (the template) and "app" (a search bar that types the hook and opens a results dropdown, a bento dashboard of glass tiles, a carousel of browser and phone mockups, a chat screen for the closing lines, and a profile card with a co...

saas-promo

Make a kinetic SaaS / startup / product / developer promo video (1080p60 MP4) in one fixed, fast motion-design style: an ~11-second teaser, or a ~50-second version with chapters (one per product or project) cut on the beat of the user's own song. It opens with glyph flashes and purple/lime neon shapes, then types a word with a cursor while a 3D swirl of your screenshots orbits it. Cards slide onto a painted meadow and build a bento wall with words typing inside them, and the camera zooms into a card. A glowing gradient orb then reveals the headline word by word, and a glitch drops into a long-exposure flower on a blue-to-orange sky with flying symbols and "From … / To …". Every frame is drawn in code, with typing, whoosh, riser and impact sound effects and a synthesised ambient bed or your own song (its tempo and drop are measured, so every cut lands on the beat), mixed to -14 LUFS. English or Khmer. Use it whenever the user wants a SaaS promo, product or app teaser, a developer or...

相關技能