Communitygithub.com

Karthic1981/hoodini-ai-agents-skills.gitni-ai-agents-skills

將任何影片轉換為電影級捲動式登陸頁面 — 類似 Apple 風格的英雄區塊,隨著捲動逐步切換影片影格。

hoodini-ai-agents-skills.gitni-ai-agents-skills 是什麼?

這個技能(Skill)能夠將使用者提供的影片檔案,自動生成一個自成一體的 HTML 登陸頁面。其核心機制是透過 `ffmpeg` 從影片中均勻擷取多張影格,並在頁面中建立一個固定位置的英雄區塊。當使用者向下捲動時,JavaScript 的捲動監聽器會根據捲動進度,動態切換顯示對應的影格,營造出如同 Apple 產品頁面或 GitHub Copilot 登陸頁面般流暢的「捲動播放」效果。這個技能主要支援 Cursor 和 Claude Code 等平台。技能會自動判斷專案是否屬於 YUV.AI 品牌體系:若是,則套用「霓虹模式」(粉色/青色/白色)設計系統;若非 YUV.AI 專案,則會根據影片的視覺氛圍自動選取合適的色板。最終輸出為一個包含 `index.html` 和 `frames/` 目錄的資料夾,可直接部署在任何靜態主機上。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Karthic1981/hoodini-ai-agents-skills.gitni-ai-agents-skills/tree/HEAD/skills/video-to-landing-page

在你喜歡的 AI 中提問

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

說明文件

影片 → 捲動式登陸頁面

建立一個電影風格的登陸頁面,其中的英雄區塊會根據捲動而非時間來播放影片 — 類似 Apple 產品頁面或 GitHub Copilot 登陸頁面。系統會從來源影片中擷取影格,並在使用者捲動時切換顯示;在固定的英雄區塊下方,一般捲動區塊則放置文案與行動呼籲按鈕。

何時使用

  • 使用者上傳影片,並要求製作登陸頁面、捲動式網站、捲動影格英雄區塊或從影片製作網站
  • 提及「Apple 風格捲動」、「GitHub Copilot 登陸頁面」、「scrub-on-scroll」、「frame on scroll」等關鍵字
  • 希伯來語對應關鍵字:「דף נחיתה מסרטון」、「אתר עם גלילה」、「סרטון בגלילה」

儲存位置

預設位置: ~/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:
    • 將 __FRAMES__ 佔位符替換為每個影格的 <img> 標籤(建置腳本可透過 --build-html 參數自動完成)。
    • 填入 __HEADLINE__、__TAGLINE__、__CTA_TEXT__、__CTA_HREF__、各區塊內容。
    • 若為希伯來語內容:設定 <html lang="he" dir="rtl">,並將字型切換為 Rubik/Assistant(請參閱 references/design-notes.md)。
  6. 最佳化影格 — 建置腳本已將圖片縮放至最大寬度 1920 像素。若頁面總體積超過 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.AI 品牌(Yuval 個人、其作品集、其品牌):呼叫 yuv-design-system 並根據媒介鎖定模式 —
    • 霓虹模式(YUV.AI 網頁的預設模式):亮粉色(#FF1464)+ 螢光青色(#00E5FF)+ 白色或深黑色背景。字型使用 Anton + Inter(英文)/ Rubik + Assistant(希伯來文)。圓角半徑為 0px 或 999px。
    • 溫暖編輯模式:僅限於 Hope、Marcus、bigcats.ai、practical.yuv.ai — 使用粉色 + 黃色 + 骨色,非純白背景(不使用 #fff)。
    • 切勿對登陸頁面使用 Decks 模式(Fly High 紫色/黃色) — 該色板僅保留給投影片使用。
  • 如果專案非 YUV.AI 品牌:不套用 yuv-design-system。請根據來源影片的視覺氛圍選取合適的色板。Anton + Inter 仍然是合理的預設字型,但非強制。
  • 英雄區塊的覆蓋層應低調 — 使用暗角效果與一個大字標題;不要淹沒影格。
  • 英雄區塊下方的區塊:淺色背景(霓虹模式為白色,溫暖編輯模式為米白,一般溫暖風格則為骨色)、大號 Anton 標題、18–22px 的 Inter 正文字體、尖銳藥丸形狀的行動呼籲按鈕(border-radius: 999px)— 霓虹模式中為粉色填充,其他情況下使用品牌合適的顏色。
  • 希伯來語內容:尊重 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 2 individual skills — each has its own dedicated page.

Karthic1981/hoodini-ai-agents-skills.gitni-ai-agents-skills

Build a premium cinematic landing page with mouse-scrub video hero and brand-driven narrative-arc sections. Use whenever the user provides a hero video plus a product / subject / brand and wants a landing page, promo site, product showcase, marketing page, or storytelling site. Works for any language (RTL or LTR — Hebrew, English, Arabic, Spanish, French, Japanese, etc.) and any subject (food, tech, animals, fashion, services, SaaS, wildlife campaigns, music releases, books, real estate). The signature effect is mouse-driven video scrubbing — the hero video lives across the entire page as a fixed backdrop, and moving the mouse left-right scrubs the video timeline so the subject responds to the cursor. Below the hero, 4-5 fully-opaque sections each carry their own brand identity (color, typography emphasis, layout pattern) and walk the viewer through a narrative arc (e.g. longing → joy → nostalgia → contemplation → action). Triggers on phrases like "build a landing page from this video", "cinematic landing ...

Karthic1981/hoodini-ai-agents-skills.gitni-ai-agents-skills

Build a scroll-driven cinematic landing page from a short video. The user provides a 5–15 second video (often AI-generated); this skill extracts every frame at HD JPEG quality, then produces a single-hero HTML page where the user's scroll gesture scrubs the frames in place (the page itself never scrolls) and 5 dramatic text overlays crossfade in/out — Google Anton headlines, Caveat handwritten accents, locked body, virtual scroll. Use this skill whenever the user wants to "turn this video into a landing page", "make a scroll-scrub landing page", "build a parallax hero from this clip", "add a new landing page to the parasites showcase", "do the same as github/lion/hope for this new video", or any variant that pairs a short clip with dramatic scroll-triggered storytelling. Trigger even if the user only says "use my video for a landing page" — that is this skill.

相關技能