Communitygithub.com

yazzang-homelab/motion-studio

将一个参考(一帧、一段视频或一个图片库)转化为 docs/style_guide.md 和基于节拍网格的镜头列表:测量剪辑、调色板和节奏,只提取语法而非内容,并等待确认。当用户提供或指定一种视觉风格时使用。

motion-studio 是什么?

该技能专为 AI 视频生成和动画制作工作流设计,解决了一个核心问题:在没有参考的情况下,AI 模型会默认生成一种千篇一律的视觉效果(如居中文字加渐变背景)。通过分析用户提供的参考素材(单帧、视频或图片库),该技能可以系统性地提取风格特征——包括调色板、字体、纹理、剪辑节奏和运动能量——并输出两份关键文档:样式指南(style_guide.md)和镜头列表(shotlist.md)。它支持主流 AI 编码工具(如 Claude Code、Cursor、Codex),并通过 `refs.mjs` 工具进行自动化分析和度量。其核心原则是“只提取语法,不提取内容”,即严格避免复制参考中的 Logo、角色或文案,而是学习其色彩关系、镜头语言和过渡方式。在生成最终电影代码前,工具会提供完整的样式指南和镜头列表供用户审核批准,从而确保创意方向的正确性,避免盲目编码。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/yazzang-homelab/motion-studio/tree/HEAD/skills/reference-style

在你喜欢的 AI 中提问

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

文档

参考风格(课程步骤 05)

如果没有任何参考,模型会退化成一种默认样式:居中文字配上渐变背景,每个元素逐次淡入。Rexan Wong (@rexan_wong) 研究了一批热门视频后发现,直接命名一种风格比描述它更有效,而参考素材则能让模型复制其节奏、类型和过渡。本技能在生成任何电影代码之前,先将一个参考转化为两份经审批的文档。

请求参数(可以为空),在此处展示一次:

参考层级

层级用户提供的内容你需要提取的数据工具
单帧用户喜爱视频的某一帧画面调色板、字体、纹理、构图密度refs.mjs analyze refs/<文件夹> + 查看
视频用户钦佩影片的本地文件上述数据 + 剪辑时间、镜头时长、每秒运动能量、过渡方式refs.mjs extract + analyze
图片库用户自己的图像或过往作品的文件夹他人无法复制的专属风格refs.mjs analyze refs/<文件夹>

Pleometric 的纯代码 TikTok 作品始于另一个热门动画的某一帧画面;他的 Donald 风格影片则让 Opus 参考他自己的 PC-98 图片库。寻找参考素材的地方:在 whatships.com 上查看发布视频,在 Dribbble 上浏览动态设计,以及分析竞争对手的宣传片。研究它们,但切勿嵌入或重新分发。

1. 将参考素材保存到磁盘

  • 将文件或文件夹复制到项目的 refs/ 目录下(如果尚无 studio.json,先通过 /motion-studio:studio-init 搭建脚手架)。
  • 如果只提供了他人视频的链接,请要求用户提供一份他们有权研究的本地副本。请勿自行下载第三方媒体文件。
  • 如果是单帧画面:将其放入自己的文件夹(refs/frame/),这样 analyze 会将其视为图片集处理。
  • 当用户对参考素材有明确要求时(例如“只要颗粒感和字体,不要角色”),询问他们具体需要提取和忽略的内容。

2. 进行度量

在项目根目录下运行以下命令:

参考类型命令
视频node tools/refs.mjs extract refs/<视频> --every 0.5 然后 node tools/refs.mjs analyze refs/<视频>
单帧或图片库node tools/refs.mjs analyze refs/<文件夹>
快速剪辑(漏掉很多剪辑点)在 analyze 命令后添加 --threshold 0.2

输出结果:refs/frames/frame_NNNN.png、refs/frames/frames.json、refs/contact.png(包含最多 60 张缩略图的带标签工作表;长表格按接触式印相的方式分页:refs/contact.png 为第 1 页,然后是 refs/contact-2.png、contact-3.png...;打开每一页,--json 结果会在 contacts 字段下列出它们),以及 refs/analysis.json,其中包含剪辑时间、镜头时长(平均值、中位数、范围)、包含份额的六色调色板、亮度和对比度、峰值每秒运动能量,以及文字密度提示。打印出的摘要可作为样式指南的起点。

3. 编写样式指南和镜头列表

