Communitygithub.com

DansiDanutz/视频编辑器

将产品/营销URL、粘贴的脚本或简报,转化为产品发布/推广视频——适用于SaaS推广、功能发布、产品演示、应用和公司启动。

视频编辑器 是什么?

该技能专为希望快速制作营销推广视频的用户设计,适用于SaaS推广、功能发布、产品演示、应用和公司启动等场景。其核心工作流围绕HyperFrames视频制作框架展开,通过将产品/营销URL、粘贴的脚本或简报转化为结构化的视频项目。技能支持多种输入来源:商业URL(包括Figma设计稿)、用户脚本/简报等,并能自动捕获品牌资产、分析设计系统、构建故事板与脚本、生成帧级动画并最终渲染输出视频。它通过一系列定义清晰的步骤(Setup、Capture、Design System、Storyboard & Script、Visual Design、Frames、Final Render)引导用户完成从概念到成品的完整制作流程,每个步骤都设有检查点以确保输出质量。技能深度集成了HyperFrames框架,能够管理项目配置、版本控制(`npx hyperframes skills update product-launch-video`)、媒体资源处理(`/media-use`)、Figma源导入(`/figma`)以及认证状态检查。其设计理念强调品牌一致性、用户控制(通过预设样式、审查循环)和自动化生产效率,支持协作或自主运行模式,适合从简单产品演示到复杂网站巡览的多种视频场景。

兼容平台~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/DansiDanutz/Video-Editor/tree/HEAD/.claude/skills/product-launch-video

在你喜欢的 AI 中提问

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

文档

插件安装: 设置或更新命令之前,当该技能位于HyperFrames插件内部时,请遵循插件执行规则。独立安装请保留下面的更新说明。

首先,保持该技能最新——运行前请与用户确认: npx hyperframes skills update product-launch-video。如果一切已是最新则快速无操作;否则,在依赖它们之前,它会刷新此技能及其核心领域依赖项。

媒体使用(media-use): 在获取音频/图像/徽标之前,调用/media-use以从HeyGen目录解析BGM/SFX/图像,并从其官方来源解析品牌徽标。首先运行--adopt以注册现有资源。请参阅/media-use技能。

Figma源: 如果源是figma.com URL,请先运行/figma——资源导出、品牌令牌以及组件/故事板重建(如果需要),然后从输出构建此工作流。不要直接通过原始MCP工具驱动Figma:这跳过了SVG清理、.media/manifest.jsonl溯源和品牌令牌var()绑定,因此后续品牌变更无法传播而无需完全重新导入。

产品发布至HyperFrames

使用此技能来捕获产品、理解其品牌、规划发布视频,并在HyperFrames中逐帧构建。

前门是/hyperframes。 你是编排者。运行每个步骤,验证其关卡,然后才继续下一步。此技能适用于正在营销、发布、推广或展示的产品,包括如“我们网站的推广”等推广目的的请求。网站巡览/展示请求也保留在此处:BRIEF.md携带“按原样展示”的意图,捕获的截图成为视频展示的资源。任何其他意图,仅仅是“制作视频”,或任何不确定性→首先阅读/hyperframes——意图层拥有所有路由决策,并且未经BRIEF.md而到达此处的新创建无论如何都会经过它(设置的开场规则)。

你是编排者。在videos/<project>/中工作。按顺序运行步骤并通过每个关卡后再继续。用户把关的步骤是步骤0、步骤3和步骤6。在步骤0之前阅读../hyperframes/references/brief-contract.md——它定义了关卡类型以及BRIEF.md的flow/storyboard如何派生控制步骤3/4/6关卡的模式。除了步骤5(你为每个帧分派一个子代理)之外,自己执行所有步骤。不要在此处放置设计或运动规则;这些规则存在于帧工作子代理、此技能本地的../hyperframes-animation/rules/ + ../hyperframes-animation/blueprints/以及hyperframes-creative中。

