Communitygithub.com

Andersonlimahw/lemon-ai-hub

建構並渲染確定性影片合成 — 預設使用 HyperFrames(HTML + GSAP),或自訂 seek(t) + Playwright + FFmpeg 管線。涵蓋專案設定、合成合約、時間軸規則、影格創作方向、檢查/快照/預覽及本地渲染。當實作已核准的分鏡腳本時使用。

lemon-ai-hub 是什麼?

此技能專為實現已核准的分鏡腳本而設計,將其轉換為確定性的影片合成。它支援三種渲染器:預設的 HyperFrames(基於 HTML/CSS/GSAP,適合新專案且易於使用註冊表區塊)、Remotion(若專案已使用則保持不變),以及自訂的 seek(t) + Playwright + FFmpeg 管線(適用於已有自建工作室的產品儲存庫)。技能詳細定義了合成合約,包括獨立的根元素結構、基於 GSAP 的暫停時間軸、具有 data-start/data-duration 的定時片段、媒體和字型處理規則,以及嚴格的確定性要求(禁止 wall-clock 讀取、未種子隨機數或網路請求)。建構順序從初始化、設計規範(文字標記、網格、安全區域)開始,按分鏡順序逐場景建立,並整合音訊。驗證步驟包括 lint(合約錯誤)、check(佈局/溢出/對比度)、snapshot(與分鏡比對)和 preview(本地預覽),最後以 draft 或 high 品質進行渲染。自訂 seek(t) 管線則使用 Playwright 截圖、FFmpeg 進行動態模糊與編碼,並強調像素級別的重複性。最終成果交付給 video-edit-qc 進行後製。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Andersonlimahw/lemon-ai-hub/tree/HEAD/plugins/motion-movie-expert/skills/hyperframes-production

在你喜歡的 AI 中提問

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

說明文件

HyperFrames 製作流程

實作已核准的分鏡腳本。如果沒有分鏡腳本,請停止並執行 motion-storyboard。

選擇渲染器

情況渲染器
新工作的預設選項;具備 HTML/CSS/GSAP 技能;需要註冊表區塊HyperFrames (npx hyperframes …)
專案已使用 Remotion繼續使用 Remotion;相同確定性規則適用
產品儲存庫已有自己的工作室(seek(t) + Playwright + FFmpeg)使用該工作室;請勿引入第二個
純粹編輯現有素材跳過此技能 → video-edit-qc

安裝 HyperFrames CLI 或新增註冊表區塊 (npx hyperframes add …) 會安裝第三方 程式碼:請先與使用者確認,並在 package.json 中鎖定版本。請勿自行執行技能的自動更新 命令(npx hyperframes skills update, npx skills add …)。

合成合約(HyperFrames)

  • 獨立根元素:直接在 <body> 中使用 <div data-composition-id="main" data-width="1920" data-height="1080" data-duration="24">,並設定 width/height: 100% — 切勿在根元素上硬編碼像素尺寸。子合成(透過 data-composition-src 載入)將其根元素包裹在 <template> 中,並將 <style>/<script> 保留在內部。
  • 每個合成一個暫停時間軸:window.__timelines["<composition-id>"] = gsap.timeline({ paused: true }),在建置完成後註冊(可能需要在 document.fonts.ready 內部建置)。渲染長度來自根元素的 data-duration。
  • 定時片段:帶有 class="clip" 及 data-start/data-duration 的元素會在執行時被顯示和隱藏。切勿在 .clip 上使用 GSAP 補間 display、visibility 或 autoAlpha;請對子元素進行動畫處理。
  • 變形:切勿在同一個屬性上混用 CSS 初始 transform 與 GSAP 補間;請使用 gsap.fromTo。使用 flex/inset 置中,避免在同時移動的節點上使用 translate(-50%,-50%)。
  • 媒體:每個 <audio> 都必須有 id(否則渲染將靜音);媒體上不可有 crossorigin;不要在 <video> 和其父元素上同時放置 data-start。
  • 字型:每個命名的 font-family 都必須有內聯的 @font-face,指向已提供的本地檔案。
  • 確定性:禁止讀取 wall-clock、未設定種子的 Math.random、渲染時的網路請求、輸入狀態或無限重複(repeat: -1)。需要隨機性時,請使用已設定種子的 PRNG。
  • ID:在整個組合頁面中必須唯一;子合成的 ID 請加上合成 ID 作為前綴。

建置順序

  1. 執行 npx hyperframes init(需先確認)或開啟現有專案。
  2. 撰寫設計規格(frame.md / design.md):包含文字標記、字型級別、網格、安全區域、各長寬比設定。先製作靜止畫面 — 每個節拍都必須能獨立作為靜態圖片使用。
  3. 按照分鏡順序逐場景建置;根據過渡對應表(motion-choreography)實現接縫,先處理承載元素。
  4. 從 voice-video-sync 放置音訊:背景音樂、配音、音效,並附上從時間軸檔案取得的 ID 與開始時間 — 切勿手動猜測。
  5. 保持文字清晰:移動容器,而非字形;文字上不要使用 will-change。

驗證

