Communitygithub.com

AlessandroFare/fluxychat

字幕疊加原則 — 為嵌入式字幕工作流程提供覆蓋層指導,定義字幕模型(丟棄 / 軌道 / 嵌入)以及字幕作為影片頂部疊加層的原則。

fluxychat 是什麼?

這個技能定義了為 AI 代理(如 Claude Code、Cursor 或 Codex)設計的字幕覆蓋層原則,專門使用於影片字幕與標題的生成工作流程。它將兩個核心概念融合成一個統一的指導方針:第一,「字幕模型」將每個口語短語分類為「drop(丟棄)」、「rail(軌道)」或「embed(嵌入)」,其中嵌入是稀有且珍貴的高峰,而非預設選項;第二,「覆蓋層法則」規定字幕行是合成在影片頂部的疊加層,而不是預留的區域,因此你永遠不需要向上移動內容或留下空白區域。此技能直接作用於上游的 `embedded-captions` 技能之上,並引用產品發布影片場景代理的限制條件 #13。對於任何處理教學影片、訪談、產品發布或含字幕的影片製作的開發者來說,這至關重要,它能確保構圖以真正的垂直中心為準,且字幕能清晰地覆蓋在內容之上,而不需犧牲畫面空間。此技能支援的平台的包括 Claude Code、Cursor 和 Codex。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/AlessandroFare/fluxychat/tree/HEAD/.agents/skills/captions-overlay

在你喜歡的 AI 中提問

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

說明文件

字幕覆蓋層原則

覆蓋層原則 — 補充上游的 embedded-captions 技能。應用於其之上;不要期望它已被整合進上游技能。

這裡結合了兩個概念。首先,字幕模型 — 每個口語短語都是 drop(丟棄)、rail(軌道)或 embed(嵌入),而嵌入是稀有且珍貴的高峰,不是預設選項。其次,覆蓋層法則 — 字幕行是作為疊加層合成在影片頂部;它不是預留區域,所以你永遠不需要向上移動內容或留下空白「騰出空間」。這兩者相輔相成:因為字幕以疊加層的形式呈現(軌道文字在前,偶發的嵌入文字在主體後方),構圖得以保持完整的畫面,並以真正的垂直中心為準。

字幕模型 — drop / rail / embed

每個口語短語都是以下三種之一(直接引用自 embedded-captions):

是什麼如何顯示
drop填充詞 — 嗯/呃、結巴、自我修正不顯示
rail預設 — 一般口語內容(逐字)乾淨的下三分之一字幕,在前方,可讀。重點詞可以加上行內 強調 高亮(強調色 / 活躍詞彈出)— 它仍留在軌道上。
embed提升的高峰 — 關鍵節拍一個大字合成在主體後方(遮罩遮擋),有設計過的入場與出場

軌道承載大部分文字;嵌入是稀有、珍貴的高峰 — 每個節拍最多一個,永遠不讓兩個相鄰或同時可見,間隔至少一個節拍。一個短片 → 通常一個嵌入;一個長解說片 → 大約每個段落一個。每個字都嵌入是常見的錯誤。

這是標準模式形狀(軌道 = 逐字的下三分之一;嵌入 = 合成在主體後方的高潮)。電影模式會移除軌道,讓所有文字都變成嵌入風格 — 僅在純電影要求時使用,絕對不適用於解說 / 旁白這類需要文字可讀的場景。

軌道優先,嵌入稀缺(承載規則)

