Communityコーディング&開発github.com

HyperFrames

HTML をビデオの唯一の真実源として扱う、Claude Code 向けスキルです。GSAP アニメーションと CSS を用いて、タイミング制御されたコンポジションを作成します。

HyperFrames とは?

HyperFrames は、HTML ファイルをそのまま動画コンポジションの「唯一の真実源」として利用するためのスキルです。デザインファイル (design.md) とハウススタイル (house-style.md) を読み込み、ブランドの色やフォントを正確に適用するための設計システムのステップから始まります。次にプロンプト拡張 (prompt-expansion.md) を行い、ユーザーの意図を構造化された中間形式に変換。その後、レイアウトを先に CSS で静的に構築し、最後に GSAP を使ってアニメーションを追加する「レイアウト先行」アプローチを採用します。このスキルは、Claude Code などの AI エージェント上で動作し、製品デモ、ソーシャルメディア動画、ウェブサイトのヒーローセクションなど、あらゆる動画制作を効率的に行えるように設計されています。データ属性 (data-*) を使ってすべてのクリップの開始時間、持続時間、トラックを宣言的に制御し、動画・音声・画像・サブコンポジションを自由に組み合わせることが可能です。

対応✓Claude Code~Codex CLI~Cursor
npx skills add delorenj/skills

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

プレビュー

スキル README より

ドキュメント

HyperFrames は何をしますか?

HTML がビデオの唯一の真実源です。コンポジションは、タイミング用の data-* 属性、アニメーション用の GSAP タイムライン、外観用の CSS を持つ HTML ファイルです。このフレームワークはクリップの可視性、メディア再生、タイムラインの同期を処理します。

アプローチ

発見的探索 (探索的なリクエストのみ)

「製品発表動画を作って」「ブランド用に何か作って」のような、ユーザーが方向性を決めていないオープンなリクエストに対しては、色を決める前に意図を理解します:

  • オーディエンス — 誰が見るのか? 開発者? 幹部? 一般消費者?
  • プラットフォーム — どこで再生されるのか? ソーシャル (15秒)、ウェブサイトヒーロー、製品デモ、社内向け?
  • 優先順位 — 何が最も重要か? モーションの品質? コンテンツの正確性? ブランドの忠実性? スピード?
  • バリエーション — ユーザーは選択肢を望んでいるのか、それとも単一のベストなものを望んでいるのか?

「タイトルカードを追加して」「シーン3のタイミングを修正して」のような具体的なリクエストの場合は、発見的探索をスキップします。

探索的なリクエストに対しては、単なる色の置き換えではなく、異なるテンポ、エネルギーレベル、構造的アプローチを備えた、意味のある2~3のバリエーションを提供することを検討してください。1つは安全で予想通り、もう1つは野心的なもの。これを必須とせず、適切な場合に利用可能なツールとして提供します。

ステップ1: デザインシステム

プロジェクトに design.md または DESIGN.md が存在する場合、まずそれを読みます(両方の大文字小文字を確認してください — Linux では別のファイルです)。ブランドカラー、フォント、制約の唯一の真実源です。その正確な値を使用してください — 色をでっち上げたり、フォントを代用したりしないでください。どのようなフォーマットでも動作します (YAML frontmatter、散文、テーブル — 値を抽出するだけ)。

もし fonts/ ディレクトリに .woff2 ファイルがなく、ビルトインフォントでもないフォントが指定されている場合、HTML を書く前にユーザーに警告してください: 「design.md で [フォント名] が指定されていますが、フォントファイルが見つかりません。fonts/ に .woff2 ファイルを追加するか、最も近いビルトイン代替フォントにフォールバックします。」

design.md が存在しない場合、ユーザーに選択肢を提示します:

  1. ユーザーがスタイルやムードを指定した場合 → visual-styles.md を読み、8つの名前付きプリセットから最も近いものを選びます。
  2. 視覚的にオプションを閲覧したい場合 → デザインピッカーを実行します: references/design-picker.md の完全なワークフローを読みます。これは視覚的なピッカーページを提供します。ユーザーはブラウザ上でムード、パレット、タイポグラフィ、モーションを設定し、生成された design.md を会話にコピー&ペーストします。
  3. スキップして素早く進みたい場合 → 質問します: ムード、ライトまたはダーク、ブランドカラー/フォントはありますか? 次に house-style.md からパレットを選びます。

