技能图谱SKILLSGROVE
技能图谱/短视频与自媒体/matangilabs/kortny/youtube-transcript

youtube-transcript

安装

$npx skills add https://github.com/matangilabs/kortny --skill youtube-transcript
$git clone --depth 1 https://github.com/matangilabs/kortny.git /tmp/kortny && mkdir -p ~/.claude/skills && cp -r /tmp/kortny/kortny/skills/curated/youtube-transcript ~/.claude/skills/youtube-transcript
请帮我安装这个 Agent Skill:https://github.com/matangilabs/kortny/tree/e54c3c09fd8ab6548a56c4a0e91a5af4c5e58774/kortny/skills/curated/youtube-transcript ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITUse when asked to get a transcript, extract key points, or summarize a YouTube video — given a YouTube URL.
以下 SKILL.md 内容转载自 matangilabs/kortny(提交 e54c3c0),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2024 Michal Parkola 所有。许可证:kortny/skills/curated/youtube-transcript/LICENSE.txt。仅展示说明文件,附带脚本请在原仓库查看。

Goal

Pull the transcript from a YouTube video and produce the most useful artifact from it — clean transcript, structured notes, or a Slack-ready summary.

Steps

  1. Receive the YouTube URL. If none is provided, ask for it.
  2. Run the transcript script (scripts/get_transcript.py) with the URL. The script uses yt-dlp to fetch auto-generated or manually-uploaded subtitle tracks (prefers manual/English; falls back to auto). Output: {title, channel, duration_seconds, transcript_text, language}.
  3. Choose the output mode based on the request:
    • Full transcript → upload as a Slack file (plain text).
    • Summary → 3-4 sentence paragraph: what the video covers, the core argument or demo, key takeaway.
    • Structured notes → sections matching the video's natural breaks, with timestamps if present in the transcript.
    • Action items → for talks/webinars: decisions mentioned, questions raised, next steps named.
  4. Include the metadata header: video title, channel, duration, language, URL.
  5. Flag transcript quality: if the transcript is auto-generated (noted in output), mention that names and technical terms may be misheard.

Rules

  • No Whisper audio transcription — use only the subtitle tracks yt-dlp retrieves. If no subtitles exist, say so rather than transcribing manually or refusing silently.
  • Do not fabricate transcript content.
  • For videos over 2 hours, default to structured notes rather than full transcript unless the user asks explicitly.
  • Private or geo-restricted videos will fail extraction — report the error clearly.
查看许可证全文(MIT)
MIT License

Copyright (c) 2024 Michal Parkola

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

---

NOTE: This skill is a clean-room rewrite inspired by the tapestry-skills
youtube-transcript concept. No source code or text was copied from the original
repository. This LICENSE.txt is included for provenance transparency.