Communitygithub.com

1345AbhishekKumar/starter-supabase

自訂 HyperFrames 影片合成的通用後備工作流程,適用於任何長度或格式 — 較長或多場景作品、品牌/精華 reel、蒙太奇、標題卡、靜態循環及自由形式合成。與輸入內容和長度無關。若有專門工作流程明顯符合輸入內容(如行銷產品、網站、主題解說、GitHub PR、現有素材、短動畫或 Remotion 移植),則優先使用該工作流程(見 /hyperframes);僅在沒有合適工作流程時,將此作為通用後備方案。

starter-supabase 是什麼?

此技能為 HyperFrames 生態系統提供一個功能全面的通用影片後備工作流程。它是專門工作流程(如產品發布影片、網站轉影片、主題解說、PR 轉影片、動畫或 Remotion 移植)的替代方案,適用於不屬於任何特定類別的「其他」自訂合成需求。工作流程涵蓋從發現與設計(使用 hyperframes-creative 參考資料確定視覺識別與概念方向)到規劃、佈局、動畫及最終建置的完整步驟。它強調先以靜態 HTML/CSS 建置最終佈局,再透過 GSAP 加入動畫,以避免重疊問題,並詳細說明如何委派給專門領域技能(hyperframes-animation、hyperframes-media 等)來處理動態排印、標題卡、資料視覺化、音訊反應及字幕等任務。一個關鍵要求(以硬性門檻標記)是,在未先查閱所有必要的 hyperframes-creative 參考資料(包括 house-style.md 和影片合成指南)前,不得編寫任何 HTML,以確保產出專業、非通用的影片輸出。它還整合了統一的音訊引擎(透過 hyperframes-media),透過 JSON 描述檔處理 TTS、BGM 和 SFX。此技能支援所有 HyperFrames 平台(Claude Code、Cursor、Codex),並假設使用者已安裝相關的 hyperframes-* 技能。

相容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/1345AbhishekKumar/starter-supabase/tree/HEAD/.agents/skills/general-video

在你喜歡的 AI 中提問

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

說明文件

media-use:在獲取音訊/圖片前,請呼叫 /media-use 從 HeyGen 目錄中解析 BGM/SFX/圖片。先執行 --adopt 以註冊現有資產。請參閱 /media-use 技能。

general-video — 通用影片工作流程

在開始建置前,請先確認路線。 這是用於自訂合成編寫的後備方案。如果輸入內容明顯符合某個專門工作流程,請優先使用:行銷產品 → /product-launch-video;一般網站 → /website-to-video;主題解說 → /faceless-explainer;GitHub PR → /pr-to-video;現有素材 → /embedded-captions · /talking-head-recut;短篇無旁白動畫 → /motion-graphics;Remotion 移植 → /remotion-to-hyperframes。超出範圍:即時/渲染時資料、對已完成影片進行 NLE 風格剪輯,或產生 HyperFrames 無法捕捉的素材。不確定?請先閱讀 /hyperframes。

嚴格建置所要求的內容。 標題卡就是標題卡 — 而不是標題卡 + 三個輔助場景 + 環境音樂 + 字幕。如果額外場景或元素確實能改善作品,請_提議_它們;不要默默添加。對於小幅編輯(修正顏色、調整一個時長、添加一個元素),跳過規劃步驟,直接進行建置。

方法

探索 — 僅限開放式請求

對於模糊、探索性的請求(「為我們的品牌製作一個影片」、「一個酷炫的開場」)— 在選擇顏色前先了解意圖:

  • 觀眾 — 誰會觀看?開發人員 / 高層 / 一般消費者?
  • 平台 — 在哪裡播放?社群 (15s) / 網站主視覺 / 產品展示 / 內部使用?
  • 優先級 — 什麼最重要?動畫品質 / 內容準確度 / 品牌忠實度 / 速度?
  • 變化 — 一個最佳版本,或 2-3 個有意義的不同選項(不同的節奏、能量或結構 — 不只是顏色切換)?

對於具體請求(「添加一個標題卡」、「修正場景 3 的時間」),則跳過探索。

步驟 1 — 設計系統 → hyperframes-creative

