Communitygithub.com

SingleGrain-Team/video-skills

建立一支約18秒的產品發布短片:以純CSS打造的筆電展示真實產品畫面,包含滾動、縮放與商標鎖定,輸出1920x1080 MP4及可編輯的HyperFrames專案。

video-skills 是什麼?

此技能專為需要快速製作高品質產品發布預告片的開發者或產品團隊設計。它能自動化生成一段約18秒的單鏡頭短片,呈現真實產品頁面在純CSS筆電螢幕上的滾動與縮放效果。技能支援主要AI代理平台(Claude Code、Cursor、Codex),透過HyperFrames框架(/hyperframes, /hyperframes-core)建立可編輯的專案結構,並輸出標準H.264 MP4格式。使用者只需提供全頁截圖(1920x6000像素以下)、一個關鍵互動(如搜尋輸入)的螢幕座標、透明背景的Logo與產品標語。技能會自動調整捲動時間、縮放焦距,並生成最終影片。其獨特優勢在於完全使用CSS與GSAP動畫,無需3D模型或生成式AI,確保畫面與真實產品完全一致;並透過嚴格的驗證流程(npx hyperframes check與多時間點快照)保證輸出品質。

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

在你喜歡的 AI 中提問

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

說明文件

裝置發表影片

單鏡頭發表影片:裝置出現、真實頁面滾動、鏡頭推近至一個互動動作、裝置淡出、商標鎖定畫面。約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 中的鎖定文字與顏色。僅透過其中已存在的數字調整時間軸。
  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鎖定畫面:標誌淡入、名稱、標語、網址;至少停留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秒,然後提取4至6幀檢視。如有任何問題,修正後重新渲染。

交付

交付 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.

相關技能