1---
2name: claude-typer
3description: Render a Claude-style prompt typing animation video by calling Remotion CLI against the remote site https://www.laosunwendao.com. Use when the user asks for "做一个 claude 的提示词打字机动画", "做 Claude 打字动画", "创建提示词动画", or similar requests that convert a text prompt into a typing-animation video.
4metadata:
5 source: https://skillmd.com/skills/om-scogo/claude-typer
6---
7
8# Claude Typer
9
10## Workflow
11
121. Extract the text that should be typed in the animation as `prompt`.
132. Run:
14 - ```bash
15 skill_dir=""
16 for base in "${AGENTS_HOME:-$HOME/.agents}" "${CLAUDE_HOME:-$HOME/.claude}" "${CODEX_HOME:-$HOME/.codex}"; do
17 if [ -d "$base/skills/claude-typer" ]; then
18 skill_dir="$base/skills/claude-typer"
19 break
20 fi
21 done
22 [ -n "$skill_dir" ] || { echo "claude-typer skill not found under ~/.agents, ~/.claude, or ~/.codex"; exit 1; }
23 /usr/local/bin/python3 "$skill_dir/scripts/render_claude_typer.py" "<prompt>"
24 ```
25 - Example with explicit size and scale:
26 ```bash
27 /usr/local/bin/python3 "$skill_dir/scripts/render_claude_typer.py" \
28 "claude-typer skill可以让智能体做出提示词打字机动效视频,快来试试吧" \
29 --video-width 1080 \
30 --video-height 600 \
31 --claude-width 600 \
32 --scale 2
33 ```
34 - Example matching custom runner + remotion params passthrough:
35 ```bash
36 /usr/local/bin/python3 "$skill_dir/scripts/render_claude_typer.py" \
37 "vibe-motion/skills:一个面向智能体的MG动画/视频技能仓库." \
38 --runner-prefix "npx -y -p @remotion/cli@4.0.440 -p @remotion/tailwind-v4@4.0.440 remotion" \
39 --composition Typer30fps \
40 --output-file Typer30fps.mov \
41 --codec prores \
42 --prores-profile 4444 \
43 --pixel-format yuva444p10le \
44 --image-format png \
45 --audio-codec aac \
46 --video-width 1080 \
47 --video-height 1080 \
48 --claude-width 880
49 ```
503. Return the generated video path in the current working directory.
51
52## Rendering Behavior
53
54- Render remote composition `Typer30fps` from `https://www.laosunwendao.com`.
55- Use `@remotion/cli` (not `remotion` package name).
56- Prefer `bunx @remotion/cli` first.
57- Fall back to `npx -y -p @remotion/cli@4.0.440 -p @remotion/tailwind-v4@4.0.440 remotion` if `bunx` is unavailable.
58- Keep transparent MOV defaults:
59 - `--fps=30`
60 - `--codec=prores`
61 - `--prores-profile=4444`
62 - `--pixel-format=yuva444p10le`
63 - `--image-format=png`
64 - `--scale=2`
65- Keep defaults for stability:
66 - `--timeout=300000`
67 - `--concurrency=1`
68 - Auto-detect local Chrome/Chromium and pass `--browser-executable` when found.
69- Keep default props from the project; replace `prompt`, and allow overriding `videoWidth` / `videoHeight` / `claudeWidth` through script args.
70- Unknown CLI args are passed through to `remotion render` directly (for advanced flags).
71- `--runner-prefix` lets you fully control the runner command (for pinned versions, global resolution behavior, etc.).
72- Exposed Remotion props for this skill are scalar fields only: `prompt`, `typingSpeedMs`, `model`, `videoWidth`, `videoHeight`, `claudeWidth`, `tiltStartX`, `tiltStartY`, `tiltEndX`, `tiltEndY`, `tiltDurationRatio`.
73
74## Output File Naming
75
76- Save into the current directory as `xxx.mov`.
77- Build `xxx` by condensing the prompt:
78 - Remove common request wrappers like `帮我`, `请`, `做一个`, `生成一个`, `制作`, `创建` at the start.
79 - Remove illegal filename characters.
80 - Keep Chinese/English letters and digits.
81 - If result is empty, use `claude-typer`.
82- Example:
83 - Prompt: `帮我做一个web画板`
84 - Output: `web画板.mov`
85
86## Notes
87
88- On a clean machine, `Node.js + npx` is enough for this fallback path, as long as network access to npm and `https://www.laosunwendao.com` is available.
89- If both `bunx` and `npx` are unavailable, install one of them and retry.
90- If the output name already exists, Remotion overwrite behavior applies.
91- If you hit `delayRender()` timeout, keep `--concurrency=1` and raise `--timeout-ms` as needed.