工作流程:步骤0设置 -> hyperframes.json;步骤1捕获 -> capture/;步骤2设计系统 -> frame.md;步骤3故事板/脚本 -> STORYBOARD.md和SCRIPT.md;步骤3.1音频 -> audio_meta.json;步骤4视觉设计 -> 增强的STORYBOARD.md;步骤5帧 -> compositions/frames/NN-*.html和index.html;步骤6最终渲染 -> renders/video.mp4。


步骤0:设置

目标:带着已确认的简报进入,创建HyperFrames项目,并确保持久化简报。

简报由意图层确认,而非在此处通过提问确认。 开场规则,按顺序:(1) BRIEF.md存在→读取它且不提问任何问题——简报已确定,其flow/storyboard派生模式(简报合同§ 1)。(2) 没有BRIEF.md但项目存在(磁盘上的hyperframes.json / STORYBOARD.md)→从故事板的前置元数据和记录的首选项恢复;绝不重新审问一个半建成的项目。(3) 两者都没有——直接到达此处的全新创建请求→阅读/hyperframes并运行其意图层(references/intent-interview.md):它检查配方和记住的默认值,进行此路由的提问(../hyperframes/references/routes/product-launch-video.md),并返回锁定的简报。编辑请求跳过所有这些——直接执行编辑。

仅在hyperframes.json缺失时才初始化。从品牌或域的kebab-case命名<project>,例如acme-promo;切勿使用工作区名称或时间戳。

npx hyperframes init "videos/<project>" --non-interactive --example=blank --skill=product-launch-video — init检查已安装的技能与GitHub上的最新版本,如果任何过期则更新全局集合。

初始化后,让<PROJECT_ROOT>为videos/<project>,并将每个后续的相对路径命令以此目录作为其工作目录运行。在下面的命令中,.表示<PROJECT_ROOT>;切勿在调用者目录中写入.media、capture或输出文件。

初始化后立即写入BRIEF.md(之前切勿——init拒绝非空目录):意图层锁定的简报,形状符合../hyperframes/references/brief-format.md。将<MEDIA_DIR>解析为已安装的/media-use技能目录。然后使用node <MEDIA_DIR>/scripts/prefs.mjs record --hyperframes .记录每个基于偏好的答案(brief-format.md命名子集)。如果意图层采用了配方,运行node <MEDIA_DIR>/scripts/recipe.mjs use --hyperframes . --name <name>;它将它的frame.md复制到项目中(然后跳过步骤2)并返回步骤3从中起草的骨架。配方填充答案,而非批准;审查关卡仍然运行。

在继续设置之前显示登录状态——运行npx hyperframes auth status并按原样转发其输出。它报告语音/BGM将使用HeyGen还是本地引擎,并在未登录时报告如何登录。注意退出代码约定:auth status在未登录时退出代码为1(以及当存储的凭据被拒绝时)——此非零退出是正常的未登录状态,不是命令失败,因此不要将其视为错误,不要重试它,也不要以会中止工作流的方式将其与&&/set -e链接。应用一个分支:

  • 协作: 等待用户登录或明确选择offline/go。
  • 自主: 说明状态并通过可用的本地引擎继续。

当没有离线提供者时,不要默默忽略必需的能力;指出障碍。不要将此决策折叠到另一个问题中或将密钥写入每个仓库的.env。认证所有权和离线回退:/media-use references/setup-providers.md § 提供者。

关卡: hyperframes.json和BRIEF.md存在;记录了基于偏好的答案(简报合同§ 2);显示了登录状态(已登录,或继续离线)。


步骤1:捕获资源

目标:收集源材料、品牌信号和视频的可使用资源。

对输入进行分类并选择路径。明确URL -> 捕获它并使用该网站进行旁白和资源。粘贴的脚本/简报 -> 按原样保存为user_script.txt;VO_MODE(逐字或重构)来自BRIEF.md——当脚本到达时意图层会询问它(仅当简报不知何故缺少时才在此处询问一次)。然后解析捕获目标:文本中的URL -> 使用它;仅有品牌名称 -> WebSearch,在一行中确认URL,然后爬取;没有URL/网站(或简报说不抓取)-> 不捕获路径。

