AI video skill for Claude Code & Codex — cinematic, editable product promos with Remotion: 124 shot recipe cards, 150 motion previews, beat sync, sound design, Motion Workbench & JianYing (CapCut CN) export.
TypeScript agent-skillsai-agentsai-videoclaude-codeclaude-code-skillsclaude-skillscodexmotion-designmotion-graphicsproduct-videopromo-videoremotionvideo-generationvideo-production
Add bilingual docs and product-aligned visuals
Wei Yihao4d05a971cb41
diff --git a/README.md b/README.mdindex 88e5cd3..16454fb 100644--- a/README.md+++ b/README.md@@ -1,5 +1,7 @@# video-shotcraft+[简体中文](README.md) | [English](README_EN.md)+一套用于制作电影感产品视频的自包含能力库:镜头配方卡、动态样片、Remotion 参考实现、已验收成片模板、可复用组件、声音资产与完整制作流程。@@ -20,58 +22,6 @@ Remotion 参考实现、已验收成片模板、可复用组件、声音资产| 组件与素材 | 2.5D 页面相机、字幕、闪切、数字滚动、音效和素材采集脚本 || 制作方法论 | 从素材采集、风格定调和分镜,到声音设计、节奏卡点与最终验收 |-## 三种使用方式--### 1. 使用完整视频模板--适合需要快速得到一支结构完整、质量稳定的产品宣传片。模板已经包含:--- 品牌开场、功能展示、字卡呼吸位和结尾品牌落版;-- 真实页面截图驱动的 2.5D 运镜;-- 转场、字幕和电影感 SFX;-- 可替换的产品截图、文案、品牌信息与页面坐标。--先阅读 [模板解构与复现指南](template/TEMPLATE.md),再启动工程:--```bash-cd template-npm install-npm run dev-```--渲染完整成片:--```bash-npm run render-```--输出文件位于 `template/out/promo.mp4`。--### 2. 用镜头卡自由组合--先到 [在线 Gallery](https://vincentwei1021.github.io/video-shotcraft/)-挑选想使用的动效镜头,然后按以下顺序阅读和使用:--1. 打开 `references/shots/<卡名>.md`,了解镜头意图、时长、能量与参数。-2. 打开 `demos/<卡名>/`,阅读对应的 Remotion 实现源码。-3. 将 demo 和需要的共享组件复制到目标 Remotion 项目中。-4. 替换为目标产品的真实素材,并根据实际构图做适配。--镜头卡定义“为什么这样拍”,demo 源码保存“具体怎样实现”。使用镜头卡时,-不要只根据卡名重新编写动画;经过调校的缓动、时值和摘罩时机都在 demo 中。--### 3. 从零制作完整宣传片--需要全新视觉语言时,按照 [六阶段制作流水线](references/pipeline.md) 执行:--1. 阶段 0:确认音乐、模板路线和数据合规口径。-2. 素材采集:获取真实页面截图、元素切片和 `layout.json`。-3. 风格定调:用低成本 styleframe 锁定视觉与动效性格。-4. 分镜设计:根据功能清单和能量曲线选择镜头卡。-5. 逐镜头实现:每个镜头完成后立即输出静帧验收。-6. 声音设计:为运镜、落地、转场和品牌落版配置 SFX。-7. 最终验收:整片渲染、抽帧检查,并按审美准则逐项复核。-## 快速开始克隆仓库:@@ -88,10 +38,19 @@ cd gallerypython3 -m http.server 4178```-然后访问 `http://localhost:4178`。+然后访问 `http://localhost:4178`。也可以直接使用+[线上 Gallery](https://vincentwei1021.github.io/video-shotcraft/)。++启动完整成片模板:-也可以直接使用线上版本:-[vincentwei1021.github.io/video-shotcraft](https://vincentwei1021.github.io/video-shotcraft/)。+```bash+cd template+npm install+npm run dev+```++运行 `npm run render` 可将成片输出到 `template/out/promo.mp4`。+替换模板素材前,请先阅读 [模板解构与复现指南](template/TEMPLATE.md)。## 作为 Agent Skill 使用@@ -139,17 +98,8 @@ video-shotcraft/└── audio/ # SFX 与授权说明```-## 制作原则--- 展示已有产品页面时优先使用真实截图,不用手绘 UI 冒充产品界面。-- 每个镜头只让一种动效手法成为主角,避免全片重复同一种表达。-- 先确认素材、styleframe 和分镜,再进入成本更高的逐镜头实现。-- 关键信息落定后保留呼吸时间;品牌字标落定至少停留 1 秒。-- 强节奏音乐中的镜头边界和关键动作必须锚定拍点。-- 禁止使用 `Math.random()`、`Date.now()` 等非确定性数据驱动动画。-- 每个镜头完成后输出静帧检查,交付前再进行整片抽帧验收。--更多细节见 [SKILL.md](SKILL.md) 与+完整工作流和实现要求见 [SKILL.md](SKILL.md)、+[制作流水线](references/pipeline.md) 与[视觉验收准则](references/aesthetic-rules.md)。## 音频与素材说明diff --git a/README_EN.md b/README_EN.mdnew file mode 100644index 0000000..278119c--- /dev/null+++ b/README_EN.md@@ -0,0 +1,114 @@+# video-shotcraft++[简体中文](README.md) | [English](README_EN.md)++A self-contained toolkit for crafting cinematic product videos with shot recipe cards,+motion previews, tuned Remotion implementations, a production-ready video template,+reusable components, sound assets, and an end-to-end production workflow.++> [Explore the shot gallery and motion previews](https://vincentwei1021.github.io/video-shotcraft/)+> — search, filter, switch between variants, and copy selected shot-card names.++The toolkit primarily targets web and desktop product promos, while individual shot cards+can also be used in feature demos, brand films, launch videos, and other motion projects.++## What's included++| Content | Description |+| --- | --- |+| 106 shot recipe cards | Purpose, energy, suggested duration, parameters, implementation notes, and known pitfalls |+| 161 motion previews | Searchable and filterable in the online Gallery |+| Remotion implementations | Tuned TSX demos containing the actual easing and timing parameters for each card |+| Complete video template | A validated 36.2-second, 1920×1080, 30fps product promo with 10 shots |+| Components and assets | 2.5D page camera, captions, flash cuts, digit rolls, SFX, and capture scripts |+| Production methodology | Capture, visual direction, storyboarding, sound design, beat sync, and final QA |++## Quick start++Clone the repository:++```bash+git clone https://github.com/Vincentwei1021/video-shotcraft.git+cd video-shotcraft+```++Run the Gallery locally:++```bash+cd gallery+python3 -m http.server 4178+```++Then open `http://localhost:4178`, or use the+[hosted Gallery](https://vincentwei1021.github.io/video-shotcraft/).++Start the complete video template:++```bash+cd template+npm install+npm run dev+```++Run `npm run render` to export the video to `template/out/promo.mp4`.+Before replacing its assets, read the [template breakdown and adaptation guide](template/TEMPLATE.md).++## Use as an agent skill++Link the repository into the Codex skills directory:++```bash+ln -s "$(pwd)" ~/.codex/skills/video-shotcraft+```++Or link it into the Claude Code skills directory:++```bash+ln -s "$(pwd)" ~/.claude/skills/video-shotcraft+```++You can then make requests such as:++```text+Use video-shotcraft to create a promo for my desktop product.+Use the deck-deal-flyin and row-embed shot cards to present this feature.+Design a product close-up inspired by spotlight-hero-card.+```++If no shot card is specified, the skill introduces the existing full-video template and asks+whether to use it. You can also select shots in the+[Gallery](https://vincentwei1021.github.io/video-shotcraft/) before starting.++## Repository structure++```text+video-shotcraft/+├── SKILL.md # Agent entry point and core production rules+├── references/+│ ├── pipeline.md # End-to-end production workflow+│ ├── shots/ # 106 shot recipe cards+│ ├── sequences/ # Reusable full-video structures and sequence patterns+│ ├── aesthetic-rules.md # Visual QA criteria+│ ├── music-beat-sync.md # BGM analysis and beat-sync methodology+│ └── sound-design.md # Sound-design guidance and examples+├── demos/ # Remotion reference implementations for shot cards+├── gallery/ # Static motion-preview Gallery+├── template/ # Runnable complete video template+└── assets/+ ├── lib/ # Reusable Remotion components+ ├── scripts/ # Page-asset capture scripts+ └── audio/ # SFX and attribution details+```++For the complete workflow and implementation requirements, see [SKILL.md](SKILL.md),+the [production pipeline](references/pipeline.md), and the+[visual QA criteria](references/aesthetic-rules.md).++## Audio and asset notes++Audio files under `assets/audio/` may be used according to their respective license terms.+See [ATTRIBUTION.md](assets/audio/ATTRIBUTION.md) for sources and license details.++Product screenshots bundled with the template are demonstration assets. Replace them with+screenshots from the target product before publishing, and verify whether any product,+customer, or personal data needs to be anonymized.diff --git a/SKILL.md b/SKILL.mdindex ec31c79..05e7193 100644--- a/SKILL.md+++ b/SKILL.md@@ -52,41 +52,51 @@ description: 用镜头配方卡 + 已验收模板 + 代码/音频资产制作电出版级质感或观众看不懂它表达什么,就回截图路线。页面数据默认可用现成数据;是否脱敏在素材确认时问用户。-2. **电影感来自运镜、光影、节奏与声音的配合,不来自炫技动画。**+2. **整支视频的视觉语言必须从产品自身生长,不能另造一套不相干的+ “宣传片皮肤”。** 做 styleframe 前,先从产品/网站的设计系统、源码或+ computed styles 中提取并写入设计 spec:字体家族与字重、字号层级、+ 行高/字距,栅格、间距、对齐、信息密度与圆角,以及背景/表面/正文/+ 强调/状态色、渐变和材质。片中所有标题、字幕、数字、字卡、版式、+ 转场、粒子、光效和其他动效配色都必须复用或克制扩展这套 tokens,+ 同时匹配产品的调性、品味和质感。走模板或镜头卡路线时,只继承其+ 镜头结构、运动语法、节奏和已调参数;字体、排版、配色与材质必须按+ 目标产品重新蒙皮。若因叙事需要偏离产品视觉,先说明理由并让用户确认。++3. **电影感来自运镜、光影、节奏与声音的配合,不来自炫技动画。**被反复认可的是:单主角完整动作弧(聚光→推近→悬浮→归位)、物理隐喻驱动的加速度(发牌)、侧斜机位 orbit 环绕特写、riser→impact→sparkle 的声音句式。批量元素入场靠运动本身,不靠逐个发光——装饰性 glint/泛光群发即廉价,单点高质量光效可做。-3. **每个镜头只讲一个动效;关键信息落定后必须呼吸。**+4. **每个镜头只讲一个动效;关键信息落定后必须呼吸。**一种动画手法(飞入/堆叠/翻页)全片只当一次主角,重复镜头、重复tagline 一律删。节奏偏好是单向的:历史反馈全部指向"放慢/停留",从未有一次"太慢了"——品牌字标落定 hold ≥1s、批量动效收尾留 0.5s静止、开场主体动作给足 3s。排时间线时预先给 hold/rest 留帧预算。-4. **强节奏 BGM 的片子,所有转场和动效必须卡在拍上。**+5. **强节奏 BGM 的片子,所有转场和动效必须卡在拍上。**用户已选好音乐 → 开工前先做节奏分析(librosa 网格拟合求真实BPM/相位 + 带通找鼓点重音),时间线用拍号 `beatF(n)` 写,渲后从成片抽音轨回测切点误差 ≤3f。方法论见 `references/music-beat-sync.md`。-5. **用镜头卡动效必须先读它的 demo 实现代码。** 配方卡给的是语义和+6. **用镜头卡动效必须先读它的 demo 实现代码。** 配方卡给的是语义和参数表,`demos/<卡名>/` 里的源码才是调校过的参数真相(缓动、时值配比、摘罩时机、已知坑的规避写法)。允许适配性改动,但卡上"已知坑/命门"标注的参数不得降档——质量标准只升不降。凭卡名和理解新写=放弃全部调校积累。-6. **廉价确认物前置:素材→styleframe→分镜逐级确认,方向问题不进+7. **廉价确认物前置:素材→styleframe→分镜逐级确认,方向问题不进逐镜头阶段。** 一个纯 HTML/CSS 对比页 + 一张截图就能锁定全片色板/字体/光感;分镜表与设计 spec 同文档一次确认。确认物越廉价、越早,返工越便宜。-7. **验收贯穿全程 + 交付前独立审查。** 阶段 4 起每个镜头用+8. **验收贯穿全程 + 交付前独立审查。** 阶段 4 起每个镜头用`npx remotion still` 出静帧自检、每轮修改后整片渲染 + ffmpeg抽帧回看;交付前必须派一个干净上下文的 subagent 做独立视觉审查(只给成片/关键帧/审美准则/分镜表,逐条出带帧号证据的报告)——制作者对自己的产出有确认偏差,首检永远不能交给用户。-8. **确定性渲染**:禁 `Date.now()`/`Math.random()`,一切伪随机固定+9. **确定性渲染**:禁 `Date.now()`/`Math.random()`,一切伪随机固定种子(mulberry32/哈希,seed 从 index 派生),逐帧可复现。## 工作流