Communitygithub.com

DansiDanutz/视频编辑器

强制入口:任何制作、创建、编辑、动画或渲染视频、动画或动态图形的请求,都必须首先读取此技能。

视频编辑器 是什么?

该技能是 HyperFrames 视频创作工作流的强制入口点,负责处理任何视频、动画或动态图形的制作、编辑与渲染请求。它基于项目状态进行决策:对于全新创作,运行意图层采集需求,然后根据交付物类型(如演示文稿、音乐驱动视频、PR 说明视频等)路由到 /slideshow、/music-to-video、/pr-to-video 等专用工作流;对于现有项目,直接执行检查、诊断、预览、渲染等操作或应用编辑,跳过意图层。作为核心协调器,它管理 CLI 版本升级、领域技能按需加载(如 /hyperframes-core、/hyperframes-animation)以及插件安装,最终通过 BRIEF.md 向工作流传递路由决策。支持在 Cursor、Claude Code、Codex 等 AI 编码代理中运行,是 HyperFrames 生态系统的统一入口。

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

在你喜欢的 AI 中提问

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

文档

插件安装: 在运行设置或刷新命令之前,如果此技能位于 HyperFrames 插件内部,请遵循插件执行规则。独立安装则保留以下更新说明。

HyperFrames 入口点

HyperFrames 从 HTML 渲染视频 —— 一个合成就是一个 HTML 文件,其 DOM 使用 data-* 属性声明时序,其动画运行时是可搜索的,其媒体播放由框架管理。完整的创作约定位于 /hyperframes-core 中;在编写合成 HTML 之前请先阅读它。简要说明、故事板、审查、制作、调度和帧工作者约定位于此技能的 references/ 目录中。

1. 从项目状态开始

应用第一个匹配的行;不要评估更低的状态行:

状态操作
明确的现有 Remotion 源码移植到 HyperFrames读取 references/routes/remotion-to-hyperframes.md,然后直接路由到该工作流。跳过意图层。
对现有 HyperFrames 项目执行特定操作:检查、诊断、验证、预览、渲染、发布或批量渲染仅执行该操作。跳过意图和工作流路由;加载 /hyperframes-cli 和任何必需的领域技能。
对现有项目进行特定编辑进行编辑。不要运行意图层。要了解项目时间线(轨道、片段、开始、结束、播放内容),请运行 npx hyperframes timeline [--json],而不是读取 index.html 和每个子合成文件。
存在 BRIEF.md读取 workflow 和 flow。执行该工作流;flow: companion 始终在 /general-video 中执行。不要询问任何简要问题。
没有简要说明,但存在 hyperframes.json 或 STORYBOARD.md从项目文件和记录的偏好中恢复。从现有工件推断所属工作流。如果无法唯一确定,则询问一个仅路由问题;不要运行意图访谈。
全新创作运行意图层 —— references/intent-interview.md —— 然后使用第 2 节的表路由一次。

当你编辑现有项目时,用项目历史记录将你的编辑括起来(/hyperframes-cli,你的轮次中的项目历史记录)。

如果新请求未标识主题或输入,请在路由之前询问视频内容。在询问任何内容之前,先检查偏好和配方(references/intent-interview.md,步骤 1)。figma.com 输入或命名配方会更改接收方式,而非路由——访谈的“适应正交输入”部分负责处理两者。

保持项目的 CLI 更新

一个已搭建的项目在其 package.json 脚本中固定了 hyperframes@<version>,以使渲染保持可重现;该固定版本不会自行更新,且使用旧版 CLI 的固定版本运行不会打印任何相关警告。当恢复一个其脚本中包含固定版本的项目时,在第一个影响渲染的命令之前探测一次:

npx hyperframes@latest upgrade --project . --check

该探测是只读的,报告固定版本与最新版本的关系;请保留显式的 . —— 在旧版 CLI 上,裸 --project 后跟另一个标志会将该标志用作其目录值。当它报告项目落后时——或任何 CLI 输出已显示该信息(来自固定脚本的 stderr 通知 This project pins hyperframes@… (latest …),或 --json 结果中的 _meta.updateAvailable: true)——请应用 npx hyperframes@latest upgrade --project .,然后使用 npx hyperframes check 验证。通过检查确认项目在此版本上组合仍然有效,而非渲染输出与旧固定版本逐帧相同,因此成功的版本升级从不是静默的:在运行摘要中指明新旧版本。尚无组合的项目无需验证。如果检查失败,请还原 package.json 更改,继续使用固定版本,并报告项目保持的版本及原因。对信号采取行动,而非将其转达给用户;绝不要留下未经验证的固定版本更新。

2. 路由全新创作

使用第一个匹配的行。匹配请求的交付物,而非提及的单词或文件类型。

