/byted-mediakit-videoedit
This Skill helps users understand video context by analyzing danmaku and subtitle content, automatically extracts and splices video clips based on editing requests, and uses FFmpeg to complete transition effects and final synthesis.
$ npx -y skills add bytedance/agentkit-samples --skill byted-mediakit-videoedit --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/byted-mediakit-videoedit
Context preview
The summary Claude sees to decide when to auto-load this skill.
This Skill helps users understand video context by analyzing danmaku and subtitle content, automatically extracts and splices video clips based on editing requests, and uses FFmpeg to complete transition effects and final synthesis.
SKILL.md
byted-mediakit-videoedit.SKILL.mdname: byted-mediakit-videoedit
description: >
AI Video Intelligent Editing Skill. Input video file paths (supports multiple), optional danmaku file paths, optional subtitle file paths,
combine danmaku and subtitle content to understand video context, automatically extract corresponding time segments based on user editing requests (such as "extract all highlight moments",
"cut out the part explaining xxx"), splice and add transition effects, and finally synthesize the output video using FFmpeg.
When users mention "cut video based on danmaku", "extract danmaku highlight segments", "danmaku analysis editing",
"find highlights from danmaku", "intelligent editing", this Skill must be triggered.
version: v1.0.1
AI Video Intelligent Editing
Overview
This Skill helps users understand video context by analyzing danmaku and subtitle content, automatically extracts and splices video clips based on editing requests, and uses FFmpeg to complete transition effects and final synthesis.
Input Specifications
- **Video files** (required, supports multiple): Local video file paths, supports formats like `.mp4`, `.flv`, `.mkv`, etc.
- **Danmaku files** (optional, one per video): XML format danmaku files (supports Bilibili format), corresponding to video files in order one-to-one
- **Subtitle files** (optional, one per video): `.srt` / `.ass` / `.json` format subtitle files, corresponding to video files in order one-to-one; leave empty for videos without subtitles
> **Note:** Subtitles and danmaku are the only basis for understanding video content. If neither is provided for a video, its content cannot be understood, and only explicit time segment instructions from the user can be executed.
Workflow
Step 0: Dependency Verification
Before performing any operations, verify that the runtime environment meets the requirements.
**Verification Commands:**
python --version
ffmpeg -version 2>&1 | head -1
ffprobe -version 2>&1 | head -1
node --version
**Acceptance Criteria and Fixing Guidelines:**
| Dependency | Minimum Requirement | Verification Method | Installation Command When Not Met | | ---------- | -------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------- | | Python | 3.9+ | `python --version` | See instructions below | | ffmpeg | Any version | `ffmpeg -version` | macOS: `brew install ffmpeg` · Linux: `sudo apt install ffmpeg` · Windows: [ffmpeg.org](https://ffmpeg.org/download.html) | | ffprobe | Included with ffmpeg | `ffprobe -version` | Installed with ffmpeg, no separate operation needed | | Node.js | 18+ | `node --version` | macOS: `brew install node` · or [nodejs.org](https://nodejs.org/) |
**Python Installation Instructions (if version is not met):**
- macOS: `brew install python@3.11`
- Linux: `sudo apt install python3.11`
- Or via [pyenv](https://github.com/pyenv/pyenv): `pyenv install 3.11 && pyenv global 3.11`
**Text Effect Rendering Dependency (Remotion) Installation:**
Check if `byted-mediakit-videoedit/template/node_modules` exists:
ls byted-mediakit-videoedit/template/node_modules/@remotion/renderer 2>/dev/null && echo "已安装" || echo "需要安装"
If not installed, execute:
cd byted-mediakit-videoedit/template && npm install
Installation takes about 1-2 minutes, and `node_modules` will appear in the directory after completion. This step is skipped in subsequent conversations if `node_modules` already exists.
**Processing Rules:**
- All dependencies met → proceed to next step
- Missing or insufficient version → explain to user what is missing, provide installation commands for the corresponding platform, **wait for user to complete installation and re-confirm before continuing**
Step 1: Check Understandability of Each Video
Before any analysis, confirm individually whether each video has subtitles or danmaku:
| Video | Has Subtitles | Has Danmaku | Understandability | | ----------- | ------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | video_A.mp4 | ✅ | — | **Intelligent Analysis**: Can understand video based on content semantics, supports content requests like "find highlights/find appearance introduction" | | video_B.mp4 | — | ✅ | **Intelligent Analysis** (downgraded): Infer content through danmaku, accuracy lower than subtitles | | video_C.mp4 | — | — | **Only Explicit Commands**: Cannot understand content, can only cut according to precise time segments provided by user |
**Processing Rules for "Only Explicit Commands" Videos:**
1. **User provides explicit time segments** (e.g., "cut video_C from 1:00–2:30"): Use directly, no analysis needed 2. **User provides content requests** (e.g., "find appearance introduction from video_C"): **Immediately inform** user that the video lacks subtitles/danmaku, cannot perform content analysis, please provide:
- Specific time segments, or
- Subtitle/danmaku files
3. **Mixed scenarios** (some videos understandable, some not): Normal analysis for understandable videos, separately explain limitations for non-understandable videos, and ask user how to handle
Step 3: Parse Dan
Read more
name: byted-mediakit-videoedit description: > AI Video Intelligent Editing Skill. Input video file paths (supports multiple), optional danmaku file paths, optional subtitle file paths, combine danmaku and subtitle content to understand video context, automatically extract corresponding time segments based on user editing requests (such as "extract all highlight moments", "cut out the part explaining xxx"), splice and add transition effects, and finally synthesize the output video using FFmpeg. When users mention "cut video based on danmaku", "extract danmaku highlight segments", "danmaku analysis editing", "find highlights from danmaku", "intelligent editing", this Skill must be triggered. version: v1.0.1
AI Video Intelligent Editing
Overview
This Skill helps users understand video context by analyzing danmaku and subtitle content, automatically extracts and splices video clips based on editing requests, and uses FFmpeg to complete transition effects and final synthesis.
Input Specifications
- **Video files** (required, supports multiple): Local video file paths, supports formats like `.mp4`, `.flv`, `.mkv`, etc.
- **Danmaku files** (optional, one per video): XML format danmaku files (supports Bilibili format), corresponding to video files in order one-to-one
- **Subtitle files** (optional, one per video): `.srt` / `.ass` / `.json` format subtitle files, corresponding to video files in order one-to-one; leave empty for videos without subtitles
> **Note:** Subtitles and danmaku are the only basis for understanding video content. If neither is provided for a video, its content cannot be understood, and only explicit time segment instructions from the user can be executed.
Workflow
Step 0: Dependency Verification
Before performing any operations, verify that the runtime environment meets the requirements.
**Verification Commands:**
python --version ffmpeg -version 2>&1 | head -1 ffprobe -version 2>&1 | head -1 node --version
**Acceptance Criteria and Fixing Guidelines:**
| Dependency | Minimum Requirement | Verification Method | Installation Command When Not Met | | ---------- | -------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------- | | Python | 3.9+ | `python --version` | See instructions below | | ffmpeg | Any version | `ffmpeg -version` | macOS: `brew install ffmpeg` · Linux: `sudo apt install ffmpeg` · Windows: [ffmpeg.org](https://ffmpeg.org/download.html) | | ffprobe | Included with ffmpeg | `ffprobe -version` | Installed with ffmpeg, no separate operation needed | | Node.js | 18+ | `node --version` | macOS: `brew install node` · or [nodejs.org](https://nodejs.org/) |
**Python Installation Instructions (if version is not met):**
- macOS: `brew install python@3.11`
- Linux: `sudo apt install python3.11`
- Or via [pyenv](https://github.com/pyenv/pyenv): `pyenv install 3.11 && pyenv global 3.11`
**Text Effect Rendering Dependency (Remotion) Installation:**
Check if `byted-mediakit-videoedit/template/node_modules` exists:
ls byted-mediakit-videoedit/template/node_modules/@remotion/renderer 2>/dev/null && echo "已安装" || echo "需要安装"
If not installed, execute:
cd byted-mediakit-videoedit/template && npm install
Installation takes about 1-2 minutes, and `node_modules` will appear in the directory after completion. This step is skipped in subsequent conversations if `node_modules` already exists.
**Processing Rules:**
- All dependencies met → proceed to next step
- Missing or insufficient version → explain to user what is missing, provide installation commands for the corresponding platform, **wait for user to complete installation and re-confirm before continuing**
Step 1: Check Understandability of Each Video
Before any analysis, confirm individually whether each video has subtitles or danmaku:
| Video | Has Subtitles | Has Danmaku | Understandability | | ----------- | ------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | video_A.mp4 | ✅ | — | **Intelligent Analysis**: Can understand video based on content semantics, supports content requests like "find highlights/find appearance introduction" | | video_B.mp4 | — | ✅ | **Intelligent Analysis** (downgraded): Infer content through danmaku, accuracy lower than subtitles | | video_C.mp4 | — | — | **Only Explicit Commands**: Cannot understand content, can only cut according to precise time segments provided by user |
**Processing Rules for "Only Explicit Commands" Videos:**
1. **User provides explicit time segments** (e.g., "cut video_C from 1:00–2:30"): Use directly, no analysis needed 2. **User provides content requests** (e.g., "find appearance introduction from video_C"): **Immediately inform** user that the video lacks subtitles/danmaku, cannot perform content analysis, please provide:
- Specific time segments, or
- Subtitle/danmaku files
3. **Mixed scenarios** (some videos understandable, some not): Normal analysis for understandable videos, separately explain limitations for non-understandable videos, and ask user how to handle
Step 3: Parse Dan
欢迎来到 AgentKit 代码工坊(Samples)仓库! AgentKit 是火山引擎推出的企业级 AI Agent 开发平台,为开发者提供完整的 Agent 构建、部署和运维解决方案。平台通过标准化的开发工具链和云原生基础设施,显著降低复杂智能体应用的开发部署门槛。 本代码库包含了一系列示例和教程,帮助您理解、实现和集成 AgentKit 的各项功能到您的应用中。
Other skills on agentkit-samples.
- /code-optimization
Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution time and memory usage, compare against baseline implementations, and generate detailed optimization reports. Supports C++, Python, Java, Rust, and other languages.
Open skill - /image-video-gen
根据文字描述生成视频,一个生成图片和视频的工作流技能。依赖 skills: byted-web-search, image-generate, video-generate。注意:此 workflow 没有执行脚本,只是一个描述性的文档。
Open skill - /skills-management
Manage AgentKit skills, SkillHub/skillhub, skill centers, and skill spaces. Use this skill whenever the user has a management intent for AgentKit skills, skill中心, skill 空间, skill space, or skill hub, including listing, inspecting, downloading, fetching, uploading, publishing,
Open skill - /tos-file-access
Upload files or directories to TOS-compatible object storage for Volcano Engine or BytePlus and download files from URLs. Use this skill when (1) Upload Agent-generated files or directories for sharing, (2) Download files from URLs before Agent processing.
Open skill - /veadk-go-skills
根据用户的功能需求,完成与 VeADK-Go 相关的功能; 包括:直接根据需求生成 Agent;将Enio Agent转换为VeADK-Go Agent。
Open skill - /veadk-skills
根据用户的功能需求,完成与 VeADK 相关的功能。
Open skill

