Communitygithub.com

hoodini/ai-agents-skills

將任何影片轉換為電影級的捲動驅動登陸頁面——類似 Apple 風格的捲動英雄區,透過捲動控制影格播放。

ai-agents-skills 是什麼?

此技能旨在將使用者提供的影片轉換為一個自包含的、可部署的 HTML 登陸頁面。其核心機制是「捲動驅動影片播放」,也就是當使用者上下滾動頁面時,英雄區域會根據滾動位置,切換顯示從原始影片中提取的一系列靜止影格,達到類似 Apple 產品頁面或 GitHub Copilot 登陸頁的電影級效果。技能會使用 ffmpeg 和一個 Python 腳本(`extract-frames.py`)從影片中均勻提取大量影格,並將它們與一個預先設計好的 HTML 模板(`landing-template.html`)結合,自動生成包含黏性英雄區、標題、說明文字、行動呼籲按鈕以及內容區塊的完整頁面。輸出為一個包含 `index.html` 和 `frames/` 資料夾的靜態網站,可直接部署到 Vercel、Netlify 或 Cloudflare Pages 等平台上。對於 YUV.AI 品牌專案,技能會自動套用指定的霓虹(Neon)設計系統(粉紅/青/白色);對於其他專案,則會根據影片氛圍自動選取合適的調色盤,確保視覺效果與內容相符。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hoodini/ai-agents-skills/tree/HEAD/skills/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:
    • 將 __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 字型,正文使用 Inter 字型,大小 18–22px,行動呼籲按鈕設計為銳利藥丸形狀(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 9 individual skills — each has its own dedicated page.

hoodini/ai-agents-skills

Edit any selfie or screen-share footage into a viral short-form video in YUV.AI's signature style — Apple-style liquid-glass cards (real CSS backdrop-filter), dark-mode polish, MrBeast-paced cuts, video-title karaoke captions, premium GSAP motion graphics, no fake content, never covering the speaker's face. Hebrew is rendered in Rubik Black, English in Anton uppercase. Always renders BOTH 9:16 and 16:9 and always saves with _V<N> suffix for backups. Trigger when the user drops a path to an .mp4/.mov/.mkv and says "edit this", "make it viral", "turn this into a short", or any Hebrew equivalent (ערוך סרטון, סרטון ויראלי, להפוך לוויראלי, ריל, שורט). The pipeline is the COMBINATION of two skills: video-use (transcription + word-snapped cuts + base extraction) and hyperframes (HTML/CSS/GSAP visual composition + render). Do NOT use for podcast-only audio edits.

hoodini/ai-agents-skills

Yuval Avidani's YUV.AI brand and design system. Apply ONLY when YUV.AI-branded output is requested — presentations, decks, keynotes, portfolio, brand site, profile, speaker bio, brand assets, or any prompt mentioning YUV.AI / "my brand" / "my deck" / "my site" / "for me". Do NOT auto-trigger on generic "build a game / web app / dashboard / landing page" without YUV.AI context — those use whatever palette fits. Three modes; NEON (hot pink #FF1464 + neon cyan #00E5FF + white, DEFAULT for YUV.AI web, apps, games, dashboards, social, general visual work); DECKS (Fly High purple/yellow/grey, presentations and slides ONLY); Warm Editorial (pink/yellow/bone for Hope, Marcus, bigcats.ai, practical.yuv.ai). Universal Fly High throughline across all modes; flight/progress motifs (HUD strips, dials, "Let's Fly High" tagline, phoenix mark). Anton + Inter (EN), Rubik + Assistant (HE), letter-spacing 0 default. Bundled brand assets, canonical socials, credentials. Project brand wins if specified.

hoodini/ai-agents-skills

Yuval's all-in-one AI video pipeline. Turns an idea/script into a finished, on-brand MP4 by orchestrating HyperFrames (HTML→deterministic video render), Lottie (branded motion graphics), ManimCE (math / neural-network / concept animations), and a transcribe→approve caption flow — all wrapped in the YUV.AI Neon Phoenix brand via a frame.md. Use whenever Yuval wants to make, edit, or explain something as a video: promo, explainer, launch, social reel, "make a video about X", "explain X as a video", "neural network animation", "turn this into a video", captioned tutorial, 16:9 or 9:16. Triggers: video, explainer, promo, reel, manim, lottie, hyperframes, animation, "make a video", "explain ... as a video", מצגת וידאו, סרטון, הסבר וידאו. Routes each beat to the right engine, wraps in brand, self-verifies, and renders.

hoodini/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 ...

hoodini/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.

hoodini/ai-agents-skills

Edit any video into a captioned showcase — transcribe (any language, defaults to large-v3), present a transcript_review.txt for the user to fix mishears BEFORE rendering, then build a HyperFrames composition with liquid-glass caption pills, liquid blob background, liquid morph wipes, optional behind-subject text via background removal, and render the final video. Use whenever the user provides a video file and asks to edit it, caption it, add subtitles, fix existing captions, make a reel/promo/captioned tutorial, or "do the same" pattern as a prior captioned video. Supports English, Hebrew, and any Whisper-supported language. **Renders both 16:9 (YouTube / horizontal) and 9:16 (TikTok / Instagram Reels / YouTube Shorts) from the SAME 16:9 source** — vertical mode uses a centered footage strip with a blurred backdrop + liquid blobs and a vertical-tuned caption pill, no need to re-shoot. THE PIPELINE PAUSES FOR USER APPROVAL on the transcript before final render — this is the support mechanism for getting ca...

hoodini/github-trending

Fetch and display GitHub trending repositories and developers. Use when building dashboards showing trending repos, discovering popular projects, or tracking GitHub trends. Triggers on GitHub trending, trending repos, popular repositories, GitHub discover.

hoodini/mongodb

Work with MongoDB databases using best practices. Use when designing schemas, writing queries, building aggregation pipelines, or optimizing performance. Triggers on MongoDB, Mongoose, NoSQL, aggregation pipeline, document database, MongoDB Atlas.

hoodini/owasp-security

Implement secure coding practices following OWASP Top 10. Use when preventing security vulnerabilities, implementing authentication, securing APIs, or conducting security reviews. Triggers on OWASP, security, XSS, SQL injection, CSRF, authentication security, secure coding, vulnerability.

相關技能