优先级请求工作流
1明确移植现有的 Remotion 源码/remotion-to-hyperframes
2创作演示文稿、融资演讲或可导航的交互式演示/slideshow
3向现有的说话人头部镜头添加纯字幕,不更改镜头/embedded-captions
4向现有的说话人头部、采访或播客镜头添加设计图形叠加,不更改镜头/talking-head-recut
5从音乐轨道构建节拍同步视频,无旁白或网站抓取/music-to-video
6创建显式短、无旁白、运动优先的单元,通常短于 10 秒/motion-graphics
7从 PR 引用解释 GitHub 拉取请求或代码更改/pr-to-video
8从 URL 或网站特定简要来营销或展示网站、产品站点、应用程序或公司/product-launch-video
9使用虚构的视觉效果解释主题、文章或笔记,无产品或网站抓取/faceless-explainer
10任何其他自定义视频或合成/general-video

在最终确定路由之前,请读取 references/routes/<workflow>.md —— 每个路由一个小的文件:规范的输入/输出/触发约定(在延迟安装的工作流技能可用之前)加上该路由的访谈条目。如果候选路由不满足其约定,则继续路由,而不是强制匹配。仅读取匹配路由的文件。

解决常见歧义

  • 一个短的动画标题、标志特效、统计命中、图表命中、地图命中或独立的下三分之一是 /motion-graphics,当它无旁白且运动即信息时。静态标题卡、有旁白的序列、较长的蒙太奇或自定义循环是 /general-video。
  • 一个显式短的动态图形可能使用 URL、推文、文章或截图作为源材料。通用的“从此网站制作视频”请求是 /product-launch-video。
  • 带有字幕的现有镜头路由到 /embedded-captions;带有设计信息卡的镜头路由到 /talking-head-recut。重新定时、重新排序、重新着色、重新构图或混合镜头是自定义编辑,回退到 /general-video。
  • 仅当节拍网格驱动作品时,音乐文件才选择 /music-to-video。用作背景音乐不会覆盖主题匹配的路由。
  • “我想要一个故事板”更改的是审查过程,而非工作流。若无其他路由信号,则使用 /general-video。已确认的草图 storyboard.html 本身可能就是请求的交付物;审查循环定义了该结束点。
  • 专门的叙事工作流支持最多约 3 分钟,在 30–90 秒范围内最强。明显较长的作品路由到 /general-video。长度绝不会覆盖明确的移植、演示文稿、字幕、叠加或音乐驱动的交付物。

3. 路由一次,然后退出

对于全新创作,意图层(references/intent-interview.md)运行完整对话——记忆、分类、提案轮次、必备条件、运行形态、交接——并以写入 BRIEF.md 结束。简要说明是工作流读取的唯一路由工件;稍后不会重新打开此技能或访谈。从 BRIEF.md 回答所有后续的“路由要求什么?”的问题。

4. 安装并进入工作流

在读取所选工作流之前,安装或刷新它以及核心领域技能:

npx hyperframes skills update <workflow-name>

使用不带 / 的裸名称。如果命令失败,则显示错误;不要从内存重建工作流。有关安装的所有其他内容——核心与延迟的拆分、init 刷新什么、诊断、CI 选择退出以及无 CLI 回退——都位于 references/skill-lifecycle.md 中。

5. 按需加载领域技能

需要技能
合成结构、时序属性、轨道、变量、确定性/hyperframes-core
运动规则、场景蓝图、过渡、运行时适配器/hyperframes-animation
搜索安全的 GSAP、CSS、Anime.js、WAAPI、FLIP、路径、蒙版、SVG、3D 关键帧或 hyperframes keyframes 诊断/hyperframes-keyframes
设计规格、概念、调色板、排版、旁白、节拍规划/hyperframes-creative
图像、图标、标志、音频、字幕、调色、LUT、可复用媒体/media-use
画外音刻录、音频效果链、自动化包络或跨多个轨道的一条链/推子(子混音总线)/hyperframes-audio
初始化、检查、验证、快照、比较、批量渲染、Studio、渲染、发布或诊断/hyperframes-cli
注册表块和组件/hyperframes-registry
一个命名的外观、效果、处理或过渡——CRT 扫描线、故障、胶片颗粒、闪光扫过、五彩纸屑爆发——在手动构建之前/hyperframes-registry
Figma 资源、标记、组件或作为重建运动的故事板帧/figma

创作者的编辑短语是跨域请求。加载匹配行中命名的每个技能:

创作者请求所需领域
“剪辑此镜头”、硬切、修剪、拼接、重新排序或使用源范围/general-video + /hyperframes-core;核心拥有 data-start、data-duration、data-media-start 和轨道布局。
此处放大、推入/推出、平滑多状态缩放或重新构图、Ken Burns 或镜头移动/general-video + /hyperframes-core + /hyperframes-keyframes;动画化内部视觉/裁剪包装器,而非定时剪辑。
匹配剪辑或甩镜相机过渡/general-video + /hyperframes-animation + /hyperframes-keyframes + /hyperframes-registry;搜索/

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

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

Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.

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.

相关技能