Token导航 LogoToken导航

Agent Skill · 前端设计

video-generation(视频生成)

用于辅助视频生成、动画合成、脚本化剪辑或 Remotion 等视频项目开发。它适合让 Agent 组织镜头、生成素材说明、维护合成代码或排查渲染问题。使用时需要确认分辨率、时长、素材路径和导出格式;涉及外部素材、人物肖像或商业发布时,应先核对版权授权和内容审核要求。

video-generation 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 5,915。

总安装 582周安装 24GitHub Stars 968下载 190核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:video-generation(视频生成)
来源仓库:https://github.com/massgen/massgen
仓库路径:skills/video-generation
安装命令:
npx skills add https://github.com/massgen/massgen --skill video-generation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/massgen/massgen --skill video-generation

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

video-generation 辅助视频生成和动画合成,支持镜头组织和渲染问题排查。适用于 Remotion 项目开发、素材说明生成和合成代码维护等场景。通过分辨率、时长和素材路径参数配置实现视频处理流程。涉及外部素材或人物肖像时应核对版权授权和内容审核要求。

安装命令为 npx skills add https://github.com/massgen/massgen --skill video-generation。

来源仓库内路径:skills/video-generation

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/massgen/massgen --skill video-generation;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

video-generation 怎么安装?

在终端执行 npx skills add https://github.com/massgen/massgen --skill video-generation。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

video-generation 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

video-generation 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

video-generation 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

video-generation 用的人多吗?

公开数据是累计安装 582 次,近一周安装 24 次,下载 190 次,GitHub 968 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

video-generation 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
video-generation

视频生成 · 本页

582968接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Video Generation

Generate videos using generate_media with mode="video". The system auto-selects the best backend based on available API keys.

Quick Start

# Simple text-to-video (auto-selects backend)
generate_media(prompt="A robot walking through a city", mode="video")

# Specify backend and duration
generate_media(prompt="Ocean waves crashing on rocks", mode="video",
               backend_type="google", duration=8)

# With aspect ratio
generate_media(prompt="A timelapse of clouds", mode="video",
               backend_type="grok", aspect_ratio="16:9", duration=10)

Backend Comparison

BackendDefault ModelDuration RangeDefault DurationResolutionsAPI Key
Grok (priority 1)grok-imagine-video1-15s5s480p, 720pXAI_API_KEY
Google Veo (priority 2)veo-3.1-generate-preview4-8s8s720p, 1080p, 4K (use size); default 16:9GOOGLE_API_KEY
OpenAI Sora (priority 3)sora-24, 8, or 12s (discrete)4sStandardOPENAI_API_KEY

Key Parameters

ParameterDescriptionExample
promptText description of the video"A drone flying over mountains"
backend_typeForce a specific backend"grok", "google", "openai"
modelOverride default model"veo-3.1-generate-preview"
durationVideo length in seconds8 (clamped to backend limits)
aspect_ratioVideo aspect ratio"16:9", "9:16", "1:1"
sizeResolution (Grok: 480p/720p; Veo: 720p/1080p/4k)"720p", "1080p", "4k"
input_imagesSource image for image-to-video["starting_frame.jpg"]
video_reference_imagesStyle/content guide images (Veo, up to 3)["ref1.png", "ref2.png"]
negative_promptWhat to exclude (Veo)"blurry, low quality"

Duration Handling

Each backend has different duration constraints. generate_media automatically clamps the requested duration:

  • Grok: Continuous range 1-15s (clamped to bounds)
  • Google Veo: Continuous range 4-8s (clamped to bounds), defaults to 16:9 aspect ratio
  • OpenAI Sora: Discrete values only (4, 8, or 12s) - snaps to nearest valid value

A warning is logged if duration is adjusted.

Image-to-Video

All three video backends support starting video from an existing image via input_images:

generate_media(
    prompt="Animate this scene with gentle movement",
    mode="video",
    input_images=["scene.jpg"],
    duration=5
)

The first image in input_images is used; additional images are ignored.

Generation Time

Video generation is significantly slower than images. All backends use polling:

  • Grok: SDK handles polling internally (up to 10 min timeout)
  • Google Veo: Custom polling every 20s (up to 10 min)
  • OpenAI Sora: Custom polling every 2s

Veo 3.1: Native Audio

Veo 3.1 generates audio (dialogue, SFX, ambient) automatically from prompt content. No extra parameter needed — just describe the sounds:

  • Dialogue: Use quotation marks in prompt ("Hello," she said.)
  • Sound effects: Describe sounds (tires screeching, engine roaring)
  • Ambient: Describe atmosphere (eerie hum resonates through the hallway)

Veo 3.1: Extension Constraints

When extending videos via continue_from with a veo_vid_* ID:

  • Resolution is forced to 720p (API requirement for extensions)
  • Only 16:9 and 9:16 aspect ratios are supported
  • Each extension adds up to 7 seconds (API limit: 20 extensions, ~141s total)
  • Generated videos are retained for 2 days before expiry

Producing Longer Videos

Current APIs cap at 15 seconds max per clip (Grok), with most backends at 4-8s. There is no way to generate a continuous 30+ second video in one call. The proven approach:

  1. Plan a shot list — break your video into 6-8s segments with specific camera language per shot
  2. Generate clips in parallel — launch all segments concurrently using background=True
  3. Composite in Remotion (see below) — layer programmatic animation on top of generated footage
  4. Bridge with audio — a unified narration or music track smooths over visual cuts between clips

