SkillsGrove
SkillsGrove/ショート動画・クリエイター/qwwiwi/agentos-skills-public/transcript

transcript

インストール

$npx skills add https://github.com/qwwiwi/agentos-skills-public --skill transcript
$git clone --depth 1 https://github.com/qwwiwi/agentos-skills-public.git /tmp/agentos-skills-public && mkdir -p ~/.claude/skills && cp -r /tmp/agentos-skills-public/skills/transcript ~/.claude/skills/transcript
この Agent Skill をインストールしてください:https://github.com/qwwiwi/agentos-skills-public/tree/48c40aaeec32e0eb03b403366460e340d0cee094/skills/transcript — まず SKILL.md とスクリプトを読み、安全であることを確認してから、私のスキルフォルダにインストールしてください。

概要

原文の説明 · MITТранскрипт YouTube роликов через Loore (yt_transcript, публичные субтитры). ОБЯЗАТЕЛЬНО используй этот скилл когда: (1) пользователь присылает YouTube ссылку (youtube.com, youtu.be), (2) просит рассказать о чём видео, (3) просит транскрипт/субтитры, (4) говорит «что в этом видео», «о чём ролик», «перескажи видео», (5) любой запрос связанный с содержимым YouTube видео. Триггеры: YouTube ссылка, «транскрипт», «о чём видео», «что говорят в видео», «перескажи ролик», «summarize video», «get transcript». НЕ использовать yt-dlp, youtube-transcript-api и сайты транскриптов -- только этот скилл.
以下の SKILL.md は qwwiwi/agentos-skills-public(コミット 48c40aa)から MIT ライセンスに基づいて転載しています。本文は変更しておらず、ファイル先頭のメタデータのみ省略し、画像はリンクとして表示し、非常に長いファイルは途中までの表示としています。Copyright 2026 EdgeLab / AgentOS by Dashi Eshiev。ライセンス:LICENSE。表示しているのは指示ファイルのみです。スクリプト等は元のリポジトリをご覧ください。

Transcript

Fetch YouTube video transcripts via Loore — tool yt_transcript (docs: https://docs.loore.ai). It reads the video's public captions, any length, no AI transcription; works for videos and Shorts.

YouTube data comes only from Loore or the official YouTube Data API v3. The official API cannot download captions of other people's videos (captions.download works only for videos you can edit), so Loore is the only path here. Never fetch transcripts with yt-dlp, innertube or transcript sites from your own machine.

Setup

If $LOORE_API_KEY is not set, ask the user to create a key: https://app.loore.ai → Настройки → API и MCP (the plaintext is shown once). Then:

export LOORE_API_KEY="..."   # never in chat, logs or git

Spend approval. A transcript costs 2 credits, only when one is returned (no captions = free; continuing a long transcript is free). The title header adds one yt_video call (1.5 credits). State the cap to the user once, and after their «yes» create a 24-hour budget:

python3 ./scripts/_loore.py approve --flow transcript --cap 20
export LOORE_SPEND_AUTHORIZATION_ID=<printed id>

The script sends spend_authorization_id with every paid call. Without it Loore answers 428 needs_user_confirmation.

MCP instead of the script. Tool yt_transcript on https://mcp.loore.ai/mcp (header Authorization: Bearer <key>) takes the same arguments.

Get a transcript

python3 ./scripts/yt_transcript.py "VIDEO_URL" --timestamps
Flag Default Meaning
VIDEO_URL — YouTube URL (watch, youtu.be, shorts, live) or 11-char video ID
--timestamps off timed lines [hh:mm:ss] text (Loore include_timestamps)
--json off JSON instead of text
--lang auto caption language, e.g. ru, en, en-US (Loore language)
--original off only captions in the original spoken language (original_audio)
--no-meta off skip the # title — channel header (saves the yt_video call)

Default: always use --timestamps unless the user asks otherwise.

Long transcripts come in windows (up to 40000 characters or 400 segments each, truncated / nextOffset); the script reads all of them.

Output (text, --timestamps):

# Rick Astley - Never Gonna Give You Up — Rick Astley

[00:00:18] We're no strangers to love
[00:00:21] You know the rules and so do I

Output (--json --timestamps):

{
  "video_id": "dQw4w9WgXcQ",
  "language": "en",
  "transcript": [
    { "text": "We're no strangers to love", "start": 18.0, "duration": 3.5 },
    { "text": "You know the rules and so do I", "start": 21.5, "duration": 2.8 }
  ],
  "metadata": {
    "title": "Rick Astley - Never Gonna Give You Up",
    "author_name": "Rick Astley"
  }
}

Without --timestamps, transcript is one string.

Errors

Exit / code Meaning Action
exit 3 LOORE_API_KEY not set Set the key (Setup)
401 Bad or revoked key Check the key in app.loore.ai
402 Out of credits / plan quota Stop and tell the user
428 Spend approval needed Create the budget (Setup)
429 Rate limited The script waits Retry-After; longer than 120 s – exit 4 with the time to rerun
exit 4 / 404 No captions (or no captions in --lang) The script lists the caption languages the video has

Tips

  • For long videos, summarize key points first, offer full transcript on request.
  • Use --json --timestamps when you need precise timestamps for quoting specific moments.
  • Drop --timestamps for clean text suitable for translation or analysis.
  • Pick the track: yt_video lists captionLanguages; pass one as --lang.
ライセンス全文を見る(MIT)
MIT License

Copyright (c) 2026 EdgeLab / AgentOS by Dashi Eshiev

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.