Agent skill · Media & Video

wjs-segmenting-video

Use when the user has a long-form video (interview / lecture / podcast / conversation) and a transcript SRT, and wants to extract 3–6 stand-alone topical short clips from it. This skill ONLY cuts and crops — it produces raw clips + per-clip SRTs as a hand-off package for downstream post-production (`/wjs-overlaying-video`). Triggers — "切成几段", "分主题", "拆成短视频", "切片", "topic segments", "split into clips".

jianshuogithub.com/jianshuoGitHub ↗
claude-codecodexships scriptsMIT
Install
npx skills add jianshuo/claude-skills --skill wjs-segmenting-video --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 9
SKILL.md size: 14 KB
Bundled scripts: yes
Path: wjs-segmenting-video/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 112
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# wjs-segmenting-video Cut a long video + SRT into multiple stand-alone short clips, each oriented for the target platform. **This skill stops after cutting + cropping** — it hands off the raw clips to `/wjs-overlaying-video` for covers, captions, illustrations, CTA, and final render. ## When to use - Long-form video (≥10 min) with an existing SRT transcript. - Goal is **stand-alone** short clips (each viewable without context). - The user will (or you will) drive post-production separately in `/wjs-overlaying-video`. ## When NOT to use - Single-topic trimming → just use `ffmpeg -ss A -to B`. - No transcript yet → run **`/wjs-transcribing-audio`** first (then `/wjs-translating-subtitles` if the segments need a non-source language). - Multicam editing → use **`/wjs-editing-multicam`**. - Highlight reel with multiple cuts inside a single topic → that's editing, not segmentation. ## What this skill IS — and IS NOT | Is | Is not | |---|---| | You (the agent) **read the full SRT and decide the topic boundaries** | A script that runs NLP topic modeling, silence detection, or "viral moment" scoring. Topic boundaries are semantic; competing tools (Descript, OpusClip, Riverside Magic Clips)

What's inside
Steps it walks through
  1. When to use
  2. When NOT to use
  3. What this skill IS — and IS NOT
  4. The pipeline
  5. Step 1 — Read SRT, write segments.json
  6. Step 2 — Accurate-seek cut
  7. Stream-copy variant (only if you control the source encode)
  8. Diagnosing keyframe-snap on already-cut clips
  9. Step 3 — Orientation check (ask before continuing)
  10. Calling /wjs-reframing-video
  11. Step 4 — Slice per-clip SRTs
  12. Hand-off package — what to deliver to /wjs-overlaying-video
  13. Quick reference
  14. Common mistakes
Ships with 8 files
  • references/example_segments.json
  • references/platform_sizes.md
  • references/segments_schema.json
  • scripts/burn_subs.py
  • scripts/compose_cover.py
  • scripts/make_cover.py
  • scripts/prepend_intro.py
  • scripts/segment.py
Commands it runs
python3 ~/.claude/skills/wjs-segmenting-video/scripts/segment.py \
Build the comma-separated keyframe list from segments.json
for seg in s['segments']:
ts += [seg['start'], seg['end']]
Re-encode master once, forcing keyframes at all segment boundaries
ffmpeg -i master.mp4 \
Now stream-copy cuts land exactly:
python3 segment.py --segments segments.json --source master_kf.mp4 --out output/
ffprobe -v error -select_streams v:0 -read_intervals "$((N-2))%$((N+5))" \
ffprobe -v error -select_streams v:0 \
More from claude-skills
All skills →
About this skill
What does the wjs-segmenting-video skill do?

Use when the user has a long-form video (interview / lecture / podcast / conversation) and a transcript SRT, and wants to extract 3–6 stand-alone topical short clips from it. This skill ONLY cuts and crops — it produces raw clips + per-clip SRTs as a hand-off package for downstream post-production (`/wjs-overlaying-video`). Triggers — "切成几段", "分主题", "拆成短视频", "切片", "topic segments", "split into clips".

How do I install it?

Run `npx skills add jianshuo/claude-skills --skill wjs-segmenting-video --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From jianshuo/claude-skills, a repository with 112 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going