Communitygithub.com

laviedezidane/hyperframes-skill

製作 HyperFrames 幻燈片——包含離散投影片、片段揭示、分支、熱點導航和內建演講者模式的簡報、募資簡報或互動式展示;也可將現有頁面轉換為投影片。輸出為可導覽的投影片,而非渲染的 MP4。若使用者未明確要求幻燈片,請先確認再製作。

hyperframes-skill 是什麼?

此技能專注於使用 HyperFrames 框架製作可導覽的幻燈片。其核心是建立一個「JSON 島」(JSON island),該結構宣告哪些場景為投影片、它們的順序、片段揭示點、演講者備註、熱點觸發分支以及關聯的媒體資產。這使得 HyperFrames 播放器中的 `SlideshowController` 能將連續的 GSAP 時間軸轉換為離散的、可導覽的投影片組。輸出是可直接以 `hyperframes present` 指令啟動的即時幻燈片,而非渲染的影片檔案。技能強調意圖確認,以避免誤將一般請求轉換為幻燈片格式。它支援 Claude Code、VS Code、Cursor、Windsurf 平台,並預設依賴 HyperFrames 核心領域技能。關鍵功能包括:根據約定規則撰寫投影片、移轉現有頁面(保留視覺與互動保真度)、使用獨立的「投影片序列」進行分支,以及透過驗證規則確保投影片品質(例如完整句子的標題、底部向上市場規模估算、最低字型大小 30pt)。

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

在你喜歡的 AI 中提問

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

說明文件

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

首先,請保持此技能最新——先與使用者確認後再執行: npx hyperframes skills update slideshow。若一切已是最新,則此指令為快速無操作;否則它將在您依賴此技能及其依賴的核心領域技能之前,先進行更新。

figma 來源: 若投影片的內容或故事板來自 figma.com 的 URL,請先執行 /figma——匯出素材、品牌標記,並在來源為一連串場景幀時重建故事板——然後根據其輸出進行建構。不要直接透過原始的 MCP 工具操作 Figma:這會繞過 SVG 清理、.media/manifest.jsonl 來源追蹤以及品牌標記 var() 的綁定,導致後續的品牌變更無法傳播,需要完全重新匯入。

幻燈片製作合約

HyperFrames 幻燈片是標準的 HyperFrames 組合——包含場景、片段、GSAP 時間軸——並多了一個JSON 島來宣告哪些場景是投影片以及它們如何連接。播放器的 SlideshowController 會讀取此島,並將連續的 GSAP 時間軸轉換為離散、可導覽的投影片組。

請先閱讀 /hyperframes-core 以了解基本的組合合約(片段、軌道、data-* 屬性、確定性規則)。此技能僅涵蓋新增的部分:島的結構、投影片撰寫規則、片段、分支、驗證以及封裝元件。

輸出——可導覽的投影片,而非線性 MP4

幻燈片的輸出是運行中的投影片:使用 hyperframes present <project-dir>(或 Studio 的簡報模式)來提供服務——播放器的 SlideshowController 會讀取島並驅動導航、片段、分支和簡報者模式。詳見下方的簡報與移交。

不要對幻燈片執行 hyperframes render 來產生單一 MP4。 投影片被撰寫為數個頂層場景組合(每個投影片一個 data-composition-id),且沒有包裹它們的主根組合,因此 render 只會解析第一個組合,並輸出一個靜默截斷的 MP4(例如一個 40 秒的投影片僅輸出 6 秒)。線性的主線匯出(僅主投影片,排除分支序列)目前暫緩實作——在推出之前,支援的輸出是即時的 present 投影片和每個投影片的 snapshot 靜態截圖。如果用戶今天需要線性 MP4,請說明此限制,不要將 render 指向投影片。

意圖確認

如果用戶明確要求幻燈片、投影片放映或 HyperFrames 幻燈片,請直接使用此技能。當請求是透過 /hyperframes 到達時,意圖層的分類會負責此確認——路由至此表示已確認,因此無需再次詢問;該層的運作形狀問題不適用於此(交付物是投影片,而非渲染的影片)。若存在 BRIEF.md,則其中包含已確認的意圖——請讀取它。

如果技能是從類似「簡報」、「募資簡報」、「投影片」、「互動式投影片」或「轉換此頁面」等相關請求觸發的,請在製作前暫停並向使用者說明選擇,然後再要求確認。簡要說明 HyperFrames 幻燈片作為一個可執行的投影片,包含離散投影片、內建導航與簡報者模式、可編輯的演講者備註、共享媒體處理以及移交前的驗證。對於來源頁面轉換,也請提及目標是保留原始頁面的視覺設計、互動、動畫和媒體行為,同時將頁面移動轉換為投影片間的過渡。

