Communitygithub.com

hoodini/ai-agents-skills

将任意视频转换为电影级滚动驱动型着陆页——类似Apple风格的页面,滚动时逐帧播放视频。

ai-agents-skills 是什么?

这是一个构建电影级滚动驱动型着陆页的AI助手技能。它能将用户提供的视频文件通过ffmpeg提取均匀分布的帧(默认80帧,范围40-160帧),并生成一个自包含的HTML页面。页面采用粘性Hero区域,结合JavaScript滚动监听器,在用户滚动时切换显示对应帧,实现类似Apple产品页或GitHub Copilot着陆页的酷炫效果。Hero下方包含标题、文案和CTA按钮。对于YUV.AI品牌项目,会自动应用Neon模式(粉/青/白配色)的设计系统;对于非品牌项目,则根据视频情绪选择合适的调色板。输出为一个包含index.html和frames/目录的文件夹,可部署到任何静态托管平台。支持的平台包括Claude Code、Cursor、Codex等AI代理工具。

兼容平台~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 的新对话。

文档

视频 → 滚动驱动型着陆页

构建一个电影感的着陆页,其Hero区域是随滚动播放而非按时间播放的视频——就像Apple产品页面或GitHub Copilot着陆页。从源视频中提取帧,当用户滚动时切换显示;在粘性Hero下方,正常滚动的区块承载文案和CTA按钮。

何时调用

  • 用户提供视频并要求制作着陆页、滚动网站、滚动帧Hero或来自视频的网站
  • 提及“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. 优化帧 —— 构建脚本已自动缩放至1920px最大宽度。若页面总大小超过12 MB,则将质量降至75或减少帧数。
  7. 预览 —— 在输出目录内运行 python -m http.server,打开 http://localhost:8000。在中端机器上滚动体验应流畅顺滑。
  8. 部署 —— 将文件夹拖放至 Vercel/Netlify/Cloudflare Pages。无需构建步骤。

滚动机制

  • 外部滚动容器 .scroll-stage 高度以视口单位设置(默认 600vh = 滚动5屏遍历所有帧)。
  • 粘性Hero 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 并按媒介锁定模式:
    • Neon模式(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 作为合理默认值但非强制。
  • Hero覆盖层应微妙——使用渐晕效果和单个大标题;不要淹没帧画面。
  • Hero下方区块:浅色画布(Neon模式下白色,温暖编辑模式下米白色,通用温暖风格则用骨色),大号 Anton 标题,正文使用 Inter 字体18–22px,CTA采用尖锐药丸形状(border-radius: 999px)——Neon模式下粉色填充,其他情况使用品牌色。
  • 对于希伯来语:遵循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.

相关技能