Communitygithub.com

yazzang-homelab/motion-studio

將參考素材(單幀畫面、影片或圖片庫)轉換為 docs/style_guide.md 與節奏網格鏡次表:測量剪輯、色調與節奏,取其語法而非內容,並等待確認。適用於使用者提供或指定風格時。

motion-studio 是什麼?

這項技能(skill)專為 AI 驅動的動畫與動態設計工作室設計,能將使用者提供的視覺參考素材(例如影片、單幀畫面或過去作品的圖片庫)系統性地轉化為兩個關鍵文件:樣式指南(docs/style_guide.md)與鏡次表(docs/shotlist.md)。其核心價值在於解決 AI 模型缺乏參考時,容易產生千篇一律預設風格的問題——例如以漸層背景與淡入效果為主的平庸設計。此技能提供一套精確的「參考階梯」,根據不同參考類型(影片、單幀、圖片庫)執行相應的技術測量,包括剪輯時間、鏡頭長度、色調提取、動態能量分析與文字密度提示。 此技能支援的開發平台與代理以檔案系統和命令列工具為基礎,需在專案根目錄下使用 refs.mjs 工具進行分析。它明確強調「取語法,不取內容」,例如僅提取色調關係、字體家族、鏡頭長度與轉場類型,而不複製標誌、角色或具體構圖。最終文件需經使用者確認(gate)後,才可進入實際程式碼階段,確保創意控制權保留在人類手中。這套方法適用於任何需要從參考中學習風格、而不是簡單模仿內容的 AI 代理動畫工作流程,尤其適合想要建立獨特「室內風格」的團隊。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/yazzang-homelab/motion-studio/tree/HEAD/skills/reference-style

在你喜歡的 AI 中提問

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

說明文件

參考風格(課程步驟 05)

若無參考素材,模型會傾向於一種預設風格:將文字置中於漸層背景,所有元素以淡入方式出現。Rexan Wong (@rexan_wong) 瀏覽了一批爆紅短片後發現,指定風格名稱比描述風格更有效,而且參考素材能為模型提供要複製的節奏、類型與轉場效果。此技能會在任何影片程式碼存在之前,將參考素材轉化為兩份經核准的文件。

請求引數(可能為空)會顯示一次:

參考階梯

階層使用者提供的內容你提取的要素工具
單幀畫面他們喜愛影片中的一個靜止畫面色調、字體、紋理、構圖密度refs.mjs analyze refs/<資料夾> + 檢視畫面
影片他們欣賞電影的一個本地檔案上述要素加上剪輯時間、鏡頭長度、每秒動態能量、轉場refs.mjs extract + analyze
圖片庫他們自己的圖片或過去作品資料夾一種別人無法複製的室內風格refs.mjs analyze refs/<資料夾>

Pleometric 的純程式碼 TikTok 作品源自另一個爆紅動畫的單幀畫面;他的 Donald 風格影片則將 Opus 指向他自己的 PC-98 圖片庫。何處尋找參考素材:在 whatships.com 上觀看發布影片,在 Dribbble 上尋找動態設計,以及競爭對手的發布影片。研究它們;切勿嵌入或重新散佈這些素材。

1. 將參考素材存入磁碟

  • 將檔案或資料夾複製到專案的 refs/ 目錄下(如果還沒有 studio.json,請先用 /motion-studio:studio-init 建立專案架構)。
  • 如果僅提供他人影片的連結,請要求使用者提供他們有權研究的本地副本。請勿自行下載第三方媒體。
  • 單幀畫面:將其放入專屬資料夾(refs/frame/),這樣 analyze 就會將其視為圖片集進行處理。
  • 當使用者對「取用哪些、不取用哪些」有意見時(例如:「取粒感與字體,不取角色」),請詢問他們。

2. 測量參考素材

從專案根目錄執行以下指令:

參考類型指令
影片node tools/refs.mjs extract refs/<影片> --every 0.5 接著執行 node tools/refs.mjs analyze refs/<影片>
單幀畫面或圖片庫node tools/refs.mjs analyze refs/<資料夾>
快剪影片(錯過許多剪輯點)在 analyze 指令中加入 --threshold 0.2

輸出內容:refs/frames/frame_NNNN.png、refs/frames/frames.json、refs/contact.png(最多 60 張圖片的標籤式樣張;長條樣張會像所有樣張表一樣分頁:refs/contact.png 是第 1 頁,然後是 refs/contact-2.png、contact-3.png...;請開啟每一頁,--json 結果會將它們列在 contacts 中),以及 refs/analysis.json,其中包含剪輯時間、鏡頭長度(平均數、中位數、範圍)、6 色色調及其佔比、亮度與對比度、每秒動態能量及其峰值,以及文字密度提示。列印的摘要可作為樣式指南的起點。

3. 撰寫樣式指南與鏡次表

