Communitygithub.com

Claude Typer - 打字機動畫生成器

通過調用 Remotion CLI 連接到遠端站點,將文字提示轉換為 Claude 風格的提示詞打字機動畫影片。

Claude Typer - 打字機動畫生成器 是什麼?

此技能可根據用戶提供的文字提示,生成一段仿 Claude 提示詞打字效果的動畫影片。它通過調用 Remotion CLI 遠端渲染一個名為 Typer30fps 的合成片段,該片段託管於 https://www.laosunwendao.com。技能會自動偵測環境中的 bunx 或 npx 來執行渲染,預設輸出透明背景的 ProRes 4444 MOV 檔案,支援自訂影片寬高、Claude 輸入框寬度及打字速度等參數。此技能支援多種平台(如 Claude Code、Cursor、Codex)的 agent 環境,並提供靈活的指令前綴與參數傳遞機制,讓進階用戶可精確控制版本與執行行為。輸出檔案會根據提示內容自動命名,若提示經清洗後為空則以 claude-typer.mov 為預設名稱。

相容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/vibe-motion/skills/tree/HEAD/claude-typer

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Claude Typer - 打字機動畫生成器 是做什麼的?

工作流程

  1. 擷取需要以打字機動畫顯示的文字,作為 prompt。
  2. 執行指令:
    • skill_dir=""
      for base in "${AGENTS_HOME:-$HOME/.agents}" "${CLAUDE_HOME:-$HOME/.claude}" "${CODEX_HOME:-$HOME/.codex}"; do
        if [ -d "$base/skills/claude-typer" ]; then
          skill_dir="$base/skills/claude-typer"
          break
        fi
      done
      [ -n "$skill_dir" ] || { echo "在 ~/.agents、~/.claude 或 ~/.codex 下找不到 claude-typer 技能"; exit 1; }
      /usr/local/bin/python3 "$skill_dir/scripts/render_claude_typer.py" "<prompt>"
      
    • 指定尺寸與縮放比例的範例:
      /usr/local/bin/python3 "$skill_dir/scripts/render_claude_typer.py" \
        "claude-typer skill可以讓智能体做出提示詞打字機動效視頻,快來試試吧" \
        --video-width 1080 \
        --video-height 600 \
        --claude-width 600 \
        --scale 2
      
    • 搭配自訂執行器與 Remotion 參數傳遞的範例:
      /usr/local/bin/python3 "$skill_dir/scripts/render_claude_typer.py" \
        "vibe-motion/skills:一個面向智能體的MG動畫/視頻技能倉庫." \
        --runner-prefix "npx -y -p @remotion/[email protected] -p @remotion/[email protected] remotion" \
        --composition Typer30fps \
        --output-file Typer30fps.mov \
        --codec prores \
        --prores-profile 4444 \
        --pixel-format yuva444p10le \
        --image-format png \
        --audio-codec aac \
        --video-width 1080 \
        --video-height 1080 \
        --claude-width 880
      
  3. 傳回生成於目前工作目錄的影片路徑。

渲染行為

  • 從 https://www.laosunwendao.com 渲染遠端合成片段 Typer30fps。
  • 使用 @remotion/cli(而非 remotion 套件名稱)。
  • 優先使用 bunx @remotion/cli。
  • 若 bunx 不可用,則回退至 npx -y -p @remotion/[email protected] -p @remotion/[email protected] remotion。
  • 保留透明 MOV 的預設值:
    • --fps=30
    • --codec=prores
    • --prores-profile=4444
    • --pixel-format=yuva444p10le
    • --image-format=png
    • --scale=2
  • 保留穩定性相關的預設值:
    • --timeout=300000
    • --concurrency=1
    • 自動偵測本機 Chrome/Chromium 並在找到時傳遞 --browser-executable。
  • 保留專案預設的 props;取代 prompt,並允許透過腳本引數覆蓋 videoWidth / videoHeight / claudeWidth。
  • 未知的 CLI 引數會直接傳遞給 remotion render(以支援進階旗標)。
  • --runner-prefix 讓您可以完全控制執行器指令(適用於固定版本、全域解析行為等)。
  • 此技能暴露的 Remotion props 僅為純量欄位:prompt、typingSpeedMs、model、videoWidth、videoHeight、claudeWidth、tiltStartX、tiltStartY、tiltEndX、tiltEndY、tiltDurationRatio。

輸出檔名命名規則

  • 儲存至目前目錄,檔名為 xxx.mov。
  • 透過壓縮 prompt 來組成 xxx:
    • 移除開頭的常見請求包裝詞,例如「幫我」、「請」、「做一個」、「生成一個」、「製作」、「建立」。
    • 移除不合法的檔案名稱字元。
    • 保留中英文與數字。
    • 若結果為空,則使用 claude-typer。
  • 範例:
    • 提示文字:幫我做一個web畫板
    • 輸出檔名:web畫板.mov

注意事項

  • 在乾淨的機器上,只要網路可連線至 npm 與 https://www.laosunwendao.com,僅需 Node.js + npx 即可使用此回退路徑。
  • 若 bunx 與 npx 皆不可用,請安裝其中一個後重試。
  • 若輸出名稱已存在,Remotion 會依其覆寫規則處理。
  • 若遇到 delayRender() 逾時,請保持 --concurrency=1 並依需求提高 --timeout-ms。

Individual skills in this repo

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

相關技能