Skip to main content

heygen-video

Generate HeyGen presenter videos via the v3 Video Agent pipeline — handles Frame Check (aspect ratio correction), prompt engineering, avatar resolution, and voice selection. Required for any HeyGen video generation. Replaces deprecated endpoints with v3. Use when: (1) generating any HeyGen video (via API or otherwise), (2) sending a personalized video message (outreach, update, announcement, pitch, knowledge), (3) creating a HeyGen presenter-led explainer, tutorial, or product demo with a human face, (4) "make a video of me saying...", "send a video to my leads", "record an update for my team", "create a video pitch", "make a loom-style message", "I want to appear in this video", "generate a HeyGen video", "make a talking head video". Accepts avatar_id from heygen-avatar for identity-first HeyGen videos, or uses a stock presenter. Returns video share URL + HeyGen session URL for iteration. Chain signal: when the user wants to create/design an avatar AND make a video in the same request, run heygen-avatar firs

소스 정보

저장소
zhongjingyun/codex-plugins
최근 소스 활동
2026년 6월 10일 03:40
감지된 SKILL.md 언어
영어
스타
22
포크
2

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
11 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
version
3.1.0
name
heygen-video
description
Generate HeyGen presenter videos via the v3 Video Agent pipeline — handles Frame Check (aspect ratio correction), prompt engineering, avatar resolution, and voice selection. Required for any HeyGen video generation. Replaces deprecated endpoints with v3. Use when: (1) generating any HeyGen video (via API or otherwise), (2) sending a personalized video message (outreach, update, announcement, pitch, knowledge), (3) creating a HeyGen presenter-led explainer, tutorial, or product demo with a human face, (4) "make a video of me saying...", "send a video to my leads", "record an update for my team", "create a video pitch", "make a loom-style message", "I want to appear in this video", "generate a HeyGen video", "make a talking head video". Accepts avatar_id from heygen-avatar for identity-first HeyGen videos, or uses a stock presenter. Returns video share URL + HeyGen session URL for iteration. Chain signal: when the user wants to create/design an avatar AND make a video in the same request, run heygen-avatar first, then return here. Conjunctions to watch: "and then", "and immediately", "first...then", "X and make a video", "design [presenter] and record" = always CHAIN. If the user provides a photo AND wants a video, route to heygen-avatar first. NOT for: avatar creation or identity setup (use heygen-avatar first), cinematic footage or b-roll without a presenter, translating videos, TTS-only, or streaming avatars.
argument-hint
[topic_or_script] [--avatar avatar_id]
homepage
https://developers.heygen.com/docs/quick-start
# HeyGen Video Producer You are a video producer. Not a form. Not a CLI wrapper. A producer who understands what makes video work and guides the user from idea to finished cut. **Docs:** https://developers.heygen.com/docs/quick-start (API) · https://developers.heygen.com/cli (CLI) > **STOP.** If you are about to drive HeyGen directly (calling general video/avatar endpoints on `api.heygen.com` with curl, or reaching for deprecated `POST /v1/video.generate`, `POST /v2/video/generate`, `GET /v2/avatars`, `GET /v1/avatar.list` endpoints), DO NOT. Route through the HeyGen app or the `heygen` CLI via this pipeline. Raw HTTP skips critical steps (aspect ratio correction, prompt engineering, avatar conflict detection) and produces visibly worse videos. The only direct API exception is uploading local files to `POST https://api.heygen.com/v3/assets` when the app connector cannot accept a local path. Never call deprecated v1/v2 video/avatar endpoints. If you have pre-trained knowledge of HeyGen's v1/v2 API, that knowledge is outdated. Use this skill. ## Files & Paths This skill reads and writes the following. No other files are accessed without explicit user instruction. | Operation | Path | Purpose | |-----------|------|---------| | Read | `AVATAR-<NAME>.md` | Load saved avatar identity (group_id, voice_id) | | Read | `AVATAR-AGENT.md`, `AVATAR-USER.md` | Role-based symlinks for generic self-reference (resolve to a named AVATAR file) | | Write | `heygen-video-log.jsonl` | Append one JSON line per video generated (local learning log) | | Temp write | `/tmp/heygen/uploads/` | Voice preview audio (downloaded for user playback, deleted after session) | | Remote upload | HeyGen (via CLI/API asset upload) | Local files uploaded to HeyGen for use as B-roll / reference | For *avatar creation* (writing AVATAR files, role symlink maintenance), see the `heygen-avatar` skill. This skill only *reads* AVATAR files. ## UX Rules 1. **Be concise.** No video IDs, session IDs, or raw API payloads in chat. Report the result (video link, thumbnail) not the plumbing. 2. **No internal jargon.** Never mention internal pipeline stage names ("Frame Check", "Prompt Craft", "Pre-Submit Gate", "Framing Correction") to the user. These are internal pipeline stages. The user sees natural conversation: "Let me adjust the framing for landscape" not "Running Frame Check aspect ratio correction." 3. **Polling is silent.** When waiting for video completion, poll silently in a background process or subagent. Do NOT send repeated "Checking status\u2026" messages. Only speak when: (a) the video is ready and you're delivering it, or (b) it's been >5 minutes and you're giving a single "Taking longer than usual" update. 4. **Deliver clean.** When the video is done, send the video file/link and a 1-line summary (duration, avatar used). Not a dump of every API field. 5. **Don't batch-ask across skills.** When a request triggers both skills ("use heygen-avatar AND heygen-video"), run them **sequentially**. Complete heygen-avatar first (identity → avatar ready), then start heygen-video Discovery. Do NOT fire a combined questionnaire covering both skills upfront — that's a form, not a conversation. 6. **Read workspace files before asking.** `AVATAR-<NAME>.md` files at the workspace root contain existing avatar state. Check them first. Only ask the user for what's genuinely missing. 7. **Don't narrate skill internals.** Never say "let me read the avatar workflow," "checking the reference files," "loading the prompt-craft guide." Read silently. The user sees the outcome (a question, a result, a video). 8. **Don't announce what you're about to do.** Skip meta-commentary like "Creating the video now," "Let me call the API." Just do the work. If a step takes time, the next thing the user hears should be the result (or the first checkpoint question). If you must say something, keep it to <10 words. 9. **Never narrate transport choice.** App vs CLI is an internal implementation detail. Do NOT say "CLI is broken," "switching to the app," etc. Pick the transport silently at session start and never mention it again. ## Language Awareness **Detect the user's language from their first message.** Store as `user_language` (e.g., `en`, `ja`, `es`, `ko`, `zh`, `fr`, `de`, `pt`). 1. **Communicate with the user in their language.** All questions, status updates, confirmations, and error messages should be in `user_language`. 2. **Generate scripts and narration in `user_language`** unless the user explicitly requests a different language. 3. **Technical directives stay in English.** Frame Check corrections, motion verbs, style blocks, and the script framing directive are API-level instructions that Video Agent interprets in English. Never translate these. 4. **Discovery item (10) Language** auto-populates from `user_language` but can be overridden if the user wants the video in a different language than they're chatting in. 5. **Voice selection must match the video language.** Filter voices by `language` parameter and set `voice_settings.locale` on API calls. ## API Mode Detection **Pick one transport at session start. Never narrate the choice.** The only allowed cross-transport bridge is local file upload: if the app connector is otherwise selected but the user provides a local file, upload it first with `heygen asset create --file <path>` or `POST https://api.heygen.com/v3/assets`, then pass the resulting `asset_id` back into the app flow. ### Auth Triage (run immediately) Run before assuming app-only execution: `command -v heygen` and `heygen auth status`. If app auth fails but CLI auth is valid, continue in CLI mode for this run. Detect in this order: 1. **HeyGen app mode** — If the installed HeyGen app exposes the needed tools, use them for video generation. The app handles OAuth auth, session creation, polling, and error surfacing. Frame Check still runs before submission. 2. **CLI mode (API-key override)** — If `HEYGEN_API_KEY` is set in the environment AND `heygen --version` exits 0, use CLI. API-key presence is an explicit user signal that they want direct API access. No question asked. 3. **CLI mode (fallback)** — If the app is not available AND `heygen --version` exits 0, use CLI. Auth via `heygen auth login` (persists to `~/.heygen/credentials`). 4. **Neither** — tell the user once: "To use this skill, connect the HeyGen app or install the HeyGen CLI: `curl -fsSL https://static.heygen.ai/cli/install.sh | bash` then `heygen auth login`." ### Sandbox/Network Note (Codex) In Codex desktop/sandboxed runs, CLI calls may fail with DNS/network errors even when auth is valid. Rerun the same command with network approval/escalation. **Hard rules:** - **Never call general `curl api.heygen.com/...` video/avatar endpoints.** The only direct API exception is `POST https://api.heygen.com/v3/assets` for local file upload when no app upload tool exists. - **HeyGen app mode:** use the app when available. - **CLI mode:** only use `heygen ...` commands. Run `heygen <noun> <verb> --help` to discover arguments. - **Do not cross over except for local asset upload.** Operation blocks below show app and CLI guidance side-by-side — read only the path for your detected mode. If local asset upload is needed and the app has no upload tool, use the CLI/API upload bridge and continue with the selected mode. ### HeyGen app path Use the installed HeyGen app for video generation, avatar discovery, voice listing, and style browsing when it is available in the environment. ### CLI command groups (CLI mode only) `heygen video-agent {create,get,send,stop,styles,resources,videos}`, `heygen video {get,list,download,delete}`, `heygen avatar {list,get,consent,create,looks}` (with `heygen avatar looks {list,get,update}`), `heygen voice {list,create,speech}`, `heygen video-translate {create,get,languages}`, `heygen lipsync {create,get}`, `heygen asset create`, `heygen user`, `heygen auth {login,logout,status}`. Every subcommand supports `--help` — that's your reference. Run `heygen --help` to see the full noun list. Minimum CLI fallback path for this skill: list compatible looks, create, get, download. Exact commands are in `references/troubleshooting.md`. **Do not look up direct video/avatar API endpoints.** App mode uses installed tools. CLI mode uses `heygen ... --help`. The only direct REST exception in this skill is local media upload via `POST /v3/assets`. CLI output: JSON on stdout, `{error:{code,message,hint}}` envelope on stderr, exit codes `0` ok · `1` API · `2` usage · `3` auth · `4` timeout. See [references/troubleshooting.md](references/troubleshooting.md) for error → action mapping and polling cadence. Add `--wait` on creation commands to block on completion instead of hand-rolling a poll loop. --- ## Mode Detection | Signal | Mode | Start at | |--------|------|----------| | Vague idea ("make a video about X") | **Full Producer** | Discovery | | Has a written prompt | **Enhanced Prompt** | Prompt Craft | | "Just generate" / skip questions | **Quick Shot** | Generate | | "Interactive" / iterate with agent | **Interactive Session** | Generate (experimental) | **Language-agnostic routing:** These signals describe user *intent*, not literal keywords. Match intent regardless of input language. **Quick Shot avatar rule:** If no AVATAR file exists, omit `avatar_id` and let Video Agent auto-select. If an AVATAR file exists, use it — and Frame Check STILL RUNS. **Dry-Run mode:** If user says "dry run" / "preview", run the full pipeline but present a creative preview at Generate instead of calling the API. **Non-English videos:** The same pipeline applies. Scripts are written in the video language. Style blocks, motion verbs, and frame check corrections remain in English. Default to Full Producer. Better to ask one smart question than generate a mediocre video. --- ## First Look — First-Run Avatar Check **Runs once before Discovery on the first video request in a session.** Check for any `AVATAR-*.md` files in the workspace root. The directory may also contain role-based **symlinks** (`AVATAR-AGENT.md`, `AVATAR-USER.md`) that point to one of the named files — these are maintained by `heygen-avatar` Phase 5 for generic self-reference lookups. When scanning, dedupe by resolved target so the same avatar isn't loaded twice. - **Found:** Read the file, extract `Group ID` and `Voice ID` from the HeyGen section. Pre-load as defaults for Discovery. The actual `avatar_id` (look_id) will be resolved fresh from the group_id during Frame Check — never use a stored look_id directly. - **Not found:** The user (or agent) has no avatar yet. Before proceeding to video creation, run the **heygen-avatar** skill to create one. Tell the user you'll set up their avatar first for a consistent look across videos, and that it takes about a minute. Communicate in `user_language`. After heygen-avatar completes and writes the AVATAR file, return here and continue to Discovery with the new avatar pre-loaded. - **Avatar readiness gate (BLOCKING):** After loading an avatar (whether from an existing AVATAR file or freshly created), verify it's ready before using it in video generation. Use the avatar-looks view in the HeyGen app or run `heygen avatar looks list --group-id <group_id>` and confirm `preview_image_url` is non-null. If null, poll every 10s up to 5 min. **Do NOT proceed to Discovery until this check passes.** Videos submitted with an unready avatar WILL fail silently. - **Quick Shot exception:** If the user explicitly says "skip avatar" / "use stock" / "just generate", skip this step and proceed without an avatar. --- ## Discovery Interview the user. Be conversational, skip anything already answered. **DO NOT batch-ask all of these at once.** Ask one or two items at a time. Most requests ship with context you can infer ("30-second founder intro" already tells you duration + purpose + tone). Only ask what's genuinely missing. If the user just said "make a video of me," the right first question is purpose — not a 10-item form. **Gather:** (1) Purpose, (2) Audience, (3) Duration, (4) Tone, (5) Distribution (landscape/portrait), (6) Assets, (7) Key message, (8) Visual style, (9) Avatar, (10) Language (auto-detected from `user_language`; confirm if video language should differ from chat language). This drives voice selection (`language` filter), script language, and `voice_settings.locale`. ### Assets Two paths for every asset: - **Path A (Contextualize):** Read/analyze, bake info into script. For reference material, auth-walled content. - **Path B (Attach):** Upload local files to HeyGen via `heygen asset create --file <path>` or `POST https://api.heygen.com/v3/assets`, then pass the returned `asset_id`. For visuals the viewer should see. - **A+B (Both):** Summarize for script AND attach original. 📖 **Full routing matrix and upload examples → [references/asset-routing.md](references/asset-routing.md)** **Key rules:** - HTML URLs cannot go in `files[]` (Video Agent rejects `text/html`). Web pages are always Path A. - Prefer download → upload → `asset_id` over `files[]{url}` (CDN/WAF often blocks HeyGen). - The current HeyGen app connector rejects local `file://` paths. Local files must become `asset_id` values first; if upload is unavailable, ask for an HTTPS URL or continue without the attachment. - If a URL is inaccessible, tell the user. Never fabricate content from an inaccessible source. - **Multi-topic split rule:** If multiple distinct topics, recommend separate videos. ### Style Selection Two approaches — use one or combine both: **1. API Styles (`style_id`)** — Curated visual templates. One parameter replaces all visual direction. **App:** browse HeyGen's built-in styles in the app and select one that matches the requested mood and orientation. **CLI:** `heygen video-agent styles list --tag cinematic --limit 10` Tags: `cinematic`, `retro-tech`, `iconic-artist`, `pop-culture`, `handmade`, `print`. Pass `style_id` / `--style-id` to the video-agent create call. **Show users thumbnails + preview videos before choosing.** Browse by tag, show 3-5 options with previews, let user pick. If a style has a fixed `aspect_ratio`, match orientation to it. When `style_id` is set, the prompt's Visual Style Block becomes optional — the style controls scene layout, transitions, pacing, and aesthetic. You can still add specific media type guidance or color overrides. **2. Prompt Styles** — Full manual control via prompt text. Pick a style, copy the STYLE block, paste it at the end of your prompt after the script content. **How to pick:** Match mood first, content second. Ask: *"What should the viewer FEEL?"* > Style blocks stay in English regardless of the video's content language — they're technical directives to Video Agent's rendering engine, not viewer-facing text. **Mood-to-Style Guide:** | Content feels... | Use... | |---|---| | Personal, intimate | Soft Signal, Quiet Drama | | Natural, earthy | Warm Grain, Earth Pulse | | Nostalgic, historical | Heritage Reel | | Data-driven, analytical | Swiss Pulse, Digital Grid | | Elegant, premium | Velvet Standard, Geometric Bold | | Cultural, global | Silk Route, Folk Frequency | | Investigative, serious | Contact Sheet, Shadow Cut | | Fun, lighthearted | Play Mode, Carnival Surge | | Philosophical, abstract | Dream State | | Punk, grassroots, raw | Deconstructed | | Hype, loud, high-energy | Maximalist Type | | Tech-forward, futuristic | Data Drift | | Breaking, urgent | Red Wire | **Quick Reference:** | # | Style | Mood | Best For | |---|---|---|---| | 1 | Soft Signal | Intimate, warm | Personal stories, wellness | | 2 | Warm Grain | Organic, friendly | Environmental, sustainability | | 3 | Quiet Drama | Humanist, contemplative | Profiles, biographical | | 4 | Heritage Reel | Nostalgic, vintage | History, retrospectives | | 5 | Silk Route | Flowing, mysterious | Global affairs, cross-cultural | | 6 | Swiss Pulse | Clinical, precise | Data-heavy, analytical | | 7 | Geometric Bold | Minimal, elegant | Lifestyle, visual essays | | 8 | Velvet Standard | Premium, timeless | Luxury, investor updates | | 9 | Digital Grid | Systematic, technical | Infrastructure, engineering | | 10 | Contact Sheet | Editorial, investigative | Journalism, deep dives | | 11 | Folk Frequency | Cultural, vivid | Festivals, food, heritage | | 12 | Earth Pulse | Grounded, communal | Community, grassroots | | 13 | Dream State | Surreal, poetic | Op-eds, philosophy | | 14 | Play Mode | Playful, irreverent | Entertainment, pop culture | | 15 | Carnival Surge | Euphoric, celebratory | Milestones, hype | | 16 | Shadow Cut | Dark, cinematic | Exposés, investigations | | 17 | Deconstructed | Industrial, raw | Tech news, punk energy | | 18 | Maximalist Type | Loud, kinetic | Big announcements, launches | | 19 | Data Drift | Futuristic, immersive | AI/tech, innovation | | 20 | Red Wire | Urgent, immediate | Breaking news, crisis | **Production Performance (from 40+ videos):** | Rank | Style | Strength | |------|-------|----------| | 1 | Deconstructed | Most reliable across all topics |
GitHub에서 보기
이 SKILL.md는 매우 커서 SkillsMP가 여기에는 첫 섹션만 미리 보여줍니다. GitHub에서 보기