Communitygithub.com

SingleGrain-Team/video-skills

単一のコマンドを4つの異なる外観のインターフェースに入力し、その出力を高速で連続表示する、20〜30秒の製品ローンチフィルムを作成します。

video-skills とは?

このスキルは、CLI、パッケージ、プラグイン、エージェントスキルなど、特定のインターフェースに依存しない製品向けのプロモーションビデオを自動生成するためのHyperFramesベースのツールです。1つのプロンプト文字列を、外観の異なる4つの画面上で同一のタイピング速度で入力し、その後実際の出力画像をビートに合わせて高速表示し、最後に同じコマンドを大きなピル型UIに表示することで、「どこに入力しても同じように動作する」というメッセージを視覚的に伝えます。 ユーザーはプロンプト文字列、出力画像(16〜24枚)、ブランド情報を指定するだけで、GSAPアニメーションとHyperFramesのレンダリングパイプラインにより、20〜30秒の1920x1080 MP4ファイルが生成されます。音楽を追加する場合は、ビート検出によりカットのタイミングを自動調整できます。バリデーション機能(`npx hyperframes check`)により、レイアウト、コントラスト、レンダリング品質が保証されます。 主な対応プラットフォームはHyperFrames(CLIベースのアニメーションレンダリングツール)で、Node.js環境で動作します。出力は編集可能なHyperFramesプロジェクトとしても提供され、後からタイミング調整が可能です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SingleGrain-Team/video-skills/tree/HEAD/skills/one-prompt-reel

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

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

ドキュメント

one-prompt-reel

このフィルムが伝える主張:「どこに入力しても同じように動作する」。その証明は反復です。1つの文字列、無関係に見える4つの画面、そしてその出力の連続表示、最後にもう一度同じ文字列を表示します。

入力

入力必須備考
promptはい正確なコマンドまたは文章。50文字以内が最適です。4回タイピングされ、最後にもう一度表示されます。
reel画像はい実際の出力16~24枚:スクリーンショット、製品画面、以前のレンダリングから抽出した静止画。ご自身の素材のみ使用可能です。
ブランド名、タグライン、URLはいクロージングカードに使用されます。
ロゴいいえアルファチャンネル付きの正方形PNG。省略した場合、クロージングはテキストのみになります。
音楽いいえ商用利用が許可されているトラック。ライセンスが不明な場合は、無音で出力してください。

ワークフロー

  1. スキャフォールド。 プロジェクトフォルダを作成し、template/(index.htmlとassets/gsap.min.js)をコピーします。リール画像をassets/reel/に配置します。次に以下のコマンドを実行します。 npx --yes hyperframes check
  2. index.htmlの<script>内上部にあるCONFIGブロックを入力します。 プロジェクト固有の情報(prompt、bpm、reelファイルリスト、brand、tagline、url、logo)はすべてここにあります。以下のルールで強制されない限り、残りの部分は再構成しないでください。
  3. カットグリッドを選択します。
    • 音楽なし: cuts: nullのままにします。カットはbpmとreelPattern(デフォルト:1拍のカットが8つ、その後0.5拍のカットが16つ、120bpmで合計4秒+4秒)から生成されます。各サーフェスはsurfaceBeats拍分だけ表示されるため、フィルム全体がグリッド上に収まります。
    • 音楽あり: トラックを<audio id="music" data-timeline-role="music" src="assets/music.mp3" data-start="0" data-duration="24" data-track-index="5">として追加し、npx hyperframes beatsを実行し、beats/assets/music.mp3.jsonを開いて、リール開始時以降のビート時刻(秒単位)をCONFIG.cutsにコピーします(最後のカットの終了時刻を示す1つのエントリを追加します。これがクローズの開始時刻になります)。bpmをトラックのテンポに設定して、タイピングセクションのタイミングも合わせます。ビートが0.2秒より密な場合は、1つおきに取得します。最終1秒で音楽をフェードアウトします(/hyperframes-audio)。
  4. レンダリング前にプレビュー。 npx --yes hyperframes snapshot --at 1.8,4.3,6.8,9.2,11,15,20,23を実行し、生成されたPNGを開きます。各サーフェスのタイピング中、リールカット、クローズを確認します。
  5. レンダリング。 npx --yes hyperframes render --workers 2 -o final.mp4を実行します。
  6. MP4から4〜6フレームを抽出(サーフェスごとに1つ、リールカット1つ、クローズ1つ)し、ffmpegで確認します。クリップ、判読不能、空白がある場合は修正して再レンダリングします。

