OpenStoryline Install Helper
FireRedTeam/FireRed-OpenStoryline
Installs, repairs and starts a local source checkout of FireRed-OpenStoryline, from prerequisites and a venv to resources, config and the MCP and web servers.
Drives CapCut or JianYing through an HTTP and MCP API: create drafts, add video, audio, text, subtitles and effects, preview on the web and batch-produce videos.
SKILL.md written in Chinese; this summary is our English description.
$ npx skills add sun-guannan/VectCutAPI --skill vectcut-api -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install sun-guannan/VectCutAPI vectcut-api --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/sun-guannan/VectCutAPI.git skills-src && mkdir -p .claude/skills && cp -r skills-src/vectcut-skill/skill .claude/skills/vectcut-api && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "vectcut-api" agent skill from https://github.com/sun-guannan/VectCutAPI/tree/main/vectcut-skill/skill into .claude/skills/vectcut-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vectcut-api", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/sun-guannan/VectCutAPI/tree/main/vectcut-skill/skillType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add sun-guannan/VectCutAPI --skill vectcut-api -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install sun-guannan/VectCutAPI vectcut-api --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sun-guannan/VectCutAPI.git skills-src && mkdir -p .agents/skills && cp -r skills-src/vectcut-skill/skill .agents/skills/vectcut-api && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "vectcut-api" agent skill from https://github.com/sun-guannan/VectCutAPI/tree/main/vectcut-skill/skill into .agents/skills/vectcut-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vectcut-api", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sun-guannan/VectCutAPI --skill vectcut-api -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install sun-guannan/VectCutAPI vectcut-api --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sun-guannan/VectCutAPI.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/vectcut-skill/skill .cursor/skills/vectcut-api && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "vectcut-api" agent skill from https://github.com/sun-guannan/VectCutAPI/tree/main/vectcut-skill/skill into .cursor/skills/vectcut-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vectcut-api", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/sun-guannan/VectCutAPI.git --path vectcut-skill/skill--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add sun-guannan/VectCutAPI --skill vectcut-api -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install sun-guannan/VectCutAPI vectcut-api --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sun-guannan/VectCutAPI.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/vectcut-skill/skill .gemini/skills/vectcut-api && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "vectcut-api" agent skill from https://github.com/sun-guannan/VectCutAPI/tree/main/vectcut-skill/skill into .gemini/skills/vectcut-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vectcut-api", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install sun-guannan/VectCutAPI vectcut-apiInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add sun-guannan/VectCutAPI --skill vectcut-api -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/sun-guannan/VectCutAPI.git skills-src && mkdir -p .github/skills && cp -r skills-src/vectcut-skill/skill .github/skills/vectcut-api && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "vectcut-api" agent skill from https://github.com/sun-guannan/VectCutAPI/tree/main/vectcut-skill/skill into .github/skills/vectcut-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vectcut-api", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sun-guannan/VectCutAPI --skill vectcut-api -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install sun-guannan/VectCutAPI vectcut-api --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sun-guannan/VectCutAPI.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/vectcut-skill/skill .opencode/skills/vectcut-api && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "vectcut-api" agent skill from https://github.com/sun-guannan/VectCutAPI/tree/main/vectcut-skill/skill into .opencode/skills/vectcut-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vectcut-api", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
vectcut-apiDrives CapCut or JianYing through an HTTP and MCP API: create drafts, add video, audio, text, subtitles and effects, preview on the web and batch-produce videos.
Written mainly in Chinese, this skill documents VectCutAPI, a service that controls the video editors CapCut (international) and JianYing through code. The agent creates a draft project at a chosen resolution (1080x1920 vertical, 1920x1080 horizontal or 1080x1080 square), receives a draft ID, and adds video, audio, images, text, SRT subtitles, stickers, effects, transitions and keyframe animations through POST endpoints. It then saves the draft and gets a URL for web preview or later fine-tuning in the editor.
Query endpoints list the available animation, transition, mask, audio-effect, font and scene-effect types. The same functions are exposed as MCP tools for agents, and the skill sketches an AI video workflow that turns generated copy into speech and then into a video. Batch jobs are driven from an Excel sheet through `auto_video_editor.py`. It needs Python 3.10 or later and CapCut or JianYing, with FFmpeg optional; the examples call a server on localhost port 9001.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit cfa4779. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
pippythonFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
capcutapi.topAlso links to:
vectcut.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
VectCutAPI Video Editing loads about 2.1k tokens when it runs, and up to ~9.2k if it reads all its reference files. Until then it costs about 177 tokens; SKILL.md has 392 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from sun-guannan/VectCutAPI at commit cfa4779, republished under its Apache-2.0 licence (© sun-guannan). 392 words, ~2,105 tokens.
.claude/skills/vectcut-api/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.VectCutAPI 是一款强大的云端视频剪辑 API 工具,通过编程方式控制剪映/CapCut 进行专业视频编辑。它填补了 AI 生成素材与专业视频编辑之间的空白,提供精确的编辑控制能力。
# 安装依赖
pip install -r requirements.txt # HTTP API 基础依赖
pip install -r requirements-mcp.txt # MCP 协议支持 (可选)
# 配置文件
cp config.json.example config.json
# 启动服务
python capcut_server.py # HTTP API 服务器 (端口: 9001)
python mcp_server.py # MCP 协议服务器1. 创建草稿 (create_draft)
- 设置分辨率: 1080x1920 (竖屏) / 1920x1080 (横屏) / 1080x1080 (方形)
- 获取 draft_id
2. 添加素材轨道
- add_video: 添加视频轨道
- add_audio: 添加音频轨道
- add_image: 添加图片素材
3. 添加文字元素
- add_text: 添加标题、说明文字
- add_subtitle: 导入 SRT 字幕文件
4. 应用特效
- add_effect: 添加视频特效
- add_sticker: 添加贴纸素材
- add_video_keyframe: 添加关键帧动画
5. 保存草稿
- save_draft: 生成可导入剪映的草稿文件AI 文案生成
↓
TTS 文字转语音 → audio_url
↓
图生视频 → video_url
↓
VectCutAPI 组合草稿
↓
导出或二次编辑使用 auto_video_editor.py 处理 Excel 表格驱动的批量视频制作。
| 接口 | 方法 | 功能 |
|---|---|---|
/create_draft | POST | 创建新草稿项目 |
/save_draft | POST | 保存草稿并生成 URL |
/query_draft_status | POST | 查询草稿状态 |
/query_script | POST | 查询草稿脚本内容 |
/generate_draft_url | POST | 生成草稿预览 URL |
| 接口 | 方法 | 功能 |
|---|---|---|
/add_video | POST | 添加视频轨道 |
/add_audio | POST | 添加音频轨道 |
/add_image | POST | 添加图片素材 |
/add_text | POST | 添加文字元素 |
/add_subtitle | POST | 添加 SRT 字幕 |
/add_sticker | POST | 添加贴纸 |
/add_effect | POST | 添加视频特效 |
/add_video_keyframe | POST | 添加关键帧动画 |
| 接口 | 功能 |
|---|---|
/get_intro_animation_types | 获取入场动画类型 |
/get_outro_animation_types | 获取出场动画类型 |
/get_transition_types | 获取转场效果类型 |
/get_mask_types | 获取蒙版类型列表 |
/get_audio_effect_types | 获取音频特效类型 |
/get_font_types | 获取字体类型列表 |
/get_video_scene_effect_types | 获取场景特效类型 |
import requests
# 1. 创建草稿
response = requests.post("http://localhost:9001/create_draft", json={
"width": 1080,
"height": 1920
})
draft_id = response.json()["output"]["draft_id"]
# 2. 添加背景视频
requests.post("http://localhost:9001/add_video", json={
"draft_id": draft_id,
"video_url": "https://example.com/background.mp4",
"start": 0,
"end": 10,
"volume": 0.6
})
# 3. 添加标题文字
requests.post("http://localhost:9001/add_text", json={
"draft_id": draft_id,
"text": "欢迎使用 VectCutAPI",
"start": 1,
"end": 5,
"font_size": 56,
"font_color": "#FFD700",
"shadow_enabled": True,
"background_color": "#000000"
})
# 4. 保存草稿
response = requests.post("http://localhost:9001/save_draft", json={
"draft_id": draft_id
})
draft_url = response.json()["output"]["draft_url"]
print(f"草稿已保存: {draft_url}")requests.post("http://localhost:9001/add_video", json={
"draft_id": draft_id,
"video_url": "https://example.com/video2.mp4",
"transition": "fade_in", # 转场类型
"transition_duration": 0.5, # 转场时长(秒)
"target_start": 10 # 在时间轴 10 秒处开始
})requests.post("http://localhost:9001/add_video_keyframe", json={
"draft_id": draft_id,
"track_name": "video_main",
"property_types": ["scale_x", "scale_y", "alpha"],
"times": [0, 2, 4], # 关键帧时间点
"values": ["1.0", "1.2", "0.8"] # 对应属性值
})requests.post("http://localhost:9001/add_subtitle", json={
"draft_id": draft_id,
"srt_url": "https://example.com/subtitles.srt",
"font_size": 32,
"font_color": "#FFFFFF",
"background_alpha": 0.7
})VectCutAPI 支持 MCP (Model Context Protocol) 协议,可直接由 AI Agent 调用。
| 工具名称 | 功能描述 |
|---|---|
create_draft | 创建新的视频草稿项目 |
add_video | 添加视频到草稿 |
add_audio | 添加音频到草稿 |
add_image | 添加图片素材 |
add_text | 添加文字元素 |
add_subtitle | 添加字幕文件 |
add_effect | 添加视觉特效 |
add_sticker | 添加贴纸元素 |
add_video_keyframe | 添加关键帧动画 |
get_video_duration | 获取视频时长 |
save_draft | 保存草稿项目 |
创建 mcp_config.json:
{
"mcpServers": {
"vectcut-api": {
"command": "python",
"args": ["mcp_server.py"],
"cwd": "H:/ComfyUI/web/VectCutAPI",
"env": {
"PYTHONPATH": "H:/ComfyUI/web/VectCutAPI",
"DEBUG": "0"
}
}
}
}| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
draft_id | string | 必需 | 草稿 ID |
video_url | string | 必需 | 视频 URL |
start | float | 0 | 视频开始时间(秒) |
end | float | 0 | 视频结束时间(秒) |
target_start | float | 0 | 在时间轴上的开始时间 |
speed | float | 1.0 | 播放速度 |
volume | float | 1.0 | 音量 (0-1) |
scale_x/scale_y | float | 1.0 | 缩放比例 |
transform_x/transform_y | float | 0 | 位置偏移 |
transition | string | - | 转场类型 |
transition_duration | float | 0.5 | 转场时长(秒) |
mask_type | string | - | 蒙版类型 |
background_blur | int | - | 背景模糊级别(1-4) |
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
text | string | 必需 | 文字内容 |
start | float | 必需 | 开始时间 |
end | float | 必需 | 结束时间 |
font | string | "思源黑体" | 字体名称 |
font_size | int | 32 | 字体大小 |
font_color | string | "#FFFFFF" | 字体颜色 (HEX) |
stroke_enabled | bool | False | 是否启用描边 |
stroke_color | string | "#FFFFFF" | 描边颜色 |
stroke_width | float | 2.0 | 描边宽度 |
shadow_enabled | bool | False | 是否启用阴影 |
shadow_color | string | "#000000" | 阴影颜色 |
background_color | string | - | 背景颜色 |
background_alpha | float | 1.0 | 背景透明度 |
text_styles | array | - | 多样式文字 (见下方) |
"text_styles": [
{"start": 0, "end": 2, "font_color": "#FF6B6B"},
{"start": 2, "end": 4, "font_color": "#4ECDC4"},
{"start": 4, "end": 6, "font_color": "#45B7D1"}
]{
"is_capcut_env": true,
"draft_domain": "https://www.capcutapi.top",
"port": 9001,
"preview_router": "/draft/downloader",
"is_upload_draft": false,
"oss_config": {
"bucket_name": "your-bucket",
"access_key_id": "your-key-id",
"access_key_secret": "your-secret",
"endpoint": "https://your-endpoint.aliyuncs.com"
}
}使用 auto_video_editor.py 进行 Excel 驱动的批量处理:
python auto_video_editor.py input.xlsxExcel 表格格式:
| 视频标题 | 二段文案 | 开头素材 | 结尾素材 | 封面素材 |
|---|---|---|---|---|
| 产品介绍 | ... | video1.mp4 | video2.mp4 | image.png |
项目包含多个预配置的 n8n 工作流:
text-to-video-with-animation.json - 文字转视频工作流auto-video-mixing.json - 自动视频混剪form-upload-processing.json - 表单上传处理可执行脚本,用于 VectCutAPI 操作。
参考文档和指南。
示例代码和模板。
调用 save_draft 后会在当前目录生成 dfd_ 开头的文件夹,将其复制到剪映/CapCut 草稿目录即可。
© sun-guannan, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (scripts, references) in vectcut-skill/skill of sun-guannan/VectCutAPI.
Open the folder on GitHubat commit cfa4779
VectCutAPI Video Editing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| VectCutAPI Video Editing this skillsun-guannan/VectCutAPI | 2.3k | — | ~2.1k | Automated safety check: Pass | Apache-2.0 | |
| OpenStoryline Install HelperFireRedTeam/FireRed-OpenStoryline | 3.5k | — | ~1.5k | Automated safety check: Notes | Apache-2.0 | |
| Cassette Video EditCassette-Editor/oh-my-cassette | 157 | 1 repos | ~3.4k | Automated safety check: Pass | MIT | |
| KinocutKyaniteLabs/kinocut | 192 | — | ~5.7k | Automated safety check: Pass | Apache-2.0 | |
| Kinocut RepurposeKyaniteLabs/kinocut | 192 | — | ~1k | Automated safety check: Pass | Apache-2.0 | |
| Cassette ModelCassette-Editor/oh-my-cassette | 157 | 1 repos | ~374 | Automated safety check: Pass | MIT |
FireRedTeam/FireRed-OpenStoryline
Installs, repairs and starts a local source checkout of FireRed-OpenStoryline, from prerequisites and a venv to resources, config and the MCP and web servers.
Cassette-Editor/oh-my-cassette
Edit, trim, cut, caption, subtitle, reframe, combine, add background music to, or export video, audio, and image files through Cassette.
KyaniteLabs/kinocut
Use Kinocut for guarded video editing, source-backed planning, FFmpeg operations, media analysis, subtitles, audio workflows, Hyperframes or Revideo rendering, repurposing packages, and release…
KyaniteLabs/kinocut
Use the current Kinocut tools to turn one local video path into a short platform-ready clip package with manifests, review artifacts, and human approval gates.
Cassette-Editor/oh-my-cassette
Show or change the Cassette editing model and thinking level for the current media session.
Cassette-Editor/oh-my-cassette
Add Hermes gateway media ingestion, background notification, and delivery behavior to the canonical cassette-video-edit MCP workflow.
sun-guannan/VectCutAPI
Guides an agent in building and polishing CapCut Desktop video projects through the CapCut MCP server and direct timeline file edits, including vertical canvas, subtitles and audio.
Works with
Categories
Drives CapCut or JianYing through an HTTP and MCP API: create drafts, add video, audio, text, subtitles and effects, preview on the web and batch-produce videos. Written mainly in Chinese, this skill documents VectCutAPI, a service that controls the video editors CapCut (international) and JianYing through code. The agent creates a draft project at a chosen resolution (1080x1920 vertical, 1920x1080 horizontal or 1080x1080 square), receives a draft ID, and adds video, audio, images, text, SRT subtitles, stickers, effects, transitions and keyframe animations through POST endpoints.
VectCutAPI Video Editing fits situations like: building a short video draft programmatically for CapCut or JianYing; adding subtitles from an SRT file to a draft; batch-producing videos from a spreadsheet of inputs; giving an agent MCP tools for video editing.
Run `npx skills add sun-guannan/VectCutAPI --skill vectcut-api -a claude-code`. Or copy the skill folder (vectcut-skill/skill in sun-guannan/VectCutAPI) into .claude/skills/vectcut-api in your project. Claude Code loads it when a task matches its description.
Run `npx skills add sun-guannan/VectCutAPI --skill vectcut-api -a codex`. Or copy the skill folder (vectcut-skill/skill in sun-guannan/VectCutAPI) into .agents/skills/vectcut-api in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sun-guannan/VectCutAPI --skill vectcut-api -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/vectcut-api, .gemini/skills/vectcut-api, .github/skills/vectcut-api and .opencode/skills/vectcut-api in your project.
Going by SKILL.md and its folder, VectCutAPI Video Editing needs Python for the scripts in its folder and the command-line tools its instructions call (pip and python). Our summary lists: Python 3.10 or later; CapCut (international) or JianYing installed; FFmpeg for some video processing (optional).
SKILL.md names 2 domains. In commands or code: capcutapi.top; the agent is likely to contact it when it follows the instructions. As links in the text: vectcut.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
VectCutAPI Video Editing is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.1k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with VectCutAPI Video Editing: OpenStoryline Install Helper (FireRedTeam/FireRed-OpenStoryline, 3.5k stars), Cassette Video Edit (Cassette-Editor/oh-my-cassette, 157 stars), Kinocut (KyaniteLabs/kinocut, 192 stars) and Kinocut Repurpose (KyaniteLabs/kinocut, 192 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
sun-guannan (a GitHub user) maintains it in sun-guannan/VectCutAPI, which has 2,283 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 3, 2026.
Source: sun-guannan/VectCutAPI on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.