Skip to content
Back to skills

Generate Clip

ASecurity

Generate AI video clips for your Remotion project. Create unique footage from text descriptions or animate still images into video — no stock footage needed.

  • 198 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 9, 2026
ai-agentsgobashapisecurity

Works with

  • claude code
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 6, 2026

npx -y skills add DojoCodingLabs/remotion-superpowers --skill generate-clip --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Generate Clip?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Generate Clip
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dojocodinglabs-generate-clip/badge)](https://www.skillsdirectory.com/skills/dojocodinglabs-generate-clip)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: generate-clip
description: Generate AI video clips for your Remotion project. Create unique footage from text descriptions or animate still images into video — no stock footage needed.
---

# Generate Clip — AI Video Generation

You are helping the user generate custom AI video clips for their Remotion project. This creates unique footage that doesn't exist anywhere — going beyond stock footage.

## Workflow

### 1. Understand the Need

Ask the user:
- **What should the clip show?** — A scene, product, animation, nature, abstract?
- **Duration** — How long? (typically 3-10 seconds for AI clips)
- **Style** — Cinematic, drone shot, close-up, slow motion, time-lapse?
- **Source** — Text-to-video (from description) or image-to-video (animate a still)?

### 2. Craft the Video Prompt

Write a scene description (technique in `skills/remotion-production/rules/video-generation.md`). Cover the camera movement, the subject and its action, the setting, lighting and mood, and the speed.

**Good prompt examples:**
- "Slow overhead crane shot of a modern city at golden hour, cars moving on the streets below, warm cinematic lighting."
- "Close-up of coffee being poured into a white mug, steam rising, soft morning light, shallow depth of field."
- "Abstract fluid art, flowing metallic gold and deep blue paint, mesmerizing slow motion."
- "Drone flying through a forest canopy, sunlight filtering through the leaves, cinematic nature footage."

For a video, also:
- **One continuous shot per clip**; Remotion does the cutting.
- **No burned-in text or subtitles**, and negative space where titles go.
- **Keep scenes consistent:** paste the same style block into every clip's prompt and keep one model for the whole video. See `skills/remotion-production/rules/video-generation.md`.

### 3. Generate via Replicate (default)

It needs the bundled `replicate-mcp` server and your Replicate API token (Claude Code asks for it when you enable the plugin; Codex and Gemini CLI read `REPLICATE_API_TOKEN`).

1. **Search, then read the schema.** `search_models` with `body: "text to video"` (or `"image to video"`), then `get_models` (`model_owner`, `model_name`) and `list_models_examples`. Durations, resolutions and image inputs differ per model, so use only inputs that exist in the schema.
2. **Create the prediction.** Official models: `create_models_predictions`. Community models: `create_predictions` with `version: "owner/name:<version_id>"`. Don't use `Prefer: "wait"` for video.

```
# Text-to-video draft with Veo 3.1 Fast (check the schema first)
create_models_predictions:
  model_owner: "google"
  model_name: "veo-3.1-fast"
  input:
    prompt: "[crafted prompt]"
    # duration, aspect ratio, resolution, audio: names and allowed values from the schema

# Image-to-video with Kling v3 (check the schema first)
create_models_predictions:
  model_owner: "kwaivgi"
  model_name: "kling-v3-video"
  input:
    start_image: "[public image URL]"
    prompt: "[motion description]"
    # duration, aspect ratio, mode: names and allowed values from the schema
```

3. **Poll** `get_predictions` with `prediction_id` every 10–20 s until `status` is `succeeded`, `failed` or `canceled`. Video takes minutes.
4. **Download** the URL in `output` right away (it expires after 1 hour):

```bash
mkdir -p public/footage
curl -L -o public/footage/clip-[descriptive-name].mp4 "<output URL>"
```

- Image inputs must be URLs. A still's Replicate output URL works directly while it's valid (1 hour), which is the easiest way to chain `/generate-image` into image-to-video.

**Starting points, as of Dec 2026** (search and read the schema before calling):
- **Drafts**: Veo 3.1 Fast (`google/veo-3.1-fast`): text/image-to-video, with audio
- **Finals**: Veo 3.1 (`google/veo-3.1`), or Kling v3 (`kwaivgi/kling-v3-video`) for cinematic image-to-video with `start_image` and optional `end_image`
- **References (images, video)**: Seedance 2 (`bytedance/seedance-2.0`, `bytedance/seedance-2.0-fast`) or Kling v3 Omni (`kwaivgi/kling-v3-omni-video`)
- **Longer or 1080p**: Wan 3 (`alibaba/wan-3`; up to 1080p / 30 s per Replicate's listing, verify the schema)
- **Open-weights, cheaper**: Wan 2.7 (`wan-video/wan-2.7-t2v`, `wan-video/wan-2.7-i2v`)
- **Fast**: MiniMax H3 Lite (`minimax/h3-lite`)

Ask for a duration that covers the scene plus about 1 s of handle, then trim in Remotion. See `skills/remotion-production/rules/replicate-models.md` and `rules/video-generation.md` for the full flow, durations and model choice.

### 4. Optional: cheap drafts via remotion-media (KIE)

The `remotion-media` server (KIE.ai) is no longer bundled: it's unmaintained and has an open security report. If the user added it themselves for cheap drafts (opt-in commands in `rules/video-generation.md`), use `generate_video_from_text` (`prompt`, `output_name: clip-city-aerial`, `model: veo3_fast`, `aspect_ratio: 16:9` or `9:16`) or `generate_video_from_image` (`prompt`, `image_urls` with 1 image to animate or 2 for a first-to-last-frame transition, `output_name`). Clips land at `public/<output_name>.mp4`, run ~8 s at 720p, and `image_urls` must be public URLs. If a KIE call fails, use Replicate (step 3) instead of retrying in a loop.

### 5. Show Usage in Remotion

Place the clip with `<Video>` from `@remotion/media` (`npx remotion add @remotion/media`). Trimming, looping, volume and cutting several clips together follow the official `remotion-markup` skill (embedding-videos.md, video-editing.md). Replicate downloads are at `public/footage/`; clips from the optional remotion-media server are at `public/<output_name>.mp4`.

```tsx
import { Video } from "@remotion/media";
import { staticFile, useVideoConfig } from "remotion";

const { fps } = useVideoConfig();

// Replicate clip, trimmed to 3 s and starting 5 s into the scene
<Video
  src={staticFile("footage/clip-city-aerial.mp4")}
  from={5 * fps}
  trimBefore={1 * fps}
  durationInFrames={3 * fps}
  muted
  objectFit="cover"
  style={{ width: "100%", height: "100%" }}
/>
```

### 6. Combine with Other Assets

AI-generated clips work great when layered:
- Use as backgrounds behind text overlays
- Intercut with stock footage from Pexels
- Add voiceover and music on top
- Apply subtle zoom/pan with `interpolate()` for extra dynamism

### Tips

- **Start short** — 3-5 second clips are the sweet spot for AI video
- **Be specific about camera motion** — "slow dolly zoom", "overhead crane shot"
- **Combine clips** — Generate several short clips and sequence them in Remotion
- **Image-to-video** — Generate a still with `/generate-image` first, then animate it for more control
- **Iterate** — If the first generation isn't perfect, refine the prompt

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.