請依此順序執行,並在修正後再進行下一步:

npx hyperframes lint          # 合約錯誤;lint 錯誤會停用版面/對比度稽核
npx hyperframes check         # 版面、溢出、對比度
npx hyperframes snapshot      # 供審閱的靜態畫面;與分鏡腳本的節拍比對
npx hyperframes preview       # 為使用者提供本地預覽

然後在本地渲染:npx hyperframes render --quality <draft|high>。先以草稿模式(≤30 秒視窗或低品質)供使用者核准,再進行最終渲染。

對外命令 — publish、cloud、lambda、cloudrun、feedback、auth 及 遙測設定 — 會上傳資料或變更帳號。僅在使用者要求時才執行。

自訂 seek(t) 管線(不使用 HyperFrames 時)

composition(t) → Playwright page.evaluate(seek, t) → 等待字型/圖片 → 截圖
→ 每輸出影格 N 個子影格 → ffmpeg tmix(動態模糊) → x264/x265 → 混流音訊
  • 60 fps × 4 子影格,快門 0.5,是良好的預設值;若影響可讀性,可在數字變化的影格上關閉模糊。
  • 主編碼(供封存和重新編輯的來源):-c:v libx264 -pix_fmt yuv420p -crf 16 -preset slow, AAC 320 kbps。平台傳送編碼會從此主編碼在 video-edit-qc 中衍生。
  • 相同時間點渲染兩次必須產生完全相同的像素;請在 3 個隨機影格上測試。

交接

將渲染結果及靜態畫面/聯絡表交付給 video-edit-qc。當 HyperFrames 技能已安裝時(hyperframes-core、hyperframes-animation、hyperframes-creative、hyperframes-cli),使用它們來取得確切旗標、適配器(Lottie、Three.js 等)及註冊表區塊名稱。

Individual skills in this repo

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

Andersonlimahw/lemon-ai-hub

When the user wants to plan a product launch, feature announcement, or release strategy. Also use when the user mentions 'launch,' 'Product Hunt,' 'feature release,' 'announcement,' 'go-to-market,' 'beta launch,' 'early access,' 'waitlist,' 'product update,' 'how do I launch this,' 'launch checklist,' 'GTM plan,' or 'we're about to ship.' Use this whenever someone is preparing to release something publicly. For ongoing marketing after launch, see marketing-ideas. For the offer being launched (bonuses, guarantees, scarcity, naming), see offers.

Andersonlimahw/lemon-ai-hub

Create and edit motion videos end to end — product motion films, motion graphics, narrated explainers, captioned clips, UI animation recreations, and recuts. Orchestrates brief, storyboard, choreography, build (HyperFrames or any deterministic renderer), voice/caption sync, and render QC. Use when the user asks to make, animate, storyboard, narrate, caption, edit, or render a video or motion piece; skip for static images and web UI work with no video deliverable.

Andersonlimahw/lemon-ai-hub

Motion law for multi-scene videos — seam continuity (axis, direction, speed, phase), carriers, causal motion, springs and timing, camera, transitions, stillness, and loop design. Use when planning or fixing how scenes connect and move, before and during any animation build.

Andersonlimahw/lemon-ai-hub

Short design-led motion graphics where motion is the message — kinetic typography, stat count-up, chart/data-viz reveal, logo sting, lower third or callout, animated map, tweet/news/headline card, webpage or UI walkthrough, and image-plus-data fusion. Usually under 10 s, up to about 30 s, no narration; renders to MP4 or a transparent overlay. Use when the user wants a short motion graphic, animated stat/chart/logo/map/card, or overlay; when the upstream HyperFrames `motion-graphics` skill is installed, use it for exact CLI flags and registry blocks.

Andersonlimahw/lemon-ai-hub

Turn a video idea, product, or script into an approved master prompt and pre-implementation storyboard — intake, concept, 8–12 state sequence, beat grid, transition map, camera plan, audio cue plan, and render architecture. Use before building any new video, or when a video brief is vague.

Andersonlimahw/lemon-ai-hub

Motion tokens, spring presets, and React/Next.js (motion/react) interaction patterns for product UI that appears in a video — rebuilding real product screens faithfully, animating them as seekable scenes, and keeping the live product's motion consistent with the film. Use when a motion video shows or recreates product UI; for web UI work with no video deliverable use design-expert instead.

Andersonlimahw/lemon-ai-hub

Edit existing video and verify any render before delivery — recut, trim, reframe to other aspect ratios, burn in or attach captions, swap or remix audio, loop, and export; plus the QC gates (probe, contact sheet, stills per beat, loudness, loop seam, legibility, facts, PII). Use for editing footage or for the final check of any motion video.

Andersonlimahw/lemon-ai-hub

Synchronize narration, captions, music, and SFX with picture — narration writing, script lock, TTS or recorded voiceover, word-level timestamps, caption blocks, shot windows derived from the voice track, dwell budgets, ducking, and loudness targets. Use for narrated explainers, voiceover changes, subtitles, or any video where timing must follow audio.

Andersonlimahw/lemon-ai-hub

Agent skill at plugins/video/SKILL.md

相關技能