Communitygithub.com

AlessandroFare/fluxychat

HyperFrames 組合合約 — 建立一個可渲染的專案。用於組合結構、`data-*` 時序屬性、`class="clip"`、軌道、子組合、變數、框架擁有的媒體播放、確定性渲染規則和驗證。也涵蓋 Tailwind 專案以及 STORYBOARD.md / SCRIPT.md 計畫格式。在撰寫組合 HTML 前閱讀。

fluxychat 是什麼?

HyperFrames Core 是一個技術合約與建構指南,定義如何將 HTML 文件轉換成可渲染的影片組合。開發者需使用 `data-*` 屬性宣告 DOM 時序,並遵循框架擁有的媒體播放規則,確保動畫運行時可被尋播。此技能支援獨立組合(頂層 `index.html`)與子組合(透過 `<template>` 包裝載入)兩種形式,並提供詳細參考文件處理最小骨架、軌道與剪輯、變數與媒體、確定性規則、全幀動畫、故事板腳本格式等主題。此外,它也涵蓋 Tailwind v4 專案整合、多代理分發指令(平行扇出/背景/等待)以及從計畫到交付的生產循環(音訊、幀、組裝、轉場、字幕、驗證、交付)。動畫執行時期細節(如 GSAP、Lottie、Three.js)則歸屬於 hyperframes-animation 技能。合約強調根元素必須有明確尺寸(寬/高像素)避免佈局錯誤,子組合的 host 與模板的 `data-composition-id` 必須完全一致,且所有樣式與腳本需放入模板內部(因執行時期僅克隆 `<template>` 內容)。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/AlessandroFare/fluxychat/tree/HEAD/.agents/skills/hyperframes-core

在你喜歡的 AI 中提問

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

說明文件

HyperFrames Core

HyperFrames 從 HTML 渲染影片。一個合成是一個 HTML 檔案,其 DOM 使用 data-* 屬性宣告時序,其動畫執行時間可搜尋,且其媒體播放由框架擁有。

此技能是技術合約 — 如何建立一個 hyperframes 專案。以下內容為建置指南;每個主題的詳細內容位於 references/(索引在下一頁),按需閱讀。其他關注點位於同級領域技能中 — hyperframes-animation、hyperframes-creative、media-use、hyperframes-cli、hyperframes-registry。/hyperframes 中的能力對應圖說明了每個技能涵蓋的內容。

參考資料

檔案閱讀目的…
references/minimal-composition.md從最小的可渲染合成骨架開始
references/composition-patterns.md選擇單體 vs 模組化;組織模組化 index.html;選取子合成原型
references/data-attributes.md查詢任何 data-*(根 / 剪輯 / 子合成主機 / 舊別名);使用 class="clip"
references/tracks-and-clips.md選取 data-track-index,處理同一軌道重疊 / z-index,相對於另一個剪輯設定時間
references/sub-compositions.md接線子合成(主機屬性、<template>、每個實例變數)並在其中製作動畫
references/variables-and-media.md宣告變數;放置 <video>/<audio>,設定音量,修剪
references/determinism-rules.md建立可搜尋時間軸;決定性禁令;可動畫屬性允許清單;版面 / 文字適應
references/full-screen-motion.md使用共享背景創作全螢幕動態
references/storyboard-format.md編寫 STORYBOARD.md 計劃(+ 解析後清單)
references/review-loop.md在即時看板上執行計劃 → 草稿 → 建置審查階段 — 每個故事板規劃工作流程共享
references/production-loop.md將已批准計劃轉為交付影片 — 階段依賴關係(音訊、幀、組合、轉場、字幕、驗證、交付)直接遵循自由形式建置
references/brief-contract.md簡報的基本規則 — 模式推導(協作 / 自主)、共享欄位註冊表、問題不變量(提問本身位於 /hyperframes → 意圖層)
references/brief-format.md編寫 BRIEF.md — 已確認的意圖文件,由工作流程的 Setup 撰寫,每個後續步驟讀取
references/script-format.md編寫選擇性的 SCRIPT.md 鎖定旁白
references/subagent-dispatch.md將子代理調度動詞(並行擴散 / 背景 / 等待)對應到您的工具
references/frame-worker-core.md共享幀工作者角色合約 — 每個敘事工作流程的封包建置器將其預先附加到該工作流程的 sub-agents/frame-worker.md 差異中
references/tailwind.md在 Tailwind v4 專案中工作(init --tailwind;執行時期合約與 Studio 的 v3 不同)

