Y

youtube-to-shorts-zh

設計創意v1.0.0
作者:user_f88477d0更新於 2026-10-01@user_f88477d0/youtube-to-shorts-zh
影片處理

據 AlphaMoat 統計,截至 2026-09,youtube-to-shorts-zh 累計下載 1,652 次、獲 7 個星標,在全部 5,078 個 AI 技能中排名第 4,672 位,在「設計創意」分類(512 個)中排名第 468 位。

累計安裝
189
累計下載
1652
星標
7
全站排名
#4,672
全站前 93% · 「設計創意」前 92%
平台累計安裝累計下載星標評論
SkillHub ↗18916527—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

先下載影片和英文 SRT,分析完整語境並展示含時間、標題與摘要的候選;由使用者選擇匯出,明確免審時才自行選片。切片後翻譯區域性字幕,執行 scripts/fix_srt.py 消除重疊,再用 ffmpeg 燒錄字幕與片頭標題,輸出影片路徑和包裝文案。下載依賴 yt-dlp 及有效 Cookie;缺字幕、下載失敗、缺 ffmpeg 或轉錄品質不明須報告。沙箱無法聯網時,可準備 macOS 下載指令碼並等使用者確認完成。

資料釋出於 2026-10-26

可以用來做什麼

  • 從訪談或播客中製作中文字幕精彩片段

什麼時候用

  • 已有 YouTube 連結和可取得的英文字幕時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

分析這個訪談並列出候選片段,先讓我選擇匯出哪些。

月度資料趨勢

累計下載1652
19697817602026-03 · 累計下載 3042026-05 · 累計下載 6472026-06 · 累計下載 7942026-07 · 累計下載 11212026-08 · 累計下載 13002026-09 · 累計下載 165226-0326-09
星標7
0482026-03 · 星標 -2026-05 · 星標 12026-06 · 星標 22026-07 · 星標 22026-08 · 星標 62026-09 · 星標 726-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-091652—7
2026-081300+16.0%6
2026-071121+41.2%2
2026-06794+22.7%2
2026-05647—1
2026-03304—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

11 KB · SkillHub v1.0.0
---
name: youtube-to-shorts-zh
description: >
  Use this skill to convert one long YouTube talk, interview, or podcast into multiple short clips with Chinese hard subtitles.
  ALWAYS use this skill when the user provides a YouTube URL and asks for short clips, shorts, Chinese subtitles, cut clips, interview highlights, or anything involving extracting clips from a YouTube video. Also trigger when the user says "$youtube-interview-shorts-zh" or asks to turn a long video into short-form content with Chinese subs.
---

Use $youtube-interview-shorts-zh to turn this YouTube interview URL into multiple Chinese-subbed short clips.

## Skill:
展開全部(共 219 行)

Use this skill to convert one long YouTube talk, interview, or podcast into multiple short clips with Chinese hard subtitles.

## Workflow

1. Create an output folder for the source video under the current task workspace: `work/<video-slug>/source/` and `work/<video-slug>/clips/`.
2. Download the video with English subtitles. Try these approaches in order:
   - If `yt-dlp` is available in the sandbox, run it directly: `yt-dlp --write-subs --sub-lang en --sub-format srt -o "source/original.%(ext)s" <url>`
   - If the sandbox has no internet access (proxy errors, connection failures), create a macOS `.command` file in the workspace folder. A `.command` file is a shell script that auto-executes in Terminal.app when the user double-clicks it in Finder. Write the yt-dlp command into the file, instruct the user to double-click it, and wait for them to confirm the download is done before continuing.
3. Inspect the downloaded files and identify:
4. Look for the downloaded files and identify:
   - the .mp4 source video
   - the .en.srt subtitle file
   - the optional .jpg thumbnail
5. Convert the subtitle file into a readable analysis artifact with scripts/srt_to_json.py.
6. Analyze the English transcript before cutting any video. Produce a generous candidate list rather than a tiny final list.
7. For a 1-hour interview, target roughly 10 to 15 candidates unless the material genuinely does not support that many.
8. Write the candidate decisions to selected_clips.json using the schema in references/clip-schema.md.
9. Present the candidate list to the user in a review-friendly format:
   - exact start and end time
   - duration
   - one provocative working title
   - exactly two sentences describing what that clip is about
10. Let the user choose which clip ids to export. If the user explicitly asks you to proceed without review, choose the strongest set yourself.
11. For each chosen clip:
    - cut the video with scripts/clip_video.py
    - extract a local English subtitle window with scripts/window_srt.py
    - translate that local SRT into Chinese (clip.zh.srt)
    - **run `python scripts/fix_srt.py clip.zh.srt clip.zh.srt`** to eliminate timestamp overlaps before burning (see Translation Rules below for why this is mandatory)
    - create a short, attention-grabbing title
    - create a description under 140 Chinese characters
    - append the title and description to a text file
    - burn the Chinese SRT into the clip with scripts/burn_subtitles.py
    - burn the title into the first second of the video, centered, font size 48, outline width 3