首先建立視覺識別。如果專案有設計規範,請閱讀它(優先順序 frame.md → design.md → DESIGN.md;將其視為品牌真相 — 確切的顏色、字體、限制)。

如果沒有規範,你必須先閱讀 hyperframes-creative/references/house-style.md 和 hyperframes-creative/references/video-composition.md 兩者,才能選擇任何顏色或字體。 house-style.md 提供「解讀提示 / 產生真實內容」的開場、懶惰預設列表和圖層配方;video-composition.md 則提供影片媒體的密度 / 比例 / 前景細節(資料條、標記、等寬中繼資料、「8-10 個元素,其中兩個使用者並未要求」),這區分了「製作的」與「生成的」。只讀其中一個是最常見的遺漏 — video-composition.md 正是代理人常跳過的那個,而它正是防止產生扁平、置中、網頁風格輸出的關鍵。不要自行發明調色盤並跳過這些;進入 hyperframes-creative 是強制性的,而不是可選分支。根據需要,從此處也提取一個命名風格/情緒 → references/visual-styles.md,或互動式選擇器 → references/design-picker.md。規範/風格定義的是品牌,而非合成規則。

尋找角度(模糊簡報,無規範): 在選擇顏色之前,寫一個句子 — 這個名稱/詞彙/主題喚起了什麼?哪個視覺_世界_(隱喻、場景、工具、母題)能表達它?例如,網路安全工具 → 保險庫門 / 周界掃描線 / 鎖芯;冥想應用 → 潮汐、呼吸、緩慢的光暈綻放。閱讀主題的_含義_,而不僅僅是它的文字;選擇一個具體的角度,而不是字面上的重新造型。這是針對單場景作品的提示擴展(步驟 2)的低成本替代方案,在單場景作品中應正確跳過擴展 — 這也是設計概念與通用 Logo 配漸層的區別所在。

步驟 2 — 提示擴展 → hyperframes-creative

對每個多場景合成執行(跳過單場景作品和瑣碎編輯)。根據設計規範 + 自家風格將請求歸納為一個一致的、下游工作以相同方式讀取的中間產物。請參閱 hyperframes-creative/references/prompt-expansion.md。

步驟 3 — 規劃

在編寫 HTML 之前,從高層次思考:

  1. 什麼 — 觀眾體驗:敘事弧線、關鍵時刻、情緒節拍。
  2. 結構 — 多少個合成、子合成 vs 內聯、哪些軌道承載影片 / 音訊 / 疊加 / 字幕。關於單一檔案與模組化子合成的選擇,請參閱 hyperframes-core/references/composition-patterns.md § 兩種架構(經驗法則:≥3 個硬場景切換,或任何重複使用的場景 → 模組化;一個短的單場景作品保持單一檔案)。
  3. 節奏 — 在實現之前先為模式命名(例如 fast-fast-SLOW-SHADER-hold);請參閱 hyperframes-creative/references/beat-direction.md。
  4. 時間 — 哪些剪輯驅動時長、轉場落在何處、節奏。
  5. 佈局 — 先建置最終狀態(見下文)。
  6. 動畫 — 然後透過 hyperframes-animation 加入動作。

動畫前的佈局

將每個元素放置在其最顯眼的時刻所在的位置 — 完全進入、正確放置、尚未退出。首先將其編寫為靜態 HTML + CSS。請勿使用 GSAP。

原因: 如果你將元素定位在其動畫起始狀態(螢幕外、縮放至 0、透明度 0)並補間到你_認為_它們最終到達的位置,你是在猜測最終佈局 — 重疊在渲染前一直不可見。先建置最終狀態,你就能在添加動畫前看到並修復佈局問題。

  1. 為每個場景識別主要影格 — 最多元素同時可見的時刻。這就是你要建置的佈局。
  2. 為該影格編寫靜態 CSS。內容容器必須使用內邊距填滿場景,而不是絕對偏移:
.scene-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 120px 160px; /* 內邊距定位內容;填滿任何場景大小 */
  gap: 24px;
  box-sizing: border-box;
}

切勿在內容容器上使用 position: absolute; top: Npx — 當內容高於可用空間時它會溢出。將絕對定位保留給裝飾性元素。

