ugc-talking-head-video
できること
このスキルは、キャラクターがカメラに向かって台本を話す、短いUGC風の動画を作ります。SNSや広告用のトーキングヘッド動画を作りたいマーケターやクリエイター向けです。
使う場面
- ✓縦型動画で、固定したキャラクターにカメラの前で台本を話させたいとき。
- ✓トーキングヘッド動画に、単語ごとのタイミングを合わせた字幕を入れたいとき。
- ✓選んでおいたキャラクター画像から、UGC風の動画を作りたいとき。
スキルのリンク
https://github.com/superdesigndev/treg/blob/main/.agents/skills/ugc-talking-head-video/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このキャラクター画像と15秒の台本から、字幕付きの縦型トーキングヘッド動画を作ってもらえますか。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは声の参照を選び、台本を動画の長さに合わせ、動画用のプロンプトを書いて、treg経由で動画を生成します。そのあと、絵文字の見出しと、ffmpegを使ったコードでフレーズごとの字幕を追加します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
UGC talking-head video
Input: one character image (the frame you and the user picked from portrait-clone) and a script.
Output: take_N.mp4 (raw) and take_N_captioned.mp4, plus the request JSON that made it.
Model: Seedance 2.5 through treg, reAPI route by default, PiAPI as the alternative (scripts/seedance_treg.py). No vendor key on this machine. Captions: ffmpeg + PIL (scripts/caption_burn.py).
Both scripts are self-contained; read their docstrings before changing them.
Prerequisites
- treg. Every generation call, reference upload and status poll goes through
treg call; the vendor key is injected server-side and the charge lands on the team's prepaid treg balance. Iftreg --versionfails, install and sign in first:
Thencurl -fsSL https://treg.to/install.sh | sh treg logintreg balanceto confirm there is credit for the run (a take costs a few dollars, § Run). - A character image. If the user has no locked character yet, generate one first with the
portrait-cloneskill (sibling folder.agents/skills/portrait-clone/, or the published copy at https://raw.githubusercontent.com/agentara/skills/refs/heads/main/skills/aigc/portrait-clone/SKILL.md). Read it, follow it, then come back here with the chosen frame. ffmpeg, Python 3 with PIL, andOPENAI_API_KEYin the environment for Whisper word timings (captions only).
Flow
- Lock the script and duration (§ Script and duration). Show the user the word count and the proposed seconds before anything else.
- Get a voice-reference clip (§ Voice reference). Never generate without one.
- Write the prompt from the template (§ Prompt). Paste the whole thing to the user before the first run.
- Run
seedance_treg.py. Quote the estimated cost in the same message you announce the run. - Verify with the checks in § Verify, send the raw clip, and only then caption.
- Caption with
caption_burn.pyusing hand-written phrases.
Script and duration
The model fills every second it is given. Too long and the delivery goes flat because there is nowhere to breathe; too short and words get dropped. Size the duration from the script, not the other way round.
| Words | Duration | Feel |
|---|---|---|
| 45-55 | 12-14 s | punchy hook |
| 60-70 | 16-17 s | standard UGC talking head |
| 70-80 | 18-19 s | dense; 18 s reads noticeably quicker than 19 s |
| 90+ | split into two clips | one Seedance take over 20 s of continuous speech drifts |
Rule of thumb: words / 4 = seconds, then subtract 1 s. Our 74-word script felt slow at 19 s and right at 18 s. Confirm the script verbatim with the user first, including slang ("gonna", "brain cell"): the captions later follow the transcript, and Whisper normalises "gonna" to "going to", so warn them the on-screen text may differ from the script spelling.
Join sentences with commas, not periods, if you do not want a hold at the sentence turn. The model treats a period as permission to stop for half a second.
Voice reference
Cadence comes from the audio reference, not from the prompt. We proved this: the same script and near-identical prompts gave a flat delivery without a reference and a natural one with it, while a prompt full of beat-by-beat pacing directions moved the pace by a few percent at most and introduced whispering and long dead pauses the user hated.
- Ask the user for a video whose delivery they like. If they have none, find candidates through
treg and let them choose. Use the routed endpoints and say what you want, not a vendor:
catalog_search("instagram reels search by keyword")->treg.instagram.search.reels(measured 86% success), orcatalog_search("tiktok search videos")/treg.douyin.search.videos. Search the niche ("money tips talking head", "creator secret"), pick 3-5 results with a play URL, send the links, and ask which voice and pace they want. Do not pick for them. - Extract a 2-15 s slice, mono mp3. PiAPI rejects longer references (reAPI allows up to 30 s). Choose the most
animated stretch, not the opening line: run Whisper with segment timestamps, read the
segments, pick a run with a rise and fall in it.
ffmpeg -ss <start> -to <end> -i src.mp4 -vn -ac 1 -ar 44100 -b:a 128k voice_ref.mp3 - Keep the clip and its source timestamps next to the outputs; the user will ask where it came from.
Prompt
Under 4000 characters. Five parts, in this order. Fill the braces; keep the rest verbatim, it
よくある質問
先にキャラクター画像が必要ですか?
はい。このスキルはロックされたキャラクター画像を前提としており、portrait-cloneスキルで作成できます。
何をインストールする必要がありますか?
treg、ffmpeg、PIL付きのPython、そして単語のタイミング取得用のOpenAIキーが必要です。
1回の撮影にいくらかかりますか?
スキルによると1回の撮影は数ドル程度です。有料の工程に入る前に、エージェントが確認を取るべきとされています。
詳細
作者による元の説明
Turn a locked character image (from portrait-clone) into a UGC-style 9:16 talking-head video: pick a voice-reference clip, size the script to the duration, write the Seedance 2.5 prompt, generate through treg (reAPI or PiAPI), then burn a static emoji header and phrase captions with code. Use after portrait-clone when the user wants the character to speak a script on camera.
repo: superdesigndev/treg
人気
- GitHubのスター
- 7.0k
- ランキング
- #13701
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
code-quality
7.0kエージェントに、明確なコードの基準を教えます。機械で規則を強制する、コメントはまれにする、テストが失敗しうるようにする、ドキュメントは短く保つ、などです。
google-ads
7.0kエージェントが、APIのバージョンや予算の一般的なミスを避けて、Google Adsのレポートや変更を安全に行い、無駄な費用を防げるよう支援します。
google-analytics
7.0kエージェントが、部分的な日付や誤ったゼロを避けて、Google Analytics 4から正確なトラフィック、コンバージョン、収益の数字を得られるよう支援します。
google-search-console
7.0kエージェントが、Search Consoleから有機検索のクリック、表示回数、順位を報告し、直近の不完全な日を減少と誤認しないよう支援します。
似ているスキル
taste-application
280kエージェントが、特定のスタイルの動画を作成するのを助けます。参考動画の編集のリズムを真似したり、新しいシーンを生成したり、色味を調整したりして、他の素材と合わせて編集できます。
taste-distillation
280kエージェントが動画を分析して、スタイルパックを作成できるようにします。色味、カットのリズム、ビジュアル要素などを含み、同じ雰囲気の新しい動画を作るときに再利用できます。
ui-demo
280kエージェントに、洗練されたUIのデモ動画を録画させます。チュートリアルの作成や、Webアプリの動作の紹介に役立ちます。