12. Return the exported clip paths and the metadata text file path.

## Selection Rules

Select segments that can stand on their own without heavy context. Favor material that is:

- informative
- opinionated
- counterintuitive
- motivating
- memorable
- emotionally sharp
- quotable

Reject segments that are mostly setup, filler, greetings, sponsor reads, long digressions, or references that depend too much on earlier context.

Prefer clips with these properties:

- 20 seconds to 3 minutes
- one clear idea per clip
- a strong opening line within the first 3 seconds
- minimal dependence on visuals that are not visible in a crop
- complete thought by the end of the segment

When a promising moment needs context or a clean ending, extend the boundaries by a few seconds or even longer. Do not cut off the last sentence, and do not let clips overlap heavily unless the overlap is necessary.

Do not be overly conservative. For long interviews, the default failure mode should be "too few candidates," not "too many." A one-hour interview should usually yield many options for the user to review.

## How To Analyze The Transcript

Use scripts/srt_to_json.py first so the subtitle file is easier to scan and quote precisely.

Then analyze the transcript in passes:

1. Skim for candidate stretches with memorable or information-dense lines.
2. Re-read each candidate with neighboring subtitles to choose a clean start and end.
3. Ensure the first line hooks and the final line resolves the thought.
4. Ensure the clip is content-complete, not just a strong sentence fragment.
5. Assign a short working title, exact timestamps, and a two-sentence user-facing summary.
6. Double-check that the end timestamp lands after the speaker has finished the thought, not in the middle of a sentence.

If the source subtitles are auto-generated and noisy, infer the intended meaning conservatively. Do not invent claims that are not supported by the spoken content.

Read references/analysis-prompt.md for the default prompts. Use Stage 1 first, then Stage 2 for user review formatting.

## Translation Rules

Translate the clip-local English SRT into simplified Chinese SRT.

**Important — YouTube rolling SRT format:** YouTube's auto-generated captions use a "rolling" style where adjacent cues heavily overlap in time (e.g., cue 1 ends at 5.7s but cue 2 already starts at 2.9s). This is by design for the web player, but when burned into video it causes 2–3 subtitle lines to appear on screen simultaneously, making them unreadable. After writing the Chinese SRT, always run `scripts/fix_srt.py` to eliminate overlaps before passing the file to `burn_subtitles.py`. This step is not optional — skipping it guarantees overlapping subtitles in the final video.

- Do not try to manually fix timestamps during translation; use fix_srt.py afterward instead.
- Keep subtitle meaning faithful, but rewrite into natural spoken Chinese.
- Prefer concise Chinese lines that fit short-form video pacing.
- Retain named entities, numbers, product names, and quoted phrases accurately.
- If an English sentence is broken across multiple subtitle cues, you may rebalance text between neighboring cues while preserving timing order.
- Do not collapse a cue-dense subtitle file into a tiny summary subtitle file.
- Preserve the original subtitle cadence as much as possible. Dropping duplicate auto-caption fragments is allowed, but the Chinese SRT should usually retain most non-duplicate cues.

## Packaging Rules

For each chosen clip, generate:

- one short, sharp title suitable for short-video distribution
- one description in Chinese of 140 characters or fewer

The title should feel clickable and opinionated. It may be provocative, contrarian, or tension-creating, but it must still be faithful to the speaker's meaning.

Keep the on-screen title around 12 Chinese characters when possible so it fits cleanly in the first-second overlay.

The description should mention:

- who is speaking
- what show or interview this came from
- what topic is being discussed
- what the key claim or takeaway is

Write the packaging copy to a text file such as analysis/clip-packaging.txt or clips/\<clip-id\>/metadata.txt.

## File Layout

Use a layout like this unless the user asks for another structure:

```
work/<video-slug>/
  source/
    original.mp4
    original.en.srt
  analysis/
    transcript.json
    selected_clips.json
    candidate-review.txt
    clip-packaging.txt
  clips/
    01-<slug>/
      clip.mp4
      clip.en.srt
      clip.zh.srt
      clip.hardsub.mp4
      metadata.txt
```

The downloader may emit title-based filenames. If so, keep them, but normalize the per-clip folders.

## Scripts

### scripts/srt_to_json.py

Parse SRT into JSON records with cue index, start/end timestamps, start/end seconds, and text. Use this before transcript analysis.

### scripts/window_srt.py

Extract the subtitle cues that overlap a selected clip window and shift the timestamps so the new SRT starts at 00:00:00,000.

### scripts/clip_video.py

Create a re-encoded MP4 clip for an exact time range. Use this for each selected segment.