然後提出一個簡短的確認問題:

您要將此製作成 HyperFrames 幻燈片嗎?

當環境提供時,請使用是/否選擇 UI;否則以純文字提問。

在使用者回答「是」之前,請勿實作幻燈片。如果他們說「不」,請停止使用此技能——讀取 /hyperframes 並讓意圖層重新路由。此確認是一個路由決策,而非偏好關卡——根據 ../hyperframes/references/brief-contract.md § 1,它即使在自主模式下也適用(「給我驚喜」並不能跳過它):建構錯誤的交付類型是品質失敗,而非創意決定。


兩個部分

1. 場景——以標準方式宣告

每個投影片都由一個場景支援。使用 data-composition-id、data-start、data-duration 和 data-label 來宣告場景:

<div
  data-composition-id="problem"
  data-start="0"
  data-duration="8"
  data-label="The problem"
  data-width="1920"
  data-height="1080"
>
  <!-- clips go here -->
</div>

分支投影片(僅經由熱點可到達,排除在主線之外)的宣告方式完全相同——它們只會出現在島的 slideSequences 條目中,而非主要的 slides 陣列中。

2. JSON 島——每個組合一個 script 區塊

在組合 HTML 中新增一個 <script type="application/hyperframes-slideshow+json"> 區塊。它包含所有幻燈片元資料:

<script type="application/hyperframes-slideshow+json">
  {
    "slides": [...],
    "slideSequences": [...]
  }
</script>

此島是投影片順序、備註、片段暫留點、熱點和分支序列的唯一真理來源。將其放在 <body> 頂部附近、場景 div 之前,以便於查找。

不要將幻燈片清單隱藏在一個替代的 <script type="application/json"> 區塊加上運行時代碼來建立島之後。present 指令會靜態讀取組合 HTML,並期望真實的 application/hyperframes-slideshow+json 島已經存在。


結構

SlideshowManifest(頂層島物件)

{
  "slides": [
    /* SlideRef[] — 主線,按順序 */
  ],
  "slideSequences": [
    /* SlideSequence[] — 離線分支序列 */
  ]
}

SlideRef

{
  "sceneId": "problem",
  "notes": "Lead with the pain, not the company.",
  "fragments": [3.5, 5.2, 7.0],
  "hotspots": [
    /* SlideHotspot[] */
  ],

  "ttsScript": null,
  "ttsAudioUrl": null,
  "ttsDurationMs": null
}
欄位必要備註
sceneId是必須完全符合場景的 data-composition-id(或提供明確的 startTime/endTime)。lint 規則會根據 data-composition-id 解析場景。
notes否僅供簡報者使用的文字。永遠不會對觀眾顯示。
fragments否投影片 [start, end] 範圍內的時間(秒)陣列——詳見下方的片段規則。
hotspots否觸發分支的互動覆蓋層——詳見下方的分支規則。
startTime否可選。覆蓋匹配場景的時間範圍;預設使用場景的開始/結束。
endTime否可選。覆蓋匹配場景的時間範圍;預設使用場景的開始/結束。
ttsScript、ttsAudioUrl、ttsDurationMs否保留。 結構欄位存在,但 TTS 播放尚未實作。除非您為了未來建構而預先填入,否則請省略。

SlideHotspot

{
  "id": "h1",
  "label": "How did we calculate this?",
  "target": "market-deep-dive",
  "region": { "x": 60, "y": 10, "w": 35, "h": 20 }
}
欄位必要備註
id是在投影片內必須唯一。
label是對觀眾顯示的工具提示/按鈕文字。
target是必須匹配 slideSequences 中的某個 SlideSequence.id。
region否相對於投影片百分比邊界框:{x, y, w, h},範圍 0–100。若省略,則將熱點呈現為一個全投影片的標籤按鈕。

SlideSequence

{
  "id": "market-deep-dive",
  "label": "Market sizing methodology",
  "slides": [{ "sceneId": "mkt-1" }, { "sceneId": "mkt-2" }]
}

序列內的 slides 使用與主線相同的 SlideRef 形狀。允許包含片段和巢狀熱點。


投影片撰寫規則

