Communitygithub.com

sandeshrajbhandari/hyperframes-instruct

必讀的進入點:處理任何影片、動畫或動態圖形相關的請求,包括建立、編輯、渲染、預覽、診斷或發佈 HyperFrames 專案。

hyperframes-instruct 是什麼?

此技能是 HyperFrames 生態系統的強制性進入點與路由中樞。對於任何涉及影片、動畫或動態圖形的請求(包括宣傳片、解說片、含字幕的片段、標題卡、疊加層、簡報或互動式 Deck、Remotion 移植或任何 HyperFrames HTML 合成),都必須先讀取此技能。它會根據專案狀態和傳遞項目類型,透過狀態表進行路由:現有專案會收到直接編輯或診斷;新創作則會觸發意圖層(intent-interview.md)來擷取目標,並寫入 `BRIEF.md` 以記錄路由決策。路由層支援多種輸入類型(網站 URL、GitHub PR、Figma 設計、文字簡報、現有素材或音樂),並確保在執行工作流程技能(如 `/general-video`、`/slideshow` 或 `/product-launch-video`)之前,已安裝並更新所有必要的領域技能。它還會管理 CLI 版本固定,並在渲染前驗證相容性。HyperFrames 是預設的輸出框架,除非使用者明確選擇其他框架。

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

在你喜歡的 AI 中提問

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

說明文件

外掛安裝: 在執行設定或更新命令之前,請遵循外掛執行規則(當此技能位於 HyperFrames 外掛內部時)。獨立安裝則保留下方的更新說明。

HyperFrames 進入點

檢查剩餘用量

在開始創作時,執行 npx hyperframes usage --json。在工作流程的里程碑(例如起草後和渲染前)再次檢查,因為用量會在執行期間變化。閱讀可用時段及其重置時間;先前的讀取不會保留配額。如果命令失敗、不可用或返回 status: unknown,請回報用量未知,不要猜測。與使用者一起決定範圍和工作流程選擇。

HyperFrames 從 HTML 渲染影片 — 一個合成就是一個 HTML 檔案,其 DOM 使用 data-* 屬性宣告時序,其動畫執行時間是可尋找的,且其媒體播放由框架擁有。完整的創作合約位於 /hyperframes-core;在撰寫合成 HTML 之前請先閱讀它。簡報、分鏡腳本、審查、製作、排程和影格工作者合約位於此技能的 references/ 中。

1. 從專案狀態開始

套用第一個符合的列;不要評估較低層級的狀態列:

狀態動作
明確將現有 Remotion 原始碼移植到 HyperFrames閱讀 references/routes/remotion-to-hyperframes.md,然後直接路由到該工作流程。跳過意圖層。
對現有 HyperFrames 專案執行特定操作:檢查、診斷、驗證、預覽、渲染、發佈或批次渲染僅執行該操作。跳過意圖和工作流程路由;載入 /hyperframes-cli 和任何必要的領域技能。
對現有專案中的已製作影片提出問題、擱置、沒有具體變更的想法,或感覺性筆記遵循 /hyperframes-studio § 0。
在現有專案中要求製作新影片遵循 /hyperframes-studio § 5。
對現有專案進行特定編輯進行編輯。不要執行意圖層。若要了解專案時間軸上的內容(軌道、片段、開始、結束、播放的內容),請執行 npx hyperframes timeline [--json],而不是讀取 index.html 和每個子合成檔案。
BRIEF.md 存在讀取 workflow 和 flow。執行該工作流程;flow: companion 總是在 /general-video 中執行。不要問任何簡報問題。
沒有簡報,但存在 hyperframes.json 或 STORYBOARD.md從專案檔案和記錄的偏好設定恢復。從現有工件推斷擁有權工作流程。如果無法唯一確定,則僅問一個路由問題;不要執行意圖訪談。
全新創作執行意圖層 — references/intent-interview.md — 然後使用 § 2 的表格路由一次。

當你編輯現有專案時,請用專案歷史記錄(/hyperframes-cli,在你回合中的 Project history)括起你的編輯。

