Communitygithub.com

奶油插入符風格 (Cream Caret Type)

建立一個具有即時文字編輯器效果的影片 — 阿拉伯語逐字輸入,帶有彩色插入符,螢幕上編輯,一個小圓點變成眼睛,以及帶有交替動詞的名詞。

奶油插入符風格 (Cream Caret Type) 是什麼?

這個技能是專為導演指定的「奶油插入符」(Cream Caret Type) 風格卡片所設計的影片製作流程。它建立一個 9:16 直式、以阿拉伯語為主的影片開場,模仿即時文字編輯器:文字在雙色背景(夜間與紙張)上逐字以插入符鍵入,接著進行選取、刪除、重新輸入的動畫。視覺元素包括一個扁平輪廓剪影、一個透過匹配剪輯(match-cut)轉變為扁平向量眼睛的彩色圓點、以及一個帶有每 16 幀切換一次的粗體動詞的固定名詞。影片結尾使用一個像素藝術圖示和一個字母組合結束卡。此風格強調每個視覺事件對應一個音效,其間保持靜默。它支援 Claude Code、Cursor 等 AI 編碼代理,透過 Node.js 指令碼工具 (`node tools/vid.mjs`) 來應用風格、尋找區塊及渲染。該技能目前標記為「草稿」(DRAFT) 狀態,尚未經過測試,使用前需告知專案擁有者。其核心實作包含一個客製化的阿拉伯語打字機效果,使用 `Intl.Segmenter` 來正確處理阿拉伯語連字與變音符號,並內建了針對文字邊界、插入符位置及音訊頻譜圖的嚴格品質檢查。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bassam1998new-ops/hyperframes-students/tree/HEAD/.claude/skills/style-cream-caret-type

在你喜歡的 AI 中提問

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

說明文件

風格:奶油插入符 (Cream Caret Type)

一種「即時文字編輯器」開場:兩個扁平色塊、一個強調色、阿拉伯語逐字輸入並帶有插入符、螢幕上即時編輯、一個圓點變成眼睛、以及一個帶有交替粗體動詞的名詞。文字即聲音;每個動作都有其專屬的小音效。 卡片位置:video-projects/_library/styles/cream-caret-type/style.md — 狀態 草稿(在負責人於專案看板批准前,請先告知他)。此風格尚未被建立或渲染過。

首先查看視覺設計(在風格資料夾內):

  • frames/01-typed-word-measure-guides.png (不在公開儲存庫中)
  • frames/02-select-highlight-silhouette.png (不在公開儲存庫中)
  • frames/03-flat-eye-blur-slide.png (不在公開儲存庫中)
  • frames/04-verb-swap-icon-underline.png (不在公開儲存庫中)
  • frames/05-bold-word-pixel-icon.png (不在公開儲存庫中)

這些是另一位創作者的參考靜態圖 — 僅供視覺參考,切勿將其傳送給 AI 工具,應在首次建立後用我們自己的影格替換它們。動作參考:refs/ref-typing-10fps.jpg (不在公開儲存庫中)、refs/ref-dot-to-eye-matchcut-10fps.jpg (不在公開儲存庫中)、refs/ref-eye-zoom-through-10fps.jpg (不在公開儲存庫中);音效參考:refs/ref-audio-spectrogram.jpg (不在公開儲存庫中);腳本參考:refs/README.md (不在公開儲存庫中)。

0. 先套用卡片

node tools/vid.mjs style apply cream-caret-type <project> [--mode calm|punchy]
node tools/vid.mjs style show cream-caret-type

注意事項:以原生埃及阿拉伯語書寫(切勿翻譯參考資料中的黎凡特阿拉伯語台詞);在開始建立前,先向負責人展示這些文字。

1. 顏色 = 角色(品牌色彩填入十六進位碼)

風格 = 品質、結構與動態。除非品牌規範指定,否則切勿使用參考資料中的海軍藍/奶油色/橙色。

