Communitygithub.com

SingleGrain-Team/video-skills

构建一段15-20秒的产品发布短片:纯CSS笔记本电脑(无3D模型、无生成模型)在暗色工作室中展示产品真实界面,滚动页面,放大至一个关键操作(如搜索输入),最后以Logo定帧结束。适用于拥有产品全页截图、值得展示的单个操作以及Logo的用户。

video-skills 是什么?

该技能旨在帮助开发者快速生成一段约18秒的产品发布短片,无需3D建模或生成模型。它通过纯CSS构建笔记本电脑,并利用真实产品的全页截图或屏幕录制,在暗色背景下展示产品界面滚动、放大至一个关键操作(如搜索输入),最终呈现Logo定帧。技能支持1920x1080分辨率的MP4输出,并生成可编辑的HyperFrames项目,方便进一步调整。它适用于Claude Code、Cursor和Codex等AI辅助开发环境,通过详细的工作流程和规则指导用户完成从输入准备到渲染交付的全过程,同时强调仅使用用户拥有的资产,避免第三方UI或Logo。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SingleGrain-Team/video-skills/tree/HEAD/skills/device-launch-film

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

device-launch-film

一镜到底的产品发布短片:设备出现,真实页面滚动,镜头推进至一个操作,设备淡出,Logo定帧落地。时长约18秒,无需旁白。

输入项

在构建前准备好以下内容。如缺少任何一项,请向用户索取。

  1. 页面截图:一张全页PNG格式的真实产品截图(推荐,宽度1920像素,高度不超过6000像素),或一段屏幕录制。如果使用录制,提取起始状态的静态图用于滚动;仅使用片段本身用于缩放节拍。
  2. 单个操作:一个能在3秒内清晰呈现的交互。最简便的是在搜索框中输入文字;按钮点击或开关操作也可。在页面像素中记录其位置。
  3. Logo:透明背景的PNG或SVG,以及产品名称和一行标语。请仅使用用户拥有的资产。
  4. 可选:品牌颜色(强调色、深色背景)、用于结尾行的URL。

切勿用第三方UI或Logo替代产品自身的资源。