⚠ 上述的 width/height: 100% 只有在每個祖先元素都有已計算的高度時才有效。 根 <div data-composition-id> 及其與 .scene-content 之間的任何包裝器都必須設定大小(根元素使用 position: relative; width: 1920px; height: 1080px — 請參閱 hyperframes-core →「根元素必須設定大小」)。跳過此步驟,彈性容器將收縮到接近 0,內容會堆疊在左上角,且第一個字形會在 x=0 處被裁剪 — 而 lint/inspect 仍會報告 0 個問題。並且始終保持 .scene-content 上的 padding(≥80px):這是標題安全邊距。切勿用單純的 gap 取代它。

  1. 添加入場動畫 — 使用 gsap.from() 從螢幕外/不可見動畫到 CSS 位置(在子合成中偏好使用 gsap.fromTo(),使起始狀態明確;請參閱 hyperframes-core/references/sub-compositions.md)。CSS 位置是基本事實;補間是到達它的過程。
  2. 退場由轉場處理 — 根據 hyperframes-animation/transitions/ 中的場景轉場規則,只有最終場景會將元素動畫退出;場景之間的轉場本身就是退場。

跨時間的共享空間: 如果元素 A 在元素 B 進入同一區域之前退出,兩者仍需要為其各自的關鍵影格設定正確的 CSS 位置 — 時間軸排序可防止它們共存,而佈局步驟會捕捉意外的重疊。分層發光/陰影和 z 堆疊深度是_有意的_重疊;此步驟在於捕捉_非故意的_碰撞(兩個標題重疊在一起、內容溢出畫面)。

建置 — 委派給領域技能

這映射了技能的全部表面(請參閱description)到其參考資料 — 非詳盡列表;當意圖未列出時,請透過 hyperframes-creative(外觀/概念)、hyperframes-animation(動作)、hyperframes-core(合約)、hyperframes-media(音訊/字幕)路由。第一行是附加的 — 請閱讀它以及你的意圖行,而不是只讀其中一個。

正在建置…優先閱讀(按順序)
始終 — 每個非瑣碎作品,除了下方你的意圖行外hyperframes-creative/references/house-style.md + references/video-composition.md(也在步驟 1 / HARD-GATE 中設為門檻;「製作的,而非生成的」前景細節)
動態排印 / 文字為主hyperframes-animation/techniques.md(動態類型)+ adapters/gsap-easing-and-stagger.md + rules/kinetic-beat-slam.md
標題卡 / 下方三分之一 / 疊加 / PiP / 主體後文字hyperframes-creative/references/composition-patterns.md +(對於居中/設定大小的影格)hyperframes-core →「根元素必須設定大小」
標誌 / 品牌標記揭示hyperframes-animation/rules/svg-path-draw.md(繪製)+ rules/3d-text-depth-layers.md + rules/scale-swap-transition.md
資料 / 統計 / 數字hyperframes-animation/rules/counting-dynamic-scale.md + rules/stat-bars-and-fills.md + hyperframes-creative/references/data-in-motion.md
產品 / 應用程式 / UI 展示hyperframes-animation/rules/3d-page-scroll.md + rules/cursor-click-ripple.md + rules/press-release-spring.md
音訊反應 / 音樂驅動hyperframes-creative/references/audio-reactive.md(預先提取頻段;映射到動作)
旁白 / 語音 / 音樂 / SFX / 字幕hyperframes-media → 共享音訊引擎 scripts/audio.mjs(一次呼叫 = TTS + BGM + SFX → audio_meta.json);透過 hyperframes-core 進行字幕編寫 + 資產放置。請參閱下方的音訊。
多場景 / 轉場hyperframes-animation/transitions/overview.md 然後 transitions/catalog.md(看完概述還沒完 — GSAP 配方在目錄中)
模組化 / 子合成hyperframes-core/references/composition-patterns.md + references/sub-compositions.md

音訊:一個引擎(TTS · BGM · SFX)

