Communitygithub.com

SamuelChien/mega-skills-collection

将任何视频转化为电影级滚动驱动着陆页——仿Apple风格的英雄区,滚动时逐帧播放视频。

mega-skills-collection 是什么?

此技能能够将用户提供的视频文件转化为一个完整的、自包含的滚动驱动着陆页面。其核心机制是从视频中提取均匀分布的帧,并在用户滚动页面时依次切换这些帧,模拟出电影般的逐帧滚动效果,类似 Apple 产品页面或 GitHub Copilot 着陆页。该技能支持任意来源的视频,通过 ffmpeg 自动提取帧,并基于预设模板生成包含粘性英雄区、标题、正文和行动号召按钮的完整 HTML 文件。默认采用 yuv-design-system 设计系统的排版(英文使用 Anton + Inter,希伯来语使用 Rubik + Assistant)和 Fly High 紫色系配色,输出为一个包含 `index.html` 和 `frames/` 文件夹的目录,可直接部署到任何静态托管平台。整个流程自动化程度高,包括帧数自动选取、HTML 构建、预览和部署指引,适合快速制作视觉冲击力强的产品演示页面。

兼容平台~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:
    • 将 __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 屏以遍历所有帧)。
  • 粘性英雄区 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 标题,正文使用 Inter 字体 18–22px,行动号召按钮为醒目的粉色矩形搭配 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".

相关技能