Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

youtube-smart-editYouTube 智能编辑

Agent Skill

youtube-smart-edit 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

95

周安装

4

GitHub Stars

公开资料未说明

下载量

33
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:youtube-smart-edit(YouTube 智能编辑)
来源仓库:https://github.com/seefreed/skills
仓库路径:skills/youtube-smart-edit
安装命令:
npx skills add seefreed/skills --skill "youtube-smart-edit"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add seefreed/skills --skill "youtube-smart-edit"

简介

YouTube 智能编辑用于发现并安装 AI 代理技能。

  • 适用于 Codex、Claude、Cursor 和 Gemini CLI 环境。
  • 支持技能管理和集成到现有工作流中。
  • 安装命令:npx skills add seefreed/skills --skill "youtube-smart-edit"。
  • 使用前请确认权限范围、维护状态及是否触发联网或命令执行。

SKILL.md

YouTube Smart Edit

Overview

Generate chapter clips from a YouTube video by downloading MP4 + English subtitles, segmenting content, cutting clips, and producing per-chapter English SRTs. Chapter length is user-selectable (1-2, 2-3, or 3-4 minutes).

Workflow

1) Use the automation script to reduce tokens

  • Prefer scripts/smart_edit.py for end-to-end runs (download, chaptering, clip cut, subtitle slicing).
  • The script uses heuristic chaptering to avoid AI token usage.
  • Create and use a local venv (no external packages required):

- python3 -m venv.venv - source.venv/bin/activate - python scripts/smart_edit.py --help - Speed-focused default: --mode fast (approximate cuts, faster encode, optional downscale). - Use --mode accurate when you need precise boundaries.

2) Confirm inputs and environment

  • Ask for the YouTube URL and whether English subtitles are available (manual preferred; auto as fallback).
  • Check tools: yt-dlp and ffmpeg. If missing, install before proceeding.
  • Use command templates in references/commands.md.

3) Download source video and subtitles

  • Check current directory for existing source files before downloading:

- If <id>.mp4 and <id>.en.vtt already exist, skip yt-dlp download.

  • Download highest 1080p MP4 and English VTT. Save in current directory with ID-based names:

- <id>.mp4 - <id>.en.vtt (or <id>.en.auto.vtt if manual subs absent)

  • Also capture video metadata (id, title, duration, uploader) for reporting.

- The script handles this when --url is provided.

4) Prepare output directory

  • Create output directory using the original video title:

- Replace spaces with underscores. - Remove/replace filesystem-unsafe characters.

  • Place all chapter clips and subtitle files into this directory.

5) Generate fine-grained chapters (user-selected length)

  • Ask the user to choose a chapter length preset: 1-2, 2-3, or 3-4 minutes.
  • Perform AI analysis (critical step):

- Read the full subtitle content. - Understand the semantic flow and topic transitions. - Identify natural topic switch points.

  • Draft chapter boundaries based on semantic topic changes and sentence boundaries.
  • Target the selected range; avoid cutting mid-sentence.
  • Prefer semantic breaks (new concept, example, recap) over strict timing.
  • Produce a chapter list with:

- title, start, end, reason - The script uses --chapter-preset (or --min-seconds/--target-seconds/--max-seconds for custom).

6) Cut precise clips (speed vs accuracy)

  • Use ffmpeg with accurate trimming and stable outputs. Always re-encode:

- Place -ss after -i for accurate seeking. - Use libx264 + aac, -movflags +faststart, and -pix_fmt yuv420p to maximize player compatibility. - Use a fast preset (e.g., -preset veryfast) to avoid long encodes and timeouts.

  • Run clips serially and avoid external timeouts that kill ffmpeg mid-write.
  • After each clip, validate with ffprobe; retry once if validation fails.
  • If speed is the priority (listening practice), prefer approximate cuts:

- Put -ss before -i to avoid decoding from the start every time. - Use -preset ultrafast and a higher CRF (e.g., 28). - Optionally downscale (e.g., width 1280) to reduce encode time.

  • Name each clip with an ordered prefix: <nn>_<chapter_title>.mp4 using safe filenames:

- Use a 2-digit index starting at 01. - Replace spaces with underscores. - Remove filesystem-unsafe characters.

7) Extract and convert subtitles per chapter

  • Extract VTT segment for each chapter by time range.
  • Convert each segment to SRT:

- <nn>_<chapter_title>.en.srt - The script deletes per-chapter VTT unless --keep-vtt is set.

8) Report outputs

  • Print output directory path, chapter list, and generated files.

Output Rules

  • Source files stay in current directory (<id>.mp4, <id>.en.vtt).
  • All chapter clips and subtitle files are placed in the per-video directory named after the sanitized title.
  • Use consistent time formats (HH:MM:SS.mmm).

References

  • Command templates and copy/paste examples: references/commands.md
  • Automation: scripts/smart_edit.py

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

49.42%
按下载量换算16

Codex

30.05%
按下载量换算10

Claude Code

14.8%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills