Xpersona
A

Ai Video Remix

CLAWHUB · Unverified

AI-driven video remix generator that uses ShotAI semantic search + LLM planning + Remotion rendering to produce styled video compositions from a user's local... Skill: Ai Video Remix Owner: abu-shotai Summary: AI-driven video remix generator that uses ShotAI semantic search + LLM planning + Remotion rendering to produce styled video compositions from a user's local... Tags: latest:0.1.3 Version history: v0.1.3 | 2026-04-04T06:10:37.241Z | user ai-video-remix 0.1.2 - Converted this skill to an instruction-only/documentation format. - Added explicit notice that runtime source

62
Rank
84
Safety
997
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 997 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s171k2s7a7bpykyng1bznm16c1846nm6:ai-video-remix
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-abu-shotai-ai-video-remix/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

77,939 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: ai-video-remix
description: AI-driven video remix generator that uses ShotAI semantic search + LLM planning + Remotion rendering to produce styled video compositions from a user's local video library. Use when the user asks to create a video remix, highlight reel, travel vlog, sports highlight, nature montage, or any styled video cut from their library. Triggers on requests like "帮我做一个混剪", "make a travel vlog from my library", "create a sports highlight", or "generate a video with my footage". Requires ShotAI (local MCP server) to be running. Works with any OpenAI-compatible LLM API or falls back to heuristic mode with no API key.
source: https://github.com/abu-ShotAI/ai-video-remix
homepage: https://github.com/abu-ShotAI/ai-video-remix
metadata:
  openclaw:
    requires:
      bins:
        - ffmpeg
        - node
      env:
        - SHOTAI_URL
        - SHOTAI_TOKEN
    primaryEnv: SHOTAI_TOKEN
---

# AI Video Remix Skill

> This is an **instruction-only skill** — it provides guidance and reference documentation for the AI Video Remix CLI tool. The runtime source code lives in the [GitHub repository](https://github.com/abu-ShotAI/ai-video-remix) and must be cloned separately (see Quick Start below).

Generate styled video compositions from a local ShotAI video library using natural language.

## Important: Video Library Requirement

This skill can **only** search and use videos that have been imported into ShotAI. Videos simply stored on your hard drive are **not** searchable — they must be added to a ShotAI collection and fully indexed first.

Before using this skill, make sure you have:
1. Opened [ShotAI](https://www.shotai.io) and created a collection
2. Added your video files or folders to the collection
3. Waited for indexing to complete (shot detection + semantic analysis — progress is shown in ShotAI)

If the search returns no results or low-quality matches, the most common reason is that the relevant videos have not been imported into ShotAI yet.

## Prerequisites

See [references/setup.md](references/setup.md) for full installation instructions, including:
- ShotAI download and setup
- ffmpeg installation
- yt-dlp installation (for auto music)
- Node.js dependencies

## Quick Start

> **Note:** This skill does not bundle runtime code. Clone the source repository first.

```bash
git clone https://github.com/abu-ShotAI/ai-video-remix.git
cd ai-video-editor
npm install
cp .env.example .env    # fill in SHOTAI_URL, SHOTAI_TOKEN, and optionally AGENT_PROVIDER
npx tsx src/skill/cli.ts "帮我做一个旅行混剪"
```

## Pipeline (8 steps)

1. **Agent: parseIntent** — LLM extracts theme, selects composition, optionally overrides music style
2. **Agent: refineQueries** — LLM rewrites per-slot search terms to match library content
3. **ShotAI: pickShots** — Semantic search per slot via local ShotAI MCP server (localhost only), best shot selected
4. **Music: resolveMusic** — Uses local MP3 via `--bgm` (recommended), or optionally downloads from YouTu

README.md

# AI Video Remix — Claude Skill

> AI-driven video remix generator — semantic video search + LLM planning + Remotion rendering.
>
> Requires [ShotAI](https://www.shotai.io) — local video asset management and footage search for Mac & Windows.

Generate styled video compositions from your local video footage library using natural language.

---

## Demo

> Hong Kong Cyberpunk Night — generated from local footage with ShotAI + Remotion, no manual editing.

[![Hong Kong Cyberpunk Night — AI Video Remix](https://img.youtube.com/vi/mibbqDf6uQY/maxresdefault.jpg)](https://www.youtube.com/watch?v=mibbqDf6uQY)

---

## Install in Claude Code

```bash
/plugin install claude-skill-ai-video-remix
```

Or install directly from GitHub:

```bash
/plugin install ai-video-remix@abu-ShotAI/ai-video-remix#skill
```

---

## Usage

Once installed, just describe what you want in Claude Code:

> *"帮我做一个旅行混剪"*
> *"Create a cyberpunk city highlight reel"*
> *"Make a sports highlight from my footage"*
> *"Nature documentary style from my library"*

---

## Prerequisites

| Tool | Purpose | Install |
|------|---------|---------|
| [ShotAI](https://www.shotai.io) | AI video asset management + semantic footage search (MCP server) | [Download for Mac / Windows](https://www.shotai.io) |
| ffmpeg | Clip extraction | Mac: `brew install ffmpeg` / Win: `winget install ffmpeg` |
| yt-dlp | Auto background music (optional) | Mac: `brew install yt-dlp` / Win: `winget install yt-dlp` |
| Node.js 18+ | Runtime | Mac: `brew install node` / Win: `winget install OpenJS.NodeJS` |

### ShotAI Setup

1. Download and open [ShotAI](https://www.shotai.io), add your video footage folders
2. Wait for indexing (automatic, a few minutes for large libraries)
3. **Settings → MCP Server → Enable**
4. Note your **MCP URL** (default: `http://127.0.0.1:23817`) and **MCP Token**

---

## Compositions

| ID | Style | Best For |
|----|-------|----------|
| `CyberpunkCity` | Cyberpunk night | Neon city, night scenes, sci-fi |
| `TravelVlog` | Travel vlog | Multi-city travel with location cards |
| `MoodDriven` | Mood-driven cuts | Emotional fast/slow montage |
| `NatureWild` | BBC nature doc | Wildlife, landscapes, nature footage |
| `SwitzerlandScenic` | Alpine scenic | Mountain travel with elegant captions |
| `SportsHighlight` | ESPN sports | Goal/action highlights with captions |

---

## CLI Options

```bash
npx tsx src/skill/cli.ts "<request>" [options]

Options:
  --composition <id>   Force a specific composition
  --bgm <path>         Local MP3 path (skip YouTube search)
  --lang <zh|en>       Caption language (default: zh)
  --output <dir>       Output directory (default: ./output)
  --probe              Scan library first; LLM plans from actual content
```

---

## Source

Full source code and documentation: [github.com/abu-ShotAI/ai-video-remix](https://github.com/abu-ShotAI/ai-video-remix)

_meta.json

{
  "ownerId": "kn720qaz62qv8evzrfqkrwgn6s82gdr3",
  "slug": "ai-video-remix",
  "version": "0.1.3",
  "publishedAt": 1775283037241
}

references/composition-guide.md

# Adding a New Composition

## Overview

A composition = one Remotion visual style + registry metadata that describes what shots to search for.

Adding a new composition requires changes in two places:
1. `src/skill/registry.ts` — shot slots + props builder
2. `src/remotion/` — the actual Remotion React component + registration in `Root.tsx`

## Step 1: Define the Composition in registry.ts

Add a new `CompositionMeta` object and append it to `REGISTRY`:

```typescript
const myCompositionMeta: CompositionMeta = {
  id:          'MyComposition',      // Must match Remotion composition id exactly
  label:       'My Label',           // Shown in CLI and LLM selection
  description: 'One-line description for LLM to choose this over others',
  musicStyle:  'jazz upbeat background cinematic',  // English, passed to yt-dlp search

  shotSlots: [
    // Each slot = one shot searched + one clip in final video
    { query: '搜索词 or English query', mood: 'calm', extra: { caption: 'Title text', location: 'Place' } },
    { query: 'second shot query',       mood: 'fast', extra: { caption: 'Second text' } },
    // ... add as many slots as needed
  ],

  buildProps(clips, title, bgm, showAttribution = true) {
    return {
      fps: 30,
      title,
      bgm,
      attribution: showAttribution ? 'ShotAI 检索 · Remotion 合成' : undefined,
      clips: clips.map(c => ({
        src:       c.src,
        startTime: c.startTime,
        endTime:   c.endTime,
        summary:   c.summary,
        caption:   c.caption ?? '',    // match whatever fields your Remotion component expects
      })),
    };
  },
};

export const REGISTRY: CompositionMeta[] = [
  // ... existing entries ...
  myCompositionMeta,   // add here
];
```

### ShotSlot fields

| Field | Type | Purpose |
|-------|------|---------|
| `query` | string | Natural language search sent to ShotAI |
| `mood` | string? | Expected mood for shot scoring: `'fast'` `'slow'` `'calm'` `'urban'` |
| `extra` | object? | Static fields merged into each clip (e.g. `caption`, `cityName`, `location`) |

### ClipAnnotation fields (set by LLM annotateClips)

These can override or supplement `extra` fields at runtime:

| Field | Type | Used by |
|-------|------|---------|
| `tone` | `'warm'\|'cool'` | SwitzerlandScenic, any color-graded comp |
| `dramatic` | boolean | SportsHighlight (triggers slow-mo effect) |
| `kenBurns` | `'zoom-in'\|'zoom-out'\|'pan-left'\|'pan-right'` | NatureWild |
| `caption` | string | Any comp with text overlay |
| `textBg` | `Record<string,'light'\|'dark'>` | Auto-set by keyframe brightness analysis |

## Step 2: Create the Remotion Component

Create `src/remotion/compositions/MyComposition.tsx`. Use an existing composition as reference (e.g. copy `TravelVlog.tsx` and adapt).

Key points:
- Accept `clips`, `title`, `bgm`, and any custom fields in props
- Use `<Video>` from `remotion` for each clip, positioned with `<Sequence>`
- Duration is computed in `Root.tsx` based on clip durations

## Step 3:

references/config.md

# Configuration Reference

## .env Variables

```env
# ── LLM Agent (optional — set AGENT_PROVIDER=none to skip) ───────────────────
AGENT_PROVIDER=claude              # 'claude' | 'openai' | 'openai-compat' | 'none'
ANTHROPIC_API_KEY=sk-ant-...       # Required when AGENT_PROVIDER=claude (sent only to api.anthropic.com)
OPENAI_API_KEY=sk-...              # Required when AGENT_PROVIDER=openai (sent only to api.openai.com)
OPENAI_COMPAT_BASE_URL=https://... # Required when AGENT_PROVIDER=openai-compat
OPENAI_COMPAT_API_KEY=sk-...       # Required when AGENT_PROVIDER=openai-compat (sent only to the URL above)
AGENT_MODEL=claude-sonnet-4-6      # Override default model name

# ── ShotAI MCP (required) ───────────────────────────────────────────────────
SHOTAI_URL=http://127.0.0.1:23817  # ShotAI local MCP server URL (localhost only)
SHOTAI_TOKEN=<token>               # Token from ShotAI Settings → MCP Server (sent only to SHOTAI_URL)

# ── Music ─────────────────────────────────────────────────────────────────────
BGM_PATH=/path/to/music.mp3        # Local MP3; if set, skips YouTube/yt-dlp entirely

# ── Output ────────────────────────────────────────────────────────────────────
OUTPUT_DIR=./output                # Final video output directory
FILE_PORT=8080                     # Localhost-only HTTP port for serving clips to Remotion (binds to 127.0.0.1)

# ── Quality ───────────────────────────────────────────────────────────────────
MIN_SCORE=0.5                      # Minimum shot quality score 0–1 (recommended: 0.5)
MAX_RETRIES=1                      # ShotAI search retry attempts
```

## LLM Provider Setup

### Claude (Anthropic)
```env
AGENT_PROVIDER=claude
ANTHROPIC_API_KEY=sk-ant-...
AGENT_MODEL=claude-sonnet-4-6      # or claude-opus-4-6
```

### OpenAI
```env
AGENT_PROVIDER=openai
OPENAI_API_KEY=sk-...
AGENT_MODEL=gpt-4o
```

### OpenRouter (recommended for China / multi-provider access)
```env
AGENT_PROVIDER=openai-compat
OPENAI_COMPAT_BASE_URL=https://openrouter.ai/api/v1
OPENAI_COMPAT_API_KEY=sk-or-v1-...
AGENT_MODEL=deepseek/deepseek-chat-v3-0324   # or any available model
```
Note: Some models (Anthropic/OpenAI) may be region-restricted on OpenRouter. Use `deepseek/deepseek-chat-v3-0324`, `meta-llama/llama-3.3-70b-instruct`, or `mistralai/mistral-small-3.2-24b-instruct` as reliable alternatives.

### Ollama (local, no API key)
```env
AGENT_PROVIDER=openai-compat
OPENAI_COMPAT_BASE_URL=http://localhost:11434/v1
OPENAI_COMPAT_API_KEY=ollama
AGENT_MODEL=llama3.1
```

### DeepSeek (direct)
```env
AGENT_PROVIDER=openai-compat
OPENAI_COMPAT_BASE_URL=https://api.deepseek.com/v1
OPENAI_COMPAT_API_KEY=sk-...
AGENT_MODEL=deepseek-chat
```

### No LLM (heuristic fallback)
```env
AGENT_PROVIDER=none
```
Keyword-based composition selection, uses registry default search queries. No API key needed.

## Shot Quality Tuning

`MIN_SCORE` controls the minimum composite shot quality threshold:
- `0.50` (**recommended**) — stricter, filters out short/low-

Sponsored

Ads related to Ai Video Remix and adjacent AI workflows.