Communitygithub.com

SamuelChien/mega-skills-collection

將任何影片轉換為電影般的滾動式登陸頁面 — Apple 風格的英雄區域,滾動即播放影片幀。

mega-skills-collection 是什麼?

此技能可將使用者提供的影片轉化為一段沉浸式的滾動驅動登陸頁面。其核心機制是從原始影片中均勻提取多張靜態幀(預設 80 張),並將這些幀嵌入至一個獨立的 HTML 頁面中。頁面的英雄區域採用 `position: sticky; top: 0` 的黏性定位技術,並透過 JavaScript 滾動監聽器與 `requestAnimationFrame` 計算使用者的滾動進度,即時將對應的影片幀切換為可見狀態,營造出「滾動即播放」的流暢視覺效果。此技能特別適用於需要展現 Apple 產品頁面或 GitHub Copilot 登陸頁風格的場景,能將影片敘事與網頁瀏覽行為巧妙結合。此技能支援英文與希伯來文內容,預設整合了 yuv-design-system 設計系統,使用 Anton + Inter 字體(英文)與紫黃灰配色。輸出為一個包含 `index.html` 與 `frames/` 資料夾的獨立資料夾,可直接部署至 Vercel、Netlify 或 Cloudflare Pages 等靜態主機。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

影片 → 滾動驅動登陸頁面

建立一段電影般的登陸頁面,其英雄區域根據滾動來播放影片,而非時間軸 — 類似 Apple 產品頁面或 GitHub Copilot 登陸頁。從原始影片中提取幀,並在使用者滾動時進行切換;在黏性英雄區域下方,一般滾動區塊承載文案與行動呼籲按鈕。

何時使用

  • 使用者提供影片,並要求製作登陸頁面、滾動式網站、滾動幀英雄區域或從影片生成網站
  • 提及「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 取得影片長度、幀率、尺寸、音訊。
  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,最大寬度為 1920(若來源較大則縮小)。
  5. 複製並自訂 references/landing-template.html 至 output-dir/index.html:
    • 以每張幀的 <img> 標籤取代 __FRAMES__ 佔位符(當你傳入 --build-html 時,建置腳本會自動完成此操作)。
    • 填入 __HEADLINE__、__TAGLINE__、__CTA_TEXT__、__CTA_HREF__ 及各區塊內容。
    • 對於希伯來文內容:設定 <html lang="he" dir="rtl">,並將字體切換為 Rubik/Assistant(請參閱 references/design-notes.md)。
  6. 最佳化幀 — 建置腳本已將最大寬度縮放至 1920px。若頁面總大小超過 12 MB,請將品質降至 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)。暖色編輯風格(粉紅+黃+骨色)僅保留給 Hope/bigcats 品牌系列使用。
  • 英雄區域疊加層應柔和 — 一個暗角效果加上一個大字標題即可;不要淹沒畫面。
  • 英雄區域下方的區塊:骨色背景、大型 Anton 標題、18–22px 的 Inter 內文、以尖銳粉紅矩形搭配 Anton 文字的行動呼籲按鈕。
  • 對於希伯來文:遵循 RTL 方向,標題使用 Rubik 900,內文使用 Assistant 400/500。

檔案參考

檔案用途
references/extract-frames.py基於 ffmpeg 的幀提取工具;可選擇一次性建置完整的 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".

相關技能