design.md はブランドを定義します。ビデオコンポジションのルールは定義しません。 それらのルールは references/video-composition.md と house-style.md にあります。ブランドカラーはビデオに適したスケールで使用し、ウェブUIのような不透明度では使用しません。

ステップ2: プロンプト拡張

すべてのコンポジション(単一シーンの作品と些細な編集を除く)で常に実行します。このステップは、ユーザーの意図を design.md と house-style.md に基づいて具体化し、下流のすべてのエージェントが同じように読み取る一貫した中間形式を生成します。

完全なプロセスと出力フォーマットについては、references/prompt-expansion.md を読んでください。

ステップ3: 計画

HTML を書く前に、ハイレベルで考えます:

  1. 何を — 視聴者は何を体験すべきか? ナラティブアーク、キーモーメント、感情のビートを特定します。
  2. 構造 — いくつのコンポジションか、どれがサブコンポジションでどれがインラインか、どのトラックが何を運ぶか(ビデオ、オーディオ、オーバーレイ、キャプション)。
  3. リズム — 実装前にシーンのリズムを宣言します。どのシーンがクイックヒットか、どれがホールドか、シェーダーはどこに配置するか、エネルギーがどこでピークになるか。パターンに名前を付けます: fast-fast-SLOW-fast-SHADER-hold。リズムテンプレートについては references/beat-direction.md を読んでください。
  4. タイミング — どのクリップが持続時間を決定するか、トランジションはどこに配置するか、ペーシングはどうするか。
  5. レイアウト — まず最終状態を構築します。以下の「レイアウト先行」を参照。
  6. アニメーション — 次に、以下のルールを使用してモーションを追加します。

依頼されたものを構築すること。 「タイトルカードが欲しい」というリクエストは、「タイトルカード+3つのサポートシーン+アンビエントミュージック+キャプション」のリクエストではありません。すべてのシーン、すべての要素、すべてのトゥイーンは、その存在価値を証明する必要があります。追加のシーンや要素が作品を真に向上させる場合は、提案してください — 追加しないでください。

小さな編集(色の修正、タイミング調整、1つの要素追加)の場合は、直接ルールに進んでください。

レイアウト先行

すべての要素を、最も見える瞬間 — 完全に入場し、正しく配置され、まだ退場していないフレーム — に配置します。これをまず静的なHTML+CSSとして記述します。GSAPはまだ使わないでください。

なぜこれが重要なのか: 要素をアニメーションの開始状態(画面外、スケール0、不透明度0)に配置し、そこから着地するべき位置にトゥイーンすると、最終的なレイアウトを推測していることになります。ビデオがレンダリングされるまで重なりは見えません。まず最終状態を構築することで、モーションを追加する前にレイアウトの問題を見つけて修正できます。

プロセス

  1. 各シーンのヒーローフレームを特定します — 最も多くの要素が同時に見える瞬間。これが構築するレイアウトです。
  2. そのフレームの静的なCSSを記述します。.scene-content コンテナは、width: 100%; height: 100%; padding: Npx; と display: flex; flex-direction: column; gap: Npx; box-sizing: border-box を使ってシーン全体を埋める必要があります。パディングを使ってコンテンツを内側に押し込みます — コンテンツコンテナに position: absolute; top: Npx を決して使わないでください。絶対配置されたコンテンツコンテナは、コンテンツが残りのスペースより高いときにはみ出します。position: absolute は装飾用のみに予約してください。
  3. gsap.from() を使って入場を追加します — 画面外/非表示からCSSの位置へアニメーションします。CSSの位置が真実であり、トゥイーンはそこに至るまでの過程を記述します。(data-composition-src を介して読み込まれたサブコンポジションでは、gsap.fromTo() を推奨します — references/motion-principles.md の耐荷重GSAPルールを参照)。
  4. gsap.to() を使って退場を追加します — CSSの位置から画面外/非表示へアニメーションします。

例

/* scene-content がシーンを埋め、パディングがコンテンツを配置 */
.scene-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 120px 160px;
  gap: 24px;
  box-sizing: border-box;
}
.title {
  font-size: 120px;
}
.subtitle {
  font-size: 42px;
}
/* コンテナは任意のシーンサイズ (1920x1080, 1080x1920 など) に合わせる。
   パディングがコンテンツを配置。Flex + gap が間隔を処理。 */

間違った例 — ハードコードされた寸法と絶対配置:

