Preface¶
When producing movie/TV commentary or refining long-form videos, common workflows include manually assembling timelines in Jianying (CapCut), or writing your own scripts to touch draft_content.json. Selecting clips, generating voiceover, aligning subtitles, and matching BGM and effects often require repeated back-and-forth referencing. If you want agents such as Codex / Cursor to generate a Jianying Pro–openable draft directly from a storyboard script and to standardize “commentary + keep original audio” mixing pipelines, the community skill AI生成剪映草稿 (coordinates @user_ae897a6e/jianying-editor-skill-ai) offers an automation solution centered on commentary videos.
What This Is¶
AI生成剪映草稿 is a community skill on SkillHub (category design-media, version 1.0.0, publisher user_ae897a6e, page author credited as “拾壹”). Its description reads: automated Jianying Pro editing and draft generation, with the main workflow targeting narration-driven videos; suitable for converting long videos, transcripts, SRT files, commentary scripts, or storyboard sheets into Jianying drafts, completing material selection and arrangement, TTS narration and aligned subtitles, BGM/effects, as well as checking/fixing drafts and exporting finished videos in supported environments. It primarily supports Windows; creating drafts on macOS is an experimental capability. The tags indicate requires_api_key=false, meaning it can be installed without an additional API key.
Unlike skills that only summarize Jianying official documentation or merely generate SRT packages for import, this skill bundles pyJianYingDraft-related scripts and rule documents. The agent executes business scripts in the user’s project directory rather than modifying files inside the skill’s installation directory.
Core Features¶
The capabilities below come from the skill package’s SKILL.md and reference docs, and can be cross-checked with skillhub search results.
- Commentary mixed-edit main workflow: build a storyboard table from trusted timestamps (video analysis, transcription, SRT, etc.) → write a schema-compliant storyboard JSON → validate and dry-run → generate a draft; supports
mode: "narration"andmode: "original"(leavetextempty for original-audio segments). - TTS and subtitles:
movie_commentary_builder.pysupports--ttsand--speaker(voice list indata/tts_speakers.csv); it uses Edge TTS by default and requires an internet connection. You can also run without--ttsto generate a subtitled draft only. - General draft editing: via
jy_wrapper.pyand the rules underrules/(core,media,text,audio-voice,effects, etc.) to handle saving, tracks, export behavior, etc. - QA and export:
draft_inspector.pydisplays a draft summary;auto_exporter.pyattempts automated export in supported Windows environments;asset_search.pysearches metadata such as transitions and effects. - Environment constraints: requires Python 3.10+, FFmpeg/FFprobe, and MediaInfo; primarily Windows 10/11 + Jianying Pro; macOS can experimentally create drafts, while UI-driven auto-export leans toward Windows.
The skill explicitly does not target any editing software outside the Jianying/CapCut draft format; it does not fabricate segment timestamps on its own, and does not download cloud assets by default (user consent is required and JY_ALLOW_CLOUD_RESOLVE=1 must be set).
Installation and Activation¶
Install the SkillHub CLI (if not installed)¶
command -v skillhub && skillhub --version
If it is not installed, you can run a full installation following the official SkillHub instructions (the example below uses the recommended one-liner script):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install This Skill¶
When installing, you must use --dir to point to the current agent’s skills directory; otherwise the default ./skills/ location may not be recognized. The installation prompt shown on the SkillHub page is: install @user_ae897a6e/jianying-editor-skill-ai according to https://skillhub.cn/install/skillhub.md.
Command-line example:
skillhub install jianying-editor-skill-ai --namespace user_ae897a6e --dir <your Agent skills directory>
Common paths (subject to the SkillHub installation docs):
- Cursor:
~/.cursor/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project - Claude Code:
~/.claude/skills/
After installation, restart or refresh the agent so it loads the new skill.
Python and Jianying Environment¶
Before first use, the agent should read the skill’s references/installation.md and install dependencies on the user’s machine:
python -m pip install -r <SKILL_ROOT>/requirements.txt
python <SKILL_ROOT>/scripts/api_validator.py --json
<SKILL_ROOT> is the installed skill root directory. If the drafts directory is not auto-detected, you can set:
export JY_PROJECTS_ROOT="/path/to/com.lveditor.draft"
On Windows you can use set JY_PROJECTS_ROOT=D:\path\to\com.lveditor.draft.
Typical Usage¶
The following uses the skill docs’ “commentary fast path” as an example: first prepare storyboard.json in the user’s project directory (fields and examples are in the skill’s references/storyboard.example.json), then validate, dry-run, and finally build. Replace <SKILL_ROOT> with the local installation path; using absolute paths for input.mp4 and the JSON is safer.
python <SKILL_ROOT>/scripts/storyboard_validator.py storyboard.json --video input.mp4
python <SKILL_ROOT>/scripts/movie_commentary_builder.py \
--video input.mp4 \
--json storyboard.json \
--name "Commentary_Project" \
--tts \
--speaker zh_male_huoli \
--dry-run
python <SKILL_ROOT>/scripts/movie_commentary_builder.py \
--video input.mp4 \
--json storyboard.json \
--name "Commentary_Project" \
--tts \
--speaker zh_male_huoli
If BGM is needed, add --bgm background_music.mp3 at the end of the build command (see references/narrated-editing-workflow.md).
After generation, inspect the draft:
python <SKILL_ROOT>/scripts/draft_inspector.py summary --name "Commentary_Project" --json
Natural-language triggers for the agent can align with the skill description, e.g.: “Turn this SRT/commentary script and the long video into a Jianying draft,” “Generate a commentary project from the storyboard JSON and add voiceover,” or “Check whether the tracks in the draft just generated are correct.”
Use Cases and Notes¶
Suitable for: projects where Jianying Pro is installed locally and there are clear source videos with trusted timestamps; you want the agent to drive scripts according to rule docs instead of piecing together JSON ad hoc in chat.
Limitations and cautions:
- Timestamps must come from transcription, SRT, or analysis tools; estimating from memory is prohibited. Storyboards default to chronological order; non-linear structures require explicit user requests.
- If TTS duration exceeds the planned segment, the skill requires an alert and rewriting/extending, rather than silently overlapping.
- Cloud asset URLs are not parsed by default; membership assets, local caches, and account data must not be packaged into public skills.
- macOS only experimentally supports draft creation; automatic export is primarily Windows-oriented.
- Draft names should be unique by default; overwriting an existing project requires explicit user consent and
--overwrite.
The SkillHub page currently shows: rating 100000, 10351 downloads (platform stats are authoritative and may change over time).
Closing¶
AI生成剪映草稿 consolidates “storyboard validation → commentary/original-audio mixed edit → TTS subtitles → draft QA” into an agent-executable skill and scripts, making it suitable for editing and content teams that want to hand the commentary pipeline to Codex/Cursor. Official entry points:
- SkillHub: https://www.skillhub.cn/skills/user_ae897a6e/jianying-editor-skill-ai
- API coordinates page: https://api.skillhub.cn/user_ae897a6e/jianying-editor-skill-ai