Communitygithub.com

1999AZZAR/designer-mcp

HyperFrames構成契約 — 1つのレンダリング可能なプロジェクトを構築します。構成構造、`data-*`タイミング属性、`class="clip"`、トラック、サブ構成、変数、フレームワーク管理のメディア再生、決定論的レンダリングルール、検証に使用します。構成HTMLを作成する前に読んでください。

designer-mcp とは?

このスキルは、HyperFramesフレームワークの技術的契約を定義しています。HyperFramesは、HTMLから動画をレンダリングするシステムです。開発者は、`data-*`属性でタイミングを宣言したHTMLファイル(構成)を作成し、シーク可能なアニメーションランタイムとフレームワークが管理するメディア再生を利用します。主な機能には、スタンドアロン構成とサブ構成の2つのルート形式、1つの一時停止タイムラインの登録、`gsap_css_transform_conflict`や`media_crossorigin_breaks_preview`などの一般的な落とし穴を防ぐlintルール、決定論的レンダリングのための非交渉ルール(`Math.random`や`repeat: -1`の禁止など)が含まれます。このスキルは、最小限の構成スケルトン、構成パターン、データ属性、トラックとクリップ、サブ構成、変数とメディア、決定論ルールなどの参照リソースを提供し、`hyperframes-cli`を使用した検証(`npx hyperframes check`、`snapshot`、`preview`、`render`)もサポートしています。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/1999AZZAR/designer-mcp/tree/HEAD/skills/video/engine/hyperframes-core

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

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

ドキュメント

HyperFrames コア

エージェントの落とし穴(最初に読むこと):

  • 中央揃えには flex/inset を使用し、後で GSAP で x/y をアニメーションするノードに CSS transform: translate(-50%,-50%) は使用しないでください。lint: gsap_css_transform_conflict。fromTo または xPercent/yPercent を使用してください。
  • シーン終了の tl.set(..., {visibility:"hidden"}) を追加しないでください。ランタイムはすでにタイミング設定されたクリップを非表示にします。内部ノード(または .clip の opacity)のフェードで十分です。キャプションのハードキルは別のルールです。
  • window.__timelines["id"] はルートの data-composition-id と一致する必要があります。
  • render 後、サマリーの2行目を読んでください: beginframe vs screenshot、GPU モード、ステージタイミング。Linux での screenshot + software gpu は低速パスです。

HyperFrames は HTML から動画をレンダリングします。コンポジションとは、data-* 属性でタイミングを宣言し、アニメーションランタイムがシーク可能で、メディア再生がフレームワークによって管理される DOM を持つ HTML ファイルです。

このスキルは 技術的契約 です — 1つの hyperframes プロジェクトを構築する方法を定義します。以下の本文はビルドガイドです。トピックごとの詳細は references/(次にインデックス)にあり、必要に応じて読んでください。プロセスドキュメント(ブリーフ、ストーリーボード、レビュー、プロダクション、ディスパッチ、フレームワーカー)は /hyperframes → references/ にあります。その他の懸念事項は、兄弟ドメインスキル — hyperframes-animation、hyperframes-creative、media-use、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.mddata-track-index が制御する(および制御しない)内容、z-index、クリップを別のクリップに対してタイミング設定する方法を理解; npx hyperframes timeline ですべてのトラックとクリップをリスト表示
references/creator-editing-recipes.md正確なカット/トリム/並べ替え/再タイミング/フリーズ/カメラ/マスク/クロスフェード/オーディオ編集レシピとその制限をコピー
references/sub-compositions.mdサブコンポジションを配線(ホスト属性、<template>、インスタンスごとの変数)し、その内部でアニメーション
references/variables-and-media.md変数を宣言; <video>/<audio> を配置、音量設定、トリミング
references/determinism-rules.mdシーク可能なタイムラインを構築; 決定論の禁止; レイアウト/テキストフィット
references/full-screen-motion.md共有背景を使用して全画面モーションを作成
references/tailwind.mdTailwind v4 プロジェクトで作業する(init --tailwind; ランタイム契約は Studio の v3 とは異なる)

アニメーションランタイムの詳細(GSAP API、Lottie、Three.js など)については、hyperframes-animation → adapters/<runtime>.md を参照してください。

コンポジションの構築

2つのルート形式(互換性なし)

  • スタンドアロン(トップレベル index.html): ルート <div data-composition-id="…"> が <body> に直接配置され、<template> ラッパーはありません。スタンドアロンルートをラップするとすべてのコンテンツが非表示になり、lint はそれを拒否します(standalone_composition_wrapped_in_template、エラー)。
  • サブコンポジション(data-composition-src 経由で読み込まれる): ルートを <template> でラップします。これが記述すべき形状です。ローダーはプレーンな完全なドキュメントも受け入れ、その <body> にフォールバックしますが、テンプレート形式が例とツールが想定するものです。

⚠ 転送ルール: テンプレート化された サブコンポジションの場合、アセンブラはファイル自身の <head> <style>/<script> をドロップします(packages/core/src/compiler/compositionAssembly.ts、hasTemplate ゲート)。したがって、<style>/<script> はテンプレート 内側 に配置してください。<link> はどちらの場合でもホイストされます。 ⚠ ホストID規則: ホストスロット、内部テンプレート、および window.__timelines["<id>"] キーに 同じ ID を指定してください。異なるローカルIDもサポートされています(アセンブラはファイル内の最初のルートにフォールバックします)が、不一致は黙認されるため、特に理由がない限り一致させてください。

ファイル形状、ホスト配線、およびプレレンダーチェックリスト → references/sub-compositions.md。

ルートはサイズ指定必須(サイレントレイアウトバグ)

スタンドアロンルートは width/height: 100% を指定します。キャンバスサイズは data-width/data-height です。ランタイムはこれらのピクセルをコンポジションルートにスタンプします。#root に 1920px/1080px をハードコードしないでください。スケルトン → references/minimal-composition.md。

1つの一時停止タイムライン

各コンポジションは、正確に1つ の gsap.timeline({ paused: true }) を window.__timelines["<id>"](キー = ルート data-composition-id)に登録します。非同期コールバック(document.fonts.ready)内で構築することもサポートされています。重要なのは、構築が完了した後にのみ登録する ことです。レンダリング長さはルートの data-duration であり、タイムラインの長さ ではありません。タイムラインがそれを超えて実行されるとカットオフされ、早期に終了する場合は最後のフレームを保持します。ルート data-duration を省略すると、長さは代わりに推論されます(タイムライン、メディアウィンドウ、またはアダプター)。window.__timelines = window.__timelines || {} は必要ありません。ランタイムはインラインスクリプトが実行される前にレジストリを作成し、lint はそれを要求しなくなりました。手動でサブタイムラインをホストにネストしないでください。ランタイムは登録された子タイムラインを自動的にネストします。完全な契約(非GSAPランタイムを含む)→ references/determinism-rules.md + hyperframes-animation/adapters/。

初回パス lint の落とし穴(保証された最初のビルド失敗)

lint が 確実に キャッチするルールですが、事後的にのみです。最初から正しく記述してください。

  • CSS 初期 transform と 同じ プロパティの GSAP トゥイーンを決してペアにしないでください — CSS 値とトゥイーンの開始が競合し、lint は gsap_css_transform_conflict で拒否します。CSS transform: translateX(-40px) の代わりに、gsap.fromTo(el, { x: -40 }, { x: 0 }) を使用してトゥイーン内で初期状態を設定してください。
  • <video>/<audio> に crossorigin を決して配置しないでください。lint は media_crossorigin_breaks_preview(エラー)で無条件に拒否します。キャンバス/WebGL/WebAudio 読み出しも含みます。抑制はありません。
  • data-start を持つ <video> に、data-start も持つ祖先を決して与えないでください。lint は video_nested_in_timed_element(エラー)で拒否します。ラッパー または ビデオのいずれかにタイミングを設定し、両方には設定しないでください。
  • すべての <audio> には id が必要です。lint は media_missing_id で拒否し、IDのない <audio> はミキサーによって決してピックアップされず、レンダリングは 無音 になります。
  • .clip を autoAlpha または visibility でトゥイーンしないでください — lint は gsap_animates_clip_element で拒否します。代わりに子をアニメーションしてください。
  • 名前付き CSS font-family には、出荷されたローカルファイルへのファイル内 @font-face が必要です。そうでない場合、lint は font_family_without_font_face を発行します。
  • サブコンポジション #root は width/height: 100%(または inset: 0)を使用し、ハードコードされた 1920px/1080px は使用しません。キャンバスサイズは data-width/data-height です。

lint エラー は、レイアウトおよびコントラスト監査もオフにします。check はその後 0 sample(s) と 0/0 text checks を報告します。これはクリーンなファイルのように見えますが、何も実行されていないことを意味します。これらの数値を信頼する前に、lint エラーをクリアしてください。

非交渉ルール(自動ゲートが見逃す可能性のあるサイレントバグ)

ここに明示します。完全な根拠はリンクされたリファレンスにあります。違反しないでください。

  • レンダリング時間クロック / シードなし Math.random / ネットワーク / 入力状態は禁止。repeat: -1 は禁止(有限カウントを使用)。→ determinism-rules.md
  • .clip 要素で display、visibility、または autoAlpha をトゥイーンしないでください。フレームワークはクリップの可視性を所有し、lint はそれを拒否します(gsap_animates_clip_element)。代わりに子をアニメーションしてください。→ determinism-rules.md
  • 本文テキストに <br> を使用しないでください。変換された要素はブロックレベル+サイズ指定が必要です。パルスする絶対装飾要素にはピーククリアランスが必要です。→ determinism-rules.md
  • <video>/<audio> はフラットなドキュメントクエリで見つかるため、フレームワークは 任意のネスト深さ(サブコンポジション <template> またはラッパー内を含む)でそれらをシークおよびデコードします。1つのハード制限: data-start を持つ <video> が data-start も持つ別の プレーン 要素内にある場合、lint はエラーを出します。そして、実際に障害が発生します(間違ったソースフレーム、その後クリップがスロット途中で消える)。したがって、タイミングはラッパーかビデオのいずれかに設定し、両方には設定しないでください。サブコンポジションホストは免除されます。サブコンポジション内のメディアは正しくレンダリングされます。もう1つの注意点はタイムラインに関するもので、配置ではありません。サブコンポジションのタイムラインはホストルート要素をアニメーションできません。→ variables-and-media.md
  • 組み立てられた ページ全体で各 id を一意に保ちます(サブコンポジションIDをプレフィックスとして付けます: #<id>-hero)。これにより、独自の #id CSS と getElementById 呼び出しが解決されます。フレームインジェクションはこれに依存しなくなりました。コンパイラはすべての video[src]/audio[src]/img[src] にドキュメント固有の data-hf-render-id をスタンプします。src 属性の代わりに <source> 子を使用するメディアはスタンプ されない ため、そこでは一意のIDが依然として重要です。→ composition-patterns.md
  • コンポジション ルート への全画面塗りつぶしは、通常のレンダリングでは問題ありません。レイヤー合成パス(HDRコンテンツ、またはシェーダートランジションを使用するコンポジション)でのみドロップされます。その場合、エンジンはすべてのコンポジションルートを透明に強制し、下のレイヤーが見えるようにします。コンポジションがシェーダートランジションまたはHDRメディアを使用する場合は、塗りつぶしを全画面表示の 子(position:absolute; inset:0)に配置してください。→ composition-patterns.md

既存のコンポジションの編集

  • 最初にファイルを読んでください。無関係なタイミング、トラック、ID、変数、メディアパスを保持してください。
  • プロジェクトのタイムライン(トラック、クリップ、開始、終了、再生内容)を確認するには、index.html とすべてのサブコンポジションファイルを読む代わりに、npx hyperframes timeline [--json] を実行してください。
  • 既存のコンポジションIDとタイムラインキーを一致させてください。
  • クリップを追加する: その data-start/data-duration を周囲のクリップに対して意図的に設定してください。data-track-index はStudioの表示レーンであり、タイミング制約ではないため、空いている必要はありません。
  • 任意のコンポジション要素の data-hidden は、プレビューとレンダリングの 両方 でそれを非表示にし、その時間ウィンドウをオーバーライドします。これは非破壊的/元に戻すことができ、Studioのタイムラインの目のアイコンで切り替えられます。
  • サブコンポジションを追加する: ホストを配線する前に、その内部 data-composition-id を確認してください。

検証

コマンドの詳細については hyperframes-cli を参照してください。

  • npx hyperframes check が合格する(lint、ランタイム、レイアウト、モーション、コントラスト全体で0件の検出)
  • サブコンポジションを含むプロジェクト: npx hyperframes snapshot --at <midpoints> を実行し、各フレームを目視確認
  • レビュー用に npx hyperframes preview --background(ユーザーはStudioのタイムラインで何でも編集でき、サーバーは呼び出しコマンド後も生存します)
  • ユーザーが承認した後でのみ npx hyperframes render

Individual skills in this repo

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

1999AZZAR/designer-mcp

SOTA animation and physics heuristic guide using motion.dev

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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

1999AZZAR/designer-mcp

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

1999AZZAR/designer-mcp

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

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

Use when building or editing a HyperFrames project that people open in Studio: 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`.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

Author a HyperFrames slideshow — a presentation, pitch deck, or interactive deck with discrete slides, fragment reveals, branching, hotspot navigation, and built-in presenter mode with speaker notes; also converts an existing page into a deck. Output is a navigable deck, not a rendered MP4. If the user didn't explicitly ask for a slideshow, confirm before authoring. Unclear → /hyperframes.

1999AZZAR/designer-mcp

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.

1999AZZAR/designer-mcp

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.

関連スキル