使用以下命令运行捕获:npx hyperframes capture "<URL>" -o ./capture --json。保持默认的导航后预算,除非调用者拥有更小的截止日期;然后传递一个为下游工作留出时间的正--capture-budget <milliseconds>。--timeout仅控制页面导航。仅在有意禁用可选的图像字幕时使用--skip-vision。

立即检查命令结果和输出目录。非零退出、JSON ok: false或capture/BLOCKED.md是捕获路径的硬停止:报告记录的原因,不要使用部分截图、DOM、令牌或资源。在失败的URL捕获后,不要制造合成的不捕获回退。仅当原始简报提供了源材料,或者用户在失败后明确切换到提供的截图或简报时,才通过不捕获路径继续。

诸如“文本内容非常少”之类的警告以及空的资源目录并不能证明页面可用。对于网站巡览或“按原样展示”的简报,需要可信的捕获结构或提供的截图;如果两者都不存在,则停止。不要仅仅因为捕获不可用就发明或重建页面。

对于网站巡览或“按原样展示”的简报,捕获的页面是真实的视觉来源。使用真实截图而不是在HTML中重建整个网站。如果截图需要内部移动,保持截图作为基础并在测量位置覆盖真实的捕获资源,或者仅重建移动的组件。对于滚动截图,在capture/screenshots/full-page.png上动画化视口——整个文档的1倍图,对于在其上向下移动的1920宽视口是像素精确的。当页面太高无法一次捕获时,它不存在;回退到同一目录中重叠的滚动位置截图。推入超过1:1比例时需要该区域的自己的2倍捕获,因为1倍图没有高于1倍的余量。仅当用户明确要求风格化的解释时才重建整个页面;单独的不可用捕获并非授权。

如果GEMINI_API_KEY、GOOGLE_API_KEY或OpenRouter密钥存在,捕获会自动将资源字幕写入capture/extracted/asset-descriptions.md。这不是审查关卡。如果没有视觉密钥,使用DOM上下文并继续。

不捕获路径:手动创建capture/extracted/tokens.json、capture/extracted/visible-text.txt、capture/extracted/asset-descriptions.md和capture/assets/。tokens.json应为{ "title": "", "description": "", "colors": [], "fonts": [] };尽可能从简报中填写标题/描述。visible-text.txt包含完整的简报或脚本。asset-descriptions.md应说明没有捕获到资源,除非用户提供了资源备注。

关卡: 捕获JSON报告ok: true;capture/BLOCKED.md不存在;capture/extracted/tokens.json、capture/extracted/visible-text.txt、capture/extracted/asset-descriptions.md和capture/assets/存在;并且你能用一句清晰的话说明品牌。将asset-descriptions.md视为主资源清单。如果在真实捕获后它缺失,停止并报告捕获不完整。仅当此结构关卡仍然通过时,关于降级的可选阶段的警告才是可接受的。


步骤2:设计系统

目标:选择一个已交付的帧预设;脚本将其转换为此视频的frame.md + 字幕皮肤。

当BRIEF.md指定了style_preset——用户在意图层的展示中通过眼睛选择——使用它;仅当简报未指定时,判断权才在你手中。然后你做出唯一的选择——哪个预设:阅读../hyperframes-creative/references/design-spec.md并选择外观最适合品牌和简报的预设。然后运行:

node <SKILL_DIR>/scripts/build-frame.mjs --preset <name> --hyperframes .

脚本确定性地完成剩下的工作:将预设的FRAME.md复制到frame.md并重新混合到capture/extracted/tokens.json中的品牌令牌上(品牌颜色按角色——墨水、画布、强调——映射到预设的颜色键上,保留键/结构/组件;将预设的显示+正文字体替换为品牌字体),将预设的字幕皮肤复制到.hyperframes/caption-skin.html,并自我验证(在映射损坏时退出代码1)。一旦退出代码0,继续下一步——无需手动编辑规范。

