Communitygithub.com

哈奇宇宙风格视频构建

构建一段具有 Hatch Cosmos 风格的视频——在一个画布上手绘铅笔阴影世界,一个方块吉祥物(或一对)走路、注视、眨眼并做出 ^ ^ 表情,然后镜头穿过它的眼睛进入一个由星云团、倾斜光环和针状星组成的阴影星系。

哈奇宇宙风格视频构建 是什么?

该技能专为视频编辑与 AI 代理设计,实现独特的“哈奇宇宙”风格:温暖的铅笔阴影、墨水轮廓与一个具有表现力的方块吉祥物。核心招牌动作是摄像机穿过吉祥物的眼睛,眼睛变为屏幕窗口,进入一个手绘星系。支持 9:16 和 16:9 两种画幅。 它通过工具、模板和评审循环提供端到端工作流:使用 `vid.mjs` 应用或搭建场景,利用 `HATCH.kit` 构建元素(方框、行星、星星、星系、吉祥物与动作),使用 GSAP 驱动动画,并通过代码化评审流程(lint、快照、渲染与帧级对比)确保与参考作品一致的“完全相同的高质量”。吉祥物支持行走、眨眼、挥手、注视和面部表情,过渡(镜头穿眼动作)包含声效。适合音乐驱动的展示片、概念介绍或频道导视,不适用于讲演者特写、真实录屏、数据密集型解说或摄影风格。

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

文档

风格:哈奇宇宙

一个温暖的手绘宇宙:平涂填充配上短对角铅笔阴影、墨水轮廓,一个会表演的方块吉祥物,以及一个标志性动作——摄像机潜入吉祥物的眼睛,眼睛变成一个手机形状的窗口,下一个场景随之切入。 卡片: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 s)
    node tools/vid.mjs use hatch-cosmos-16x9 <project>    # _library/compositions/hatch-cosmos-16x9.html (6 s)
    
    将打印的 <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 }) — 然后按固定顺序一次性创建所有形状(rng 按构建顺序消耗):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) 延迟查找画布(打包工具可能提升脚本位置),仅从 t 开始绘制,最后调用 K.lift(ctx, 3)。
    4. 蒙太奇场景 = 在同一工具包部分(方框、光环、行星、闪光、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 s)→ 眨眼 → 挥手。在纸张上时 glowAmt: 0。只有品牌要求时才在吉祥物上添加 Logo。
  • 穿眼动作: 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 时稳定。z0 − 0.15 处播放嗖声 sfx/el/whoosh-tonal.mp3。
  • 9:16 布局(1080×1920): 一对吉祥物居中于安全区域(510, 860),缩放 1.2,间距 410 像素;centre: [510, 860] 确保眼睛和星系核心落在 x 60–960,y 220–1500 范围内;ys 1.6, xs 0.6。底部 20% 仅显示背景。
  • 16:9 布局: 一对吉祥物位于(CX ∓ 270, CY + 10),缩放 1.35;星系 zEnd 1.35。
  • 节奏: 平静开场 4–6 s,穿眼动作 1.2 s,蒙太奇每 1–2 s,一次 3–5 s 的停留,再缩放回到吉祥物结束(卡片 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;扫描是否存在空白帧(曾出现过一次捕获间隙——若快照绘制正确则重新渲染,不要修改代码)。
  4. 与参考对比:匹配全尺寸图像(行走、穿眼中、星系)+ 100% 局部裁剪(方框上的阴影、光环+行星、闪光、轮廓、吉祥物)+ 穿眼动作的 10 fps 片段。使用 ffmpeg 采样颜色(区域中值),而非肉眼判断。
  5. 编写 tests/<date>-judge-round-N.md —— 每项一行,结论:相同/不同/无法匹配(原因)。修正每个“不同”项,重新渲染,重新评审(最多 5 轮)。在报告中如实提供外观和运动的匹配百分比。

应做/不应做

  • 应做: 使用品牌角色;一次性构建,从 t 开始绘制;阴影固定于形状,缩放时变细;每次穿眼前表演;9:16 中遵守安全区域;评审中使用 100% 裁剪。
  • 不应做: 在未使用该颜色的品牌上使用参考颜色;在画布内绘制文字(文字应在外部,整体显示,绝不逐字分裂);使用 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>.

相关技能