使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/mohammedsadeghi/youtube-agent-skill --skill yt-chapters开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
yt-chapters
python3 "$SKILL_DIR/chapters.py" transcript.srt --target 8Before running the helper, set SKILL_DIR to the full path to the directory containing this SKILL.md. Claude Code provides that path as CLAUDE_SKILL_DIR; other agents should resolve it from the loaded skill file. Do not assume the user's working directory is the skill directory.
YouTube's chapter rules
A chapter list that breaks any of these silently does not become chapters at all - the block just sits in the description doing nothing:
- The first entry must be 00:00.
- There must be at least three.
- Each must be at least 10 seconds long.
The tool checks all three and tells you when a list is invalid rather than letting you paste it. See YouTube's chapter guidance.
Retitle every line
chapters.py finds the BOUNDARIES well - it scores the pauses you actually took by how much the vocabulary shifts across them. The titles it emits are the topic words, and they are a draft. A chapter called "Thumbnails Titles Packaging" is a placeholder. Rewrite each one as the promise of that section, in the user's voice, three to five words.
Chapters are also a retention diagnostic: if a section cannot be named in five words, it is two sections or it is filler.
The gate
Nothing here publishes. This skill writes and you publish. Every output ends in a block the user copies, and the last line of every run is the question: ship it, or change it?