Communitygithub.com

SamuelChien/mega-skills-collection

任意の動画から、Apple製品ページのようにスクロールで映像が進むシネマティックなランディングページを生成します。

mega-skills-collection とは?

このスキルは、ユーザーが提供した動画ファイルから、スクロールに応じてフレームが切り替わるインタラクティブなランディングページを自動生成します。Apple製品のページやGitHub Copilotのランディングページのように、動画を時間軸ではなくスクロール位置で再生する「スクラブオンスクロール」体験を提供します。内部ではffmpegを使用して動画からフレームを抽出し、HTML/CSS/JavaScriptの自己完結型ページを構築します。対応プラットフォームは静的ホスティングサービス全般(Vercel, Netlify, Cloudflare Pagesなど)で、ビルドステップは不要です。また、yuv-design-systemスキルのタイポグラフィ(英語:Anton + Inter、ヘブライ語:Rubik + Assistant)とFly Highパープルカラーパレットをデフォルトで適用し、ヘブライ語コンテンツの場合はRTLレイアウトにも対応します。出力は`index.html`と`frames/`ディレクトリを含む単一のフォルダで、ユーザーはそれをそのままホスティングサービスにアップロードできます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SamuelChien/mega-skills-collection/tree/HEAD/video-to-landing-page

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

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

ドキュメント

動画 → スクロール駆動ランディングページ

ヒーローセクションが時間ではなくスクロールで再生される動画となる、Apple製品ページやGitHub Copilotランディングのようなシネマティックなランディングページを構築します。ソース動画からフレームが抽出され、ユーザーのスクロールに応じて切り替わります。スティッキーなヒーローの下には、通常のスクロールでコピーとCTAが表示されるセクションが続きます。

いつ呼び出すか

  • ユーザーが動画をドロップし、ランディングページ、スクロールサイト、スクロールフレームヒーロー、動画からのウェブサイトを依頼した場合
  • 「Appleスタイルのスクロール」「GitHub Copilotランディング」「スクラブオンスクロール」「フレームオンスクロール」といった言及があった場合
  • ヘブライ語での同等表現: "דף נחיתה מסרטון", "אתר עם גלילה", "סרטון בגלילה"

保存場所

デフォルト: ~/Documents/yuv-projects/landings/<slug>/ — 後で見つけられるよう、ランディングページは常にここに保存します。親ディレクトリが存在しない場合は作成します。

mkdir -p ~/Documents/yuv-projects/landings
cd ~/Documents/yuv-projects/landings
# ここに <slug>/ を構築します。

最終パス: ~/Documents/yuv-projects/landings/<slug>/。ビルドの最後に、ランディングページがどこにあるかをユーザーに伝えます。


ワークフロー(8ステップ)

  1. ソースを調査 — ffprobe で再生時間、fps、解像度、音声を取得。
  2. フレーム数を決定 — デフォルトは 80。下限は 40(これ以下だとカクカク)、上限は 160(ページが重くなる)。再生時間で選択: ≤10秒 → 50、10–30秒 → 80、30–60秒 → 120、>60秒 → 160。
  3. 出力ディレクトリを決定 — デフォルトは ~/Documents/yuv-projects/landings/<slug>/。<slug> は短く、動画ファイル名またはトピックから派生させます。明示的な要求があった場合のみ上書きします。
  4. フレームを抽出 — references/extract-frames.py <source-video> <output-dir> [count] を実行。output-dir/frames/f_0001.jpg を出力。品質はJPG 82、最大幅1920px(ソースがより大きい場合はダウンスケール)。
  5. コピーしてカスタマイズ references/landing-template.html を output-dir/index.html にコピー:
    • __FRAMES__ プレースホルダーを各フレームの <img> タグで置き換えます(ビルドスクリプトが --build-html を渡すと自動で行います)。
    • __HEADLINE__、__TAGLINE__、__CTA_TEXT__、__CTA_HREF__、セクションを埋めます。
    • ヘブライ語コンテンツの場合: <html lang="he" dir="rtl"> を設定し、フォントを Rubik/Assistant に変更します(references/design-notes.md を参照)。
  6. フレームを最適化 — ビルドスクリプトは既に最大幅1920pxにスケーリングしています。ページ全体のサイズが12MBを超える場合は、品質を75に下げるかフレーム数を減らします。
  7. プレビュー — 出力ディレクトリ内で python -m http.server を実行し、http://localhost:8000 を開きます。スクロール感は適切なマシンで滑らかです。
  8. デプロイ — フォルダを Vercel/Netlify/Cloudflare Pages にドロップします。ビルドステップは不要です。