簡要地向 motion-studio:style-analyst 提供以下資訊(它可能會寫入 docs/style_guide.md、docs/shotlist.md 和 refs/**):

專案根目錄:<絕對路徑>。參考素材:refs/<檔案或資料夾>。主題:<主題>。時長:<S> 秒。
開啟 refs/contact.png(如果分頁也開啟 refs/contact-2.png ...)以及剪輯點附近的幾幀畫面,閱讀 refs/analysis.json。
按照樣式指南筆記撰寫 docs/style_guide.md,然後根據 audio/beats.json(如果不存在則以 <bpm> BPM 為準)的節奏網格,為一部關於 <主題>、時長 <S> 秒、使用該風格的影片撰寫 docs/shotlist.md。
只取參考素材的語法,絕不取用其內容、標誌、角色或文案。
對於不確定的部分,提出問題而不是猜測。

分段筆記詳見 assets/style-guide-notes.md。 對於想將提示貼入全新對話的使用者,相同的步驟已寫在 assets/reference-prompt.md 中。

4. 取其語法,不取內容

可取用絕不取用
色調關係(深色基底、一個暖色強調色、強調色佔比)標誌、角色、吉祥物
依類別、字重、字距、尺度跳躍劃分的字體家族精確的構圖或畫面
鏡頭長度以及剪輯點落在節奏上的位置參考素材的文案、主張或數據
轉場類型(硬切、遮罩擦除、匹配剪輯)其片段、音樂或人聲
鏡頭語言(推近、甩鏡、固定鏡頭)品牌特有的形狀或商業外觀
紋理(粒感量、紙張、網點)以及文字進出畫面的方式使用者未要求借用的一切

5. 檢查關卡

展示這兩個文件(樣式指南的簡明摘要以及鏡次表表格即足夠),並等待使用者確認後才能開始撰寫任何影片程式碼。如果使用者拒絕,請重寫鏡次表(如果風格不正確,也要重寫樣式指南),切勿透過修補程式碼來「展示替代方案」。將決定記錄在 docs/shotlist.md 頂部的 Status: 行中。

6. 讓模型選擇技術

指定風格與限制條件,而非指定函式庫。Pleometric 建議使用 p5.js,而 Opus 則自行編寫了紙本渲染器。在此工作室中,這意味著:在樣式指南中描述你想要的紋理與動態,然後讓建置流程自行選擇如何在畫布引擎(lib/draw.js 輔助函式或自訂繪圖)中繪製。僅在使用者為了重複使用(路線 B,/motion-studio:seek-engine)而需要指定框架時,才提及框架名稱。

下一步:使用 /motion-studio:motion-reel 從其第 5 階段開始建置;若要為此風格建立 UI 狀態循環,請使用 /motion-studio:ui-morph-spec。

Individual skills in this repo

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

yazzang-homelab/motion-studio

Make Claude watch its own frames: critique.mjs evidence, harsh 7-axis scores, timestamped P0/P1/P2 problems in docs/review_log.md, fix the 3 worst, re-check, pass the gate. Use for 'critique it', 'review the frames', 'is it good'.

yazzang-homelab/motion-studio

Plan long-form or overnight films: director's brief (PLAN FIRST or GO, budget, definition of done), ANIMATION_GUIDE + STORYBOARD, chapter subagents, gates, chunked render. Use for 'overnight film', 'music video', '2-minute film'.

yazzang-homelab/motion-studio

Make a launch video, app or product reel, explainer or motion ad from code, end to end: brand assets from a URL, beat-grid shot list, synced sound, critique loop, all formats. Default for new video requests; not footage edits.

yazzang-homelab/motion-studio

Brand-asset stage of a product film (motion-reel runs the whole film): capture real screenshots, logo, colors and fonts from a URL, never redraw UI; brand story beats; voice + mascot. Use to grab or fix a brand's assets.

yazzang-homelab/motion-studio

Build, debug or speed up the seek(t) render engine: render contract, canvas vs page capture, workers/subframes/chunks, determinism fixes, Remotion or HyperFrames handoff. Use for 'render is slow', 'frames differ', 'use Remotion'.

yazzang-homelab/motion-studio

Ship every format from one timeline, then package it: layout() reframing (never crop), render all formats, per-format checks, deliver.mjs, a brand skill, a service offer. Use for 'export 9:16 and 16:9', 'deliver', 'make a skill'.

yazzang-homelab/motion-studio

The viral one-line 'showreel for a résumé' prompt: why it works (anatomy), the credited quote, and seeded variants that avoid look-alike reels; runs it as an engine test. Use for that prompt, its variations, or a showreel.

yazzang-homelab/motion-studio

Score a film to its beat grid: measure a track (beats.mjs) or synthesize one (score.mjs), cue SFX from the film, add voice, mix to -14 LUFS / -1 dBTP at exact length. Use for 'add music', 'sync to the beat', 'SFX', 'loudness'.

yazzang-homelab/motion-studio

Make motion feel physical with closed-form springs from lib/motion.js: presets, springFromFeel, track() for multi-target values, loopTrack loops, indicators, text swaps. Use for 'feels linear', 'add bounce', 'easing to springs'.

yazzang-homelab/motion-studio

Scaffold a motion-studio film project (seek(t) renderer, springs, beat grid, synthesized sound, critique tools), install it, set up the browser, run doctor. Use for 'set up the motion studio', 'new film project', 'init studio'.

yazzang-homelab/motion-studio

Write a six-part XML state spec for a one-shape UI morph film (inputs, direction, structure, build, gotchas, start): states on downbeats, cursor-driven changes, seamless loop, approval gate. Use for 'UI morph', 'state list'.

相關技能