Communitygithub.com

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

HyperFrames 組合合約 — 建立一個可渲染的專案。用於組合結構、`data-*` 時間屬性、`class="clip"`、軌道、子組合、變數、框架擁有的媒體播放、確定性渲染規則以及驗證。在撰寫組合 HTML 前請先閱讀。

S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer- 是什麼?

此技能為 HyperFrames 框架的核心技術合約,定義如何建立一個可渲染的 HyperFrames 專案。HyperFrames 能將 HTML 檔案渲染成影片,透過 `data-*` 屬性宣告時間軸,並由框架控制媒體播放。技能詳細說明了組合的兩種根形式(獨立與子組合)、根元素必須明確設定尺寸以避免版面異常、以及每個組合只能註冊一個暫停的時間軸等關鍵規則。它也列出了多項不可協商的確定性規則,例如禁止使用執行時期時鐘、未播種的隨機數、網路請求、以及無限循環;並要求 `<video>` 或 `<audio>` 必須是根元素的直接子元素,且所有 ID 必須在組合後的頁面中保持唯一。此技能主要支援 HyperFrames CLI 工具,並提供一系列參考文件連結,涵蓋最小組合、資料屬性、軌道與片段、子組合、變數與媒體等主題,協助開發者撰寫符合規範的組合 HTML。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-/tree/HEAD/.agents/skills/hyperframes-core

在你喜歡的 AI 中提問

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

說明文件

HyperFrames Core

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

此技能是技術合約 — 說明如何建立一個 HyperFrames 專案。以下內容是建置指南;每個主題的詳細資訊位於 references/(索引在下一節),請按需閱讀。其他關注事項位於相關的領域技能中 — hyperframes-animation、hyperframes-creative、hyperframes-media、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/script-format.md撰寫選用的 SCRIPT.md 鎖定旁白
references/subagent-dispatch.md將子代理調度動詞(平行扇出 / 背景 / 等待)對應到您的 harness
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。

根必須設定尺寸(無聲的版面錯誤)

獨立的根需要一個明確的有尺寸的盒子(以 px 為單位的 width/height),並且直到一個 height:100% 元素為止的每個祖先都必須有解析的高度 — 否則 flex/100% 的子元素會縮小到約 0,內容會堆疊到左上角。lint/validate/inspect 不會捕捉到這個問題。骨架 → references/minimal-composition.md。

一個暫停的時間軸

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

不可協商的規則(lint/validate/inspect 不會捕捉的無聲錯誤)

在此列出;完整原理請參閱連結的參考資料。請勿違反:

  • 無執行時期時鐘 / 未播種的 Math.random / 網路 / 輸入狀態;無 repeat: -1(使用有限次數)。→ determinism-rules.md
  • 僅對視覺屬性允許清單進行動畫;永遠不要使用 display/visibility;在後續場景的片段上不要使用 gsap.set。→ determinism-rules.md
  • 正文中無 <br>;被轉換的元素必須是區塊級別且已設定尺寸;脈動的絕對定位裝飾元素需要峰值間距。→ determinism-rules.md
  • <video>/<audio> 必須是宿主根的直接子元素(永遠不要在子組合 <template>/包裝器內部);框架擁有播放控制權。→ variables-and-media.md
  • 每個 id 在組裝後的頁面中必須是唯一的;在子組合內部,為 ID 加上組合 ID 前綴(#<id>-hero)。重複的 <video>/<img> ID 會渲染為空白 — producer 透過 getElementById 注入影格,而跨檔案的重複會繞過 lint。→ composition-patterns.md
  • 全螢幕場景的填充應放在全出血的子元素(position:absolute; inset:0)上,永遠不要放在組合根上本身 — producer 的影格合成可能會丟棄根元素自身的 background(影格渲染為黑色),即使預覽/snapshot 顯示正確。→ composition-patterns.md

編輯現有組合

  • 先閱讀檔案。保留不相關的時間、軌道、ID、變數、媒體路徑。
  • 匹配現有的組合 ID 和時間軸金鑰。
  • 新增片段:選擇一個不重疊的 data-track-index,或有意圖地調整周圍時間。
  • 新增子組合:在連接宿主之前,驗證其內部的 data-composition-id。

驗證

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

  • npx hyperframes lint 通過(0 錯誤)
  • npx hyperframes validate 通過(0 控制台錯誤)
  • npx hyperframes inspect 通過(0 錯誤)
  • 包含子組合的專案:npx hyperframes snapshot --at <midpoints> 並目視檢查每個影格
  • npx hyperframes preview 用於審查(使用者在 Studio 的時間軸中可以編輯任何內容)
  • 僅在使用者批准後才執行 npx hyperframes render

Individual skills in this repo

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

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

The fallback workflow for authoring custom HyperFrames video compositions at any length or format — longer or multi-scene pieces, brand / sizzle reels, montages, title cards, static loops, and freeform compositions. Input- and length-agnostic. If a specialized workflow clearly fits the input — a marketed product, a website, a topic explainer, a GitHub PR, existing footage, a short motion graphic, or a Remotion port — prefer it (see /hyperframes); use this only as the general fallback when none fit.

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

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.

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

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

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

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

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

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.

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

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.

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

S.A.R.A.L. is an advanced AI-powered platform designed to bridge the "information gap" between rural Indian citizens and government welfare. While thousands of schemes exist, the complex language of official PDFs often makes them inaccessible to the common man.

相關技能