引用自 embedded-captions 的不妥協條件:

  • 對談話性頭像 / 解說片使用軌道優先。 不要嵌入整個逐字稿 — 大部分文字在軌道上;僅嵌入高峰。全部嵌入是常見的預設錯誤。
  • 嵌入是稀缺且間隔的。 每個句子/節拍 ≤1 個嵌入,永遠不讓兩個相鄰或同時可見,間隔至少一個節拍,最多一個 apogee。高峰 = 每個節拍的峰值,不是「整個影片的唯一亮點。」

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

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

  • 將構圖置於真正的垂直中心 — y = H / 2(橫向 540,直向 960)。不要為了「騰出空間」給字幕而向上移動內容;構圖以 0.42 × H 為中心並留下底部空白區域是錯誤,而不是修正。
  • 內容可以延伸至畫面底部。全版主體、軌道和背景都歡迎。
  • 一項軟性的禮貌規則: 避免將_關鍵的小型可讀文字_(如 URL 行、法律文字行、副字幕)正好放在字幕行所在的底部 ~80px 中心區域 — 覆蓋層會與之衝突。字幕下方的較大圖像 / 卡片 / 環境內容則沒問題;字幕外觀設計為可覆蓋在內容上閱讀。
  • 不存在機器保留閘門(舊的 captions.mjs keepout 檢查已退役)。Finalize 的快照品質檢查會以視覺判斷字幕覆蓋內容的可讀性。

當字幕停用時: 相同的定位自由度 — 覆蓋層只是不存在。

為什麼這兩個規則是一個原則

模型說軌道在前方,而嵌入是合成在主體後方的稀有文字 — 兩者都是添加到原始影片之上的圖層。覆蓋層法則說字幕行是合成在整個影片頂部的圖層,不是從佈局中切割出來的區域。因此,無論是在字幕處理流程還是發布影片流程中,字幕都是你添加的覆蓋層,而不是你預留的區域:

  • 保持完整畫面;以真正中心為準;讓內容延伸到邊緣。
  • 讓軌道(或小型覆蓋層字幕行)承載逐字文字。
  • 只有在真正的高峰時才將一個字提升為嵌入 — 稀缺、間隔、絕不兩個同時出現。
  • 不預留任何東西;以視覺判斷字幕覆蓋內容的可讀性,而不是透過保留閘門。

Individual skills in this repo

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

AlessandroFare/fluxychat

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.\n

AlessandroFare/fluxychat

Use when audio already placed in a HyperFrames composition needs to be mixed: a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), or automation envelopes drawn on a track's volume or any effect parameter. 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`.\n

AlessandroFare/fluxychat

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, 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.\n

AlessandroFare/fluxychat

Install, discover, and wire registry blocks and components into HyperFrames compositions. 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).

AlessandroFare/fluxychat

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.\n

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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. Also covers Tailwind projects and the STORYBOARD.md / SCRIPT.md plan formats. Read before writing composition HTML.

AlessandroFare/fluxychat

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

AlessandroFare/fluxychat

Use when a HyperFrames composition needs seek-safe 2D/3D keyframes, GSAP timelines, 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.

AlessandroFare/fluxychat

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]

AlessandroFare/fluxychat

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI animation (scroll, cursor, callouts), or fusing a real image's geometry into a chart. Usually under 10s (up to ~30s), no narration or live-action subject; renders to MP4 or transparent overlay. Longer / narrated / multi-scene → /general-video. Unclear → /hyperframes.

AlessandroFare/fluxychat

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

AlessandroFare/fluxychat

Design and improve user interfaces using the concrete rules from Refactoring UI (Wathan & Schoger) — constrained spacing/type/color/shadow scales, visual hierarchy through weight and color rather than size, and depth through emulated light. Use when building or styling any UI (web, app, dashboard, landing page, component), when picking font sizes, spacing, colors, shadows or border radius, when designing a color palette or design tokens, and whenever someone says a UI "looks off", "looks amateur", "feels cluttered/plain/unfinished", or asks to "make this look better".

AlessandroFare/fluxychat

Port an existing Remotion (React) composition''s source to HyperFrames HTML. Use ONLY on an explicit ask to port/convert/migrate/translate a Remotion source — one-way, Remotion-only. A passing Remotion mention, reference-only code, or "make something like my Remotion video" is a fresh build (/general-video). Unclear → /hyperframes.

AlessandroFare/fluxychat

Use before UI-related work to select the smallest useful UI Skills context through the ui-skills CLI.

相關技能