Communitygithub.com

霓虹节点解释器风格

构建Neon Node解释器风格视频:简单舞台、每句一个标题、一个逐步构建的小型发光图表(图块、线条、数据包、标记、终端、工具列表)。

霓虹节点解释器风格 是什么?

该技能(“霓虹节点解释器”)定义了一套严谨的视觉风格,用于制作技术讲解类短视频。其核心设计是:每句配音对应一个独立场景,包含一个醒目的文字标题,其下仅有一个小型、动态构建的图表。图表的构建过程遵循固定的动画序列:从暗淡的轮廓(ghost)开始,逐步点亮(ignite)、绘制线条(draw)、传输数据包(packet)、最终弹出完成标记(check)。 此风格专为简洁、专注的AI概念解释、技术教程或新闻片段而设计,不支持有主持人出镜、实况屏幕录制或纯音乐视频。它同时支持9:16和16:9两种视频比例。 该技能通过一套命令行工具(`node tools/vid.mjs`)和基于文件模板(demo blocks)的工作流程实现。它强制使用品牌颜色体系,通过CSS变量(`--nx-*`)将不同角色(如背景、文字、强调色、不同组件)与特定颜色槽位严格绑定,并内置了`lint`、`snapshot`和`judge`等检查工具来保证风格一致性。标题支持阿拉伯语,但标签和终端文本仅限于英文大写。 这套技能适用于Claude Code、Cursor、Codex等AI编程助手,可为视频项目提供标准化的、高质量的视觉片段生成能力。

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

在你喜欢的 AI 中提问

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

文档

风格:霓虹节点解释器

一种平静的技术解释风格:每句话一个标题,标题下方只有一个小图表,它会一部分一部分地亮起(暗淡的轮廓 → 点亮 → 绘制线条 → 数据包运行 → 弹出标记),然后硬切到下一句话。 卡片:video-projects/_library/styles/neon-node-explainer/style.md — 已批准 2026-10-02。

先看效果(在风格文件夹中):frames/01-chain-ai-mcp-apis.png · frames/02-hub-fanout-tools.png · frames/03-terminal-steps.png。证明颜色遵循品牌的证据:tests/2026-10-01-three-themes.jpg (不在公共仓库中)。

0. 首先应用卡片

node tools/vid.mjs style apply neon-node-explainer <project> [--mode calm|punchy]
node tools/vid.mjs style show neon-node-explainer

然后阅读工具包README:video-projects/_library/assets/kits/node-explainer/README.md(部件、辅助函数、时间控制)。不要手工构建工具包中已有的内容。

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

风格即质量、结构和运动。除非品牌要求,否则切勿使用参考紫色/霓虹色。 使用 NX.theme(root, …) 填充这些角色 — README 中的“brandToNx”块映射了 brand/<name>.md 字段:

令牌角色来源(品牌)
--nx-bg舞台(浅色会将工具包切换为浅色模式)canvas
--nx-surface / --nx-border卡片、细线surface / line
--nx-text / --nx-dim文字text-strong / muted
--nx-accent → --nx-accent-2仅用于标题中1–3个关键词primary → secondary(相同则扁平)
--nx-role-1模型/“大脑”primary
--nx-role-2服务器/连接器 — 线条、数据包、弧线info 或 secondary
--nx-role-3系统/APItertiary 或 primary 的色调
--nx-role-4应用/客户端surface 或 white
--nx-ok / --nx-warn / --nx-danger状态(warn 也表示高亮路径)success / warning / danger
已保存的主题:neon(参考 — 仅用于测试),midnight,light(示例调色板,并非真实品牌)。其他所有颜色都是派生出来的 — 切勿为每个品牌设置派生颜色。一个颜色 = 整个视频的一个角色;品牌颜色较少时 → 重用 primary 的一个色调,不要发明新色调。

2. 构建它

  • 从一个演示块开始(复制 nx.css、nx.js、GSAP、DrawSVG、字体、2个UI音效):
    node tools/vid.mjs use node-explainer-9x16 <project>     # _library/compositions/portrait/node-explainer-9x16.html (20 秒, 5 个场景)
    node tools/vid.mjs use node-explainer-16x9 <project>     # _library/compositions/node-explainer-16x9.html (20.5 秒, 6 个场景)
    
    将打印出的 <div … data-composition-src=…> 连接到 index.html,并附带 data-variable-values='{"theme":"<brand>"}'。用于对比的演示渲染输出:_library/styles/neon-node-explainer/tests/demo-9x16-20261001.mp4 (不在公共仓库中),demo-16x9-20261001.mp4。
  • 布局 9:16 (1080×1920): 标题位于顶部(78 px,最多2行,text-wrap: balance),一个图表居中放置在它下面;所有内容位于 x 60–960, y 220–1500 区域内。
  • 布局 16:9 (1920×1080): 标题 66 px 顶部,图表居中;文档 + 光标、轨迹和分屏场景位于 16:9 块中。
  • 场景: NX.scene(tl, el, in, out) = 硬切 · NX.headline = 在切换帧时全部显示 · 然后 NX.ignite / NX.draw / NX.packet / NX.check / NX.chip / NX.pill + NX.type / NX.term / NX.steps / NX.fanout / NX.cursor。每个辅助函数都会添加到你传递的时间点,并返回其结束时间。
  • 动效令牌(卡片 JSON): 轮廓 0.1 秒 · 点亮 0.22 秒 · 线条 0.35 秒 · 数据包 0.32 秒(线条的 10%)· 弹出 0.3 秒 back.out(1.7) · 构建步骤间隔 0.4–1.2 秒(配合语音)· 保持完成后的图表 0.5–1.5 秒 · 打字 25 字符/秒(仅限拉丁文字符)。
  • 文字: 标题在切换时立即显示(无淡入,无字母分离)· 英文大写标签打字显示 · 终端行打字显示,输出滑动 10 px。
  • 转场: 仅硬切;空白画布 0.1–0.3 秒,然后开始构建。
  • 模式: calm = 标题约每 4 秒一个,无音效,发光 0.35 · punchy = 约每 2.5–3 秒一个,每个点亮部分有滴答声,发光 0.5,数据包运行两次。
  • 音效: 画外音优先(−14 LUFS)。可选的 SFX _library/assets/sfx/gen/ui-tick.wav (不在公共仓库中)(点亮部分)和 ui-pop.wav(标记/点击)以 0.22 / 0.28 作为静态 <audio> 标签。背景音仅当需要时:来自 _library 音乐库的安静垫音,约 −24 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 (9:16)。阿拉伯语标题连接并从右到左,英文单词放在 .nx-ltr 范围内,绝不打字,绝不逐字母拆分,不在 <html> 上设置 dir="rtl"。
  5. 风格检查:封面帧(t=0)已经显示一个点亮部分(全黑封面会无法通过检查);强调色仅用于 1–3 个关键词;仅活动部分有发光效果。

可以做 / 不可以做

  • 可以做: 每句配音一个标题,并且只构建它所说的内容;英文大写标签,阿拉伯语标题;每个场景以一个可见部分或轮廓开始;让发光表示“活动”。
  • 不可以做: 在未使用该紫色的品牌中发布参考紫色;一个标题下放两个图表;背景发光、圆点或颗粒;打阿拉伯语文字;假装终端/工具列表是真实的产品 UI。

任务完成后:node tools/vid.mjs style comment neon-node-explainer "<哪些地方效果好或不好>"。

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

相关技能