Communitygithub.com

Alemoterani/auto-edit-hyperframes

覆蓋式字幕指導方針 — 用於 embedded-captions 工作流程的字幕模型(drop / rail / embed)以及字幕是疊加在影片之上的覆蓋層,而非會預留底部區域、迫使內容上移的保留帶。

auto-edit-hyperframes 是什麼?

這個技能定義了一套統一的「字幕覆蓋式指導方針」,適用於 embedded-captions 工作流程以及產品發布影片場景。它將兩個核心概念結合為一體:第一,**字幕模型**(drop / rail / embed)——每個口語短語被歸類為「drop」(語氣詞,不顯示)、「rail」(預設的逐字字幕,顯示在前方)或「embed」(稀有且應得的巔峰詞彙,合成在主體後方);第二,**覆蓋法則**——字幕行是以覆蓋層方式疊加在影片頂部,而非從版面中切割出來的預留區域。開發者應在決定某個詞組應該被丟棄、保留為逐字字幕、或晉升為稀有的嵌入式高潮時載入此技能;以及在進行需要攜帶字幕的構圖時使用,禁止預留底部安全區,並將構圖中心對齊於真正的垂直中心。此技能支援 Standard 模式(rail + embed)和 Cinematic 模式(純 embed,僅用於純電影風格要求)。它引用了 embedded-captions 的 rail+embed 模型以及產品發布影片場景代理的限制條件 #13,並作為上游技能的補充,**疊加在其之上**。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/.agents/skills/captions-overlay

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

字幕覆蓋式指導方針

覆蓋式指導方針 — 補充上游的 embedded-captions 技能。疊加在其之上使用;不要預期它已合併入上游技能。

此處結合了兩個概念。首先,字幕模型——每個口語短語是 drop、rail 或 embed,而 embed 是稀少且應得的巔峰,並非預設選項。其次,覆蓋法則——字幕行是以覆蓋層方式疊加在整個影片頂部;它不是預留區域,因此您永遠不需要將內容上移或留下死區來「騰出空間」給字幕。兩者相互加強:因為字幕以覆蓋層方式呈現(逐字 rail 在前方,偶爾的 embed 在主體後方),構圖保留了完整的畫面,並以真正的垂直中心為基準對齊。

字幕模型 — drop / rail / embed

每個口語短語屬於以下三類之一(直接引用自 embedded-captions):

什麼如何顯示
drop填充詞 — 呃/嗯、結巴、自我修正不顯示
rail預設 — 一般口語內容(逐字)乾淨的字幕底邊三分之一位置,在前方,可讀。一個重點詞可以獲得行內 emphasis 高亮(強調色 / 活躍詞彈跳)——它仍留在 rail 上。
embed被提升的巔峰 — 標題性節拍一個大詞在主體後方合成(遮罩遮擋),有設計的入場 + 出場

Rail 承載大部分文字;embed 是稀少且應得的巔峰 — 每個節拍 ≤1 個,從不兩個相鄰/同時可見,間隔 ≥ 一個節拍。短影片 → 通常一個 embed;長解說 → 每段大約一個。把每個詞都做成 embed 是常見錯誤。

這是 Standard 模式的形狀(rail = 逐字底邊三分之一;embed = 在主體後方合成的高潮)。Cinematic 模式捨棄 rail,讓所有內容都是 embed 風格 — 僅用於純電影風格要求,絕不用於解說 / 旁白,因為那些必須能看到文字。

Rail 優先,embed 稀少(承載規則)

引用自 embedded-captions 的不可妥協項目:

  • 針對談話性頭部 / 解說影片,rail 優先。 不要將整個逐字稿都做成 embed — 大部分文字是 rail;只針對巔峰做 embed。把所有內容都做成 embed 是預設錯誤。
  • Embed 稀少且間隔開。 每個句子/節拍 ≤1 個 embed,從不兩個相鄰或同時可見,間隔 ≥ 一個節拍,最多一個 apex(頂點)。climax = 每個節拍的巔峰,不是「整個影片的唯一高潮。」

覆蓋法則 — 字幕不是預留區域

