youtube-clipper-858f7f — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited youtube-clipper-858f7f (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Installation: If you're installing this skill from GitHub, please refer to README.md for installation instructions. The recommended method is npx skills add https://github.com/op7418/Youtube-clipper-skill.你将按照以下 6 个阶段执行 YouTube 视频剪辑任务:
目标: 确保所有必需工具和依赖都已安装
yt-dlp --version # 优先检查 ffmpeg-full(macOS)
/opt/homebrew/opt/ffmpeg-full/bin/ffmpeg -version
# 检查标准 FFmpeg
ffmpeg -version
# 验证 libass 支持(字幕烧录必需)
ffmpeg -filters 2>&1 | grep subtitles python3 -c "import yt_dlp; print('✅ yt-dlp available')"
python3 -c "import pysrt; print('✅ pysrt available')"如果环境检测失败:
brew install yt-dlp 或 pip install yt-dlp brew install ffmpeg-full # macOSpip install pysrt python-dotenv注意:
/opt/homebrew/opt/ffmpeg-full/bin/ffmpeg (Apple Silicon)目标: 下载 YouTube 视频和英文字幕
cd ~/.claude/skills/youtube-clipper
python3 scripts/download_video.py <youtube_url>输出:
<id>.mp4(使用视频 ID 命名,避免特殊字符问题)<id>.en.vtt目标: 使用 Claude AI 分析字幕内容,生成精细章节(2-5 分钟级别)
python3 scripts/analyze_subtitles.py <subtitle_path> 📊 分析完成,生成 X 个章节:
1. [00:00 - 03:15] AGI 不是时间点,是指数曲线
核心: AI 模型能力每 4-12 月翻倍,工程师已用 Claude 写代码
关键词: AGI、指数增长、Claude Code
2. [03:15 - 06:30] 中国在 AI 上的差距
核心: 芯片禁运卡住中国,DeepSeek benchmark 优化不代表实力
关键词: 中国、芯片禁运、DeepSeek
... (所有章节)
✓ 所有内容已覆盖,无遗漏目标: 让用户选择要剪辑的章节和处理选项
目标: 并行执行多个处理任务
对于每个用户选择的章节,执行以下步骤:
#### 5.1 剪辑视频片段
python3 scripts/clip_video.py <video_path> <start_time> <end_time> <output_path><章节标题>_clip.mp4#### 5.2 提取字幕片段
<章节标题>_original.srt#### 5.3 翻译字幕(如果用户选择)
python3 scripts/translate_subtitles.py <subtitle_path><章节标题>_translated.srt#### 5.4 生成双语字幕文件(如果用户选择)
<章节标题>_bilingual.srt#### 5.5 烧录字幕到视频(如果用户选择)
python3 scripts/burn_subtitles.py <video_path> <subtitle_path> <output_path><章节标题>_with_subtitles.mp4#### 5.6 生成总结文案(如果用户选择)
python3 scripts/generate_summary.py <chapter_info><章节标题>_summary.md进度展示:
🎬 开始处理章节 1/3: AGI 不是时间点,是指数曲线
1/6 剪辑视频片段... ✅
2/6 提取字幕片段... ✅
3/6 翻译字幕为中文... [=====> ] 50% (26/52)
4/6 生成双语字幕文件... ✅
5/6 烧录字幕到视频... ✅
6/6 生成总结文案... ✅
✨ 章节 1 处理完成目标: 组织输出文件并展示给用户
./youtube-clips/<日期时间>/输出目录位于当前工作目录下
<章节标题>/
├── <章节标题>_clip.mp4 # 原始剪辑(无字幕)
├── <章节标题>_with_subtitles.mp4 # 烧录字幕版本
├── <章节标题>_bilingual.srt # 双语字幕文件
└── <章节标题>_summary.md # 总结文案 ✨ 处理完成!
📁 输出目录: ./youtube-clips/20260121_143022/
文件列表:
🎬 AGI_指数曲线_双语硬字幕.mp4 (14 MB)
📄 AGI_指数曲线_双语字幕.srt (2.3 KB)
📝 AGI_指数曲线_总结.md (3.2 KB)
快速预览:
open ./youtube-clips/20260121_143022/AGI_指数曲线_双语硬字幕.mp4问题: FFmpeg subtitles 滤镜无法正确解析包含空格的路径
解决方案: burn_subtitles.py 使用临时目录
问题: 逐条翻译会产生大量 API 调用
解决方案: 每批 20 条字幕一起翻译
目标: 生成 2-5 分钟粒度的章节,避免半小时粗粒度
方法:
区别:
路径:
/opt/homebrew/bin/ffmpeg/opt/homebrew/opt/ffmpeg-full/bin/ffmpeg (Apple Silicon)<章节标题>_clip.mp4<章节标题>_bilingual.srt<章节标题>_with_subtitles.mp4<章节标题>_summary.md文件名处理:
/, \, :, *, ?, ", <, >, |)当用户触发这个 Skill 时:
记住:这个 Skill 的核心价值在于 AI 精细章节分析 和 无缝的技术处理,让用户能快速从长视频中提取高质量的短视频片段。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.