create-video
它能做什么
这项技能可以根据一段文字提示生成完整视频。适合想快速做出讲解、演示或营销视频,又不想逐项挑选细节的人。
适用场景
- ✓当你有一个想法或描述,希望由它直接生成一段完整视频的时候。
- ✓当你想快速得到视频初稿,而不想逐个挑选数字人、声音或场景的时候。
- ✓当你想根据一段提示制作一条简短的讲解、演示或营销视频时。
技能链接
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/create-video/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我制作一段 60 秒的产品演示视频,介绍我们新的排期功能。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把结构化提示发送给 HeyGen Video Agent,由它撰写脚本、选择画面和声音,并添加字幕。随后智能体会检查状态,视频完成后返回链接。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Create Video
Generate complete videos from a text prompt. Describe what you want and the AI handles script writing, avatar selection, visuals, voiceover, pacing, and captions automatically.
Authentication
All requests require the X-Api-Key header. Set the HEYGEN_API_KEY environment variable.
curl -X POST "https://api.heygen.com/v1/video_agent/generate" \
-H "X-Api-Key: $HEYGEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "Create a 60-second product demo video."}'
Tool Selection
If HeyGen MCP tools are available (mcp__heygen__*), prefer them over direct HTTP API calls — they handle authentication and request formatting automatically.
| Task | MCP Tool | Fallback (Direct API) |
|---|---|---|
| Generate video from prompt | mcp__heygen__generate_video_agent |
POST /v1/video_agent/generate |
| Check video status / get URL | mcp__heygen__get_video |
GET /v2/videos/{video_id} |
| List account videos | mcp__heygen__list_videos |
GET /v2/videos |
| Delete a video | mcp__heygen__delete_video |
DELETE /v2/videos/{video_id} |
If no HeyGen MCP tools are available, use direct HTTP API calls as documented in the reference files.
Default Workflow
Always use prompt-optimizer.md guidelines to structure prompts with scenes, timing, and visual styles.
With MCP tools:
- Write an optimized prompt using prompt-optimizer.md → visual-styles.md
- Call
mcp__heygen__generate_video_agentwith prompt and config (duration_sec, orientation, avatar_id) - Call
mcp__heygen__get_videowith the returned video_id to poll status and get the download URL
Without MCP tools (direct API):
- Write an optimized prompt using prompt-optimizer.md → visual-styles.md
POST /v1/video_agent/generate— see video-agent.mdGET /v2/videos/<id>— see video-status.md
Quick Reference
| Task | MCP Tool | Read |
|---|---|---|
| Generate video from prompt | mcp__heygen__generate_video_agent |
prompt-optimizer.md → visual-styles.md → video-agent.md |
| Check video status / get download URL | mcp__heygen__get_video |
video-status.md |
| Upload reference files for prompt | — | assets.md |
When to Use This Skill vs Avatar Video
This skill is for prompt-based video creation — describe what you want, and the AI handles the rest.
If the user needs precise control over specific avatars, exact scripts, per-scene voice/background configuration, or multi-scene composition, use the avatar-video skill instead.
| User Says | This Skill | Avatar Video Skill |
|---|---|---|
| "Make me a video about X" | ✓ | |
| "Create a product demo" | ✓ | |
| "I want avatar Y to say exactly Z" | ✓ | |
| "Multi-scene video with different backgrounds" | ✓ | |
| "Transparent WebM for compositing" | ✓ |
Reference Files
Core Workflow
- references/prompt-optimizer.md - Writing effective prompts (core workflow + rules)
- references/visual-styles.md - 20 named visual styles with full specs
- references/prompt-examples.md - Full production prompt example + ready-to-use templates
- references/video-agent.md - Video Agent API endpoint details
Foundation
- references/video-status.md - Polling patterns and download URLs
- references/webhooks.md - Webhook endpoints and events
- references/assets.md - Uploading images, videos, audio as references
- references/dimensions.md - Resolution and aspect ratios
- references/quota.md - Credit system and usage limits
Best Practices
- Optimize your prompt — The difference between mediocre and professional results depends entirely on prompt quality. Always use the prompt optimizer
- Specify duration — Use
config.duration_secfor predictable length - Lock avatar if needed — Use
config.avatar_idfor consistency across v
常见问题
我需要自己选择数字人吗?
不需要。Video Agent 会为你选择数字人、声音和画面。
它需要 HeyGen 密钥吗?
需要。你的环境中需要设置 HEYGEN_API_KEY。
怎样获得做好的视频?
智能体会检查视频状态,视频准备好后返回链接。
详情
作者的原始描述
Create videos from a text prompt using HeyGen's Video Agent. Use when: (1) Creating a video from a description or idea, (2) Generating explainer, demo, or marketing videos from a prompt, (3) Making a video without specifying exact avatars, voices, or scenes, (4) Quick video prototyping or drafts, (5) One-shot prompt-to-video generation, (6) User says "make me a video" or "create a video about X".
repo: calesthio/OpenMontage
热度
- GitHub 星标
- 75k
- 排名
- #2648
- 许可证
- AGPL-3.0
- 更新时间
- 2026/10/28
评论
- …