スクロールメカニズム

  • 外側のスクローラー .scroll-stage の高さはビューポート単位で設定(デフォルト 600vh = 全フレームを走査するのに5画面分スクロール)。
  • スティッキーヒーロー position: sticky; top: 0; height: 100vh には全てのフレームが絶対配置で含まれ、アクティブなフレーム以外は非表示。
  • スクロールリスナーで progress = scrolledIntoStage / scrollableHeight を計算し、0〜1にクランプ。
  • idx = floor(progress * (N - 1)) — そのフレームに .active クラスを切り替え。
  • リスナーを requestAnimationFrame でラップし、60fpsを維持。

デザインルール

  • 指定があればプロジェクトのデザインシステムを使用し、そうでなければ yuv-design-system スキルをデフォルトとして使用: Anton + Inter(英語)/ Rubik + Assistant(ヘブライ語)、Fly Highパープル(#5E17EB)+ イエロー(#FFEC00)+ グレー(#F1F2F2)のパレット、オフホワイト(純粋な #fff は不可)、0px または 999px の角丸(8–12pxの角は不可)。Warm Editorial(ピンク+イエロー+ボーン)は Hope/bigcats ブランドファミリー専用です。
  • ヒーローのオーバーレイは控えめに — ビネットと一つの大きな見出しのみ。フレームを埋め尽くさないこと。
  • ヒーロー下のセクション: ボーンの背景、大きな Anton 見出し、18–22px の Inter 本文、シャープなピンクの長方形に Anton テキストのCTA。
  • ヘブライ語の場合: RTLを尊重し、見出しには Rubik 900、本文には Assistant 400/500 を使用。

ファイル参照

ファイル目的
references/extract-frames.pyffmpegベースのフレーム抽出ツール。オプションで一度に完全なHTMLをビルドする
references/landing-template.htmlスクロールメカニズムを備えた自己完結型ランディングページのスケルトン
references/design-notes.mdタイポグラフィ、パレット、モーションのデフォルト

Individual skills in this repo

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

SamuelChien/mega-skills-collection

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

SamuelChien/mega-skills-collection

Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.

SamuelChien/mega-skills-collection

Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.

SamuelChien/mega-skills-collection

Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.

SamuelChien/mega-skills-collection

2D game development principles. Sprites, tilemaps, physics, camera.

SamuelChien/mega-skills-collection

3D game development principles. Rendering, shaders, physics, cameras.

SamuelChien/mega-skills-collection

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

SamuelChien/mega-skills-collection

Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases. Use when auditing accessibility, fixing a11y violations, checking color contrast, generating compliance reports, or integrating accessibility checks into CI/CD pipelines.

SamuelChien/mega-skills-collection

Ab Test Analyzer - Auto-activating skill for Data Analytics. Triggers on: ab test analyzer, ab test analyzer Part of the Data Analytics skill category.

SamuelChien/mega-skills-collection

A B Test Config Creator - Auto-activating skill for ML Deployment. Triggers on: a b test config creator, a b test config creator Part of the ML Deployment skill category.

SamuelChien/mega-skills-collection

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.

SamuelChien/mega-skills-collection

Acceptance Criteria Creator - Auto-activating skill for Enterprise Workflows. Triggers on: acceptance criteria creator, acceptance criteria creator Part of the Enterprise Workflows skill category.

SamuelChien/mega-skills-collection

Use when a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention.

SamuelChien/mega-skills-collection

Accessibility Audit Runner - Auto-activating skill for Frontend Development. Triggers on: accessibility audit runner, accessibility audit runner Part of the Frontend Development skill category.

SamuelChien/mega-skills-collection

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

SamuelChien/mega-skills-collection

Web accessibility patterns for WCAG 2.2 compliance including ARIA, keyboard navigation, screen readers, and testing

SamuelChien/mega-skills-collection

Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.

SamuelChien/mega-skills-collection

Create unified specification packages across Business, Development, and Design teams. Staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria) to build shared understanding. Does not write code.

SamuelChien/mega-skills-collection

Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM. Trigger with "research [company]", "look up [person]", "intel on [prospect]", "who is [name] at [company]", or "tell me about [company]".

SamuelChien/mega-skills-collection

Validate messaging consistency across website, GitHub repos, and local documentation generating read-only discrepancy reports. Use when checking content alignment or finding mixed messaging. Trigger with phrases like "check consistency", "validate documentation", or "audit messaging".

関連スキル