### scripts/fix_srt.py

Fix YouTube-style rolling subtitle overlaps. Run this on every Chinese SRT before burning it into a clip. It trims each cue's end time so it does not overlap the next cue, adds an 80ms gap between cues, and ensures each cue shows for at least 800ms.

Usage: `python scripts/fix_srt.py clip.zh.srt clip.zh.srt` (in-place is safe)

### scripts/burn_subtitles.py

Render a Chinese SRT into the clip with ffmpeg subtitles filter.

Pass a title when exporting the final video so the first second includes:

- centered title
- font size 48
- 3px outline
- a CJK-capable font (see Font Discovery in Execution Notes)

## References

### references/clip-schema.md

Schema definition for selected_clips.json. Read this before writing candidate decisions.

### references/analysis-prompt.md

Default prompts for transcript analysis. Contains Stage 1 (candidate identification) and Stage 2 (user review formatting) prompts.

## Execution Notes

- The downloader depends on local cookies or --cookies-from-browser. If download fails due to expired cookies, refresh them instead of changing the skill.
- Prefer exact source files from the downloader output over guessing names.
- Verify that ffmpeg is available before clip extraction or burning.
- When paths contain spaces or non-ASCII characters, pass arguments as separate shell arguments instead of building unsafe command strings.
- If the user asks for vertical shorts, crop the frame to 9:16 but retain the original audio. The deliverable is subbed short clips from the original frame.

**Font Discovery:** `burn_subtitles.py` already searches common CJK font paths automatically. Do not hardcode any machine-specific font path. If the user has a custom font they prefer, pass it via the `--font` argument. Otherwise let the script find a fallback (it will try NotoSansCJK, DroidSansFallbackFull, and others before defaulting to ffmpeg's built-in font).

**macOS .command file pattern:** When the sandbox has no internet access and yt-dlp must run on the user's machine instead, write a `.command` shell script to the workspace folder (the user's Desktop folder that is mounted into the sandbox). A `.command` file opens in Terminal.app and auto-executes when double-clicked in Finder. This lets the user run the download with a single click. After the download completes, the files appear in the shared workspace folder and the sandbox can read them normally.

This skill covers:

- candidate selection
- user-facing candidate summaries
- Chinese subtitle translation
- short-video title and description generation

## Output Contract

Return:

- the source asset folder
- the candidate clip list with timestamps, duration, title, and two-sentence summaries
- the packaging text file with title and 140-character descriptions
- the final clip.hardsub.mp4 path for each exported short

If the workflow cannot finish, report the exact blocker: missing cookies, failed download, missing English subtitles, missing ffmpeg, or unclear transcript quality.

「設計創意」分類下的熱門技能

架構圖一鍵生成設計創意

使用 ContextWeave 生成或修改架構圖、流程圖、思維導圖和複雜資訊圖。適用於需要從程式碼、檔案或自然語言中提取結構與關係並實際產出 CW、SVG、HTML、可編輯 PPTX 或原生 VSDX 的請求;未特別說明時,PPTX 與 Visio 使用原生形狀和聯結器匯出。不適用於統計圖表、手繪插畫或畫素級排版。

↓ 28.2萬★ 250user_bddf3fe6
Nano Banana Pro設計創意

使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或編輯圖像。支援文生圖、圖生圖及 1K/2K/4K 解析度,適用於圖像建立、修改及編輯請求,使用 --input-image 指定輸入圖像。

↓ 14.1萬★ 473Peter Steinberger
Openai Whisper設計創意

使用 Whisper CLI 進行本地語音轉文字(無需 API 金鑰)

↓ 11.4萬★ 359Peter Steinberger
diagram-generator設計創意

使用 mcp-diagram-generator MCP 伺服器生成和編輯圖表。適用於新建圖表、編輯現有 .drawio/.mmd/.excalidraw 檔案、網路拓撲、架構圖、流程圖、泳道圖、時序圖、類圖、ER 圖及 Excalidraw 白板工作。當用戶要求繪圖時,始終使用此技能。

↓ 9.8萬★ 73nssa.io
UI/UX Pro Max設計創意

面向介面設計的思路與落地建議技能,覆蓋佈局、互動流程、設計令牌與前端改動。

↓ 8.5萬★ 290xobi667
AI Video Generation設計創意

使用 Sora 2、Veo 3、Seedance、Runway 及現代 API,透過可靠的提示與渲染工作流建立 AI 影片。

↓ 7.2萬★ 10Iván
Video Frames設計創意

用 ffmpeg 從影片裡取出畫面幀,或生成便於快速檢視的縮圖。

↓ 6.8萬★ 145Peter Steinberger
Local Whisper設計創意

用本地 Whisper 把音訊檔案轉成文字,模型下載完成後可完全離線執行。

↓ 6.2萬★ 19araa47

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。