Communitygithub.com

DigitalRavagers/Experiment

プルリクエストのコード変更から、変更内容・理由・動作を説明するビデオを自動生成するワークフローです。PRのURL、<owner>/<repo>#<N>形式、またはリポジトリ内での「this PR」を入力として、ナレーションスクリプト、音声、ビデオを出力します。

Experiment とは?

このスキルは、GitHubプルリクエスト(PR)のコード変更を入力として、自動的にコード変更説明ビデオを生成するワークフローです。PRのURL、`<owner>/<repo>#<N>`形式の参照、またはチェックアウトされたリポジトリ内で「this PR」と指定することで、PRの事実(タイトル、本文、差分、コミット、ファイル、追加・削除行数)を`gh` CLIで取得し、その情報を元にナレータースクリプト、音声(ボイス+BGM)、セクションプラン、そして最終的なビデオ(ビフォー/アフター、差分強調、ファイルツリー、影響シーンを含む)を生成します。主要な対象プラットフォームはClaude Code、Cursor、CodexなどのAIエージェント向けツールです。ビデオの長さはデフォルトで最大約3分(最適な長さは30〜90秒)で、スタイルは常にClaudeスタイル(温かみのある編集、特徴的な紺色のコードウィンドウ)が適用されます。マーケティングサイトや一般ウェブサイト、トピックテキストなどPR以外の入力の場合は、このスキルの対象外であり、代わりに`/hyperframes`を参照する必要があります。

対応✓Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/DigitalRavagers/Experiment/tree/HEAD/.agents/skills/pr-to-video

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

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

ドキュメント

pr-to-video - ディスパッチエントリ

入力はGitHubプルリクエスト(コード変更)で、PRのURL、<owner>/<repo>#<N>形式の参照、または開いているPRがあるリポジトリをチェックアウトしている場合は「this PR」として指定します。出力はコード変更の説明ビデオです。何が出荷され、なぜ、どのように動作するかを、差分/コミットからビフォー/アフター、差分強調、ファイルツリー、インパクトシーンとしてレンダリングします。デフォルトの長さは最大約3分(最適な長さは約30〜90秒)。本当に長い、または全てのファイルを詳細に説明するウォークスルー(5分以上)は別のレジスターとなるため、/general-videoを使用します。インジェストのためのウェブサイトスクレイピングやヘッドレスChromeはありません — インジェストはghCLIを使用します。出荷時のスタイルプリセットは常にclaude(温かみのある編集、特徴的なネイビーのコードウィンドウ)です。

Step 0の前にルートを確認してください。 このスキルはGitHubプルリクエスト(ghを介して読み取るコード変更)を説明します。入力がマーケティング/製品サイトの場合 → /product-launch-video;一般ウェブサイトの場合 → /website-to-video;PRのないトピック/記事の場合 → /faceless-explainer;リポジトリ全体のツアーや複数PRのリリースの場合 → /general-video。対象外: ライブ/レンダリング時のデータ — PRの事実は作成時に一度だけ読み取られ、組み込まれます。PR以外の入力が渡された場合、または不明な場合は、まず/hyperframesを読んでください。

このワークフローはPR固有のフロント部分(インジェスト + ストーリーデザイン)のみを担当します。_共有_とマークされた各フェーズは、faceless-explainerから変更せずにコピーされたエンジンを再利用します(このスキル自身のscripts/ + agents/ + phases/の下に存在するため、<SKILL_DIR>はpr-to-videoに解決されます)。

すべてのアーティファクトはPROJECT_DIR = videos/<project-name>/に出力されます(Step 0で作成)。以下のすべてのパスはこれを基準とします。ディスパッチはハーネスに依存しません:最初のサブエージェントディスパッチの前に、<SKILL_DIR>/../hyperframes-core/references/subagent-dispatch.mdを一度読んでください。これはディスパッチ動詞(パラレルファンアウト/バックグラウンド/待機)をハーネスのプリミティブにマッピングします。同時実行数の上限はN未満という意味で、上限サイズの波となり、ワーカーが減ることはありません。このファイルは背景読み物ではなく、拘束力のある実行手順書です:ステップを順番に実行し、指定されたスクリプトまたはエージェントロールですべてのフェーズアーティファクトを生成してください。自由形式のパイプラインに置き換えたり、リクエストが明確に見えるからといってポーズステップをスキップしたりしないでください。実行できないステップがある場合は、停止して報告してください。

