Communitygithub.com

電子工程解釋器 (remotion-electronic-explainer)

針對電子工程(半導體、PN接面、二極體、BJT、MOSFET、CMOS邏輯、運算放大器IC級、ADC/DAC、PCB訊號完整性)建立同步、沉浸式的單面板 Remotion 視覺解釋影片,採用純 Log2Base2 單階段格式,包含聚焦的單行元件方程式、全螢幕動畫載子/通道示意圖與即時 I-V 曲線在同一畫布上、WordBoundary 卡拉OK字幕,並快速渲染 1080p MP4。當用戶要求用 /remotion 解釋電子工程、半導體、電晶體或類比/數位 IC 時使用此技能。

電子工程解釋器 (remotion-electronic-explainer) 是什麼?

此技能可將任何電子工程主題(從半導體物理與電晶體偏壓到 CMOS 邏輯與類比 IC 級)轉變為沉浸式、影格同步的 1920×1080 30fps MP4 Remotion 解釋影片,採用單面板 Log2Base2 工作室格式。它統一使用單一視覺舞台(`<SinglePaneStage>`),避免分割畫面或堆疊文字卡片,確保觀眾注意力集中。影片結構包含:頂部細長標題列(顯示主題、步驟進度與進度條);一個統一的 Log2Base2 舞台,具備聚焦的單行方程式與活動呼叫藥丸,以及全寬 1600×680 SVG 畫布,可同時顯示動畫半導體截面與即時 I-V 曲線及移動的 Q 點;底部卡拉OK字幕列,由 TTS WordBoundary 時間戳驅動。此技能依賴 `remotion-best-practices` 與 `uv` 技能,並透過 CLI 指令進行專案建置、語音合成與最終 MP4 渲染,適合在 Cursor、Claude Code 等平台使用,以製作專業且具教育性的工程解釋影片。

相容平台✓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% 寬度):
    • 聚焦的單行聚光燈標題:使用 borderBottom: "2px solid #FACC15" (絕不添加水平內距) 高亮顯示活動口語詞彙 (V_GS、V_th、I_D、β、g_m、V_OH) 所在的活動方程式行,並在 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 畫布上(使用 <clipPath> 乾淨裁剪)動畫顯示電子/電洞、空乏區寬度和移動的負載線 Q 點,切勿在分離的分割畫面方塊中進行。
  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.

相關技能