For visual continuity, use the same style anchor in every prompt (e.g., "BBC Earth documentary cinematography") and maintain consistent lighting/color descriptions.

Full production guide with examples, transition types, and duration strategy: See references/production.md

Hybrid Workflow: AI Footage + Remotion Animation

The best results come from combining AI-generated footage with Remotion's programmatic animation — not choosing one or the other.

AI video generation produces photorealistic, cinematic footage that pure programmatic rendering cannot match. Remotion produces precise typography, motion graphics, overlays, and transitions that AI generation cannot reliably control. Use both together.

The Rule: Generate First, Composite Second

  1. Generate AI clips for cinematic/photorealistic shots (environments, product demos, atmospheric footage)
  2. Use those clips as visual foundations in Remotion — import them as <Video> or <OffthreadVideo> background layers
  3. Composite programmatic elements on top — typography, motion graphics, logos, data overlays, transitions, captions
  4. Fill gaps with pure Remotion animation — title cards, intro sequences, motion-graphics-only segments where AI footage isn't needed

Do NOT Discard Generated Clips

Every AI-generated clip costs real money and time. Do not abandon generated footage and fall back to purely programmatic rendering. This is a common failure mode — agents generate clips, notice minor artifacts (e.g., repeated patterns, slight distortion), then pivot entirely to OpenCV/PIL/moviepy rendering, wasting all the generation budget.

Instead:

SituationWrong ApproachRight Approach
Minor artifacts in generated clipDiscard clip, render from scratch with OpenCVUse clip as background, mask artifacts with overlays/motion graphics
Generated clip doesn't match vision exactlyRegenerate or abandonComposite typography/effects on top to guide the viewer's attention
Need precise text/logo placementSkip AI generation, use pure programmaticGenerate atmospheric footage, overlay text in Remotion
Some shots need AI footage, others don'tUse one approach for everythingMix: AI-backed shots + pure Remotion animation shots

Cost Awareness

Each generate_media(mode="video") call is expensive. Plan before generating:

  • Decide which shots need AI footage before generating anything — not every shot needs it
  • Generate only what you'll use — don't speculatively generate 8 clips hoping some work out
  • Review and use what you generate — analyze each clip with read_media, then plan your Remotion composition around actual footage
  • One good clip composited well beats five unused clips — invest in composition quality over generation quantity

Post-Production: Always Use Remotion

Remotion is the default post-production tool for any video that needs editing beyond simple concatenation. This includes captions, titles, transitions, overlays, motion graphics — essentially any video intended to look professional. Do not use raw ffmpeg drawtext or manual filter chains for these tasks; the results look amateur compared to what Remotion produces.

When you have video clips to assemble, load the Remotion skill and use it. This is not optional for professional output.

Loading the Remotion Skill

Load the skill to get detailed rules and code examples:

What Remotion Gives You

CapabilityRemotionRaw ffmpeg
Styled animated captionsCSS-styled, word-level highlighting, animationsdrawtext — ugly, painful escaping
Title cards / lower thirdsReact components, any font/layoutManual positioning, limited fonts
Scene transitionsTiming curves, spring animations, custom effectsBasic xfade (fade, wipe)
Motion graphicsFull React/CSS/Three.js/Lottie ecosystemNot possible
Light leak / overlay effectsBuilt-in @remotion/light-leaksComplex filter chains
Text animationsTypography effects, per-character animationNot feasible
AI footage + overlaysImport clips as <Video>, layer React components on topNot feasible at quality

When ffmpeg Alone Is Sufficient

Only use ffmpeg without Remotion for:

  • Concatenating clips with no captions, titles, or transitions (just hard cuts)
  • Audio mixing / ducking (ffmpeg or Pydub)
  • Color grading via LUT files (lut3d filter)
  • Quick format conversion or rescaling

Workflow

  1. Generate AI clips with generate_media (parallel, background mode) — for shots that need cinematic/photorealistic quality
  2. Review clips with read_media — assess what you have, plan composition around actual footage
  3. Generate audio (narration, music) with generate_media(mode="audio")
  4. Load the Remotion skill and set up a Remotion project
  5. Composite in Remotion: import AI clips as <Video> background layers, overlay typography/motion graphics/captions, add pure-animation segments for title cards and transitions
  6. Render via Remotion's headless renderer

Key Remotion Rule Files to Load

When working on a specific task, load the relevant rule files from the Remotion skill:

  • Captions/subtitles: rules/subtitles.md, rules/display-captions.md, rules/transcribe-captions.md
  • Transitions: rules/transitions.md
  • Text animations: rules/text-animations.md
  • Light leaks: rules/light-leaks.md
  • Audio: rules/audio.md, rules/audio-visualization.md
  • Sequencing/timeline: rules/sequencing.md, rules/trimming.md
  • 3D motion graphics: rules/3d.md
  • Animations/timing: rules/animations.md, rules/timing.md

Need More Control?

平台分布

Codex

34.63%
按下载量换算66

Claude

31.33%
按下载量换算60

Cursor

17.61%
按下载量换算33

Gemini CLI

9.82%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills