Communitygithub.com

Hatch Cosmos 風格影片製作

根據 Hatch Cosmos 風格卡,製作一支手繪鉛筆網格宇宙影片:包含方塊吉祥物、眼神互動、以及透過眼睛潛入星雲的招牌運鏡。

Hatch Cosmos 風格影片製作 是什麼?

此技能用於根據指定的「Hatch Cosmos」風格卡,自動化構建一支具有手繪鉛筆網格宇宙風格的動態影片。它涵蓋了從初始配置、色彩主題套用、場景建構、吉祥物動畫、招牌「眼睛潛入」運鏡,到最終品質審核的完整流程。支援 9:16 和 16:9 兩種畫面比例。 此技能主要透過 `node tools/vid.mjs` 命令列工具與專案中的 `HATCH.kit` 進行互動,透過 GSAP 進行時間軸控制。它嚴格要求遵循品牌色彩角色、特定形狀建構順序(blob, planet, stars, galaxy 等),並強制執行一系列品質檢查(lint, snapshot, render, judge),透過與參考幀的逐像素比對,確保輸出的一致性與高品質。 主要應用於音樂導向的展示片、概念介紹、品牌宣傳片等,不適用於對話場景、螢幕錄影或資料密集型解說影片。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bassam1998new-ops/hyperframes-students/tree/HEAD/.claude/skills/style-hatch-cosmos

在你喜歡的 AI 中提問

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

說明文件

風格:Hatch Cosmos

一個溫暖的手繪宇宙:以短斜線鉛筆網格覆蓋平面填充、墨水輪廓線,一個會表演的方塊吉祥物,以及一個招牌運鏡——鏡頭潛入吉祥物的眼睛,眼睛變成手機形狀的窗口,然後進入下一個場景。 卡片:video-projects/_library/styles/hatch-cosmos/style.md(狀態為 草稿 — 在負責人於看板上批准前,請告知他此狀態)。

先查看外觀(在風格資料夾中):frames/01-pair-happy-eyes.png · frames/02-eye-window-dive.png · frames/03-deep-galaxy.png · frames/04-paper-walk.png。參考(僅供外觀參考):refs/ref-contact-sheet.jpg(不在公開儲存庫中),refs/ref-dive-30fps.jpg(不在公開儲存庫中)。顏色遵循品牌:tests/2026-10-02-themes-and-looks.jpg(不在公開儲存庫中)。

0. 先套用卡片

node tools/vid.mjs style apply hatch-cosmos <project> [--mode calm|punchy]
node tools/vid.mjs style show hatch-cosmos

然後閱讀套件 README:video-projects/_library/assets/kits/hatch/README.md。不要手動繪製套件已提供的內容。

1. 顏色 = 角色(品牌色填入十六進位碼)

風格即品質與動感。除非品牌明確要求,否則切勿使用參考的橘色/太空色。 HATCH.kit({ theme: "<name>" | { …tokens } }):

Token角色源自品牌
canvas / halo空間、星系光暈畫布 / 表面
ink輪廓線、眼睛、深色鉛筆文字-強(最深色)
paper / light紙張、淺色鉛筆線條淺色畫布 / 接近白色
hero / buddy兩個吉祥物本體主要 / 表面或次要
a1..a6環、點、行星、光線 — a2 用於製作大質量物體品牌強調色;a2 應為一個沉穩的顏色,絕非「標點符號」色
clouds星雲填充保留不用 → 衍生(絕不手動設定)
已儲存:cosmos(僅供參考與測試)、midnight。吉祥物的網格、光影、發光效果由其本體顏色衍生。

2. 建置它

  • 從示範區塊開始(複製 hatch.js、GSAP 和咻音效):
    node tools/vid.mjs use hatch-cosmos-9x16 <project>    # _library/compositions/portrait/hatch-cosmos-9x16.html (6 秒)
    node tools/vid.mjs use hatch-cosmos-16x9 <project>    # _library/compositions/hatch-cosmos-16x9.html (6 秒)
    
    將列印出的 <div … data-composition-src=…> 與 data-variable-values='{"theme":"<brand>","look":"space|paper"}' 連接。vid use 會保留現有檔案 — 套件更新後,請再次複製 hatch.js。示範渲染輸出:styles/hatch-cosmos/tests/demo-9x16-20261002.mp4、demo-16x9-20261002.mp4。
  • 使用套件建立新場景(每個合成一個 <canvas class="clip" data-layout-allow-overflow>):
    1. var K = HATCH.kit({ w, h, seed, theme }) — 然後一次建立所有形狀,並按照固定順序(隨機數產生器按建構順序消耗):K.blob、K.planet、K.stars、K.galaxy()、K.travel({ ys, xs, look })、K.mascot(...)、K.speed()。
    2. 一個 GSAP 代理補間 {t:0→DUR} 搭配 onUpdate → draw(t);內聯在 HTML 中註冊 window.__timelines[id](linter 必須能看見它)。
    3. draw(t) 延遲查詢 canvas(打包工具可能提升腳本),僅從 t 繪製,最後以 K.lift(ctx, 3) 結束。
    4. 蒙太奇場景 = 在同一套件零件(blob、環、行星、閃光、K.wobble 輪廓線)上使用新的 draw 函數;透過硬切或潛入運鏡來切換它們。
  • 吉祥物骨架: var m = K.mascot({ role: "hero", radius: 7, mark(c, BW, BH) });K.drawMascot(c, m, x, y, scale, state) 搭配 state = { walk: t, walkAmt, legWiggle, look -1..1, eyes: "open"|"happy"|"blink", wave, waveSide, zoom: camScale, glowAmt }。在小時間窗中表演(HATCH.win、HATCH.sstep):看向同伴 → ^ ^(~0.6 秒)→ 眨眼 → 揮手。在紙面上 glowAmt: 0。僅當品牌要求時才在吉祥物上放置標誌。
  • 潛入運鏡: var D = K.dive({ z0, z1, smax: 160, eyeScale, centre, target: t => K.eyePoint(x, y, scale, -1), inner: { start, end, zEnd, fitK, roll: -0.9 } }),然後每影格 D.frame(ctx, t, drawOuter, drawInner, K.speed(), grain)。預設值與參考匹配:在 z0 前 0.45 秒穩定腳步,推進約 0.85 秒,窗口覆蓋約 0.8 秒內部,內部場景在 end 時穩定下來。咻音效 sfx/el/whoosh-tonal.mp3 在 z0 − 0.15 時播放。
  • 佈局 9:16(1080×1920): 一對吉祥物居中於安全區(510, 860),縮放比例 1.2,相距 410 px;centre: [510, 860] 使眼睛和星系核心落在 x 60–960、y 220–1500 範圍內;travel ys 1.6, xs 0.6。底部 20% 僅為背景。
  • 佈局 16:9: 一對吉祥物在 (CX ∓ 270, CY + 10),縮放比例 1.35;星系 zEnd 1.35。
  • 節奏: 平靜開場 4–6 秒,潛入 1.2 秒,蒙太奇每 1–2 秒,一次 3–5 秒的停頓,最後縮放回到吉祥物以結束(卡片 JSON 包含動態標記)。
  • 聲音: 音樂主導 — 從 _library 音樂 / bgm 目錄選用輕快、俏皮的背景音樂(絕不自行生成音樂);每次潛入都使用咻音效;若有旁白,音量為 −14 LUFS。

3. 審查循環(負責人要求「完全相同的品質」)

  1. 在專案內執行 npx hyperframes lint + npx hyperframes check — 零錯誤。
  2. 執行 npx hyperframes snapshot --at <walk, mid-dive, window, settled> — 讀取每個影格。
  3. 執行 npx hyperframes render --quality draft → node tools/vid.mjs judge <mp4> → 讀取 sheet.jpg 和 safe-sheet.jpg;檢查是否有 flat 影格(若快照繪製正常,則重新渲染,不要修改程式碼)。
  4. 與參考比較:匹配的全尺寸對(行走、潛入中、星系)+ 100% 裁切(blob 上的網格、環與行星、閃光、輪廓線、吉祥物)+ 潛入過程的 10 fps 片段。使用 ffmpeg(區域中位數)取色,不要用肉眼判斷。
  5. 撰寫 tests/<date>-judge-round-N.md — 每個項目一行,判定結果為「相同 / 不同 / 無法匹配(原因)」。修正每個「不同」的項目,重新渲染,重新審查(最多 5 輪)。在報告中誠實標明外觀與動態的匹配百分比。

注意事項

  • 應做: 遵循品牌角色;一次性建構,從 t 繪製;網格固定於形狀,縮放時變細;每次潛入前表演動作;在 9:16 上使用安全區;在審查中使用 100% 裁切。
  • 不應做: 對不使用該配色的品牌使用參考顏色;將文字繪製到 canvas 中(文字放在外部,保持完整,絕不逐個字母分割);使用 Math.random / Date.now;沸騰或過粗的網格;在此風格中加入製作名單;自行批准此卡片。

工作完成後:請執行 node tools/vid.mjs style comment hatch-cosmos "<有效或無效的部分>"。

Individual skills in this repo

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

bassam1998new-ops/hyperframes-students

Make a new video with a beginner, start to finish — a few easy questions, pick a look from this repo's styles, build it with HyperFrames, check the frames, render and show it. Use when the student says "new video", "make a video", "اعمل فيديو", "عايز فيديو", "reel", "animation", or asks how to start a video. Hands the technical HyperFrames rules to the official hyperframes skills.

bassam1998new-ops/hyperframes-students

First-time setup for the HyperFrames student studio. Checks the computer (Git, Node.js, FFmpeg, the render browser), explains in plain words what is missing, recommends what to install, asks before installing anything, then makes a 3-second test video to prove it all works. Use when the student says "setup", "install", "اعمل setup", "نزّل البرامج", "it doesn't work", "command not found", when node_modules is missing, or when `npx hyperframes doctor` shows a red item. Safe to run again any time — it skips what is already done.

bassam1998new-ops/hyperframes-students

Build a video in the Amber Grid Newsroom look (style card amber-grid-newsroom) — a hot "breaking news" desk: near-black grid field, the real screen recording in a framed window with instant reframes, an English title over an Arabic title line, and karaoke captions where the spoken word turns hot. Use when the director picked this card, or the owner says "make it in the amber newsroom style", "news desk", "breaking news look", "زي ريل opus 5.5", "ستايل الأخبار", or the video is AI news or a build show-off cut from his OBS screen recording with an Egyptian Arabic voice-over. 9:16 reels. Not for lecture clips or direct offers.

bassam1998new-ops/hyperframes-students

Build a video in the Cream Caret Type look (style card cream-caret-type) — Arabic words typed with a coloured caret on a flat two-colour page (night and paper that swap on hard cuts), select-highlight → delete → retype, a flat profile silhouette, one coloured dot that match-cuts into a flat vector eye, a zoom-through the iris, a fixed noun with a bold verb swapping every 16 frames, a pixel-art icon on the sign-off and a monogram end card — one sound per event, silence between. Use when the director picked this card, or the owner says "the typing intro", "caret type", "cream caret", "زي فيديو الكتابة", "الكلام اللي بيتكتب", "intro بالكتابة", or the video is a channel / "who am I" intro, a course or service intro hook, a short opener before a talking head, a word-play promise line or a bumper. 9:16 only, Arabic-first. Not for talking heads the whole time, screen-recording proof, data-heavy explainers or full spoken subtitles. DRAFT — untested.

bassam1998new-ops/hyperframes-students

Build a video in the Floating Desk Zoom look (style card floating-desk-zoom) — real app windows float as cards on warm paper, a virtual camera hard-cuts in on the action, follows the typing and glides back out. Use when the director picked this card, or the owner says "make it in the floating desk style", "paper desk", "zoom on the screen like the launch video", "اعمله على الورق", or the video is a build show-off, quick tutorial or AI news made from his OBS screen recording with a voice-over. Arabic or English; 9:16 reels. Not for lecture clips or talking heads.

bassam1998new-ops/hyperframes-students

Build a video in the Horizon Prompt One-shot look (style card horizon-prompt-oneshot) — one continuous camera on a near-black stage lit by a soft planet-horizon glow; a glass app bar, a cursor and a prompt box morph into each other, a prompt is typed, the send button grows into a tile that blooms into a full-frame result, then a light wipe to a logo end card, every beat hit-synced to a UI sound. Use when the director picked this card, or the owner says "horizon prompt", "the prompt one-shot", "the ChatGPT-style promo", "زي فيديو البرومبت", "الكيرسر اللي بيكتب البرومبت", or the video is an AI tool show-off / prompt-to-result demo, a course or service promo opener, a launch teaser or a channel bumper. Not for talking heads, real screen-recording proof, data-heavy explainers or long tutorials. DRAFT — untested.

bassam1998new-ops/hyperframes-students

Remix 2+ existing style cards of the Hyperframes video workspace into one NEW draft style card, layer by layer (palette roles, type, texture, grade, camera, light, edit rhythm, transitions, motion, sound, prompt parts), then let the owner pick the skills for the video and start the director. Use when the owner says "hybrid style", "remix styles", "mix two styles", "combine styles", "اعمل هايبرد", "ادمج الستايلين", or ticks cards and presses "Remix these" on the Styles board.

