youtube-x-video-clip-skill
This AI Skill provides a video editing workflow for Claude Code, supporting over a thousand platforms like YouTube/X. It can automatically download, transcribe, AI-segment, edit, translate, and burn in bilingual subtitles, while also generating multi-platform social media copy, greatly enhancing video content creation efficiency.
cp skills/video-clip.md ~/.claude/skills/Before / After Comparison
1 组Manually downloading, transcribing, editing, translating, adding subtitles, and writing copy. The process is complex and time-consuming, severely slowing down content production speed.
AI automates video processing, subtitle generation, and copy writing. One-click operation significantly shortens the creation cycle and dramatically boosts content production efficiency.
description SKILL.md
YouTube/X Video Clip Skill for Claude Code
一个用于 Claude Code 的视频剪辑工作流 Skill,支持 YouTube、Twitter/X 等 1000+ 平台,自动完成:下载视频 → 转录字幕 → AI分段 → 剪辑 → 翻译 → 烧录双语字幕 → 生成社媒文案
功能特性
- 🎬 支持下载 YouTube、Twitter/X 等 1000+ 平台视频
- 🎙️ 使用 Whisper 自动语音转文字
- 🤖 AI 智能分析内容并分段
- ✂️ 精确剪辑指定片段
- 🌍 自动翻译为中英双语字幕
- 📱 生成多平台社交媒体文案(抖音/小红书/B站/Twitter)
安装步骤
1. 安装依赖
# 安装 Python 依赖
pip install faster-whisper
# 安装 yt-dlp
pip install yt-dlp
# 安装 ffmpeg (Windows)
# 下载: https://ffmpeg.org/download.html
# 或使用 scoop: scoop install ffmpeg
2. 复制 Skill 文件
将 skills/video-clip.md 复制到你的 Claude Code skills 目录:
# Windows
copy skills\video-clip.md %USERPROFILE%\.claude\skills\
# macOS/Linux
cp skills/video-clip.md ~/.claude/skills/
3. 复制辅助脚本(可选)
# 复制到你的脚本目录
copy scripts\video_processor.py D:\Projects\Scripts\
使用方法
在 Claude Code 中输入:
/video-clip https://twitter.com/xxx/status/xxx
然后按照提示操作:
- 等待视频下载和转录
- 查看 AI 分段结果
- 选择要剪辑的片段
- 等待翻译和字幕烧录
- 获取成品视频和社媒文案
输出文件
默认保存到 D:\Projects\Videos\(可在 skill 文件中修改):
视频名_片段_双语.mp4- 带双语字幕的剪辑视频视频名_文案.txt- 多平台社交媒体文案
字幕样式配置
默认样式(可在 skill 文件中修改):
- FontSize=10(字体大小)
- Alignment=2(底部居中)
- MarginV=30(底部边距)
- 白色字体 + 黑色描边
系统要求
- Windows 10/11、macOS 或 Linux
- Python 3.8+
- Claude Code CLI
- 至少 4GB 内存(运行 Whisper)
依赖项
| 工具 | 用途 | 安装方式 |
|---|---|---|
| yt-dlp | 视频下载 | pip install yt-dlp |
| faster-whisper | 语音转文字 | pip install faster-whisper |
| ffmpeg | 视频处理 | 系统安装 |
常见问题
Q: 转录速度很慢? A: 默认使用 CPU,如有 NVIDIA GPU 可修改为 GPU 加速:
model = WhisperModel("small", device="cuda", compute_type="float16")
Q: 中文乱码? A: 确保系统安装了中文字体(如微软雅黑)
Q: 下载失败?
A: 尝试更新 yt-dlp: pip install -U yt-dlp
License
MIT License
贡献
欢迎提交 Issue 和 Pull Request!
forumUser Reviews (0)
Write a Review
No reviews yet
Statistics
User Rating
Rate this Skill