フェーズ実行主要なアーティファクト詳細なフロー
initBashhyperframes.jsonStep 0
ingest(独自)Bash(gh CLI + ingest.mjs + fetch-people-avatars.mjs、エージェントなし、スクレイピングなし)capture/pr.json + diff.patch + extracted/{tokens.json,visible-text.txt,people.json} + public/avatars/Step 1
design-system(共有)Bash(エージェントなし、決定論的claude)design-system/design.html + chunks/Step 1b
story-design(独自)サブエージェントnarrator_scripts.jsonagents/story-design.md
audio(共有)Bash内のaudio.mjsaudio_meta.jsonphases/audio/guide.md
visual-design(共有)サブエージェントsection_plan.mdagents/visual-design.md
prep(共有)Bash内のprep.mjsgroup_spec.jsonscripts/prep.mjs
captions(共有、詳細)captions.mjs group -> captions.mjs html(Bash内、サブエージェントなし)caption_groups.json + compositions/captions.htmlscripts/captions.mjs
scenes(共有)N x サブエージェント(パラレル)compositions/scene_*.html または compositions/group_w*.htmlagents/hyperframes-scene.md
finalize(共有)Bashプレリュード(wait-bgm + assemble + inject/verify-transitions + hoist-videos + sfx-verify + preflight) -> finalizeサブエージェント(発見された簡単な問題をその場で修正 + 1つのリーンなコンタクトシートルック + レンダリング)renders/video.mp4Step 7 / agents/hyperframes-finalize.md

前提条件

macOS Apple Silicon または Linux x64。システムツール:brew install [email protected] node ffmpeg(HomebrewのPythonを使用し、/usr/bin/python3は使用しないでください。使用するとPEP 668によりpip installがブロックされます)。その後、npx hyperframes doctorを一度実行します(Chromeをダウンロード — スナップショット/レンダリングに必要、インジェストには不要)。レンダリングされたオーバーラップゲート(scripts/check-overlap.mjs、ワーカーのセルフチェックとプレフライトで実行)は同じキャッシュされたChromeを再利用します。ブラウザをダウンロードすることはありません。唯一の依存関係はpuppeteer-core npmモジュールで、シーンファンアウト前に一度だけ確認されます(Step 5.5、--ensure-deps、約5秒、完全なpuppeteerインストールは不要)。CLI:gh(GitHub CLI、認証済み — gh auth statusが成功する必要あり)とhyperframes。オプションのクラウドキー(なければローカルフォールバック)— Step 0.5で注入:

キー / 要件使用用途デフォルト / フォールバック
gh auth status OKPRの読み取り(公開またはプライベート)必須 — 認証ヒントとともに即座に失敗
HEYGEN_API_KEY(またはhyperframes auth login)TTS(クラウド、ワードレベルのタイムスタンプ)音声:自動(最初の英語Starfish音声;--voiceで上書き)
ELEVENLABS_API_KEYTTS(クラウド;pip install elevenlabsが必要)音声 21m00Tcm4TlvDq8ikWAM (Rachel)
どちらもなし、かつログインしていないTTSローカルKokoro、音声 am_michael(非英語:--voiceを渡す)
GEMINI_API_KEY / GOOGLE_API_KEY(エイリアス)Lyria BGM未設定 -> ローカルMusicGen(初回実行で約300 MBダウンロード)

フロー

Step 0.0 - ブリーフの確認(常に1ラウンド質問してから構築する)

Step 0の前に、常に一時停止して1つのメッセージでブリーフを尋ね、ユーザーの返信を待ってください。リクエストが完全に見える場合でも、これを省略しないでください。 各フィールドに推奨デフォルト値を先に提示し、ユーザーが既に指定したものは事前に入力してください(盲目的に再質問するのではなく確認する):アングル(changelog / feature reveal / fix / refactor — デフォルト:PRから推測)、オーディエンス(開発者 vs 一般ユーザー — デフォルト:開発者)、長さ(デフォルト約60-90秒)、そして—/hyperframesで設定されていない場合—アスペクト(デフォルト16:9)と言語。スタイルは常にclaudeです。ユーザーが返信してからStep 0に進んでください。「go」/「use the defaults」はすべてのデフォルトを受け入れる有効な返信です。

Step 0 - ビデオプロジェクトの初期化

cwdはエージェントのワークスペースルート(例:/tmp/pr-video-...)です。すべてのビデオアーティファクトをPROJECT_DIR = videos/<project-name>/の下に書き込みます。

<project-name>:ユーザーが指定したディレクトリを使用します(例:./videos/retry-prを使用)。それ以外の場合は、PRから派生した短いkebab-case名(<repo>-pr-<N>、例:widgets-pr-1187)を使用します。ワークスペースのベース名やタイムスタンプは使用しないでください。

$PROJECT_DIR/hyperframes.jsonがない場合のみ:

PROJECT_DIR="${PR_VIDEO_DIR:-videos/<project-name>}"
mkdir -p "$(dirname "$PROJECT_DIR")"
npx hyperframes init "$PROJECT_DIR" --non-interactive --skip-skills --example=blank

hyperframes initは汎用のAGENTS.md / CLAUDE.mdを$PROJECT_DIRに配置します。そのままにしておいてください — これらは後で完成したプロジェクトを開く人のためのエージェントスキャフォールディングです。

制約: ワークスペースルートでhyperframes initを実行したり、AGENTS.md / CLAUDE.mdを生成したりしないでください。PROJECT_DIR内にhyperframes/をネストしないでください。すべてのBashコマンド(マスター+サブエージェント)は(cd "$PROJECT_DIR" && ...)サブシェル内で実行してください。裸のcdは使用しないでください。

Step 0.5 - APIキーガイダンス

$PROJECT_DIR/.envが存在する場合、またはcontext.logが空でない場合(=初回実行でない場合)はスキップします。それ以外の場合は、まず利用可能なものを検出し($HEYGEN_API_KEY / $HYPERFRAMES_API_KEYが設定されているか、hyperframes auth loginから~/.heygen/credentialsが存在する場合はHeyGen TTSオン;ElevenLabs / Geminiはそれぞれの環境キーが設定されている場合のみ)、その後常に一時停止してメニューを表示し、ユーザーの入力を待ってください。動作可能な設定が検出された場合でも、自分だけで先に進まないでください(ユーザーがGeminiなどのキーを追加したい場合があります)。検出された内容を伝えた後、以下のいずれかを行います:キーを貼り付ける(→ $PROJECT_DIR/.envにKEY=valueの形式で1行ずつ書き込み、同名のキーは上書き)/ 「go」(現在の設定 — env、.env、またはhyperframes auth login — で進む)/ 「skip」(設定されていないものはローカルフォールバックで進む)。その後、Step 1に進みます。

Step 1 - インジェスト(Bash、エージェントなし、スクレイピングなし)

PR参照を解決し、ghを使用して構造化された事実を取得し、共有バックエンドが期待する合成キャプチャパッケージに変換します(faceless-explainerのスクレイピングなしスキャフォールドをミラーリング)。ghはここ、オーケストレーター内で実行されるため、認証/未検出/プライベートリポジトリエラーはgh自身のstderrで表示されます。ingest.mjsは純粋なオフライン変換です。

# PR参照:完全なURL、"<owner>/<repo>#<N>"、またはチェックアウトされたリポジトリ内の"<N>"
PR="<url | owner/repo#N | N>"

# ghが認証されていない場合は即座に失敗
gh auth status || { echo "ghが認証されていません — 実行: gh auth login"; exit 1; }

(cd "$PROJECT_DIR" && mkdir -p capture/extracted capture/assets)
(cd "$PROJECT_DIR" && gh pr view "$PR" \
  --json number,title,body,author,url,baseRefName,headRefName,commits,files,additions,deletions,changedFiles,labels,reviews,latestReviews,comments,assignees,reviewDecision,mergedBy \
  > capture/pr.json)
(cd "$PROJECT_DIR" && gh pr diff "$PR" > capture/diff.patch)

# pr.json + diff.patch を tokens.json(colors:[] → claudeネイティブパレット)+
# visible-text.txt(ナラティブブリーフ)+ people.json(PR作成者 + コミット作成者 カウント付き +
# レビュアー/コメンター/アサイン、ボットフィルター&重複除去、各GitHubアバターURL付き)に変換
# (PR `author`は開封者のみ;commits[].authors[]からのコミット作成者も追跡)
# ingestはOFFLINE
(cd "$PROJECT_DIR" && node <SKILL_DIR>/scripts/ingest.mjs \
  --pr-json ./capture/pr.json --diff ./capture/diff.patch --out-dir ./capture/extracted)

# ネットワークステップ(peopleフロント唯一のもの — ingestはオフラインのまま):各コントリビューターの
# GitHubアバターをpublic/avatars/<login>.pngにダウンロード(オプションのクレジット/
# shipped-byクローズ用)。ベストエフォート — アバターがないかオフライン実行でもブロックされない(exit 0)。
# アバター+そのクローズは、pr-to-videoがfacelessデフォルトを緩和する唯一の場所です。
(cd "$PROJECT_DIR" && node <SKILL_DIR>/scripts/fetch-people-avatars.mjs \
  --people ./capture/extracted/people.json)

検証:

[ -s "$PROJECT_DIR/capture/pr.json" ] && \
[ -s "$PROJECT_DIR/capture/diff.patch" ] && \
[ -s "$PROJECT_DIR/capture/extracted/tokens.json" ] && \
[ -s "$PROJECT_DIR/capture/extracted/visible-text.txt" ] && \
[ -s "$PROJECT_DIR/capture/extracted/people.json" ] && \
[ -d "$PROJECT_DIR/capture/assets" ] && echo ok || echo missing
# public/avatars/ はベストエフォート — 欠落は失敗ではありません(アバター未解決 / オフライン)

ghがエラーになった場合(認証/未検出/プライベート)、正確なstderrを報告して停止してください — PRの内容をでっち上げないでください。ingest.mjsが終了…

[翻訳のため省略]

Individual skills in this repo

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

DigitalRavagers/Experiment

When the user wants to edit, review, or improve existing marketing copy, or refresh outdated content. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' 'copy sweep,' 'tighten this up,' 'this reads awkwardly,' 'clean up this text,' 'too wordy,' 'sharpen the messaging,' 'refresh this content,' 'update this page,' 'this content is outdated,' or 'content audit.' Use this when the user already has copy and wants it improved or refreshed rather than rewritten from scratch. For writing new copy, see copywriting.

DigitalRavagers/Experiment

Add captions to a talking-head video. ONE catalog (CATALOG.md) of 32 visual identities behind two engines: column-flow (captions composited INTO the scene — matte occlusion + mix-blend; cream/ink/editorial/keynote/documentary/loud/neon/glitch/chrome/velocity) and themed constitutions (anchor/ordnance/terminal/neonsign/stardust/stomp/scoreboard/transit/vhs/arcade/dossier/laser/thunder/hologram/biolume/aurora/spectrum/papercut/popup/chalkboard/graffiti/brush/inkwater/ransom/lastpage/nightcity — e.g. a glyph-decode climax, a neon sign WRITTEN stroke by stroke, or the quiet `anchor` rail default). Route by identity, never by mode. Trigger on "captions/subtitles", "embed/cinematic captions", "VFX captions", "炸/特效/酷炫字幕", a named identity, or top-tier motion-graphics asks. Embedding every word is wrong for most talking-head content — `anchor` is the verbatim default. Pipeline: transcription → hyperframes remove-background matting → HTML render → ffmpeg overlay. Requires hyperframes and a single-subject clip.

DigitalRavagers/Experiment

Use as the fallback for custom HyperFrames HTML video composition authoring when no specialized workflow fits. Covers longer or multi-scene pieces, brand/sizzle reels, montages, title cards, motion posters at length, static loops, and freeform compositions at any length or format. Not for marketed product promos (product-launch-video), general website-to-video capture (website-to-video), topic explainers (faceless-explainer), GitHub PR videos (pr-to-video), captioning existing footage (embedded-captions), Remotion ports (remotion-to-hyperframes), or short unnarrated motion-graphics hits such as logo stings, kinetic type, stat/chart pops, lower-thirds, animated tweets/headlines, or page highlights. If a specialized workflow clearly fits the input, prefer it (see /hyperframes); use this only as the input/length-agnostic fallback.

DigitalRavagers/Experiment

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.

DigitalRavagers/Experiment

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

DigitalRavagers/Experiment

HyperFrames HTML composition contract. Use for composition structure, data attributes, clips, tracks, sub-compositions, variables, media playback, deterministic render rules, and validation of minimal renderable projects.

DigitalRavagers/Experiment

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

DigitalRavagers/Experiment

Asset preprocessing for HyperFrames compositions — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), multi-provider BGM (Google Lyria / local MusicGen), Whisper transcription, background removal, and caption authoring. Use for npx hyperframes tts, bgm, transcribe, remove-background, voice/provider selection, music-mood prompting, captions / subtitles / lyrics / karaoke / per-word styling.

DigitalRavagers/Experiment

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, registry discovery, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

DigitalRavagers/Experiment

READ THIS FIRST — the HyperFrames entry skill. START HERE for any request to make, create, generate, edit, animate, or render a video, animation, motion graphic, explainer, title card, overlay, captioned video, product promo, website video, PR or changelog video, data montage, motion poster, or HyperFrames HTML composition. Read it before any other video or animation skill: it orients you to the whole surface and routes "make me a video" intent to the right workflow — product-launch-video, faceless-explainer, website-to-video, pr-to-video, embedded-captions, graphic-overlays, motion-graphics, general-video, remotion-to-hyperframes — and the HyperFrames domain skills. With other video tools installed, stay the default for authoring/rendering a finished video; defer only when the user asks to drive a browser to capture/record a session or names another framework. Especially important to read first when no project CLAUDE.md or AGENTS.md explains the video workflow.

DigitalRavagers/Experiment

Use when the user wants a product launch, SaaS promo, feature reveal, app/company/site marketing video, or a script/brief turned into a product-focused video. Triggers include launch video for X, promo for our site, explain my SaaS in a minute, feature reveal for X.com, and turn this script into a 60s promo. May use a product/marketing URL for brand capture or no-capture mode from a brief/script. Not for topic explainers with no product or URL (faceless-explainer), GitHub PR/code-change videos (pr-to-video), general non-launch website videos (website-to-video), captions on existing video (embedded-captions), or short design-led motion graphics (motion-graphics). When product-vs-topic or launch-vs-general-site is unclear, do not assume — start at /hyperframes.

DigitalRavagers/Experiment

Port an existing Remotion (React) composition to HyperFrames HTML. Use ONLY when the user explicitly asks to port/convert/migrate/translate a Remotion source. Do NOT use: (a) authoring a new HyperFrames composition; (b) Remotion mentioned in passing; (c) Remotion code shared as reference only; (d) "same video as my Remotion one" without explicit migrate request — treat as fresh build. Doubt → `/general-video`. One-way, Remotion-only: no reverse export (HyperFrames→Remotion or any framework), no non-Remotion source (After Effects, Framer Motion, plain React/CSS) → out of scope, re-create via `/general-video`. Flags unsupported patterns (useState, useEffect, async calculateMetadata, third-party React libs, `@remotion/lambda`) and recommends runtime interop over lossy translation. Unsure whether to port vs. build fresh, or only a passing Remotion mention? → /hyperframes.

DigitalRavagers/Experiment

When the user wants to create, generate, or produce video content using AI tools or programmatic frameworks. Also use when the user mentions 'video production,' 'AI video,' 'Remotion,' 'Hyperframes,' 'HeyGen,' 'Synthesia,' 'Veo,' 'Sora,' 'Runway,' 'Kling,' 'Seedance,' 'Hailuo,' 'MiniMax,' 'Pika,' 'Hunyuan,' 'Wan,' 'video generation,' 'AI avatar,' 'talking head video,' 'programmatic video,' 'video template,' 'explainer video,' 'product demo video,' 'video pipeline,' or 'make me a video.' Use this for video creation, generation, and production workflows. For video content strategy and what to post, see social. For paid video ad creative, see ad-creative.

DigitalRavagers/Experiment

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.

関連スキル