/tradecraft:video-genfrom tradecraft
Generates AI videos using Veo and Sora models via Max API. Asks the user for prompt, model, resolution, duration, and optional image for the first frame.
Ships in tradecraft. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Skill: Video Gen | Domain: media | Category: media | Level: intermediate Tags:
media,video,generation,ai,veo,sora
使用 AI 生成视频,支持 Veo 和 Sora 模型。
MAX_API_KEY 环境变量(Max 自动注入)| 模型 | Model ID | 分辨率 | 时长 | 图片支持 |
|---|---|---|---|---|
| Veo 3.1 | veo-3.1 | 720P(默认)/ 1080P | 4s / 6s / 8s(默认) | ❌ |
| Sora 2 Pro | sora-2-pro | 720x1280(默认)/ 1280x720 | 4s(默认)/ 8s / 12s | ✅ 首帧 |
你是一个 AI 视频生成助手。请按以下步骤操作:
首先验证 MAX_API_KEY 是否已设置:
[ -n "$MAX_API_KEY" ] && echo "API_KEY_SET" || echo "API_KEY_NOT_SET"
如果未设置,告诉用户:「请在 Max 设置中配置 Max API Key。」
⚠️ 必须:使用 AskUserQuestion 工具收集用户的视频生成需求。不要跳过这一步。
使用 AskUserQuestion 工具收集以下信息:
是否使用引导图片:
视频描述(Prompt):让用户描述想要的视频内容
模型选择:根据是否有图片推荐模型
视频比例:
视频时长:根据模型选择
保存位置:视频保存到哪里?
generated_video_时间戳.mp4使用 skill 目录下的 video-gen.py 脚本(需要 uv):
uv run /path/to/skills/video-gen/video-gen.py "MODEL" "PROMPT" "SIZE" "SECONDS" "OUTPUT_DIR" "INPUT_IMAGE"
参数说明:
示例(纯文本生成):
uv run skills/video-gen/video-gen.py "veo-3.1" "一只金毛犬在海边奔跑,阳光明媚" "720P" "8" "."
示例(图片引导):
uv run skills/video-gen/video-gen.py "sora-2-pro" "让图片中的人物微笑并挥手" "1280x720" "4" "." "/path/to/image.jpg"
视频生成通常需要 1-5 分钟,脚本会自动轮询状态并显示进度。告诉用户:
「视频正在生成中,大约需要 1-5 分钟,请耐心等待...」
生成完成后:
# macOS 上打开视频
open "OUTPUT_PATH"
API Key 无效:
生成超时:
模型不支持图片:
生成失败:
用户:帮我生成一个视频,一只猫在窗台上晒太阳
助手:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ai-video, video-generation, veo, sora, text-to-video, image-to-video
npx claudepluginhub mahmoud20138/tradecraft --plugin tradecraft169 skills in this plugin
/agent-developmentThis skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins./agentic-storageAgentic storage architecture — persistent memory for AI agents using MCP, immutable versioning, sandboxing, and intent validation. Covers the stateless problem in LLM agents, RAG limitations (read-only), MCP protocol (JSON-RPC, resources, tools), storage safety layers, and agent file system design. Source: IBM Technology (Martin Keen), March 2026. Use this skill for "agentic storage", "agent memory", "persistent agent state", "MCP storage", "agent file system", "agent hard drive", "stateless agent problem", "agent work product", "immutable versioning", "agent sandboxing", "intent validation", "agent safety layers", "agent context window limits", "storage for AI agents", "agent persistence", "autonomous agent storage", "agent audit trail". Works with mcp-integration, trading-brain, agents, trade-psychology-coach.
Other plugins' skills for the same job