简要调用 motion-studio:style-analyst(它可能会写入 docs/style_guide.md、docs/shotlist.md 和 refs/**):

项目根目录:<绝对路径>。参考:refs/<文件或文件夹>。主题:<主题>。时长:<S> 秒。
打开 refs/contact.png(如果有分页,则打开 refs/contact-2.png ...)以及剪辑点附近的几帧画面,读取 refs/analysis.json。
按照样式指南说明编写 docs/style_guide.md,然后为一部时长 <S> 秒、关于 <主题>、采用该风格、并基于 audio/beats.json(若无则基于 <bpm> BPM)节拍网格的影片编写 docs/shotlist.md。
只提取参考素材的语法,切勿提取其内容、Logo、角色或文案。
当不确定时,提出疑问而非猜测。

详细的章节说明请参见 assets/style-guide-notes.md。 对于那些希望将提示粘贴到全新会话中的用户,相同的步骤已编写为 assets/reference-prompt.md。

4. 只提取语法,绝不提取内容

可以提取的内容绝不提取的内容
调色板关系(深色背景、一个暖色点缀、点缀色的占比)Logo、角色、吉祥物
字体家族(类别、字重、字距、缩放跳跃)确切的构图或帧画面
镜头时长以及剪辑点相对于节拍的位置参考素材的文案、主张或数据
过渡类型(硬切、遮罩推、匹配剪辑)参考素材的镜头、音乐或配音
镜头语言(推近、甩镜头、固定机位)品牌特有的形状或商业外观
纹理(颗粒感、纸张效果、半调)以及文字的入场和退场方式用户未要求借鉴的任何内容

5. 审核关口

展示两份文件(样式指南的简洁摘要和镜头列表表格通常就足够了),并在生成任何电影代码前等待用户批准。当用户拒绝时,重写镜头列表(如果视觉风格不正确,也要重写样式指南),切勿通过打补丁“用代码展示来代替”。将决定记录在 docs/shotlist.md 顶部 Status: 行中。

6. 让模型自行选择技术方案

只需指定视觉风格和约束条件,而非具体的库。Pleometric 推荐了 p5.js,而 Opus 则自行编写了纸张渲染器。在本工作室环境中,这意味着:在样式指南中描述你想要的纹理和运动效果,让构建过程自行决定如何在画布引擎(lib/draw.js 辅助函数或自定义绘图)中绘制它。仅当用户需要复用才指定框架(路线 B,通过 /motion-studio:seek-engine)。

下一步:从第 5 阶段开始,使用 /motion-studio:motion-reel 进行构建;若需以此风格实现 UI 状态循环,请使用 /motion-studio:ui-morph-spec。

Individual skills in this repo

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

yazzang-homelab/motion-studio

Make Claude watch its own frames: critique.mjs evidence, harsh 7-axis scores, timestamped P0/P1/P2 problems in docs/review_log.md, fix the 3 worst, re-check, pass the gate. Use for 'critique it', 'review the frames', 'is it good'.

yazzang-homelab/motion-studio

Plan long-form or overnight films: director's brief (PLAN FIRST or GO, budget, definition of done), ANIMATION_GUIDE + STORYBOARD, chapter subagents, gates, chunked render. Use for 'overnight film', 'music video', '2-minute film'.

yazzang-homelab/motion-studio

Make a launch video, app or product reel, explainer or motion ad from code, end to end: brand assets from a URL, beat-grid shot list, synced sound, critique loop, all formats. Default for new video requests; not footage edits.

yazzang-homelab/motion-studio

Brand-asset stage of a product film (motion-reel runs the whole film): capture real screenshots, logo, colors and fonts from a URL, never redraw UI; brand story beats; voice + mascot. Use to grab or fix a brand's assets.

yazzang-homelab/motion-studio

Build, debug or speed up the seek(t) render engine: render contract, canvas vs page capture, workers/subframes/chunks, determinism fixes, Remotion or HyperFrames handoff. Use for 'render is slow', 'frames differ', 'use Remotion'.

yazzang-homelab/motion-studio

Ship every format from one timeline, then package it: layout() reframing (never crop), render all formats, per-format checks, deliver.mjs, a brand skill, a service offer. Use for 'export 9:16 and 16:9', 'deliver', 'make a skill'.

yazzang-homelab/motion-studio

The viral one-line 'showreel for a résumé' prompt: why it works (anatomy), the credited quote, and seeded variants that avoid look-alike reels; runs it as an engine test. Use for that prompt, its variations, or a showreel.

yazzang-homelab/motion-studio

Score a film to its beat grid: measure a track (beats.mjs) or synthesize one (score.mjs), cue SFX from the film, add voice, mix to -14 LUFS / -1 dBTP at exact length. Use for 'add music', 'sync to the beat', 'SFX', 'loudness'.

yazzang-homelab/motion-studio

Make motion feel physical with closed-form springs from lib/motion.js: presets, springFromFeel, track() for multi-target values, loopTrack loops, indicators, text swaps. Use for 'feels linear', 'add bounce', 'easing to springs'.

yazzang-homelab/motion-studio

Scaffold a motion-studio film project (seek(t) renderer, springs, beat grid, synthesized sound, critique tools), install it, set up the browser, run doctor. Use for 'set up the motion studio', 'new film project', 'init studio'.

yazzang-homelab/motion-studio

Write a six-part XML state spec for a one-shape UI morph film (inputs, direction, structure, build, gotchas, start): states on downbeats, cursor-driven changes, seamless loop, approval gate. Use for 'UI morph', 'state list'.

相关技能