Communitygithub.com

午夜屏幕桌面风格 / Midnight Screen Desk

构建一种宁静、有序的新闻桌面视频:顶部为阿拉伯语信息卡片,中部为带有高亮放大的屏幕录制段,底部为逐字字幕(从暗到亮)。适用于 AI 新闻、产品展示或快速教程等场景。

Midnight Screen Desk 是什么?

这是一个专门用于在视频中应用“午夜屏幕桌面”风格的 AI 助手技能,适合制作 9:16 竖屏短视频。它定义了一个固定三区域布局:顶部右对齐的阿拉伯语信息卡片、中部带 22px 圆角和深阴影的 1080×600 像素屏幕录制区域(附带渐进式放大和线性推镜),以及底部逐字出现的字幕(每组 1-4 个词,44% 透明度 → 说话时 100% 并放大至 1.06x)。颜色系统由品牌文件驱动:背景为画布深色,文本为主色,弱化为静音色,强调色用于发光和芯片色,薄荷色仅用于模型名称和数字。支持两种模式:“平静模式”(无音效,4% 推镜,只在主题切换时换卡片)和“夸张模式”(未测试,更短的片段,卡片切换时有嗖声,数字放大更强)。语音需要清理至 -14 LUFS,背景音乐为 -23 LUFS 并经过侧链压缩。技能还包含严格的验证步骤:使用 `npx hyperframes lint` 检查错误,通过 `npx hyperframes snapshot` 验证每一帧的布局与聚焦,最终渲染后通过 `node tools/vid.mjs judge` 生成检查表。适用于 Cursor 和 Codex 等支持 CLI 工具的 AI 开发环境。

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

在你喜欢的 AI 中提问

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

文档

风格:午夜屏幕桌面

一种宁静、有序的新闻桌面:实屏幕在发光带中,上方是清晰的阿拉伯语信息卡片,下方是逐字字幕;语音处做跳切,每次都有新的放大画面。 卡片:video-projects/_library/styles/midnight-screen-desk/style.md — 草稿(尚未批准 — 请告知所有者)。

先看效果(在风格文件夹中):frames/01-three-zones-chip.png(不在公开仓库中) · frames/02-mint-stat-punch-in.png(不在公开仓库中) · frames/03-setup-rows.png(不在公开仓库中)。源项目(仍在构建;旧渲染已被清理):一个较早的项目(未公开)。

0. 先应用卡片

node tools/vid.mjs style apply midnight-screen-desk <项目> [--mode calm|punchy]
node tools/vid.mjs style show midnight-screen-desk

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

风格 = 质量、结构和动效。紫罗兰 + 薄荷是参考 — 品牌工作用 brand/<名称>.md 中的颜色填充角色。

角色CSS 令牌(源项目)来自品牌
画布--bg背景(深色)
标题、字幕--text文字-强
副标题、统计标签、未读字幕词--dim弱化
引语、箭头、芯片色调、顶部发光(永不填充)--accent强调色
数据:模型名称、数字--mint品牌稀缺高亮(午夜:薄荷)
薄荷色仅用于名称和数字;强调色仅用于发光、引语和芯片色调。

2. 构建

  • 起始代码: 一个较早的项目(未公开)— build_cut.py(按入点/出点/放大比例/焦点生成片段 → assets/cut.mp4)和 build_comp.py(生成 index.html:视频带 + 阿拉伯语标题卡片 + 来自 assets/words.json 的单词字幕 + edit/edl.json)。复制它们,设置 SRC 为新的录制文件和片段列表,运行剪切,然后运行合成。剪切和 EDL 的步骤:brain/Jobs/Build show-off.md。
  • 布局 9:16(1080×1920),三个固定区域: 顶部信息卡片(右对齐,RTL:引语 30 px → 标签 46 px → 标题 92 px → 副标题 48 px)· 屏幕带 1080×600 位于 y 640(22 px 圆角,深阴影,1 px 白色环透明度 8%)· 下方字幕(60 px/700,行高 1.35)。将文本保持在 x 60–960,y 220–1500 范围内。
  • 布局 16:9: 尚未构建。
  • 画布: 顶部轻柔强调色径向发光(椭圆 90% × 30%,约 16%)+ 边缘到 45% 黑色暗角。无噪点。
  • 镜头(已烘焙在剪切中): 每个片段的放大 — 特写镜头 1.25×,文章 1.4–1.7×,价格表 1.9–2.2×,白板 1.5× — 以及每个片段上 4% 的线性推镜,确保没有静止画面。
  • 动效令牌: 进入 power3.out · 退出 power2.in · 强调 back.out(1.6) · 卡片线条间隔 67–133 ms · 卡片退出 280 ms · 字幕单词间隔 20 ms。
  • 文字动画: 卡片线条按顺序升起淡入:引语 → 标签 → 标题 → 副标题(y 18 / 22 / 28 / 20 px,0.4–0.5 s)· 统计数据和设置行在说出相关词时从 x −30 滑入 · 芯片缩放弹出 0.85 → 1 · 字幕:每组 1–4 个词以 45% 透明度出现(y 10 → 0,0.14 s),每个词在说话时填满至 100% 并缩放到 1.06,然后保持明亮。
  • 转场: 单词边界上的硬跳切(30–80 ms 填充);卡片切换 = 旧卡片上升 14 px 并淡出 0.28 s,然后硬终止;新卡片在同一帧进入;屏幕在 CTA 卡片下变暗至 35%。
  • 模式: 平静 = 默认(无音效,4% 推镜,卡片仅在主题节拍时更改)· 夸张(未测试)= 更短的片段,卡片切换时有嗖声,数字放大更强。
  • 声音: 语音 -14 LUFS(已清理:在单词边界处剪掉重录、填充词和口吃)· 背景音乐 _library/assets/music/el/bed-focus-minimal.mp3(不在公开仓库中) 以 -23 LUFS 循环,由语音侧链压缩 · 平静模式无音效。切勿生成音乐。

3. 在所有者查看前的检查

  1. npx hyperframes lint 在项目内运行 — 0 错误。
  2. npx hyperframes snapshot --at <每个卡片的英雄时刻> — 读取每一帧:区域固定,放大显示语音提到的内容。
  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 · 阿拉伯语连写且从右到左;拉丁文用 dir="ltr" 包裹(或 "Opus 5.5" 翻转为 "5.5 Opus");dir 仅用于元素,绝不用于 <html>。
  5. 风格检查:每个数字出现在说出它的词上;每张卡片在其片段结束时硬终止(tl.set 透明度 0);误听的模型名称在构建字幕前对照屏幕纠正;任何放大画面中不包含私人数据。

做 / 不做

  • 做: 保持三个区域固定;放大正在讨论的屏幕部分;按节拍重新排序故事(钩子 → 发布内容 → 项目 → 我的选择 → 要点 → CTA)。
  • 不做: 生成产品 UI 图像;未用 dir="ltr" 包裹的单个 flex 行中混合阿拉伯语和拉丁文;卡片在片段结束后仍留在屏幕上。

任务完成后:node tools/vid.mjs style comment midnight-screen-desk "<哪些有效或无效>"。

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

相关技能