Communitygithub.com

bassam1998new-ops/hyperframes-students

构建薄荷讲堂风格的教学视频——单次长镜头、慢速推拉、问答卡片、逐词高亮卡拉OK字幕。适用于讲座剪辑或快速教程片段。

hyperframes-students 是什么?

该技能用于生成“薄荷讲堂”风格的视频片段,主要针对讲师 AI 课程录制(埃及阿拉伯语)的讲座剪辑或快速教程。核心特征是单次长镜头拍摄,无静音剪辑,用慢速推拉替代切换;底部三分之一区域展示主题/名称,问答题卡片分三阶段:提问、倒计时思考、显示答案。字幕采用卡拉OK效果,当前单词高亮为强调色并带柔和光晕,已说单词变白。支持两种模式:`calm`(默认,无音乐与音效)和 `punchy`(试验性,快速跳切、关键词快速推拉、答题音效)。布局为 9:16(1080×1920),视频填满画面,卡片位于中部安全区,文字使用 Tajawal 和 JetBrains Mono 字体。所有颜色样式从品牌文件中动态注入,通过 CSS 变量控制。集成 `hyperframes lint`、`snapshot`、`render` 等工具进行质量检查,确保无错误、安全区域合规、阿拉伯语正确右对齐且不拆分字母。适用平台为支持 hyperframes 工作流的项目,如 Claude Code、Cursor 或 Codex。

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

在你喜欢的 AI 中提问

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

文档

样式:薄荷讲堂

一段安静的课堂剪辑:课程持续播放,慢速推拉跟随重点,问答卡片提问、等待、回答。无静音剪辑——推拉代替剪辑。 卡片:video-projects/_library/styles/mint-lecture-room/style.md — 草稿(未批准——请告知所有者)。卡片品牌:任意(十六进制值仅为示例)。

先看视觉参考(在样式文件夹中):frames/01-lesson-lower-third-karaoke.png(不在公共仓库中) · frames/02-question-think-rail.png(不在公共仓库中) · frames/03-answer-reveal.png(不在公共仓库中)。源项目(仍在构建中;其旧渲染已被清理):一个早期项目(不公开)。

0. 首先应用卡片

node tools/vid.mjs style apply mint-lecture-room <项目> [--mode calm|punchy]
node tools/vid.mjs style show mint-lecture-room

作业步骤(挑选片段、字幕):brain/Jobs/Lecture clip.md。

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

样式 = 质量、结构与运动。深蓝绿 + 薄荷色 + 粉色是 Midnight 参考色——另一个品牌从 brand/<名称>.md 中填充角色。

角色示例颜色(非真实品牌)来自品牌
卡片背景#1F1428canvas(深色)
正文墨水/口语单词#E5DAED / #FFFFFFtext / text-strong
线条、光晕、标签底色#A05FEFprimary
"现在":活跃字幕词、进度条、数字标签#6FDCDA稀有高亮色(Midnight:薄荷色)
标点符号:问号、揭示点#F36D78品牌的标点符号颜色(Midnight:粉色)——仅作为标记
暗淡文本#CCB1DF / #C18AF6muted
lecture-* 块将这些颜色内联存放——在引入时将提升为 CSS 变量(例如 --bg、--ink、--accent、--live、--mark、--dim),然后从品牌中填充。

2. 构建视频

  • 块(_library/compositions/portrait/),使用 node tools/vid.mjs use <块> <项目> 引入每个块:
    • lecture-lower-third-9x16 — 主题/名称带(0–6 秒)。
    • lecture-question-card-9x16 — 8 秒问题 → 3 秒思考时间轨道 → 答案。
  • 起始项目: 一个早期项目(不公开)——一个课程 <video>,两个块均已连接、卡拉 OK 字幕、缩放时间线。
  • 素材: 一段连续的课程片段,先重新编码(ffmpeg … -crf 20 … -movflags +faststart,密集关键帧——_library/COURSE-STUDIO.md(不在公共仓库中))。
  • 布局 9:16(1080×1920): 素材填满画面;底部三分之一和问题卡片位于中间区域;字幕 42 px /700;所有内容位于 x 60–960,y 220–1500 内。字体:Tajawal 500/700(阿拉伯语)、JetBrains Mono 700(数字标签、引导语)。
  • 布局 16:9: 尚未构建。
  • 摄像机(运动令牌): 在视频的包装 <div> 上(绝不在 <video> 上),原点 50% 35%:缓慢漂移 1 → 1.06(power1.inOut),3 秒轻推至 1.25(power2.inOut),长时间缓出,1.4 秒推至 1.2(在结束行上)。卡片升起时缩放从不移动。
  • 文字动画: 问题行从蒙版升起(y 110% → 0,0.55 秒,从右侧错开 0.22 秒)· 引导语和数字标签落下(y −12,0.45 秒)· 线条绘制 scaleX 0 → 1(0.55 秒)· 进度条 3 秒线性填充 · 答案缩放弹出 0.92 → 1 back.out(1.5) 并伴随揭示点滑入 · 卡拉OK:所有单词 35% 透明度,当前单词为“now”颜色并带柔和光晕,已说单词变为全白(即时类切换)。
  • 过渡: 镜头间无过渡(单次拍摄);卡片在其图层上淡入淡出(退出 0.4–0.5 秒 power2.in)。
  • 模式: calm = 按原样(单次拍摄、慢速缩放、无音乐、无音效)· punchy(未测试) = 跳切静音段落,关键词快速缩放,答案落地时柔和滴答声(_library/assets/sfx/el/ui-pop.mp3(不在公共仓库中))。
  • 声音: 仅课程自身音频,将人声标准化至 −14 LUFS。calm 模式下无音乐;如需音乐,来自 _library/assets/music(不在公共仓库中) — 绝不生成。

3. 所有者查看前的检查

  1. npx hyperframes lint 在项目内运行 — 0 错误。
  2. npx hyperframes snapshot --at <下部三分之一、问题、轨道一半、答案> — 阅读每帧。
  3. npx hyperframes render --quality draft → node tools/vid.mjs judge <草稿.mp4> → 阅读 sheet.jpg 和 safe-sheet.jpg。
  4. 安全区域 x 60–960,y 220–1500 · 讲师面部(如可见)不被遮挡 · 阿拉伯语连写、从右到左,永不按字母拆分;在块的根元素上设置 RTL,绝不在 <html> 上使用 dir="rtl"。
  5. 样式检查:字幕词与音频对比(源转录可能有听错);卡片放置在教师的自然停顿处;每张卡片一个粉色标记。

执行 / 不执行

  • 执行: 在自然停顿处放置卡片;在答案前给予思考时间;对照音频检查字幕。
  • 不执行: 在讲座内部的静音处剪辑;在活动缩放上方叠加卡片;将标点符号颜色用于比标记更大的元素。

作业完成后:node tools/vid.mjs style comment mint-lecture-room "<效果如何>"。

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

相关技能