這些是硬性約束,而非建議。違反這些規則的投影片在審查時將直接被替換。

  • 標題是一個完整句子的主張,而非一個標籤。 請寫「SMBs spend 14 hours/week on manual scheduling」而不是「Scheduling problem」。這句話在忽略視覺的情況下也應該能獨立存在。
  • 每個投影片一個想法 + 一個視覺。 如果您想要加入第二個項目符號群或第二張圖表,請分割投影片。
  • 以重點開頭。 最有力的觀點放在最前面——無論是在投影片上還是在投影片的順序中。投資者從左到右、從上到下閱讀,並且他們會停下來。
  • 僅使用底部向上市場規模估算。 永遠不要只寫「$50B TAM」而不展示計算過程。從單位經濟學向上建構:帳戶數 × ACV,或交易數 × 抽成率。
  • 最小字型大小 30pt 等值。 在 1920×1080 解析度下,標題為 72–96px;內文為 48px。對於任何觀眾需要閱讀的文字,永遠不要低於 40px。
  • 在手工建構任何命名的視覺效果之前,先搜尋即時目錄。 對於投影片所需的每個外觀、效果、圖表、處理效果或過渡——例如「CRT scanlines」、「glitch」、「bar chart race」、「shimmer sweep」、「terminal window」——請先執行 npx hyperframes catalog --query "<the visual, in plain English>" --json 並閱讀頂部結果,然後再撰寫投影片的片段。此搜尋不需要任何安裝:不需要專案、不需要先前的 add、不需要帳戶。它可以從任何目錄中對整個託管註冊表(約 400 個區塊和元件)進行排名。npx hyperframes add <name> 會將區塊的原始碼放入投影片中,您可以在其中就地自訂。這在移植來源頁面時尤其適用:真實的區塊勝過下方移植規則中禁止的簡化近似。

移植來源頁面

將現有頁面轉換為幻燈片時,來源保真度是合約的一部分。除非使用者明確要求重新設計,否則不要用簡化的近似值替換來源特定的 Widget。

  • 盡可能實際地保留原始頁面的視覺設計、動畫語言、互動行為、媒體行為和簡報輔助功能。當幻燈片系統支援簡報者模式時,請使用共享的可編輯備註行為(而非投影片特定的實作)來包含演講者備註。
  • 盡可能精確地從來源 DOM/CSS/JS 移植機械視覺效果:自訂播放器、Canvas 可視化工具、時間軸、播放頭、stem、展開圓形、懸停狀態和其他互動細節應在轉換中存活。
  • 將原生的 <video> / <audio> 元素視為任何自訂媒體 chrome、Canvas 可視化工具、波形、節拍網格或播放頭的真理來源。連接來源的媒體事件(play、pause、timeupdate、seeking、seeked、ended、ratechange、volumechange),並從 media.currentTime 推導視覺狀態;不要執行一個可能偏離實際播放的獨立計時器。
  • 每個複製的、具有 src 的 <video> 或 <audio> 在 lint 之前必須具有 HyperFrames 時間屬性:data-start 和 data-duration,以及在應保留有聲原生音訊時加上 data-has-audio="true"。對於投影片特定的媒體,請使用場景的時間範圍;對於可能從多個焦點投影片播放的使用者控制證據影片,請使用整個投影片的範圍。不要將媒體設為 preload="none";請使用 metadata 或 auto。
  • 在驗證之前解析來源字型標記。如果要保留自訂來源字型,請為本地/捕獲的字型檔案加入 @font-face 規則。如果使用系統後備字型,請將標記化的宣告(如 font-family: var(--f-body))替換為具體的渲染安全堆疊,例如 system-ui, sans-serif 或 ui-monospace, monospace;不要將 var(...) 保留為字型系列值。
  • 稽核來源中非典型的頁面移動,特別是受滾動、滾輪、觸控、雜湊狀態、視窗大小或 requestAnimationFrame 迴圈驅動的行為。將固定視口與平移/縮放的「世界」層、視差、固定面板、水平滾動器、滾動擦洗時間軸、章節對齊和縮放至元素相機視為來源行為。滾動通常是來源的過渡觸發器,因此請透過提取其進度停止點、緩動函數和相機/焦點狀態來保留該過渡,然後透過時間軸位置、片段或可重複使用的播放器/掛鉤將該動畫重新掛載到幻燈片導航上。跳到投影片暫留點的獨立包裝器仍然需要一個明確的導航-相機過渡掛鉤;計算每個投影片的相機變換是不夠的。不要模擬字面上的頁面向下滾動過渡。

Individual skills in this repo

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

laviedezidane/hyperframes-skill

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

Agent Media OS for 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. When the host app provides its own music or sound-effect tools, use those for music and sound effects; `resolve --type bgm|sfx` needs the heygen CLI. When `HEYGEN_API_BASE` is set, HeyGen calls go through that host with no CLI sign-in.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

Package an existing talking-head / interview / podcast video with timed, designed GRAPHIC OVERLAY cards — kinetic titles, lower-thirds, data callouts, quotes, side panels, picture-in-picture — synced to the transcript, on a 16:9 / 9:16 / 4:5 canvas of your choice; the clip plays untouched underneath. Trigger on "graphic overlays", "on-screen graphics", "package / dress up my video". Not plain subtitles (/embedded-captions). Unclear → /hyperframes.

相關技能