bassam1998new-ops/hyperframes-students

Build a video in the Midnight Kinetic Type look (style card midnight-kinetic-type) — clean motion type on a flat dark field, word-by-word mask rises, one accent word that lands alone, icon strokes that draw on, and hard cuts on the music's beat grid. Use when the director picked this card, or the owner says "make it in the kinetic type style", "midnight type", "like an earlier project", "تايبوجرافي متحركة", or the video is a direct offer, proof / results reel or AI news told with type, music and SFX (no face, no footage). Arabic (Cairo, per-word) and English (Inter) versions; 9:16 reels. Not for lecture clips or quick tutorials.

bassam1998new-ops/hyperframes-students

Build a video in the Midnight Screen Desk look (style card midnight-screen-desk) — a calm, organised news desk in three fixed zones: an Arabic info card on top, the real screen recording in a glowing band with punch-ins in the middle, and word-by-word captions (dim → bright) below. Use when the director picked this card, or the owner says "make it in the screen desk style", "three zones", "like the AI releases reel", "كارت فوق والشاشة في النص", or the video is AI news, a build show-off or a quick tutorial cut from his screen recording with an Egyptian Arabic voice-over. 9:16 reels. Not for lecture clips or direct offers.

bassam1998new-ops/hyperframes-students

Build a video in the Mint Lecture Room look (style card mint-lecture-room) — a calm classroom cut of a real lesson: one long take with slow zooms that follow the point, a topic lower third, a quiz card that asks, counts down think-time and then answers, and karaoke captions that light the current word. Use when the director picked this card, or the owner says "make it in the lecture room style", "lecture clip", "course cut", "quiz card", "قص من المحاضرة", "سؤال وجواب", or the video is a lecture clip or quick tutorial cut from his AI course recordings (Egyptian Arabic). 9:16 reels. Not for AI news or direct offers.

bassam1998new-ops/hyperframes-students

Build a video in the Neon Node Explainer look (style card neon-node-explainer) — a plain stage, one headline per spoken sentence, and one small glowing diagram (tiles, lines, packets, checks, terminal, tool list) that builds itself part by part. Use when the director picked this card, or the owner says "make it in the neon node style", "node explainer", "API vs MCP style", "اعمله زي فيديو الـ MCP", or the video is an AI explainer, concept explainer, quick tutorial or AI news with a voice-over and no face. Arabic headlines + English mono labels; 9:16 and 16:9 both built. Not for talking heads, warm stories, real screen-recording demos or music-only hype reels.

bassam1998new-ops/hyperframes-students

Build a video in the Swiss Motion Reel look (style card swiss-motion-reel) — a Swiss-grid "instrument panel" with a constant thin HUD, flat 2-colour blocks, word slams, shape match-cuts and hard cuts on a 128 BPM beat. Use when the director picked this card, or the owner says "make it in the Swiss style", "motion reel", "like the motion designer reel", "HUD reel", "ستايل سويسري", or the video is a brand sizzle, product intro, "what we do" reel, launch teaser or any no-person, graphics-only, music-led video. Latin display type with Arabic in a clean geometric sans; built and tested in 16:9, 9:16 still to build. Not for talking heads, screen-recording tutorials or long voice-led explainers.

bassam1998new-ops/hyperframes-students

Build a video in the Warm Glass Face-cam look (style card warm-glass-facecam) — the presenter talks to camera while frosted-glass panels with one warm glow land exactly where he points; blur-punch text, a karaoke pill, small charts, and a shrink into a rounded picture-in-picture for the demo part. Use when the director picked this card, or the owner says "make it in the warm glass style", "glass panels over my face", "face-cam with glass cards", "PiP intro", "كروت زجاج وأنا بتكلم", or the video is a build show-off or quick tutorial with the owner on camera. Source is English 16:9; the 9:16 and Arabic versions still have to be built at the first job. Not for lecture clips or AI news.

bassam1998new-ops/hyperframes-students

Build a video in the <Style name> look (style card <slug>). Use when the director picked this style card, when the owner says "make it in the <Style name> style", "<slug>", "استايل <Style name>", or the video type is <video types from use_when>. Works for Arabic (Egyptian) and English, 9:16 reels<, and 16:9 if supported>. Not for <avoid_when>.

相關技能