.scene-content {
  position: absolute;
  top: 200px;
  left: 160px;
  width: 1920px;
  height: 1080px;
  display: flex; /* ... */
}
// ステップ3: それらの位置にアニメーションで入場
tl.from(".title", { y: 60, opacity: 0, duration: 0.6, ease: "power3.out" }, 0);
tl.from(".subtitle", { y: 40, opacity: 0, duration: 0.5, ease: "power3.out" }, 0.2);
tl.from(".logo", { scale: 0.8, opacity: 0, duration: 0.4, ease: "power2.out" }, 0.3);

// ステップ4: それらの位置からアニメーションで退場
tl.to(".title", { y: -40, opacity: 0, duration: 0.4, ease: "power2.in" }, 3);
tl.to(".subtitle", { y: -30, opacity: 0, duration: 0.3, ease: "power2.in" }, 3.1);
tl.to(".logo", { scale: 0.9, opacity: 0, duration: 0.3, ease: "power2.in" }, 3.2);

要素が時間を超えてスペースを共有する場合

要素Aが要素Bが同じエリアに入場する前に退場する場合、両方の要素はそれぞれのヒーローフレームに対して正しいCSS位置を持つ必要があります。タイムラインの順序付けにより、視覚的に共存することは保証されません — しかし、レイアウトステップをスキップすると、タイミングエラーによって偶然に重なってしまうケースを見逃します。

意図的な重なりと見なされるもの

レイヤードエフェクト(テキストの後ろのグロー、影の要素、背景パターン)やzスタックデザイン(カードスタック、深度レイヤー)は意図的なものです。レイアウトステップは、意図しない重なり — 2つの見出しが互いの上に重なる、統計値がラベルを隠す、コンテンツがフレームからはみ出す — をキャッチするためのものです。

データ属性

すべてのクリップ

属性必須値
idはい一意の識別子
data-startはい秒数またはクリップID参照 ("el-1", "intro + 2")
data-durationimg/div/コンポジションに必須秒数。ビデオ/オーディオはメディアの長さがデフォルト。
data-track-indexはい整数。同じトラックのクリップは重なってはいけません。
data-media-startいいえソースへのトリムオフセット (秒)
data-volumeいいえ0-1 (デフォルト 1)

data-track-index は視覚的なレイヤリングに影響しません — CSSの z-index を使用してください。

コンポジションクリップ

属性必須値
data-composition-idはい一意のコンポジションID
data-startはい開始時間 (ルートコンポジション: "0" を使用)
data-durationはいGSAPタイムラインの長さより優先
data-width / data-heightはいピクセル寸法 (1920x1080 または 1080x1920)
data-composition-srcいいえ外部HTMLファイルへのパス

コンポジション構造

data-composition-src を介して読み込まれるサブコンポジションは <template> ラッパーを使用します。スタンドアロンコンポジション (メインの index.html) は <template> を使用しません — data-composition-id のdivを <body> に直接置きます。スタンドアロンファイルで <template> を使用すると、すべてのコンテンツがブラウザから隠され、レンダリングが壊れます。

サブコンポジション構造:

<template id="my-comp-template">
  <div data-composition-id="my-comp" data-width="1920" data-height="1080">
    <!-- content -->
    <style>
      [data-composition-id="my-comp"] {
        /* scoped styles */
      }
    </style>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>
    <script>
      window.__timelines = window.__timelines || {};
      const tl = gsap.timeline({ paused: true });
      // tweens...
      window.__timelines["my-comp"] = tl;
    </script>
  </div>
</template>

ルートでの読み込み: <div id="el-1" data-composition-id="my-comp" data-composition-src="compositions/my-comp.html" data-start="0" data-duration="10" data-track-index="1"></div>

ビデオとオーディオ

ビデオは muted playsinline でなければなりません。オーディオは常に別の <audio> 要素です:

<video
  id="el-v"
  data-start="0"
  data-duration="30"
  data-track-index="0"
  src="video.mp4"
  muted
  playsinline
></video>
<audio
  id="el-a"
  data-start="0"
  data-duration="30"
  data-track-index="1"
  src="audio.mp3"
></audio>

Individual skills in this repo

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

delorenj/skills

Plan and generate terminal ASCII animations/screensaver-style output (FPS, refresh rules, loop policy, low-flicker guidance), with a static poster frame and an optional local demo script.

delorenj/skills

ASCII video: convert video/audio to colored ASCII MP4/GIF.

delorenj/skills