没有品牌颜色/字体的tokens.json(例如,没有捕获)-> 脚本保留预设自己的调色板,一个完整的可交付设计。如果简报指定了捕获遗漏的品牌颜色/字体,在运行之前将它们添加到capture/extracted/tokens.json中(或使用用户的design.md来填充它);仅在映射确实需要时,事后手动调整frame.md。

关卡: build-frame.mjs退出代码0——frame.md从命名预设存在,并且(当预设附带一个时).hyperframes/caption-skin.html作为字幕皮肤源存在;选择的预设已记录为首选项(--key style_preset --workflow <this workflow>,简报合同§ 2)。


步骤3:故事板和脚本

目标:将简报和捕获的材料转化为已批准的逐帧故事计划。

阅读../hyperframes-creative/references/story-spine.md(钩子语言、价值先于证据、作为提案的故事板、来源可追溯的视觉元素)、references/story-design.md、../hyperframes-animation/blueprints-index.md、../hyperframes/references/storyboard-format.md和../hyperframes/references/script-format.md。使用它们来编写STORYBOARD.md,并在需要旁白时编写SCRIPT.md。从前置元数据duration:设置简报的length——一个粗略的期望;合成报告最终剪辑相对于它的位置。

使用story-design.md来获取故事蓝图、钩子、说服逻辑、节拍、VO_MODE和资源选择。作为一个软指南,参考../hyperframes-animation/blueprints-index.md中的角色→蓝图菜单:对于每个节拍,当有一个适合时,注明一个候选蓝图ID。故事真相仍然决定哪些节拍存在——切勿强制节拍以适合蓝图,也切勿仅仅因为有一个经过验证的形状可用就发明节拍。从capture/extracted/asset-descriptions.md(规范清单)中选择每个视觉帧的asset_candidates——不要浏览原始的capture/assets/。除非该清单缺失或不可用,否则不要要求用户选择资源。使用故事板和脚本参考中确切所需的字段。

起草后,运行审查循环的计划步骤——../hyperframes/references/review-loop.md § 1:将计划作为提案呈现,并问两个问题——批准或更改,以及草图优先(推荐)或跳过。反馈作为聊天回复到达;循环直到批准。这是一个检查点关卡(简报合同§ 1):在自主模式下,除非简报声明risk为low——然后直接进入步骤4,跳过审查,除非预设用户决定介入。在审查开始时,记录STORYBOARD.md和SCRIPT.md的首选项(--workflow storyboard和--workflow script)。

关卡: 用户批准了故事板和脚本。STORYBOARD.md从简报的length设置了正确的前置元数据duration。如果使用,SCRIPT.md存在且已批准。


步骤3.1:音频

目标:选择背景音乐(BGM)和音效(SFX),并配置画外音(VO)或AI语音。

首先,调用/media-use技能来查找歌曲:/media-use search songs --query '<vibe description>' --genre '<genre>' --mood '<mood>' --duration <seconds>。检索至少一个BGM轨道(返回歌曲时,在标题旁边使用...资源快捷方式)。选择匹配的轨道并提交以通过/media-use使用它。然后对SFX重复相同的过程:search sound-effects。将所有轨道路径写入audio_meta.json。

对于画外音,在BRIEF.md中使用voice偏好(例如,voice: "en-US-JennyNeural")或从可用选项中让用户选择。如果未指定,使用/media-use assume voice来根据品牌语气或意图层的默认值推断一个。

创建包含所选轨道和语音配置的audio_meta.json。

关卡: audio_meta.json存在,包含BGM轨道、SFX轨道(如果需要)以及语音配置。


步骤4:视觉设计

目标:将批准的故事板转化为包含具体视觉元素、动画描述和布局的增强故事板。

阅读../hyperframes-animation/visual-design.md(布局、排版、颜色、运动规则)和../hyperframes-creative/references/design-spec.md(预设的具体规格)。使用来自frame.md的设计规范、来自capture/的捕获资源以及来自STORYBOARD.md的节拍来丰富故事板。对于每个帧,添加:

  • 视觉布局: 元素放置、层结构的描述。
  • 动画笔记: 如何动画化元素的想法(例如,从底部滑入、淡入、缩放)。
  • 资源引用: 从此帧使用的确切资源(来自asset-descriptions.md)。
  • 文本叠加: 要在屏幕上显示的文本(如果有)。

