Communitygithub.com

remotion电子工程解释器

创建同步、沉浸式的单面板Remotion视觉解释视频,涵盖电子工程(半导体、PN结、二极管、BJT、MOSFET、CMOS逻辑、运放IC级、ADC/DAC、PCB信号完整性),采用纯Log2Base2单阶段格式——包含聚焦的单行器件方程高亮、全屏动画载流子/沟道图及实时I-V曲线(同一画布)、WordBoundary卡拉OK字幕,并快速渲染1080p MP4。当用户要求用/remotion解释电子工程、半导体、晶体管或模拟/数字IC时使用。

remotion电子工程解释器 是什么?

这是一个Remotion技能,能够将任何电子工程主题——从半导体物理和晶体管偏置到CMOS逻辑和模拟IC级——转化为一个沉浸式的、帧同步的1920×1080 30fps MP4解释视频,采用单面板Log2Base2工作室格式。该技能的核心是使用统一的视觉舞台(SinglePaneStage),该舞台包含一个最小化的顶部栏(显示主题标题、步骤计数器和进度条)、一个完整的SVG画布(viewBox为0 0 1600 680),用于动画显示半导体截面(如PN结耗尽区、MOSFET沟道和夹断、BJT载流子流、CMOS上拉/下拉切换)以及实时I-V曲线和移动的Q点。底部有一个最小化的卡拉OK字幕栏,由TTS的WordBoundary时间戳驱动。它依赖于remotion-best-practices和uv技能,并通过CLI命令(scaffold、synthesize-voiceover、render-mp4)进行视频创建,强调通过动画直观展示而非文字说明。

兼容平台✓Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/uzowurumauritius-rgb/remotion-stage/tree/main/skills/remotion-electronic-explainer

在你喜欢的 AI 中提问

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

文档

Remotion 电子工程解释器 (remotion-electronic-explainer)

概述

将任何电子工程主题——从半导体物理和晶体管偏置到 CMOS 逻辑和模拟 IC 级——转化为一个沉浸式的、帧同步的 1920×1080 30fps MP4 Remotion 解释视频,采用单面板 Log2Base2 工作室格式。

绝不将屏幕分成并排的竞争面板或堆叠的文本卡片墙。每个视频都使用一个统一的视觉舞台 (<SinglePaneStage>):

  1. 最小化顶部栏 (44px,内置于 SinglePaneStage):
    • 左侧显示主题标题 + 活跃步骤标签;右侧显示微妙的步骤计数器 + 细进度条。
  2. 一个统一的 Log2Base2 舞台 (SinglePaneStage — 100% 宽度):
    • 聚焦的单行重点标题:在活跃方程行中高亮显示的活跃口语术语 (V_GS、V_th、I_D、β、g_m、V_OH) 带有 borderBottom: "2px solid #FACC15" (绝不添加水平内边距) 加上一个紧凑的活跃标注标签 (symbol → 电子含义 + 单位) 在 triggerFrame 时出现。
    • 全宽沉浸式 SVG 画布 (viewBox="0 0 1600 680"):清晰的动画半导体截面 (PN 结耗尽区的扩大/缩小、MOSFET 反转沟道和夹断、BJT 载流子流、CMOS 上拉/下拉切换) 直接与实时的 $I$-$V$ 曲线和移动的 Q 点 配对于同一开放画布上。
  3. 最小化底部字幕栏 (VoiceoverCaptionBar — 68px):
    • 由精确的 TTS WordBoundary 时间戳驱动的居中逐词高亮卡拉 OK 字幕。

依赖项

  • remotion-best-practices (~/.gemini/skills/remotion/SKILL.md)
  • uv (~/.gemini/config/plugins/science/skills/uv/SKILL.md)

快速开始

# 1. 搭建项目骨架
uv run python3 \
  ~/.gemini/config/skills/remotion-electronic-explainer/scripts/explainer_cli.py \
  scaffold \
  --project-dir "/path/to/project" \
  --output "/path/to/project/scaffold-status.json"