動畫執行時期細節(GSAP API、Lottie、Three.js 等)請參閱 hyperframes-animation → adapters/<runtime>.md。

建立合成

兩種根形式(不可互換)

  • 獨立(頂層 index.html)— 根 <div data-composition-id="…"> 直接位於 <body> 中,無 <template> 包裝(包裝它會隱藏所有內容並破壞渲染)。
  • 子合成(透過 data-composition-src 載入)— 根必須包裝在 <template> 中。

⚠ 傳輸規則:執行時期僅複製 <template> 內容;外部所有內容(包括 <head> 樣式/腳本)都會被丟棄 — 將 <style>/<script> 放在模板內部。 ⚠ 主機 ID 規則:主機插槽的 data-composition-id 必須完全等於內部模板的 data-composition-id 以及 window.__timelines["<id>"] 鍵 — 無 -mount/-slot/-host 後綴。

檔案形狀、主機接線和預渲染檢查清單 → references/sub-compositions.md。

根必須設定大小(無聲版面錯誤)

獨立根需要一個明確的尺寸框(width/height 以 px 為單位),且每個直達 height:100% 元素的祖先都必須有已解析的高度 — 否則 flex/100% 子元素會摺疊到約 0,內容堆疊到左上角。不要僅依賴自動化閘門來捕捉此問題;檢查快照。骨架 → references/minimal-composition.md。

一個暫停的時間軸

每個合成註冊恰好一個 gsap.timeline({ paused: true }),位於 window.__timelines["<id>"](鍵 = 根 data-composition-id),在頁面載入時同步建置。渲染持續時間 = 根 data-duration,而不是時間軸長度。不要手動將子時間軸巢狀嵌入主機。完整合約(包括非 GSAP 執行時期)→ references/determinism-rules.md + hyperframes-animation/adapters/。

初次 lint 陷阱(保證第一次建置失敗)

lint 確實會捕捉的兩條規則,但僅在事後 — 第一次就寫對:

  • 根合成元素必須帶有 data-start="0"(與 data-composition-id/data-width/data-height 一起);省略它會導致 lint 失敗,錯誤為 root_composition_missing_data_start。
  • 切勿將 CSS 初始 transform 與 GSAP tween 配對在相同屬性上 — CSS 值和 tween 的起點會衝突,lint 會以 gsap_css_transform_conflict 拒絕。請在 tween 內部使用 gsap.fromTo(el, { x: -40 }, { x: 0 }) 設定初始狀態,而不是使用 CSS transform: translateX(-40px)。

不可協商的規則(自動化閘門可能遺漏的無聲錯誤)

