Communitygithub.com

sandeshrajbhandari/hyperframes-instruct

撰寫或編輯自訂的 HyperFrames 合成作品,適用於沒有專門工作流程可用的情況,或當 BRIEF.md 的 flow 設為 companion 時。適合較長或多場景的作品、品牌與精華片段、蒙太奇、靜態循環、靜態標題卡、素材混剪及自由形式建構。對於簡短無旁白的動畫為主單元(包含動畫標題),請改用 motion-graphics。在直接使用此技能之前,應先透過 hyperframes 進行全新創作。

hyperframes-instruct 是什麼?

此技能為 HyperFrames 生態系統中一個多功能、通用影片合成與編輯的 AI 助手。它專為需要在單一專案中處理較長、多場景作品或混合多種媒體類型的進階使用者設計。此技能不會假設特定的專案類型,而是會根據使用者提供的提示、BRIEF.md 或既有的專案狀態來引導複雜的創作過程。其核心價值在於提供一個靈活的框架,當沒有預設的專門工作流程(如 motion-graphics)能完全符合需求時,它會處理從腳本構思、素材導入、結構規劃、動畫設計到最終渲染的完整生命週期。它與 HyperFrames 核心元件(hyperframes-core、hyperframes-creative、hyperframes-animation)以及 media-use 技能緊密整合,以確保遵守佈局規則、視覺風格和媒體資產的最佳實踐。關鍵功能包括:根據狀態(全新創作、編輯、協作)的條件式工作流程、嚴格的素材使用協定(需進行認證和溯源)、自動化與協作模式的區分(flow: automation / companion)、以及一個強制性的階段式執行路徑(計劃、驗證、渲染),以在保持靈活性的同時確保輸出品質。

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

在你喜歡的 AI 中提問

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

說明文件

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

一般影片

在工作流程剛讀取過 npx hyperframes usage --json 之前,請先執行它,然後在關鍵里程碑(例如草稿完成後、渲染前)再次檢查。讀取可用的視窗和重置時間。如果不確定使用情況,請直接說明,不要猜測配額;將範圍和工作流程選擇留給使用者決定。

在依賴此工作流程之前,請執行:

npx hyperframes skills update general-video

成功的無操作回覆表示技能是最新的。如果更新失敗,請直接顯示失敗訊息,不要依賴記憶中的內容繼續執行。

1. 套用跨領域來源轉接器

  • 媒體: 對於任何音訊、圖片、圖示、標誌、旁白、調色、LUT、特效、字幕或媒體操作需求,請載入 /media-use 並遵循 ../media-use/references/resolve.md(解析、採用、重複使用)和 ../media-use/references/setup-providers.md(提供者、認證)。對於模糊的素材回饋和已命名的樣式,請在編輯前使用 ../media-use/references/media-treatments.md;不要使用 CSS/SVG/透明度來即興創造不支援的媒體效果。在執行第一個需要認證的提供者動作之前,請執行 npx hyperframes auth status 並逐字傳達其輸出。如果未登入,請套用 ../hyperframes/references/brief-contract.md 中的閘門:協作模式等待登入或明確離線選擇;自主模式則陳述狀態並透過可用的離線提供者繼續。當沒有離線提供者能滿足必要功能時,則顯示障礙。僅本地採用不需要認證閘門。
  • Figma: 如果任何輸入是 figma.com URL,請先執行 /figma。從其匯出的資源、令牌、元件或故事板畫面進行建構。不要使用原始的 Figma 連接器呼叫,因為它們會跳過 SVG 消毒、媒體來源追溯和品牌令牌綁定。

這些轉接器不會改變 /hyperframes 所選定的工作流程。

2. 從專案狀態開始

套用第一個符合的條件行;不要評估較低的狀態行:

狀態動作
特定編輯進行編輯,保留現有專案決策,然後重新執行受影響的檢查。不要重新開始探索。
BRIEF.md 存在讀取它。如果 workflow 指向另一個工作流程且 flow 不是 companion,則轉交。不要詢問簡報問題。
無簡報,但 hyperframes.json 或 STORYBOARD.md 存在從檔案和記錄的偏好設定恢復。僅根據已知事實回填 BRIEF.md。
全新創作執行 /hyperframes 及其意圖層。僅在 workflow: general-video 或 flow: companion 時返回此處。