# 2. 合成旁白
uv run --with edge-tts python3 \
  ~/.gemini/config/skills/remotion-electronic-explainer/scripts/explainer_cli.py \
  synthesize-voiceover \
  --project-dir "/path/to/project" \
  --beats-json "/path/to/project/beats.json" \
  --voice "en-US-AndrewNeural" \
  --rate "+2%" \
  --pause-sec 0.40 \
  --output "/path/to/project/public/voiceover/manifest.json"

# 3. 渲染1080p MP4
uv run python3 \
  ~/.gemini/config/skills/remotion-electronic-explainer/scripts/explainer_cli.py \
  render-mp4 \
  --project-dir "/path/to/project" \
  --composition-id "ElectronicExplainer" \
  --out-name "ElectronicExplainer.mp4" \
  --concurrency 8 \
  --output "/path/to/project/render-report.json"

沉浸式叙事与工作流程

  1. 保持 snippet 聚焦 (2–4 行),以便 <SinglePaneStage> 一次只重点显示一个活跃方程和一个活跃标注标签。
  2. 对于具有移动 Q 点、载流子流、夹断变形或实时开关波形的节拍,设置 "motionStepFrames": 2。
  3. 展示,而非讲述:直接在单个开放的 1600×680 SVG 画布上动画显示电子/空穴、耗尽区宽度和移动的负载线 Q 点 (使用 <clipPath> 清晰裁剪),绝不在分离的并排框中显示。
  4. 始终运行 npm run lint,使用 read_file 检查代表性静态帧 (npx remotion still),并将最终的 .mp4 文件保存到 out/、项目根目录以及工作区根目录。

Individual skills in this repo

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

remotion-code-explainer

Creates synchronized, immersive single-pane Remotion visual explainer videos for source code (Mobile/Web UI, Backend, AI/ML, Algorithms) in a pure Log2Base2 single-stage format—with a focused single-line code spotlight, full-screen animated memory boxes, pointer arrows, data packets, and live execution state on one canvas, WordBoundary karaoke captions, and fast 1080p MP4 rendering. Use whenever the user asks to explain code with /remotion, build a code walkthrough video, or turn a voiceover script into an MP4 explainer.

remotion-math-explainer

Creates synchronized, immersive single-pane Remotion visual explainer videos for Mathematics (Calculus, Linear Algebra, Differential Equations, Probability, Proofs) in a pure Log2Base2 single-stage format—with a focused single-line equation spotlight, full-screen 3Blue1Brown x Log2Base2 animated geometric/data motion graphics, WordBoundary karaoke captions, and fast 1080p MP4 rendering. Use whenever the user asks to explain math with /remotion, animate a derivation or theorem, or turn a math script into an MP4 explainer.

remotion-physics-explainer

Creates synchronized, immersive single-pane Remotion visual explainer videos for Physics (Mechanics, Electromagnetism, Thermodynamics, Optics/Waves, Quantum Mechanics, Relativity) in a pure Log2Base2 single-stage format—with a focused single-line governing law spotlight, full-screen animated free-body/field/wave simulations and live telemetry on one canvas, millisecond-accurate WordBoundary karaoke captions, and fast 1080p MP4 rendering. Use whenever the user asks to explain physics with /remotion or animate a physical law/system.

remotion-software-explainer

Creates synchronized, immersive single-pane Remotion visual explainer videos for Software Engineering (System Design, Distributed Systems, Microservices, Kubernetes/Docker, Design Patterns, Database Internals, CI/CD, Networking) in a pure Log2Base2 single-stage format—with a focused single-line contract/YAML spotlight, full-screen animated architecture flows with traveling request packets and live trace timelines on one canvas, WordBoundary karaoke captions, and fast 1080p MP4 rendering. Use whenever the user asks to explain software engineering, system design, or architecture with /remotion.

相关技能