Communitygithub.com

vidmoat/motion-graphics

使用 HTML 元素設計圖形,並在時間軸時鐘上為物件製作動畫。適用於動態統計卡片、資訊圖表、圖表、UI 模型、標誌動畫或圖形內的物件移動。

motion-graphics 是什麼?

此技能「motion-graphics」讓 AI 代理能直接透過 HTML 元素與時間軸動畫合約來設計並製作動態圖形,無需依賴外部生成費用。它支援 `addHtmlElement` 新增自訂容器與佈局,並使用時間軸驅動的動畫(而非 CSS 時鐘動畫)確保匯出無誤。此外,`addMotionComponent` 與 `setMotionComponent` 可快速套用預製元件(如揭露標題、統計計數器、對話氣泡等),並透過 `designInserts` 按逐字稿自動安排。使用前須先查閱 `searchCatalogue kind commands` 中 `addHtmlElement` 的完整合約。此技能適用於 Cursor 與 Codex 等通用代理平台,其典型工作流程包括:選用或自訂元件、根據內容與空間決定尺寸與樣式、在時間軸上製作動畫、以及區分容器變換與內部物件動畫。注意事項包括:內聯 SVG 需加入 `xmlns`,全畫面元素須設為透明背景以不遮擋底層,且若使用者回報變更未出現,應檢查實際渲染結果而非重複關鍵影格。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vidmoat/skills/tree/HEAD/skills/vidmoat/motion-graphics

在你喜歡的 AI 中提問

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

說明文件

動態圖形

addHtmlElement 用於設計容器與佈局;文字與標題指令則用於純文字內容。

工作流程

  1. 可能已有現成元件可用: addMotionComponent 可新增一個可編輯、時間軸驅動的圖形,順應影片方向,且無需生成成本(使用 setMotionComponent 變更其文字;以 searchCatalogue kind elements 搜尋元件:reveal-title、speaker-card、progress-ring、feature-spotlight、stat-counter、keyword、checklist、chat-bubbles、search-bar、proof-card、icon-card、quote-card)。根據說話者的內容,designInserts 會比對逐字稿後自動放置。僅在無合適元件時再自行建構 HTML。
  2. 先閱讀合約: 使用 searchCatalogue kind commands 搜尋確切 id addHtmlElement,並在撰寫標記前閱讀其完整作者合約。
  3. 根據內容與空間決定尺寸: 讓文案與可用區域決定大小、樣式與位置。下三分之一不一定需要深色面板;統計資料不一定需要漸層卡片。
  4. **在時間軸時鐘上製作動畫,**使用支援的時間軸驅動動畫合約。壁鐘 CSS 動畫並非時間軸播放,無法匯出。
  5. 容器與物件: 對一個 HTML 剪輯進行變換會移動其整個合成內容,而非其子元素。若要移動內部的物件,請讀取該剪輯的 HTML 並在時間軸上對預期的子元素設定動畫,或使用獨立的真實剪輯。將附屬細節保留在同一個移動容器中。
  6. 自訂元件: 當腳本功能可用時,TSX 動態元件可透過 agentWorkspace 動作 motion_compile(工作流程 motion-authoring)編譯。
  7. 驗證 在多個時間點的渲染影格上檢查物件位置。僅靠攝影機縮放無法滿足物件動作。

注意事項

  • 內聯 SVG 需要 xmlns,否則會靜默渲染為零像素。
  • 繪製全畫面實色背景的 HTML 元素會在其整個持續時間內隱藏底層所有內容;請將根元素設為透明。
  • 若使用者表示某項變更未出現,請檢查已儲存的結果並變更實際機制,而非重複相同的關鍵影格。
  • 設計好的 UI、圖表與程序化圖形無需付費圖像生成即可展示工作流程。

相關技能:titles、text-led-video。專家:motion-designer。

Individual skills in this repo

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

vidmoat/caption-styling

Style, time and place captions and subtitles so they read on a phone with the sound off. Sets line length, reading speed, cue timing, size, contrast and platform safe zones, and checks SRT or VTT files against them. Use when the user wants captions or subtitles added, restyled, fixed or made accessible, says captions are too fast, too small or hidden under app buttons, or is preparing TikTok, Reels, Shorts or YouTube video, even if they only ask to "put what I say on screen".

vidmoat/layered-motion

Motion graphics people can edit afterwards: compositions of layers with keyframes, After Effects style. Use for lower thirds, animated titles, kinetic type, stat reveals, logo stings and callouts that the person may want to retime or restyle by hand, and when a composition is already on the timeline.

vidmoat/video-essayist

Video Essayist specialist, tagged @video-essayist or consulted for script-led commentary and analysis: narration locked first, every line matched to a visual that proves it, short annotated clips, quotes with sources, thesis by 60 seconds, chapters. Use when the user tags @video-essayist or asks for a video essay, film analysis or commentary edit.

vidmoat/wedding-filmmaker

Wedding & Event Filmmaker specialist, tagged @wedding-filmmaker or consulted for wedding and event highlight films, teasers and vertical teasers: the couple's own words as the spine, cut to licensed music, slow motion only on peaks, true skin and an unclipped dress. Use when the user tags @wedding-filmmaker or asks for a wedding or event highlight video.

相關技能