對於新專案,請根據簡報選擇一個 kebab-case 的目錄名稱,並在撰寫簡報前進行建立:

npx hyperframes init "videos/<project>" --non-interactive --example=blank --skill=general-video

然後使用 ../hyperframes/references/brief-format.md 在專案根目錄撰寫 BRIEF.md。在現有專案中,根目錄是包含 hyperframes.json 的目錄。僅記錄簡報格式中已確認的、有偏好支援的欄位,使用 node <MEDIA_DIR>/scripts/prefs.mjs record --hyperframes <PROJECT_ROOT>;永遠不要記錄推斷的預設值。此處 <MEDIA_DIR> 是已安裝的 /media-use 技能目錄,<PROJECT_ROOT> 是包含 hyperframes.json 的目錄。如果意圖層採用了食譜,請立即使用 node <MEDIA_DIR>/scripts/recipe.mjs use --hyperframes <PROJECT_ROOT> --name <name> 套用它,並且不要再次詢問。

3. 解讀運行形狀

僅使用 ../hyperframes/references/brief-contract.md 中的標準術語:

欄位含義效果
flow誰主導automation:選擇並執行路線。companion:透過對話共同創作。
storyboard在建立前進行計劃、草圖和審查yes:執行計劃和草圖審查(storyboard.html)。no:直接建立,跳過此步驟。
衍生的 mode檢查點閘門的行為方式遵循簡報合約。永遠不要要求使用者命名一個模式。

不要為這些狀態發明同義詞。持續的「直接建立」訊號由意圖層處理,並以 flow: automation、storyboard: no 的形式到達。

  • 對於 flow: automation,選擇路線並在第一次進度更新中用一行說明。
  • 對於特定編輯,進行編輯,不要發明新的路線。

對於現有素材的硬切、修剪、拼接或重新排序,請將同一個影片來源複製到多個剪輯元素中。在每個副本上,使用 data-media-start 加上 data-duration 設定來源範圍,然後使用 data-start 設定作者指定的放置位置/順序。每個影片片段保留其聲音:聲音保留在剪輯上(data-has-audio="true"),因此裁切影片會同時裁切聲音。/hyperframes-core 擁有此時間編輯;僅對視覺屬性動畫(例如縮放、重擊、平移、裁切、遮罩或內部包裝器上的 clip-path)使用 /hyperframes-keyframes。 從 ../hyperframes-core/references/creator-editing-recipes.md 複製完整合約。

協作流程

當 flow: companion 時:

  • 讀取 BRIEF.md 並將接受的 ## Assets 和 ## Customizations 與專案成品進行比對。完成仍待完成的已接接受工作;跳過已完成的工作;不要再次將已接受的功能當作新功能提供。
  • 以導演的身份介入,而不是承包商。 選擇協作模式的使用者選擇了參與和品質;誠實的回應是你能設計出的最佳版本,而不是最保守的版本。第一個計劃是天花板處理方案:故事弧線(借用最近的類型鏡頭——選單 § 類型鏡頭)、設計規格、每個場景按名稱引用的動畫處理方案(§ 5 的計劃紀律)、轉場、音訊識別——音樂和聲音標記,或刻意的沉默——使用者素材的放置,以及設計好的開場和結尾。用一句話說明每個層級添加了什麼;標記昂貴的層級(渲染時間、登入、計費)。使用者可以削減處理方案;他們永遠不應該逐項批准一個方案。
  • 天花板屬於概念,而不是工具箱。 每個層級必須服務簡報的訊息——一個會以相同方式裝飾任何影片的處理方案只是裝飾。工藝要達到天花板;內容永遠不應超出要求(§ 6)。
  • 在檢查點之間,../hyperframes/references/capability-menu.md 有兩種作用。作為觸發列表:當使用者提到某個功能的輸入或建構達到其需求時,提供相關的功能。作為每次迭代的升級渠道:一個計劃、草圖或建構檢查點可以攜帶一兩個針對使用者正在查看的內容的定向建議(「場景 3 的靜態畫面想要計數處理方案」)。在提供之前閱讀它;永遠不要傾倒整個目錄。
  • 在使用者接受某個功能後,立即產生其成品並在匹配的 BRIEF.md 主體部分記錄該決策。僅在使用者明確更改時,才重寫 frontmatter 欄位並記錄已確認的偏好。
  • 保持相同的故事板、驗證、最終預覽和渲染批准閘門。協作模式改變的是誰來掌舵,而不是品質需要什麼。