在STORYBOARD.md中用此信息更新每个帧条目。不要手动编辑生成的HTML帧;在步骤5中处理。

关卡: STORYBOARD.md包含视觉描述、资源引用以及每个帧的动画笔记。帧计数与原始故事板匹配。


步骤5:帧

目标:构建每个单独的HTML帧和组合的index.html。

将帧构建工作分派给一个子代理。 分派一个子代理来构建单个帧。为子代理提供:指定帧的STORYBOARD.md部分、frame.md设计规范、捕获的资源以及任何动画规则。为每个帧创建compositions/frames/NN-*.html,其中NN是帧序号。

子代理的具体规则:

  • 使用精确的HTML布局从frame.md匹配设计。
  • 嵌入资源作为数据URI或引用capture/中的文件。
  • 应用捕获品牌颜色和字体。
  • 包含内联CSS进行动画(从显示的过渡开始)。
  • 遵循../hyperframes-animation/rules/frame-rules.md。

对于每个帧,子代理创建compositions/frames/NN-*.html。帧完成后,构建包含所有帧序列的compositions/index.html。

注意: 步骤6将使用这些文件及其在index.html中的顺序进行最终渲染。

关卡: compositions/frames/包含所有帧的HTML文件。compositions/index.html存在并按正确顺序引用它们。


步骤6:最终渲染

目标:将动画帧组合成最终视频。

用户关卡。 呈现最终预览(例如,通过打开compositions/index.html或运行本地服务器)。如果用户批准,运行渲染命令:

npx hyperframes render ./compositions --output ./renders/video.mp4 --format mp4

这需要FFmpeg可用。如果未安装,指导用户安装或提供替代方法。

呈现最终输出renders/video.mp4。

关卡: 用户批准了最终预览。renders/video.mp4存在且可以播放。


事后检查

  1. 检查renders/video.mp4的播放是否正常。
  2. 确认所有帧在逻辑上流动且视觉上一致。
  3. 如果使用,验证音频同步。
  4. 报告最终持续时间并与简报的length期望进行比较。

Individual skills in this repo

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

DansiDanutz/Video-Editor

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

DansiDanutz/Video-Editor

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

DansiDanutz/Video-Editor

Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.

DansiDanutz/Video-Editor

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, timeline, history, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

DansiDanutz/Video-Editor

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

DansiDanutz/Video-Editor

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

DansiDanutz/Video-Editor

Use when a HyperFrames composition needs a punch-in, punch-out, zoom, reframe, Ken Burns treatment, camera move, visual match/whip handoff, or other seek-safe 2D/3D keyframes; also for GSAP, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

DansiDanutz/Video-Editor

Search, install, and wire registry blocks and components into HyperFrames compositions. Use BEFORE hand-building any named visual — whenever a brief, a user, or a storyboard names a look, effect, treatment, or transition such as CRT scanlines, glitch, chromatic aberration, film grain, a shimmer sweep, a chart, a code or terminal window, a map, or a confetti burst — because roughly 400 hosted items already cover many of them and the search ranks all of them with nothing installed, no project, and no account. Also use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

DansiDanutz/Video-Editor

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

DansiDanutz/Video-Editor

Use when building or editing a HyperFrames project that people open in Studio: how the timeline should be laid out so it reads well (one caption track, one element kind per track, every scene a sub-composition) and where captions and key content may sit (safe zones). Don't use for how to perform an individual edit (split, trim, retime, volume, copy, swap): that is `creator-editing-recipes.md` in `/hyperframes-core`.

DansiDanutz/Video-Editor

Agent Media OS, the single skill for every media need in a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal.

DansiDanutz/Video-Editor

Divide a finished story/script into filmable scenes with per-scene image and animation prompts. Use when building a scene outline or shot list, deciding scene boundaries, durations, or what each visual must show.

DansiDanutz/Video-Editor

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

相关技能