在生成的發布影片構圖中,啟用字幕時,Finalize 將一個小型的、最小化的逐詞字幕行作為覆蓋層疊加在整個影片頂部(單行文字,底部居中,約佔畫布底部 ~5-8% 的高度)。它是覆蓋層,不是預留區域(直接引用產品發布影片場景代理的限制條件 #13):

  • 將構圖中心對齊於真正的垂直中心 — y = H / 2(橫向 540,直向 960)。不要將內容上移來「騰出空間」給字幕;以 0.42 × H 為中心且底部有死區的構圖是錯誤,而非修正。
  • 內容可以延伸到畫布底部。全出血的主體、rail 和背景都可以。
  • 一條軟性的禮儀規則: 避免將_關鍵的小型可讀文字_(如 URL 行、法律聲明行、副標題)正好放在字幕行所在的底部 ~80px 中心範圍內 — 覆蓋層會與之衝突。大圖像 / 卡片 / 環境內容位於字幕下方沒問題;字幕皮膚的設計就是讓內容在其背後仍可閱讀。
  • 沒有機器保留閘門(舊的 captions.mjs keepout 檢查已退役)。Finalize 快照 QA 以視覺方式判斷字幕重疊內容的可讀性。

當字幕關閉時: 相同的定位自由度 — 覆蓋層僅是不存在。

為何這兩個規則構成同一指導方針

模型指出 rail 在前方顯示,embed 是在主體後方合成的稀有詞彙 — 兩者都是疊加到未經修改的原始影像上的圖層。覆蓋法則則指出字幕行是疊加在整個影片頂部的圖層,不是從版面中切割出來的區域。因此,無論是在字幕處理流程還是在發布影片流程中,字幕都是您添加的覆蓋層,而不是您預留的區域:

  • 保留完整畫面;以真正中心為對齊基準;讓內容延伸到邊緣。
  • 讓 rail(或小型的覆蓋字幕行)承載逐字文字。
  • 只在真正的巔峰時將一個詞提升為 embed — 稀少、間隔開、從不兩個同時出現。
  • 不預留任何東西;以視覺方式判斷字幕重疊內容的可讀性,而非透過保留閘門。

Individual skills in this repo

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

Alemoterani/auto-edit-hyperframes

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

Alemoterani/auto-edit-hyperframes

The technique catalog: five velocity-matched SEAMS (zoom-through, INVERSE zoom-through, cut-the-curve, waterfall cut, rack-focus blur-cut) plus the two in-scene techniques — waterfall ENTRY (staggered arrival cascades for title cards / segment openers) and the nudge curve (slow-fast-slow three-phase group slides). Covers partial-travel (~12% of frame) velocity matching via mirrored power4 eases, the Z scale-sign rule, size-scaled blur (10px text / 18-20px full-frame), word-by-word staggered cuts, cascade pacing by element weight, and the 10/65/25 slide ratio. Read before authoring any transition, text-beat handoff, kinetic text entry, or group reposition. [depth, zoom, inverse-zoom, scale-sign, mirrored-zoom, rack-focus, pacing, velocity, cut-the-curve, waterfall, stagger, cascade, kinetic-text, title-card, segment-opener, nudge, slide, easing, group-motion, z-depth, motion-graphics, cinematic, transition, blur, directional-continuity]

Alemoterani/auto-edit-hyperframes

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

Alemoterani/auto-edit-hyperframes

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

Alemoterani/auto-edit-hyperframes

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

Alemoterani/auto-edit-hyperframes

Leaves sweep through the frame and part to reveal the headline. HyperFrames block, 1920×1080, 12s, 11 variables.

Alemoterani/auto-edit-hyperframes

A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

Alemoterani/auto-edit-hyperframes

A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.

Alemoterani/auto-edit-hyperframes

An orbiting camera follows an ice logo as it breaks apart, reforms into two text moments, and fades. HyperFrames block, 1920×1080, 22.5s, 216 variables.

Alemoterani/auto-edit-hyperframes

Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.

Alemoterani/auto-edit-hyperframes

A single feature card orbits a dot sphere on approved Blender camera motion. HyperFrames block, 1920×1080, 10s, 4 variables.

Alemoterani/auto-edit-hyperframes

A wireframe portal bursts open, the title comes through, then its letters swap into a second phrase. HyperFrames block, 1920×1080, 8s, 9 variables.

Alemoterani/auto-edit-hyperframes

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet `anchor` rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

Alemoterani/auto-edit-hyperframes

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

Alemoterani/auto-edit-hyperframes

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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`.

Alemoterani/auto-edit-hyperframes

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, clean, 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.

Alemoterani/auto-edit-hyperframes

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.

相關技能