角色CSS 變數測試預設值(參考)來自 brand/<name>.md
夜間背景、剪影、紙上墨色--night#0E1A2B深色畫布 / 主要文字色
紙張背景、鞏膜、夜間墨色--paper#F8F1EC淺色畫布
插入符、選取範圍(40%)、圓點、虹膜、底線、圖示--accent#FA692C主要強調色 — 每次只出現一處,佔畫面不超過 3%
淡出文字、引導標籤--muted#8E93A8次要強調色
結束卡片色塊--tile#16233B夜間背景色亮度提升約 5%

2. 開始建立

  • 優先使用函式庫: node tools/vid.mjs find --portrait --arabic-safe … + director/library.md。
  • 最接近的區塊(使用 node tools/vid.mjs use <block> <project>):
    • mk-hook-title-ar-portrait — 帶有本地 Cairo 字體與 RTL 安全佈局的粗體阿拉伯語主字;可複用其外殼,並將其遮罩揭示效果替換為打字機效果。
    • mk-callout-highlight-9x16 — 由單一參數驅動的逐詞文字範圍,用於建立 400 + 700 兩種字重的文字行,以及將文字淡出至次要色但保留一個詞的效果。
    • icon-animation-9x16 — Lucide 筆觸繪製圖示動畫;用於交替動詞上方的 36px 強調色圖示。
    • yt-camera-move-9x16 — 帶有失焦效果的數位推進;用於剪影的 0.2 秒推近(需添加動態模糊)。
    • mk-cta-endcard-portrait — 用於字母組合色塊結束卡(使用負責人自己的標記,切勿使用參考資料中的)。
  • 手動建立(尚未收入函式庫):
    1. 阿拉伯語打字機 + 插入符 — 一個文字節點,透過 GSAP 代理 {n} 控制 el.textContent = clusters.slice(0, n).join('')(可安全搜尋);使用 Intl.Segmenter('ar', {granularity: 'grapheme'}) 分割,使シャッダ/變音符號能與字母一同鍵入。模式僅存在於 _library/assets/kits/node-explainer/nx.js 的 type() 函式中(它是以程式碼單元切片 — 不適用於阿拉伯語)。插入符 = 位於文字視覺左側的 4px 強調色條,打字期間恆亮,單詞完成後約 0.4 秒隱藏(不顯示閃爍)。
    2. 選取 → 刪除 → 重新輸入 — 強調色方塊以 40% 透明度置於單詞後方(100 毫秒進入,200 毫秒維持),然後在一幀內將 n 設回 0,接著輸入新單詞。
    3. 測量引導疊加層(僅第一個節拍) — 1px 虛線圍繞文字邊界框,全寬/全高,以及每次更新時從 getBoundingClientRect() 讀取的 11px 次要色「WIDTHpx / HEIGHTpx」標籤。
    4. 圓點 → 眼睛匹配剪輯 — 單詞在 0.3 秒內淡出至 --muted,而一個小圓點(一個小強調色圓圈,置於字母的點的上方,而非字型本身)保持不動;硬剪輯至一張 SVG 眼睛,其虹膜中心 = 該圓點的位置。眼睛:以 --paper 色在 --night 色背景上的杏仁形路徑、強調色虹膜 + 夜間色瞳孔裂縫 + 白色高光;眼瞼 0.2 秒張開,向右快速移動 0.2 秒並帶有 3 個幻影副本(透明度 0.45 / 0.25 / 0.12),然後返回。
    5. 穿透放大 — 在 0.14 秒內將眼睛群組放大約 12 倍進入虹膜(expo.in 曲線)+ 模糊效果,然後硬剪輯回紙張背景。
    6. 動詞交替槽 — 在一行 RTL 文字中,固定名詞(字重 400)+ 交替動詞(字重 700);每 0.533 秒(30 fps 下為 16 幀)在精確的幀邊界上切換動詞文字,圖示以 back.out(1.7) 曲線彈出,階梯式底線(SVG 折線)在 0.2 秒內繪製於名詞下方。
    7. 剪影 — 使用負責人自己的個人照片(經閾值處理並填入 --night 色,可自由選擇在程式碼中或使用 ffmpeg 一次性處理);絕不自動生成,絕不使用參考資料中的。
    8. 像素藝術圖示 — 由小方格組成的 SVG(例如揮手圖案),執行 2 個揮動循環。
  • 佈局 9:16(1080×1920): 單個居中單詞/行位於 y ≈ 918(48%);側邊文字位於剪影旁,靠右對齊,x ≤ 960(參考資料中約至 1005 — 請勿模仿);所有元素位於 x 60–960、y 220–1500 範圍內;底部 20% 保持空白。文字大小:主詞 ≈ 200px(字重 700)、側邊詞 ≈ 115px、交替行 ≈ 85px、小行 ≈ 55px、字距 0、僅在文字元素上設定 dir="rtl"。
  • 佈局 16:9: 尚未建立 — 無對應參考。
  • 動態參數: 卡片中的 ```json 區塊(主詞打字間隔 100 毫秒/字母,小詞 60 毫秒;交替間隔 533 毫秒;推近 200 毫秒;穿透放大 140 毫秒;滑入 300 毫秒並帶 18px 模糊;結束卡片 1.7 秒)。
  • 字幕: 此風格沒有字幕列 — 螢幕上的文字即腳本。如果加入負責人的配音,請使用 arabic-captions 技能(先執行 Scribe,或使用本地 faster-whisper large-v3 模型對齊腳本;使用後關閉 Whisper)讓每行鍵入文字與其話語時間對齊,並僅鍵入關鍵短語,而非每個單詞。
  • 音效: 僅限音效(SFX),每個事件對應一個撞擊聲,其間保持靜默:打字時使用 sfx/el/ui-type.mp3;剪輯時使用 impact-soft.mp3 / impact-tight.mp3;眼睛出現時使用 impact-deep.mp3 或 sub-drop.mp3;穿透放大前使用 whoosh-reverse.mp3;每次交替時使用 ui-pop.mp3(每次音調升高一個半音);結束卡片下使用 stinger-brand.mp3。主音量 -14 LUFS,峰值上限 -1 dBTP。僅在 punchy(強勁)模式下使用音樂,音量較低,音樂來自 _library/assets/music (不在公開儲存庫中)(絕不生成音樂)。

3. 在負責人查看前的檢查

  1. npx hyperframes lint 在專案目錄內執行 — 0 個錯誤,無遠端字體或 GSAP 依賴。
  2. npx hyperframes snapshot --at <mid-typing, selected, eye, swap 1, swap 3, end> — 檢查每一幀:每個打字階段的阿拉伯語均正確連接(無孤立シャッダ、無錯誤字型形式),插入符位於左側。
  3. npx hyperframes render --quality draft → node tools/vid.mjs judge <draft.mp4> → 檢查 sheet.jpg 和 safe-sheet.jpg。
  4. 安全區域:x 60–960、y 220–1500;阿拉伯語從右至左,不使用逐詞文字範圍,不在 <html> 上設定 dir="rtl"。
  5. 風格檢查:僅使用兩種背景色 + 一種強調色;交替動畫落在幀邊界上(逐步檢查 16 幀跨度);每個視覺事件都有對應音效,且間隔為靜默(使用 ffmpeg … showspectrumpic 與 refs/ref-audio-spectrogram.jpg (不在公開儲存庫中) 比對);真實峰值 ≤ -1 dBTP;不出現參考資料中的任何文字、名稱、剪影或標記。

應做 / 不應做

  • 應做: 每行鍵入文字表達一個想法;將阿拉伯語作為一個完整字串,按字素叢集增長;使用負責人自己的剪影和標記;從首次建立的成果中製作 3–6 個我們自己的影格,並替換參考靜態圖;將 30 fps 的打字片段與 refs/ref-typing-10fps.jpg (不在公開儲存庫中) 進行比對評估。
  • 不應做: 複製參考資料的文案或身分識別;對交替效果使用交叉淡入淡出;添加顆粒、漸層或第三種主要顏色;將影格(frames/)傳送給 AI 工具;在此風格上花費點數;自行批准該卡片。

任務完成後:node tools/vid.mjs style comment cream-caret-type "<哪些效果好或不好>"

Individual skills in this repo

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

bassam1998new-ops/hyperframes-students

Make a new video with a beginner, start to finish — a few easy questions, pick a look from this repo's styles, build it with HyperFrames, check the frames, render and show it. Use when the student says "new video", "make a video", "اعمل فيديو", "عايز فيديو", "reel", "animation", or asks how to start a video. Hands the technical HyperFrames rules to the official hyperframes skills.

bassam1998new-ops/hyperframes-students

First-time setup for the HyperFrames student studio. Checks the computer (Git, Node.js, FFmpeg, the render browser), explains in plain words what is missing, recommends what to install, asks before installing anything, then makes a 3-second test video to prove it all works. Use when the student says "setup", "install", "اعمل setup", "نزّل البرامج", "it doesn't work", "command not found", when node_modules is missing, or when `npx hyperframes doctor` shows a red item. Safe to run again any time — it skips what is already done.

bassam1998new-ops/hyperframes-students

Build a video in the Amber Grid Newsroom look (style card amber-grid-newsroom) — a hot "breaking news" desk: near-black grid field, the real screen recording in a framed window with instant reframes, an English title over an Arabic title line, and karaoke captions where the spoken word turns hot. Use when the director picked this card, or the owner says "make it in the amber newsroom style", "news desk", "breaking news look", "زي ريل opus 5.5", "ستايل الأخبار", or the video is AI news or a build show-off cut from his OBS screen recording with an Egyptian Arabic voice-over. 9:16 reels. Not for lecture clips or direct offers.

bassam1998new-ops/hyperframes-students

Build a video in the Floating Desk Zoom look (style card floating-desk-zoom) — real app windows float as cards on warm paper, a virtual camera hard-cuts in on the action, follows the typing and glides back out. Use when the director picked this card, or the owner says "make it in the floating desk style", "paper desk", "zoom on the screen like the launch video", "اعمله على الورق", or the video is a build show-off, quick tutorial or AI news made from his OBS screen recording with a voice-over. Arabic or English; 9:16 reels. Not for lecture clips or talking heads.

bassam1998new-ops/hyperframes-students

Build a video in the Hatch Cosmos look (style card hatch-cosmos) — a hand-drawn pencil-hatched world on one canvas, a block mascot (or a pair) that walks, looks, blinks and does ^ ^ eyes, a dive through its eye into a hatched galaxy of nebula blobs, tilted rings and needle stars. Use when the director picked this card, or the owner says "hatched", "hatch cosmos", "pencil cosmos", "the galaxy video style", "the mascot dive", "زي فيديو المجرة", "الستايل المرسوم بالقلم", "الكائن اللي بيدخل في عينه", or the video is a music-led show-off/teaser, a concept intro with a mascot, a "journey inside" beat or a channel bumper. 9:16 and 16:9 both built. Not for talking heads, real screen-recording proof, data-heavy explainers or photographic looks.

bassam1998new-ops/hyperframes-students

Build a video in the Horizon Prompt One-shot look (style card horizon-prompt-oneshot) — one continuous camera on a near-black stage lit by a soft planet-horizon glow; a glass app bar, a cursor and a prompt box morph into each other, a prompt is typed, the send button grows into a tile that blooms into a full-frame result, then a light wipe to a logo end card, every beat hit-synced to a UI sound. Use when the director picked this card, or the owner says "horizon prompt", "the prompt one-shot", "the ChatGPT-style promo", "زي فيديو البرومبت", "الكيرسر اللي بيكتب البرومبت", or the video is an AI tool show-off / prompt-to-result demo, a course or service promo opener, a launch teaser or a channel bumper. Not for talking heads, real screen-recording proof, data-heavy explainers or long tutorials. DRAFT — untested.

bassam1998new-ops/hyperframes-students

Remix 2+ existing style cards of the Hyperframes video workspace into one NEW draft style card, layer by layer (palette roles, type, texture, grade, camera, light, edit rhythm, transitions, motion, sound, prompt parts), then let the owner pick the skills for the video and start the director. Use when the owner says "hybrid style", "remix styles", "mix two styles", "combine styles", "اعمل هايبرد", "ادمج الستايلين", or ticks cards and presses "Remix these" on the Styles board.

bassam1998new-ops/hyperframes-students

Build a video in the Midnight Kinetic Type look (style card midnight-kinetic-type) — clean motion type on a flat dark field, word-by-word mask rises, one accent word that lands alone, icon strokes that draw on, and hard cuts on the music's beat grid. Use when the director picked this card, or the owner says "make it in the kinetic type style", "midnight type", "like an earlier project", "تايبوجرافي متحركة", or the video is a direct offer, proof / results reel or AI news told with type, music and SFX (no face, no footage). Arabic (Cairo, per-word) and English (Inter) versions; 9:16 reels. Not for lecture clips or quick tutorials.

bassam1998new-ops/hyperframes-students

Build a video in the Midnight Screen Desk look (style card midnight-screen-desk) — a calm, organised news desk in three fixed zones: an Arabic info card on top, the real screen recording in a glowing band with punch-ins in the middle, and word-by-word captions (dim → bright) below. Use when the director picked this card, or the owner says "make it in the screen desk style", "three zones", "like the AI releases reel", "كارت فوق والشاشة في النص", or the video is AI news, a build show-off or a quick tutorial cut from his screen recording with an Egyptian Arabic voice-over. 9:16 reels. Not for lecture clips or direct offers.

bassam1998new-ops/hyperframes-students

Build a video in the Mint Lecture Room look (style card mint-lecture-room) — a calm classroom cut of a real lesson: one long take with slow zooms that follow the point, a topic lower third, a quiz card that asks, counts down think-time and then answers, and karaoke captions that light the current word. Use when the director picked this card, or the owner says "make it in the lecture room style", "lecture clip", "course cut", "quiz card", "قص من المحاضرة", "سؤال وجواب", or the video is a lecture clip or quick tutorial cut from his AI course recordings (Egyptian Arabic). 9:16 reels. Not for AI news or direct offers.

bassam1998new-ops/hyperframes-students

Build a video in the Neon Node Explainer look (style card neon-node-explainer) — a plain stage, one headline per spoken sentence, and one small glowing diagram (tiles, lines, packets, checks, terminal, tool list) that builds itself part by part. Use when the director picked this card, or the owner says "make it in the neon node style", "node explainer", "API vs MCP style", "اعمله زي فيديو الـ MCP", or the video is an AI explainer, concept explainer, quick tutorial or AI news with a voice-over and no face. Arabic headlines + English mono labels; 9:16 and 16:9 both built. Not for talking heads, warm stories, real screen-recording demos or music-only hype reels.

bassam1998new-ops/hyperframes-students

Build a video in the Swiss Motion Reel look (style card swiss-motion-reel) — a Swiss-grid "instrument panel" with a constant thin HUD, flat 2-colour blocks, word slams, shape match-cuts and hard cuts on a 128 BPM beat. Use when the director picked this card, or the owner says "make it in the Swiss style", "motion reel", "like the motion designer reel", "HUD reel", "ستايل سويسري", or the video is a brand sizzle, product intro, "what we do" reel, launch teaser or any no-person, graphics-only, music-led video. Latin display type with Arabic in a clean geometric sans; built and tested in 16:9, 9:16 still to build. Not for talking heads, screen-recording tutorials or long voice-led explainers.

bassam1998new-ops/hyperframes-students

Build a video in the Warm Glass Face-cam look (style card warm-glass-facecam) — the presenter talks to camera while frosted-glass panels with one warm glow land exactly where he points; blur-punch text, a karaoke pill, small charts, and a shrink into a rounded picture-in-picture for the demo part. Use when the director picked this card, or the owner says "make it in the warm glass style", "glass panels over my face", "face-cam with glass cards", "PiP intro", "كروت زجاج وأنا بتكلم", or the video is a build show-off or quick tutorial with the owner on camera. Source is English 16:9; the 9:16 and Arabic versions still have to be built at the first job. Not for lecture clips or AI news.

bassam1998new-ops/hyperframes-students

Build a video in the <Style name> look (style card <slug>). Use when the director picked this style card, when the owner says "make it in the <Style name> style", "<slug>", "استايل <Style name>", or the video type is <video types from use_when>. Works for Arabic (Egyptian) and English, 9:16 reels<, and 16:9 if supported>. Not for <avoid_when>.

相關技能