僅在作品需要時使用(根據「嚴格建置所要求的內容」— 標題卡上不要有環境音樂)。不要手動製作 TTS 或複製供應商:編寫一個中性的 audio_request.json 並呼叫 hyperframes-media 中的共享引擎。它會根據一個開關自動降級 — 存在 HeyGen 憑證 → 使用 HeyGen TTS + 音樂/SFX 擷取;不存在 → 使用 ElevenLabs/Kokoro TTS、Lyria/MusicGen BGM 生成以及捆綁的 SFX 庫。完整標誌列表 + 請求/中繼資料架構:請參閱 hyperframes-media/scripts/audio.mjs 的標頭註解。

// audio_request.json — 每個旁白段落一行;`id` 由你定義(將 audio_meta 連接回來)
{
  "lines": [
    { "id": "s1", "text": "您的開場白。", "sfx": ["whoosh"] },
    { "id": "s2", "text": "下一個節拍。" },
  ],
  "bgm": { "query": "calm cinematic underscore" }, // 省略 "mode" → 自動(如果存在 HeyGen 則擷取,否則生成);設為 "none" 以停用
}
# <MEDIA_DIR> = 已安裝的 hyperframes-media 技能目錄(此技能的兄弟目錄)
node <MEDIA_DIR>/scripts/audio.mjs --request ./audio_request.json --hyperframes . --out ./audio_meta.json

然後讀取 audio_meta.json:將每個 voices[].path +(bgm.path、sfx[])掛載為 <audio> 軌道,並使用 voices[].words 作為字幕,全部依照 hyperframes-core(音訊軌道 + 字幕編寫)。如果 BGM 走的是生成路徑(bgm_pending: true),請在最終渲染前執行 hyperframes-media/scripts/wait-bgm.mjs。

輸出檢查清單 → hyperframes-cli

Individual skills in this repo

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

1345AbhishekKumar/starter-supabase

Add captions to a talking-head video. ONE catalog (CATALOG.md) of 32 visual identities behind two engines: column-flow (captions composited INTO the scene — matte occlusion + mix-blend; cream/ink/editorial/keynote/documentary/loud/neon/glitch/chrome/velocity) and themed constitutions (anchor/ordnance/terminal/neonsign/stardust/stomp/scoreboard/transit/vhs/arcade/dossier/laser/thunder/hologram/biolume/aurora/spectrum/papercut/popup/chalkboard/graffiti/brush/inkwater/ransom/lastpage/nightcity — e.g. a glyph-decode climax, a neon sign WRITTEN stroke by stroke, or the quiet `anchor` rail default). Route by identity, never by mode. Trigger on "captions/subtitles", "embed/cinematic captions", "VFX captions", "炸/特效/酷炫字幕", a named identity, or top-tier motion-graphics asks. Embedding every word is wrong for most talking-head content — `anchor` is the verbatim default. Pipeline: transcription → hyperframes remove-background matting → HTML render → ffmpeg overlay. Requires hyperframes and a single-subject clip.

1345AbhishekKumar/starter-supabase

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). HyperFrames-native: single paused timeline, seek-safe, deterministic.

1345AbhishekKumar/starter-supabase

HyperFrames CLI dev loop. Use when running npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, tts, or remove-background, or when troubleshooting the HyperFrames build/render environment. Entry point for AWS Lambda cloud rendering (`hyperframes lambda deploy / render / progress / destroy / policies`).

1345AbhishekKumar/starter-supabase

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

1345AbhishekKumar/starter-supabase

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

1345AbhishekKumar/starter-supabase

Audio and media assets for HyperFrames compositions, produced by one shared audio engine (`scripts/audio.mjs`) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound effects (HeyGen audio-library retrieval by default, with local Lyria / MusicGen BGM generation and a bundled SFX library as the no-credential fallback), Whisper transcription, background removal, and caption authoring. Use for voiceover / TTS, BGM, SFX / sound effects, transcription, captions / subtitles / lyrics / karaoke / per-word styling, voice + provider selection, and music-mood prompting.

1345AbhishekKumar/starter-supabase

Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, registry discovery, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

1345AbhishekKumar/starter-supabase

