Communitygithub.com

DansiDanutz/Video-Editor

用于构建或编辑 HyperFrames 项目,确保时间线布局清晰易读(一个字幕轨道、每个轨道一种元素类型、每个场景为一个子合成)并确定字幕和关键内容的放置区域(安全区)。不包括单个编辑操作(分割、修剪、变速、音量、复制、交换)的方法,这些内容在 `/hyperframes-core` 的 `creator-editing-recipes.md` 中。

Video-Editor 是什么?

该技能(Skill)为使用 HyperFrames Studio 的开发者或 AI 代理定义了项目结构约定,确保时间线在打开时是简短且可编辑的。它规定了三种核心规则:每个场景必须作为一个独立的子合成(sub-composition)加载,以避免时间线中出现不可编辑的嵌套行;所有字幕必须集中在一个单独的轨道(track)上,并使用 `data-track-kind="captions"` 标识,禁止分散或多个轨道;每个轨道只包含一种元素类型,通过 `data-track-kind` 属性(如 `video`、`graphics`、`audio`)进行分组,以便用户能够整体选择、静音或拖动。此外,还定义了安全区(safe zones)规范:所有可见内容必须位于动作安全框(90% 画面区域)内,字幕和关键内容必须位于标题安全框(80% 画面区域)内,并且这些安全框仅作为预览覆盖层显示,不添加到实际合成中。该技能主要在 HyperFrames Studio 平台上使用,适用于构建或编辑 HyperFrames 项目。验证工作通过运行 `hyperframes lint` 命令并在 Studio 中检查时间线布局来完成。

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

在你喜欢的 AI 中提问

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

文档

插件安装: 在执行 setup 或 freshness 命令之前,如果此技能位于 HyperFrames 插件内,请遵循插件执行规则。独立安装则保留下面的更新说明。

HyperFrames Studio 约定

Studio 为每个顶级元素绘制一个时间线行。遵循以下规则的项目打开后会显示为简短、可读的时间线;而不遵循的项目则会打开成一堆无法编辑的未标记行。这些是构建时应遵循的约定。有关如何修改单个剪辑,请遵循/hyperframes-core 中的 references/creator-editing-recipes.md,并且不要发明同一编辑操作的不同形式。

1. 每个场景是一个子合成

根合成仅包含时间控制的宿主、媒体和音频。任何具有嵌套结构的场景(包含子元素的 div、带有副标题的标题、图表)都应作为单独的文件加载,使用 data-composition-src 属性,并参考 references/sub-compositions.md 中的接线方法。

留在根合成中的嵌套标记不会成为单独的行。它会隐藏在一个不透明的行中,无法逐部分进行修剪或移动。

编写时就像有一个结构检查器会拒绝任何违规行为。

2. 一个字幕轨道

  • 所有字幕位于一个轨道上:一个子合成宿主(一个 data-track-index)带有 data-track-kind="captions" 属性,该宿主按顺序承载每个字幕组。
  • 切勿为每个字幕组设置单独的行,也切勿将字幕与其他类型的元素混合在同一个轨道上。
  • 逐字计时规则保持不变:参考 /embedded-captions 和 caption_* 的 lint 规则。

3. 每个轨道一种元素类型

按类型分组,使得每一行都是用户可以选择、静音或整体拖动的单一实体。

类型data-track-kind
基础视频 / A-rollvideo(来自标签)
场景、叠加、图形graphics
字幕captions
音频(画外音、音乐、音效)audio(来自标签)

将 data-track-kind 添加到子合成宿主上。视频和音频类型来自标签,因此 <video> 和 <audio> 不需要额外添加属性。为每种类型指定独立的 data-track-index;该数字仅用于显示,不会改变渲染层级。使用 CSS 进行分层。

4. 安全区

任何标尺或安全框覆盖元素都位于预览窗格中,绝不放在合成内部,因此不要向 HTML 添加参考线元素。 两种画幅(宽屏和竖屏)都使用相同的两个安全框,即 Premiere 的默认设置。预览切换会在每个边的中点绘制一个刻度标记。来源:packages/studio/src/utils/previewSafeMargins.ts 中的 ACTION_SAFE_PERCENT 和 TITLE_SAFE_PERCENT。

安全框占画幅比例每条边内边距
动作安全框90%5%
标题安全框80%10%
  • 安全边距:所有可见内容保持在动作安全框(90%)内,字幕和关键内容保持在标题安全框(80%)内。
  • 双画面和 50/50 布局中,每个半屏的内容保持在标题安全框内。

检查你的工作

运行 hyperframes lint 并修复所有发现的问题。然后在 Studio 中打开项目,检查时间线是否显示基础行、每个场景宿主一行、一个字幕行以及音频行。

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

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.

相关技能