Claude Typer
ワークフロー
- アニメーションでタイプされるテキストを
promptとして抽出します。 - 以下を実行します:
-
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 "claude-typer skill not found under ~/.agents, ~/.claude, or ~/.codex"; 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
-
- カレントワーキングディレクトリに生成されたビデオのパスを返します。
レンダリング動作
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を渡します。
- プロジェクトのデフォルトプロパティを維持し、
promptを置き換え、スクリプト引数を通じてvideoWidth/videoHeight/claudeWidthの上書きを許可します。 - 未知のCLI引数は、
remotion renderに直接渡されます(高度なフラグ用)。 --runner-prefixを使用すると、ランナーコマンドを完全に制御できます(バージョンの固定、グローバル解決動作など)。- このスキルで公開されるRemotionプロパティは、スカラーフィールドのみです:
prompt、typingSpeedMs、model、videoWidth、videoHeight、claudeWidth、tiltStartX、tiltStartY、tiltEndX、tiltEndY、tiltDurationRatio。
出力ファイル名
- カレントディレクトリに
xxx.movとして保存します。 - プロンプトを短縮して
xxxを構築します:- 先頭の
帮我、请、做一个、生成一个、制作、创建などの一般的なリクエストラッパーを削除します。 - ファイル名に使用できない文字を削除します。
- 中国語/英語の文字と数字を保持します。
- 結果が空の場合は、
claude-typerを使用します。
- 先頭の
- 例:
- プロンプト:
帮我做一个web画板 - 出力:
web画板.mov
- プロンプト:
備考
- クリーンなマシンでは、npm と
https://www.laosunwendao.comへのネットワークアクセスが可能であれば、Node.js + npxでこのフォールバックパスは十分です。 bunxとnpxの両方が利用できない場合は、いずれかをインストールして再試行してください。- 出力名が既に存在する場合、Remotionの上書き動作が適用されます。
delayRender()タイムアウトが発生した場合は、--concurrency=1を維持し、必要に応じて--timeout-msを引き上げてください。