automation

capcut-cli

Independent, unofficial CLI to edit CapCut and JianYing (剪映) projects — subtitles, timing, speed, volume, templates, cut long-form to shorts. No API needed, reads draft_content.json and draft_info.json (剪映草稿) directly. Not affiliated with ByteDance.
848 stars+30★ this week89 forksJavaScriptUpdated 10/9/2026100% free · open source
What it does

A command‑line tool that lets you programmatically edit CapCut/JianYing draft files (subtitles, clip timing, speed, volume, templates, and auto‑cut long videos into shorts) without using any official API.

When to use it
  • •You need to batch‑add or replace subtitles across dozens of CapCut drafts.
  • •You want to automatically trim a 30‑minute video into 15‑second TikTok‑ready clips.
  • •You must adjust clip speed or volume for many projects as part of a content‑repurposing pipeline.
Ready-to-paste prompt
capcut-cli speed --project ./myDraft --range 00:01:30-00:02:00 --factor 1.5 && capcut-cli volume --project ./myDraft --range all --db -3
Heads up: The CLI directly rewrites `draft_content.json`/`draft_info.json`; you must close the draft in the CapCut app before running any command, otherwise the app will overwrite your changes when it syncs.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

⚡ Runs out of the box

A prompt/skill package — nothing to install beyond adding it to your AI tool.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/22bcfba8-8206-4cf3-96fc-41e2c78bad67 && curl -fsSL https://workflowstacks.com/api/skills/22bcfba8-8206-4cf3-96fc-41e2c78bad67/claude-skill -o ~/.claude/skills/22bcfba8-8206-4cf3-96fc-41e2c78bad67/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How capcut-cli works
Codeflow
Free to inspect

Capcut-cli is a large JavaScript project (~26k lines across 66 code files, plus 153 test files). You install it into your AI tool with one command; there is nothing to run yourself. Last commit this month, MIT license, has a test suite.

Size
Large codebase
~26k lines · 66 code files · ~4 h to skim
Setup
Install as a skill / plugin
Add it to Claude Code (or your AI tool) with one command — 1 skill inside. Nothing to run yourself.
Runs on
Inside your AI tool
Helper scripts use Node.js · Docker
JavaScript 54%TypeScript 43%Shell 2%Python 1%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    action.yml
    Where the program starts running
  3. 3
    src/index.ts
    Inside src/ — the main logic begins here
  4. 4
    examples/README.md
    A worked example — copy this to get going
What's in each folder
src/Core code — the actual logic48 files
skills/Prompts, skills & agent definitions14 files
docs/Documentation18 files
examples/Examples you can copy17 files
templates/Templates8 files
wasm/Folder10 files
python/Folder5 files
scripts/Helper scripts3 files
READMEHas testsDocumentedCI checksDocker readyExamples includedMIT licenseUpdated this month
Quick Actions
Details
Creator
renezander030
Language
JavaScript
Category
automation
Published
4/13/2026

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/22bcfba8-8206-4cf3-96fc-41e2c78bad67.svg)](https://workflowstacks.com/skills/22bcfba8-8206-4cf3-96fc-41e2c78bad67?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.

Do this with a working workflow

Pages we wrote and tested that put a skill like this to work — importable n8n templates, outcome guides and Claude Desktop configs.