フィルムの構成(デフォルトで24秒)

時間ビート
0-10秒4つのサーフェス、各2.5秒。右からスライドイン、約1.5秒かけてタイピング、Enterキーを押し、左にスライドアウト。サーフェス名と位置(1/4)を示す小さなラベルが表示されます。
10-18秒ホワイトフラッシュでハードカット。24枚のフルブリード出力画像、各画像にゆっくりとしたプッシュイン効果。コマンドはリール全体を通して左下のピル内に表示され、カウンターは右下に表示されます。
18-24秒ダーククローズ:ロゴ、名前、タグライン、エンバーエッジのピル内にもう一度入力されたコマンド、URL、1回のグローエフェクト。

機能させるためのルール

  • 4つのサーフェスは、色だけでなくシルエットが異なる必要があります。 ワイドで低い、背が高くて狭い、グラデーション上にフロートする、サイドツリーのあるダークなど。目を細めて2つを混同できそうなら、1つを描き直します。プレーンなHTMLとCSSで構築し、実際の製品のクローム、ロゴ、パレットを模倣しないでください。
  • 同じ文字列、同じタイピング速度。 すべてのサーフェスが同一のpromptを同じ時間内で入力します。この同一性がポイントです。
  • タイマーではなく、タイムラインtweenでタイピングします。 {n}カウンターとonUpdateで文字列をスライスするtweenはシークセーフです。setIntervalはシークセーフではありません。
  • キャレットの点滅はtl.setを半拍ループで使用し、CSSアニメーションやrepeat: -1は使用しないでください。
  • グリッド上でカットします。 すべてのサーフェス境界、カット、クローズエントランスは、グリッドが音楽ベースでも単純なテンポでも、ビート上に配置されます。グリッドから外れた編集は、最初に「雑」と認識されます。
  • 一度だけテンポを上げます。 最初は遅いカット、その後半分の長さのカット。繰り返し加速しないでください。
  • リール画像は証拠です。 実際の出力であり、装飾ではありません。1920x1080の静止画を推奨します。サイズが合わない場合はobject-fit: coverでスケーリングします。隣り合う画像は暗いものと明るいものを交互に配置して、各カットが認識されるようにします。
  • サードパーティのメディアは使用禁止。 他の製品のロゴ、UIスクリーンショット、ストックフッテージ、配布できないフォントは使用しないでください。フォント:1つのファミリー名を明示的に指定します(等幅フォントには"JetBrains Mono"を使用します。CLIが自動解決します)。汎用のui-monospaceスタックはテストで比例フォントとしてレンダリングされました。
  • キャプションは読みやすく保ちます。 コントラストを確認します。hyperframes checkはテキストのWCAG AAを強制するため、クリーム色のステージに中程度の暗いインクを使用する必要があります。
  • 無音でも問題ありません。 ライセンス不明の音楽は追加しないでください。非商用条件のAI生成トラックは対象外です。
  • フラッシュtweenはimmediateRender: falseのままにします。そうしないと、レイアウト監査でt=0に白いオーバーレイが表示されます。

バリデーション

  • npx --yes hyperframes check は「Check passed」で終了する必要があります(lint、レイアウト、コントラスト)。
  • スナップショットフレームは、すべてのサーフェスが完全に入力されてから消えること、ラベルがサーフェスと重ならないこと、空または半分しか読み込まれていないリール画像がないことを示している必要があります。
  • ffprobe が1920x1080、h264、再生時間が20〜30秒の範囲内であることを報告する必要があります。

納品

プロジェクト(index.html、assets/)と一緒にfinal.mp4を配置します。リポジトリの慣習で簡単なメモを求められている場合は、プロンプト、テンポまたはビートソース、リール画像ソース、音楽ライセンス(または「無音」)、およびレンダリングコマンドをリストします。Studio(npx hyperframes preview)を使用してタイミングを再調整できることに言及します。

4つのサーフェスの仕様についてはreferences/surfaces.mdを、タイミング計算についてはreferences/grid.mdを参照してください。

Individual skills in this repo

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

SingleGrain-Team/video-skills

Make a 30-45 second launch film for a product by staging it inside one persistent, neutral chat window. A user types a request, the assistant answers and calls the product as a connected tool, a progress card runs, a follow-up triggers a second tool action, and the result lands as a count-up headline number before closing on the logo, tagline and call to action. Use when you need a launch, feature or integration announcement video for something that plugs into AI assistants (a skill, MCP server, plugin, connector, CLI). Delivers a rendered 1920x1080 MP4 plus an editable single-file HyperFrames project.

SingleGrain-Team/video-skills

Build a motion graphic where a screen recording plays in a large frame beside a checklist, and each checklist item ticks off at the exact moment that step happens in the recording, ending with every item checked and a short hold. Use when someone has a screen recording (product walkthrough, tutorial, onboarding, install demo) plus a list of steps with timestamps and wants a "watch the steps get done" film. Input is a recording, step labels with timestamps, a title and an optional palette; output is a 1920x1080 H.264 MP4 and the editable HyperFrames project.

SingleGrain-Team/video-skills

Build a 15-20 second product launch film that shows the product's real screen on a laptop built from plain CSS (no 3D model, no generation model) in a dark studio, scrolls the page, zooms into the interface for one key action such as typing a search, and resolves to the logo lockup. Use when someone has a full-page screenshot or screen recording of their product, one action worth showing, and a logo, and wants a short silent-friendly launch teaser rendered as a 1920x1080 MP4 with an editable HyperFrames project.

SingleGrain-Team/video-skills

Builds a 6-8 second logo sting in which the brand mark rides inside a refracting liquid bead (distorted past legibility), the bead swells, holds still for a beat, then ruptures into droplets and leaves the logo lockup (mark plus wordmark) crisp and upright on screen. Delivered as a 1920x1080 H.264 MP4 plus the editable HyperFrames project, with no 3D model, stock footage or generation model. Use it for brand intros and outros, product-launch openers, channel stings and any "reveal our logo" moment, from an SVG or PNG logo (including raster-only logos), a wordmark string and a palette.

SingleGrain-Team/video-skills

Make a roughly 30-second film that explains a code change (a pull request, release or uncommitted diff) to people who will never read the diff. It opens by showing the real diff scrolling past too fast to follow, cuts to a plain-language summary, fires four capability beats each pinned to a real code snippet, and closes on how to get it (install command and URL). Delivered as a 1920x1080 H.264 MP4 plus the editable HyperFrames project. Use when asked to turn a PR, changelog or release into a launch or explainer video.

SingleGrain-Team/video-skills

Render a 5-6 second motion graphic in which an oversized condensed headline (2-4 words) punches in behind a presenter, using a background-removed cutout of the presenter layered on top of the lettering. A hard cut then removes the presenter while the same headline holds the exact same size and position, and a short supporting line appears for a reading hold. Use it for talking-head intros, chapter openers, launch announcements and social hooks when you have one presenter clip, a headline, a supporting line and a palette. Built on HyperFrames; delivers a 1920x1080 H.264 MP4 plus the editable project.

SingleGrain-Team/video-skills

Builds a 10-14 second product sting out of a short run of UI moments (an entry screen, a single counting metric, a navigation list, one click that opens a menu, then an endcard) cut together so every cut carries the previous motion forward and the piece reads as one continuous camera move. Delivered as a 1920x1080 H.264 MP4 plus an editable single-file HyperFrames project. Use it for app launches, feature teasers, social bumpers and site intros when you have a product's logo, a couple of screenshots, one headline number and its real nav labels, and want polished UI motion without narration.

関連スキル