Communitygithub.com

浮动桌面缩放风格

打造“浮动桌面缩放”风格视频——真实应用窗口化作卡片漂浮在温暖纸面上,虚拟摄像机硬切聚焦操作,跟随打字动作再平滑拉远。

浮动桌面缩放风格 是什么?

该技能专为构建“浮动桌面缩放”风格视频而设计,这是一种沉稳、高质的产品演示风格。核心是将真实的屏幕录制画面(而非生成内容)转换为虚拟桌面——应用窗口像卡片一样漂浮在温暖的纸面背景上。摄像机逻辑独特:硬切切入放大操作细节(最大1.6倍),带微幅漂移,再以Power3.inOut缓动平滑拉出,实现类似“镜头跟随”的动感。主要面向9:16竖屏Reels格式,支持阿拉伯语和英语字幕。它包含完整的命令行工具链,从裁剪OBS录制画面(2160×3840)、扫描屏幕变化、编辑镜头卡,到最终构建HTML合成文件。使用者需借助`vid desk`子命令完成裁剪、扫描、编辑`director/desk.json`描述文件、构建输出,并通过`npx hyperframes`和`judge`工具进行质量检查。该风格不适用于讲座剪辑或人物讲话镜头。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bassam1998new-ops/hyperframes-students/tree/HEAD/.claude/skills/style-floating-desk-zoom

在你喜欢的 AI 中提问

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

文档

风格:浮动桌面缩放

一种沉稳、高端的产品演示风格:真实应用窗口像卡片一样漂浮在柔软的桌面上,摄像机硬切靠近变化内容,然后缓慢平滑拉出。仅基于真实屏幕录制构建——绝不使用生成内容。 卡片:video-projects/_library/styles/floating-desk-zoom/style.md — 已批准 2026-10-02。

首先查看(在风格文件夹中):frames/01-wide.png(不在公开仓库中) · frames/04-punch-in.png(不在公开仓库中) · frames/02-glide-dim.png(不在公开仓库中)(还有 frames/03-card.png(不在公开仓库中))。

0. 首先应用卡片

node tools/vid.mjs style apply floating-desk-zoom <project> [--mode calm|punchy]
node tools/vid.mjs desk help

1. 颜色 = 角色(品牌填充十六进制值)

风格 = 品质、结构、动效。温暖纸张是参考——当品牌有自己的画布时就替换它。

角色设置位置来自 brand/<name>.md
桌面/纸面look.bg 在 director/desk.json 中(默认 #E9E4DB)画布(浅色品牌);保持柔和浅色
卡片阴影look.shadow(暖褐色,两层)从画布着色的阴影,绝不用纯黑
未使用窗口变暗look.dim(0.55,0 = 关闭)无——灰色,非品牌色
顶部标题/字幕桌面之上的独立图层文本重色(纸面墨水色),强调色 = 主色,仅一个词
应用的自身颜色衬托其余部分——桌面上无需额外强调色。

2. 构建它

  • 工具是 vid desk(tools/vid/desk.mjs):
    node tools/vid.mjs desk init <project> <recording.mp4> [--from s] [--to s]   # 裁剪桌面 → assets/screen.mp4 + assets/voice.m4a,扫描,写 director/desk.json
    # 编辑 director/desk.json:cards [{id, rect}],shots [{at, card, focus, move:"cut"|"glide", dur, pan}],look {…}
    node tools/vid.mjs desk build <project>                                      # → compositions/floating-desk.html;将打印的主机 <div> 粘贴到 index.html
    
    vid desk scan <video> 显示屏幕变化位置(打字、面板、滚动)——在那里放置切入。用户的OBS录制画面为2160×3840,桌面位于中间区域;init 会裁剪它。
  • 自有摄像机变体(纸面外观,更多控制):一个早期项目(非公开)+ build_cut_hd.py(全分辨率二次剪辑,使切入保持清晰)。
  • 布局 9:16(1080×1920): 宽 = 卡片约占宽度的90%,居中于 y 900。切入的卡片保持全宽,但位于 y 420–1240 区域内,以便底栏文字和字幕放在纸面上。当卡片为全宽时,保持文字在 y 330–1470 区域外。
  • 布局 16:9: 尚未构建。
  • 摄像机(运动标记): 切入(硬切,最大1.6输出像素/源像素)→ 保持,带2.5%线性推进(#fd-drift)和可选跟随打字的平移(sine.inOut)→ 拉出 1.2–1.4秒 power3.inOut → 向侧面滑动到下一个窗口。每3–6秒一次移动,两次移动间隔不小于1.5秒。
  • 绝不对 <video> 做动画——仅对 #fd-cam(移动/缩放)和 #fd-drift(推进)做动画。
  • 文字: 无内置文字。标题、字幕和计数位于桌面之上的独立图层(阿拉伯语:IBM Plex Sans Arabic,纸面墨水色)。
  • 转场: 仅有摄像机移动;无划像、无闪光。
  • 模式: 冷静 = 按 vid desk 构建的样子(漂移2.5%,滑动1.2–1.4秒,无音效)· 动感(未测试)= 滑动0.7秒 expo.inOut,漂移4%,切入时带滴答声。
  • 声音: 人声 −14 LUFS,来自 _library/assets/music(不在公开仓库中) 的柔和低音背景音乐约 −23 LUFS,自动降低音量。可选滑动时的柔和嗖声(_library/assets/sfx/el/whoosh-slow.mp3(不在公开仓库中))。绝不生成音乐。

3. 用户审阅前的检查

  1. npx hyperframes lint 在项目内执行——0错误(duplicate_media_discovery_risk 警告在2张或更多卡片时无害)。
  2. npx hyperframes snapshot --at <each shot time>——读取每一帧:文字清晰,浏览器下方无黑色条带。
  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. 风格检查:desk build 会列出达到最大缩放的镜头——修复它们;检查每个切入中是否有私密数据(密钥、邮箱、客户名称)并模糊或裁剪掉;一旦纸面出现在屏幕上,字幕切换为墨水色。

要 / 不要

  • 要: 要求录制时使用较大的应用字体(125–150%)且步骤间停顿1–2秒;在他提到的确切单词上切入(模型标签、价格提示、提示词);在浅色界面上用墨水色勾边,在深色界面上用纸面色勾边。
  • 不要: 在并排对比中使窗口变暗(用户:“去掉变暗”);缩放超过1.6倍;堆叠间距小于1.5秒的移动;保留重复屏幕显示内容的标签;显示私密数据。

任务完成后:node tools/vid.mjs style comment floating-desk-zoom "<有效或无效的内容>"。

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 Cream Caret Type look (style card cream-caret-type) — Arabic words typed with a coloured caret on a flat two-colour page (night and paper that swap on hard cuts), select-highlight → delete → retype, a flat profile silhouette, one coloured dot that match-cuts into a flat vector eye, a zoom-through the iris, a fixed noun with a bold verb swapping every 16 frames, a pixel-art icon on the sign-off and a monogram end card — one sound per event, silence between. Use when the director picked this card, or the owner says "the typing intro", "caret type", "cream caret", "زي فيديو الكتابة", "الكلام اللي بيتكتب", "intro بالكتابة", or the video is a channel / "who am I" intro, a course or service intro hook, a short opener before a talking head, a word-play promise line or a bumper. 9:16 only, Arabic-first. Not for talking heads the whole time, screen-recording proof, data-heavy explainers or full spoken subtitles. DRAFT — untested.

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

相关技能