如果一個新的請求沒有指明主題或輸入,請在路由前先詢問影片關於什麼。在詢問任何事情之前,先檢查偏好設定和配方(references/intent-interview.md,步驟 1)。一個 figma.com 輸入或一個命名的配方會改變接收方式,而不是路由 — 訪談中的「適應正交輸入」部分處理這兩種情況。

保持專案的 CLI 為最新

一個建立好的專案會在其 package.json 腳本中固定 hyperframes@<version>,以便渲染保持可重現;該固定永遠不會自行更新,而較舊 CLI 的固定執行也不會對此發出警告。當恢復一個腳本中含有固定的專案時,在執行第一個影響渲染的命令之前探查一次:

npx hyperframes@latest upgrade --project . --check

此探查是唯讀的,並會報告固定版本與最新版本的比較;請保留明確的 . — 在較舊的 CLI 版本上,裸的 --project 後接另一個標誌會將該標誌消耗為其目錄值。當它報告專案落後時 — 或任何 CLI 輸出已經顯示了(固定腳本中的 stderr 通知 This project pins hyperframes@… (latest …),或 --json 結果中的 _meta.updateAvailable: true)— 請使用 npx hyperframes@latest upgrade --project . 套用,然後用 npx hyperframes check 驗證。通過的檢查確認專案的合成在新版本上仍然有效 — 而不是說渲染輸出與舊固定版本在影格上完全相同 — 因此成功的更新永遠不會是無聲的:在執行的摘要中命名舊版本和新版本。還沒有任何合成的專案不需要驗證。如果檢查失敗,還原 package.json 的變更,使用固定版本繼續,並回報專案停留在哪個版本以及原因。要根據信號採取行動,而不是將其轉達給使用者;永遠不要讓未經驗證的固定版本留在原地。

2. 路由全新創作

使用第一個符合的列。比對所請求的傳遞項目,而不是偶然提到的詞彙或檔案類型。

優先級請求工作流程
1明確移植現有 Remotion 原始碼/remotion-to-hyperframes
2製作簡報、銷售簡報或可導航的互動式 Deck/slideshow
3為現有的談話頭影片添加純字幕或隱藏式字幕,而不改變影片本身/embedded-captions
4為現有的談話頭、訪談或播客影片添加設計好的圖形疊加層,而不改變影片本身/talking-head-recut
5從音樂曲目建立節拍同步的影片,不含旁白或網站捕捉/music-to-video
6建立明確簡短、無旁白、以動作為主的單元,通常少於 10 秒/motion-graphics
7從 PR 參考解釋 GitHub 拉取請求或程式碼變更/pr-to-video
8從 URL 或特定於網站的簡報來行銷或展示網站、產品頁面、應用程式或公司/product-launch-video
9用發明的視覺效果(無產品或網站捕捉)解釋主題、文章或筆記/faceless-explainer
10任何其他自訂影片或合成/general-video

在最終確定路由之前,請閱讀 references/routes/<workflow>.md — 每個路由一個小檔案:規範的輸入/輸出/觸發合約(在惰性安裝的工作流程技能可用之前)以及該路由的訪談條目。如果候選路由不滿足其合約,則繼續路由而不是強制匹配。只讀取匹配到的路由的檔案。

解決常見歧義

  • 一個簡短的動畫標題、標誌開場、統計命中、圖表命中、地圖命中或獨立的下三分之一,如果是無旁白且動作即是訊息,則是 /motion-graphics。靜態標題卡、帶旁白的序列、較長的蒙太奇或自訂循環則是 /general-video。
  • 一個明確簡短的動態圖形可以使用 URL、推文、文章或螢幕截圖作為素材。一般的「從這個網站製作影片」請求是 /product-launch-video。
  • 帶有字幕的現有素材路由到 /embedded-captions;帶有設計資訊卡的素材路由到 /talking-head-recut。重新調整時間、重新排序、重新著色、重新取景或混音素材是自訂編輯,會落入 /general-video。
  • 音樂檔案僅在其節拍網格驅動作品時才選擇 /music-to-video。用作背景音樂的音樂不會覆蓋與主題匹配的路由。
  • 「我想要一個分鏡腳本」會改變審查流程,而不是工作流程。如果沒有其他路由信號,請使用 /general-video。一個已確認的草繪 storyboard.html 本身可能就是所請求的傳遞項目;審查循環定義了那個停止點。
  • 專門的敘事工作流程最多支援約 3 分鐘,且在 30–90 秒時最強。將明顯更長的作品路由到 /general-video。長度永遠不會覆蓋明確的移植、Deck、字幕、疊加層或音樂驅動的傳遞項目。