4. 在每個階段前載入必要知識

當條件匹配時,以下讀取是強制性的:

條件在行動前讀取
任何合成 HTML 或場景佈局/hyperframes-core;對於其佈局合約,請使用 references/determinism-rules.md
任何非平凡的創作或視覺處理/hyperframes-creative → references/house-style.md 和 references/video-composition.md
任何動作、動畫或場景轉場/hyperframes-animation;遵循其路由到匹配的規則、轉接器、藍圖或轉場參考
storyboard: yes../hyperframes/references/storyboard-format.md 和 ../hyperframes/references/review-loop.md
任何媒體資產或操作,包括旁白、背景音樂、音效、字幕、調色或轉換/media-use;對於框架播放和放置,也請讀取 /hyperframes-core → references/variables-and-media.md
多場景組裝../hyperframes/references/production-loop.md
flow: companion,在首個計劃之前/hyperframes-creative → references/story-spine.md 和 references/house-style.md;最近的類型鏡頭和完整的 ../hyperframes/references/capability-menu.md——天花板處理方案是從這些設計出來的,而不是回憶出來的
一個協作功能提供、捕捉、節拍網格、生成式影片、地圖、發布或跨工作流程功能../hyperframes/references/capability-menu.md
存在設計規格,在最終批准前/hyperframes-creative → references/design-adherence.md

不要用回憶取代這些讀取。漸進式揭露僅在實際載入了匹配的參考資料時才節省上下文。

5. 執行合成

使用此依賴順序。僅當其輸入缺失時才跳過某個階段。

  1. 計劃。 陳述觀眾弧線、結構、節奏和持續時間驅動因素。對於簡短的單一場景,使用一個檔案;對於三個或更多硬場景切換或任何重複使用的場景,使用子合成。讀取 /hyperframes-creative → references/story-spine.md 以了解敘事弧線,references/beat-direction.md 以了解節奏,以及 /hyperframes-core → references/composition-patterns.md 以了解結構。對於開放式的多場景簡報,透過 /hyperframes-creative → references/prompt-expansion.md 展開提示。一個多場景計劃會引用每個場景的形狀:一個來自 /hyperframes-animation → blueprints-index.md 的藍圖 ID(如果適合),或者如果沒有合適的藍圖,則引用它從 rules-index.md 組合的命名規則——動作名稱來自這些索引,絕非發明。故事真理決定哪些場景存在;引用為它們提供呈現。在你計劃自己建構任何命名的外觀之前,請搜尋即時目錄:對於簡報中提到的每個外觀、效果、處理或轉場——「CRT 掃描線」、「故障」、「底片顆粒」、「閃爍掃掠」、「五彩紙屑爆發」——請執行 npx hyperframes catalog --query "<外觀,用簡單英文描述>" --json 並在計劃說明該外觀如何建構之前閱讀頂部結果。此搜尋不需要安裝任何東西:無需專案、無需先前的 add、無需帳戶。它會從任何目錄對整個託管註冊表(約 400 個區塊和元件)進行排名,因此也適用於使用者在建構過程中要求的外觀。計劃中提到的區塊將在第 3 階段安裝;只有在搜尋後沒有合適的結果時,才手動創作一個外觀。一個多場景計劃也會被記錄為調度成品:在 STORYBOARD.md 中,每個場景一個 ## Frame N 區塊——status: outline、一個已聲明的 src:、藍圖/規則引用...

Individual skills in this repo

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

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

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.

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.

相關技能