在此處提出;完整理由請參閱鏈接參考資料。請勿違反:

  • 無渲染時鐘 / 未播種的 Math.random / 網路 / 輸入狀態;無 repeat: -1(使用有限次數)。→ determinism-rules.md
  • 僅對視覺屬性允許清單進行動畫;切勿對 display 或原始 visibility 進行 tween。GSAP autoAlpha 和零持續時間時間軸邊界設定是唯一的 visibility 例外,且僅在非剪輯元素或剪輯內的包裝器上。框架單獨控制 .clip visibility。不要在頁面載入時對後期場景剪輯執行 gsap.set。→ determinism-rules.md
  • 正文中無 <br>;轉換元素必須是區塊級 + 已設定大小;脈衝絕對裝飾需要峰值間隙。→ determinism-rules.md
  • <video>/<audio> 在任何巢狀深度都能運作(包括在子合成 <template> 或包裝器內部);框架擁有播放權,並在任何位置搜尋/解碼媒體。唯一的注意事項是時間軸,而不是放置:子合成時間軸無法對主機根元素進行動畫。→ variables-and-media.md
  • 每個 id 在組裝後的頁面中必須是唯一的;在子合成內部,使用合成 ID 前綴 ids(#<id>-hero)。重複的 <video>/<img> ids 會渲染為空白 — 生產者透過 getElementById 注入幀,跨檔案重複會避開 lint。→ composition-patterns.md
  • 全螢幕場景填充應放在滿版出血的子元素(position:absolute; inset:0)上,切勿放在合成根本身 — 生產者的幀合成可能會丟棄根元素的自身 background(幀渲染為黑色),即使預覽/snapshot 正確顯示。→ composition-patterns.md

編輯現有合成

  • 首先閱讀檔案。保留不相關的時序、軌道、ID、變數、媒體路徑。
  • 匹配現有合成 ID 和時間軸鍵。
  • 新增剪輯:選取非重疊的 data-track-index 或有意調整周圍時序。
  • 任何合成元素上的 data-hidden 會在預覽和渲染中隱藏該元素,覆蓋其時間窗口;它是非破壞性/可逆的,並由 Studio 的時間軸眼睛圖示切換。
  • 新增子合成:在接線主機前驗證其內部 data-composition-id。

驗證

使用 hyperframes-cli 取得命令詳細資訊

  • npx hyperframes check 通過(在 lint、執行時期、版面、動態和對比度上均無發現)
  • 含有子合成的專案:npx hyperframes snapshot --at <midpoints> 並目視檢查每一幀
  • npx hyperframes preview 供審查(使用者可以在 Studio 的時間軸中編輯任何內容)
  • 僅在使用者批准後執行 npx hyperframes render

Individual skills in this repo

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

AlessandroFare/fluxychat

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet `anchor` rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.\n

AlessandroFare/fluxychat

Use when audio already placed in a HyperFrames composition needs to be mixed: a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), or automation envelopes drawn on a track's volume or any effect parameter. Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.\n

AlessandroFare/fluxychat

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.\n

AlessandroFare/fluxychat

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

AlessandroFare/fluxychat

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.\n

AlessandroFare/fluxychat

Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

AlessandroFare/fluxychat

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

AlessandroFare/fluxychat

Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.

AlessandroFare/fluxychat

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

AlessandroFare/fluxychat

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). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

AlessandroFare/fluxychat

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`.

AlessandroFare/fluxychat

Use when a HyperFrames composition needs seek-safe 2D/3D keyframes, GSAP timelines, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

AlessandroFare/fluxychat

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

AlessandroFare/fluxychat

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI animation (scroll, cursor, callouts), or fusing a real image's geometry into a chart. Usually under 10s (up to ~30s), no narration or live-action subject; renders to MP4 or transparent overlay. Longer / narrated / multi-scene → /general-video. Unclear → /hyperframes.

AlessandroFare/fluxychat

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

AlessandroFare/fluxychat

Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.

AlessandroFare/fluxychat

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

AlessandroFare/fluxychat

Design and improve user interfaces using the concrete rules from Refactoring UI (Wathan & Schoger) — constrained spacing/type/color/shadow scales, visual hierarchy through weight and color rather than size, and depth through emulated light. Use when building or styling any UI (web, app, dashboard, landing page, component), when picking font sizes, spacing, colors, shadows or border radius, when designing a color palette or design tokens, and whenever someone says a UI "looks off", "looks amateur", "feels cluttered/plain/unfinished", or asks to "make this look better".

AlessandroFare/fluxychat

Port an existing Remotion (React) composition''s source to HyperFrames HTML. Use ONLY on an explicit ask to port/convert/migrate/translate a Remotion source — one-way, Remotion-only. A passing Remotion mention, reference-only code, or "make something like my Remotion video" is a fresh build (/general-video). Unclear → /hyperframes.

AlessandroFare/fluxychat

Use before UI-related work to select the smallest useful UI Skills context through the ui-skills CLI.

相關技能