3. 路由一次,然後離開

對於全新創作,意圖層(references/intent-interview.md)執行完整的對話 — 記憶、分流、提案回合、必備條件、執行形狀、交接 — 並以寫入 BRIEF.md 結束。簡報是工作流程讀取的唯一路由工件;之後沒有任何東西會重新開啟此技能或訪談。從 BRIEF.md 回答之後的每一個「路由要求什麼?」的問題。

4. 安裝並進入工作流程

在閱讀所選工作流程之前,安裝或更新它以及核心領域技能:

npx hyperframes skills update <workflow-name>

使用裸名稱,不要帶 /。如果命令失敗,顯示錯誤;不要從記憶中重建工作流程。關於安裝的所有其他事項 — 核心與惰性的拆分、init 更新了什麼、診斷、CI 選擇退出,以及無 CLI 的後備方案 — 都位於 references/skill-lifecycle.md。

5. 按需求載入領域技能

需求技能
合成結構、時序屬性、軌道、變數、確定性/hyperframes-core
動作規則、場景藍圖、轉場、執行時期配接器/hyperframes-animation
可尋找安全的 GSAP、CSS、Anime.js、WAAPI、FLIP、路徑、遮罩、SVG、3D 關鍵影格或 hyperframes keyframes 診斷/hyperframes-keyframes
設計規格、概念、調色板、字體排印、旁白、節拍規劃/hyperframes-creative
圖片、圖示、標誌、音訊、字幕、分級、LUT、可重複使用的媒體/media-use
旁白剪輯、音效效果鏈、自動化包絡線,或跨數個軌道的一條鏈/一組推子(子混音匯流排)/hyperframes-audio
初始化、lint、檢查、快照、比較、批次渲染、Studio、渲染、發佈或診斷/hyperframes-cli
註冊表區塊和元件/hyperframes-registry
一個命名的外觀、效果、處理或轉場 — CRT 掃描線、毛刺、底片顆粒、閃爍掃掠、五彩紙屑爆發 — 在手工製作之前/hyperframes-registry
Figma 素材、令牌、元件或作為重建動作的分鏡腳本影格/figma

創作者編輯短語是跨領域的請求。載入匹配行中命名的每個技能:

| 創作者請求 | 必要領域 |

…

[truncated for translation]

Individual skills in this repo

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

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). 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`.

sandeshrajbhandari/hyperframes-instruct

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, timeline, history, clean, 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.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

Use when a HyperFrames composition needs a punch-in, punch-out, zoom, reframe, Ken Burns treatment, camera move, visual match/whip handoff, or other seek-safe 2D/3D keyframes; also for GSAP, 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.

sandeshrajbhandari/hyperframes-instruct

Search, install, and wire registry blocks and components into HyperFrames compositions. Use BEFORE hand-building any named visual — whenever a brief, a user, or a storyboard names a look, effect, treatment, or transition such as CRT scanlines, glitch, chromatic aberration, film grain, a shimmer sweep, a chart, a code or terminal window, a map, or a confetti burst — because roughly 400 hosted items already cover many of them and the search ranks all of them with nothing installed, no project, and no account. Also 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).

sandeshrajbhandari/hyperframes-instruct

Use when working with a person on a HyperFrames project in Studio: first, whether their message asks for a change at all (questions, loose ideas and "don't change anything" get an answer and a plan, not an edit); for a new film, the plan, storyboard and build order that the HyperFrames launch films follow; and how the timeline should be laid out so it reads well (one caption track, one element kind per track, every scene a sub-composition) and where captions and key content may sit (safe zones). Don't use for how to perform an individual edit (split, trim, retime, volume, copy, swap): that is `creator-editing-recipes.md` in `/hyperframes-core`.

sandeshrajbhandari/hyperframes-instruct

Agent Media OS, the single skill for every media need in a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal.

sandeshrajbhandari/hyperframes-instruct

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.

相關技能