Plan, build and quality-check a premium short commercial for a real business (roofing, property, ecommerce, B2B software) using AI-generated footage, code-built motion (HTML/GSAP), selective Three.js and an independent-critic "Gauntlet" loop. Use when asked to make a launch-style / SaaS-style video, business ad, explainer, sample reel or pitch video, or to review and improve one. Encodes motion principles distilled from 28 professional launch films, a quality bar, audio rules and a business-offer playbook.

delorenj/skills

CSS animation adapter patterns for HyperFrames. Use when authoring CSS keyframes, animation-delay based timing, animation-fill-mode, animation-play-state, or CSS-only motion that HyperFrames must seek deterministically during preview and rendering.

delorenj/skills

Generate professional voiceovers using ElevenLabs AI. Use when the user needs to create voiceovers for videos, audio narration, or text-to-speech content. Supports multiple voices with character presets (narrator, salesperson, expert) for natural delivery. Includes single scene regeneration for fine-tuning.

delorenj/skills

HyperFrames CLI dev loop — `npx hyperframes` for scaffolding (init), validation (lint, inspect), preview, render, and environment troubleshooting (doctor, browser, info, upgrade). Use when running any of these commands or troubleshooting the HyperFrames build/render environment. For asset preprocessing commands (`tts`, `transcribe`, `remove-background`), invoke the `hyperframes-media` skill instead.

delorenj/skills

Asset preprocessing for HyperFrames compositions — text-to-speech narration (Kokoro), audio/video transcription (Whisper), and background removal for transparent overlays (u2net). Use when generating voiceover from text, transcribing speech for captions, removing the background from a video or image to use as a transparent overlay, choosing a TTS voice or whisper model, or chaining these (TTS → transcribe → captions). Each command downloads its own model on first run.

delorenj/skills

Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, and registry discovery.

delorenj/skills

Create video compositions, animations, title cards, overlays, captions, voiceovers, audio-reactive visuals, and scene transitions in HyperFrames HTML. Use when asked to build any HTML-based video content, add captions or subtitles synced to audio, generate text-to-speech narration, create audio-reactive animation (beat sync, glow, pulse driven by music), add animated text highlighting (marker sweeps, hand-drawn circles, burst lines, scribble, sketchout), or add transitions between scenes (crossfades, wipes, reveals, shader transitions). Covers composition authoring, timing, media, and the full video production workflow. For dev-loop CLI commands (init, lint, inspect, preview, render) see the hyperframes-cli skill; for asset preprocessing commands (tts, transcribe, remove-background) see the hyperframes-media skill.

delorenj/skills

Manim CE animations: 3Blue1Brown math/algo videos.

delorenj/skills

Join a Google Meet or Zoom call as a video meeting agent via PikaStreaming. Trigger: user drops a Google Meet or Zoom link, or asks to join a meeting.

delorenj/skills

Translate an existing Remotion (React-based) video composition into a HyperFrames HTML composition. Use ONLY when the user explicitly asks to port, convert, migrate, translate, or rewrite a Remotion composition as HyperFrames (e.g. "port my Remotion project to HyperFrames"). Do NOT use when (a) authoring a NEW HyperFrames composition (even if A/B-testing a Remotion video); (b) Remotion is mentioned in passing; (c) Remotion code is shared as reference, not for translation; (d) the user wants "the same video as my Remotion one" without explicitly asking to migrate the source — treat as a fresh HyperFrames build. When in doubt, default to the `hyperframes` skill. Detects unsupported patterns (useState, useEffect side effects, async calculateMetadata, third-party React component libraries, `@remotion/lambda`) and recommends the runtime interop escape hatch instead of a lossy translation.

delorenj/skills

Generate speech using the self-hosted voxxy (vox) TTS service at https://vox.delo.sh. Use when the user asks to speak, say, narrate, synthesize speech, clone a voice, create a voice, add or register a voice, pipe TTS, or control voice qualities by description (e.g. "a young woman with a cheerful voice"). Handles HTTP API usage, voice profile management, description-based voice design, cloning, MCP registration, and integration patterns for new platforms.

delorenj/skills

Capture a website and create a HyperFrames video from it. Use when: (1) a user provides a URL and wants a video, (2) someone says "capture this site", "turn this into a video", "make a promo from my site", (3) the user wants a social ad, product tour, or any video based on an existing website, (4) the user shares a link and asks for any kind of video content. Even if the user just pastes a URL — this is the skill to use.

delorenj/skills

YouTube transcripts to summaries, threads, blogs.

関連スキル