Use when the user wants a short, design-led motion graphic where motion is the message: kinetic typography, stat or number count-up, chart/data-viz hit, logo sting, brand lockup, lower-third, callout, social overlay, animated headline/tweet/news item, motion poster, or quick captured-page highlight. Usually under 10s and up to ~30s, with no narration arc, voice-over, or live-action subject. Can render to MP4 or transparent overlay. Not for longer, multi-scene, narrated, or brand-reel pieces (use general-video), narrated website videos (website-to-video), topic explainers (faceless-explainer), product promos (product-launch-video), PR videos (pr-to-video), or captions on existing footage (embedded-captions). When unsure whether it's a quick motion-first piece or a longer / narrated treatment, see /hyperframes.

1345AbhishekKumar/starter-supabase

Use when the user has a music track (an audio file, or a video to pull audio from) and wants a beat-synced HyperFrames video, calm to hard-hitting. The music drives everything: one analyzer reads it once, the orchestrator lays out the frames and fills a per-frame plan, and one sub-agent builds each frame. Typography and templates are the floor — a complete video needs zero assets — but any images or videos the user supplies are cut into the frames on the same beat grid (beat-cut / ken-burns). The genre (lyric video, slideshow, kinetic promo) falls out of the per-frame choices; the pipeline never branches on it.

1345AbhishekKumar/starter-supabase

turn a product or marketing URL, pasted script, or brief into a product launch video, including SaaS promos, feature reveals, app launches, company promos, and product marketing videos. Use this skill when the user wants to market, launch, promote, or reveal a product. Do not use it for general non-launch website tours, non-product topic explainers, GitHub pull requests, captioning existing footage, or short unnarrated motion graphics. If the intent is unclear, route through /hyperframes first. This is the new shot-sequence architecture: every visual frame is authored as a time-coded shot sequence picked from a menu of golden blueprints, so frames develop over their full duration instead of freezing after entrance.

1345AbhishekKumar/starter-supabase

turn a GitHub pull request (a PR URL like github.com/<owner>/<repo>/pull/<N>, an <owner>/<repo>#<N> ref, or 'this PR' in a checked-out repo) into a code-change explainer video, up to ~3 min (sweet spot 30-90s) — changelog, feature reveal, fix, or refactor walkthrough, rendered from the diff / commits / files. The input is a CODE CHANGE read via the gh CLI; there is no website capture. Use this skill for a GitHub PR. Do not use it for a product launch/promo (use /product-launch-video), a tour of a real website (use /website-to-video), a topic explainer with no PR (use /faceless-explainer), captions on existing footage (use /embedded-captions), or a short unnarrated motion graphic (use /motion-graphics). If the intent is unclear, route through /hyperframes first.

1345AbhishekKumar/starter-supabase

Port an existing Remotion (React) composition to HyperFrames HTML. Use ONLY when the user explicitly asks to port/convert/migrate/translate a Remotion source. Do NOT use: (a) authoring a new HyperFrames composition; (b) Remotion mentioned in passing; (c) Remotion code shared as reference only; (d) "same video as my Remotion one" without explicit migrate request — treat as fresh build. Doubt → `/general-video`. One-way, Remotion-only: no reverse export (HyperFrames→Remotion or any framework), no non-Remotion source (After Effects, Framer Motion, plain React/CSS) → out of scope, re-create via `/general-video`. Flags unsupported patterns (useState, useEffect, async calculateMetadata, third-party React libs, `@remotion/lambda`) and recommends runtime interop over lossy translation. Unsure whether to port vs. build fresh, or only a passing Remotion mention? → /hyperframes.

1345AbhishekKumar/starter-supabase

Capture a general website/URL and turn it into a HyperFrames video (site tour, showcase, or social clip from the site's own visuals). Uses headless Chrome screenshots + brand assets. Use when intent is general — portfolio/blog/landing-page showcase or social clip from the site. NOT for: product/SaaS launch or promo (→ /product-launch-video, even from a URL); topic explainer with no site (→ /faceless-explainer); GitHub PR (→ /pr-to-video); adding captions to existing video (→ /embedded-captions); short unnarrated page-highlight motion graphic (→ /motion-graphics). Unclear launch-vs-general-site? Ask one question or start at /hyperframes.

相關技能