AgentSkillsCN

edit-clip

对视频片段进行裁剪或调整播放速度的变体处理。适用于编辑片段、修剪视频、调节播放速度,或制作不同版本的视频片段时使用。

SKILL.md
--- frontmatter
name: edit-clip
description: Create trimmed or speed-adjusted variations of video clips. Use when editing clips, trimming videos, adjusting speed, or creating clip variations.
allowed-tools: Read, mcp__video-generator__*
context: fork
agent: general-purpose

Edit Clip

Create variations (trim, speed) of generated video clips.

Quick Start

Initialize Edit

code
Tool: edit_start
Args: { "job_id": "job_abc123" }

Trim Clip

code
Tool: edit_trim
Args: {
  "job_id": "job_abc123",
  "trim_start": 0.5,
  "trim_end": 7.2
}

Adjust Speed

code
Tool: edit_speed
Args: {
  "job_id": "job_abc123",
  "speed": 1.5
}

Select for Assembly

code
Tool: edit_select
Args: {
  "job_id": "job_abc123",
  "variation_id": "v001"
}

Auto-Analyze & Edit

Analyze clip and auto-create trim variation:

code
Tool: edit_auto_analyze
Args: {
  "job_id": "job_abc123",
  "apply_suggestions": true
}

Available Edit Tools

ToolPurpose
edit_startInitialize edit session
edit_trimCreate trimmed variation
edit_speedCreate speed-adjusted variation
edit_selectSelect variation for assembly
edit_store_analysisStore analysis results
edit_auto_analyzeAnalyze and auto-trim
get_edit_manifestGet edit manifest
list_editsList all edit sessions

Edit Folder Structure

code
data/edits/{job_id}/
├── manifest.json      # Edit state
├── source.mp4         # Original
├── v001_trim.mp4      # Trimmed
└── v002_speed.mp4     # Speed adjusted

Trim Options

OptionDefaultPurpose
trim_start0Start time in seconds
trim_endsource durationEnd time in seconds
precisefalseRe-encode for frame-accurate cuts

When precise: true, uses re-encoding (slower but exact). Otherwise uses stream copy (fast but keyframe-aligned).

See .claude/rules/editing-system.md for full reference.