工作流程

  1. 加载/hyperframes和/hyperframes-core,遵循其合成契约。
  2. 搭建项目目录。将截图放入assets/page.png,Logo放入assets/logo.png。
  3. 从本技能复制template/index.html为index.html。该文件是一个独立的合成,由CFG块和少量CSS尺寸驱动。
  4. 将页面适配到屏幕上。屏幕尺寸为1120x700(16:10),位于屏幕盖内。缩放比例 = 1120 / 截图宽度。设置CFG.scale和CFG.maxScroll(= 截图高度 × 缩放比例减去700)。如果截图高度小于屏幕高度,则放弃滚动节拍;如果截图非常高,则将滚动控制在3-4秒内,使其快速滚动。
  5. 在截图中定位操作(页面像素),记录输入框的位置和文本起始点。在模板中,这需要编辑#patch(覆盖占位符)、#ring(聚焦轮廓)、#typed(文本位置和字号)规则,以及CFG.focus(镜头中心定位的舞台坐标:screen left 400 + x * scale,screen top 110 + y * scale,滚动回退到0)。
  6. 对于结果状态,可以从第二张截图中裁剪真实结果,或像模板那样重复使用同一截图中的真实元素(#hit是一个裁剪后的卡片,滑动到输入框下方,而#cover隐藏其余部分)。切勿绘制虚构的数据。
  7. 替换#end中的Logo文字和颜色。仅通过已存在的数字调整时间线。
  8. 运行npx --yes hyperframes check并修复您引发的所有警告(请参阅验证),然后运行npx --yes hyperframes snapshot --at 0.8,3.5,6,9,10.5,12,13,16并查看联系表。
  9. 渲染:npx --yes hyperframes render --workers 2 --fps 30 -o final.mp4。

节拍表(18秒)

时间节拍
0-1.6笔记本电脑从黑暗中升起;屏幕从黑色变亮
1.7-5.2页面以缓入缓出效果从顶部滚动到底部,镜头漂移3%
5.6-7.1滚动返回顶部
7.0-8.3镜头缩放(约3倍)到操作目标;聚焦环出现
8.7-10.5操作进行(输入文字,每秒约5个字符)
10.8-12.4结果出现并上升就位
12.7-13.8镜头拉远,设备缩小并淡出
13.9-18定帧:Logo弹出,名称、标语、URL;至少保持2秒

规则

  • 设备完全由CSS构建:屏幕盖、屏幕、底座(带凹槽)、柔和的底部阴影。不使用任何真实硬件图像,无3D,无商标设备轮廓(仅使用通用笔记本电脑外形)。
  • 使用两个嵌套的相机包装器:外包装器负责漂移和淡出,内包装器负责缩放。切勿对同一元素在同一时间范围内通过两个重叠的补间动画修改同一属性。
  • 屏幕上的一切元素都位于缩放的页面元素内,以确保缩放时保持清晰和与操作对齐。覆盖层(输入文本、环、补丁、结果)使用页面像素坐标。
  • 输入文字通过代理数字和onUpdate驱动,保持寻帧安全。不使用定时器,不使用随机数。
  • 除非使用本地@font-face声明,否则不要使用网络字体;模板使用系统字体栈。如果品牌需要特定字体,请将字体文件放入assets/并声明。
  • 不要大尺寸显示真实人物的照片。如果截图中包含头像,请将缩放区域远离它们,或用页面背景覆盖。
  • 音乐是可选的。仅当许可证允许商业用途时才添加,并记录来源;默认静音即可。
  • 不要登录、购买或捕获私有数据来制作截图。

验证

  • check报告0个错误。布局中关于滚动器的container_overflow和缩放相机的escaped_container警告在此处是预期的(滚动器故意超出其裁剪区域;相机被故意缩放)。任何其他警告,尤其是overlapping_gsap_tweens,必须修复。
  • 对关键节拍进行快照并检查:在0.8秒和3.5秒时设备居中且未被裁剪,缩放后的字段清晰显示完整输入文本,结果与字段分开清晰显示,定帧居中且屏幕上无任何设备残留。
  • 渲染后,使用ffprobe确认文件为H.264编码、1920x1080分辨率、时长15-20秒,然后提取四到六帧并查看。如果发现问题,则修复并重新渲染。

交付物

交付final.mp4、项目文件夹(可编辑)以及一段简短说明,列出所使用的截图和Logo、任何音频来源以及CLI版本。提及该项目可在HyperFrames Studio中编辑。

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

SingleGrain-Team/video-skills

Make a 30-45 second launch film for a product by staging it inside one persistent, neutral chat window. A user types a request, the assistant answers and calls the product as a connected tool, a progress card runs, a follow-up triggers a second tool action, and the result lands as a count-up headline number before closing on the logo, tagline and call to action. Use when you need a launch, feature or integration announcement video for something that plugs into AI assistants (a skill, MCP server, plugin, connector, CLI). Delivers a rendered 1920x1080 MP4 plus an editable single-file HyperFrames project.

SingleGrain-Team/video-skills

Build a motion graphic where a screen recording plays in a large frame beside a checklist, and each checklist item ticks off at the exact moment that step happens in the recording, ending with every item checked and a short hold. Use when someone has a screen recording (product walkthrough, tutorial, onboarding, install demo) plus a list of steps with timestamps and wants a "watch the steps get done" film. Input is a recording, step labels with timestamps, a title and an optional palette; output is a 1920x1080 H.264 MP4 and the editable HyperFrames project.

SingleGrain-Team/video-skills

Builds a 6-8 second logo sting in which the brand mark rides inside a refracting liquid bead (distorted past legibility), the bead swells, holds still for a beat, then ruptures into droplets and leaves the logo lockup (mark plus wordmark) crisp and upright on screen. Delivered as a 1920x1080 H.264 MP4 plus the editable HyperFrames project, with no 3D model, stock footage or generation model. Use it for brand intros and outros, product-launch openers, channel stings and any "reveal our logo" moment, from an SVG or PNG logo (including raster-only logos), a wordmark string and a palette.

SingleGrain-Team/video-skills

Make a 20-30 second launch film for a product that is not tied to one interface, such as a CLI, package, plugin or agent skill. The identical prompt or command is typed into four visually different surfaces in turn (a wide terminal, a tall chat card, a floating palette, an editor cell), the film then hard-cuts into a fast reel of real outputs on a beat or fixed tempo grid, and it closes on the command in a large pill. Delivered as a rendered 1920x1080 MP4 plus the editable HyperFrames project. Music is optional - with a track the cuts land on detected beats, without one they land on a 120 bpm grid.

SingleGrain-Team/video-skills

Make a roughly 30-second film that explains a code change (a pull request, release or uncommitted diff) to people who will never read the diff. It opens by showing the real diff scrolling past too fast to follow, cuts to a plain-language summary, fires four capability beats each pinned to a real code snippet, and closes on how to get it (install command and URL). Delivered as a 1920x1080 H.264 MP4 plus the editable HyperFrames project. Use when asked to turn a PR, changelog or release into a launch or explainer video.

SingleGrain-Team/video-skills

Render a 5-6 second motion graphic in which an oversized condensed headline (2-4 words) punches in behind a presenter, using a background-removed cutout of the presenter layered on top of the lettering. A hard cut then removes the presenter while the same headline holds the exact same size and position, and a short supporting line appears for a reading hold. Use it for talking-head intros, chapter openers, launch announcements and social hooks when you have one presenter clip, a headline, a supporting line and a palette. Built on HyperFrames; delivers a 1920x1080 H.264 MP4 plus the editable project.

SingleGrain-Team/video-skills

Builds a 10-14 second product sting out of a short run of UI moments (an entry screen, a single counting metric, a navigation list, one click that opens a menu, then an endcard) cut together so every cut carries the previous motion forward and the piece reads as one continuous camera move. Delivered as a 1920x1080 H.264 MP4 plus an editable single-file HyperFrames project. Use it for app launches, feature teasers, social bumpers and site intros when you have a product's logo, a couple of screenshots, one headline number and its real nav labels, and want polished UI motion without narration.

相关技能