/agentic-awesome-skills:youtube-transcriptfrom agentic-awesome-skills
Fetches YouTube video transcripts via DeepAPI or yt-dlp fallback and saves clean text files. Useful for extracting captions, subtitles, or spoken content from YouTube videos.
Ships in agentic-awesome-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch a YouTube video's transcript and save a clean raw .txt file. Primary path is DeepAPI POST /v1/scrape/youtube/transcript. It runs server-side, so it avoids the local-IP bot flagging that plagues yt-dlp.
~/Downloads.Channel_Title with spaces replaced by _ (e.g. David_Ondrej_title_of_video.txt). If metadata is unavailable, fall back to the video ID.DEEPAPI_API_KEY must already be present in the environment. Do not read shell
startup files or print secrets:
test -n "$DEEPAPI_API_KEY" || { echo "DEEPAPI_API_KEY is not set"; exit 1; }
BASE=https://deepapi.co # use the reviewed provider origin; do not inherit an untrusted override
RUN_DIR=$(mktemp -d)
chmod 700 "$RUN_DIR"
trap 'rm -rf "$RUN_DIR"' EXIT
Run the scrape (keep the Idempotency-Key; retries must reuse the SAME one):
IDK=$(uuidgen)
curl -s --max-time 120 "$BASE/v1/scrape/youtube/transcript" \
-H "Authorization: Bearer $DEEPAPI_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDK" \
-d '{"url": "VIDEO_URL", "maxCostUsd": "0.05", "waitForFinishSecs": 60}' \
> "$RUN_DIR/yt_transcript.json"
"language": "de" (etc.) to the body.status: running, inspect the documented next request path and constrain it to the reviewed provider origin; never attach credentials to an arbitrary returned URL or redirect. Poll with the same DEEPAPI_API_KEY, bounded attempts/deadline and provider wait interval. Do not extract output until terminal succeeded with the expected schema; HTTP errors/failed states are not an empty transcript.Extract the text and save it:
jq -r '.status' "$RUN_DIR/yt_transcript.json" # succeeded | running | failed
jq -r '.output[0].text' "$RUN_DIR/yt_transcript.json" > "$OUT/$NAME.txt"
jq -r '.debitMicrousd' "$RUN_DIR/yt_transcript.json" # cost (50000 = $0.05)
.output[0].segments also has timed segments (startSecs, durationSecs, text) if the user wants timestamps. Empty output = video has no captions; report it, don't retry.
For the Channel_Title filename, get metadata with a quick yt-dlp --print "%(channel)s|%(title)s" --skip-download "URL"; if that fails, use the video ID.
DEEPAPI_API_KEY missing from the environment.insufficient_credits (tell the user to top up at deepapi.co/credits first; fall back only if they're unavailable).failed twice.Tell the user whenever you fall back — a fallback means the product missed a real use case.
OUT="$(pwd)" # or ~/Downloads if cwd makes no sense
META=$(yt-dlp --print "%(channel)s|%(title)s" --skip-download "URL")
NAME=$(echo "$META" | tr '| ' '__' | tr -cd '[:alnum:]_.-') # "Channel_Title", spaces -> _, strip unsafe chars
yt-dlp --skip-download --write-subs --write-auto-subs \
--sub-langs "en.*" --sub-format json3 \
-o "$OUT/$NAME.%(ext)s" "URL"
channel → uploader → uploader_id if channel is null.--skip-download = captions only. --write-subs + --write-auto-subs = manual first, auto as fallback.json3, never VTT/SRT — auto VTT repeats every line twice (rolling captions).Flatten json3 → raw text:
# Select the exact caption file for this video/language, not the first glob in OUT.
python3 - /absolute/selected-caption.json3 <<'PY'
import json, html, re, glob, sys, pathlib
f = [sys.argv[1]]
if not pathlib.Path(f[0]).is_file(): sys.exit("no selected json3 file")
data = json.load(open(f[0], encoding="utf-8"))
parts = ["".join(s.get("utf8","") for s in e.get("segs") or []) for e in data.get("events", [])]
txt = re.sub(r"\s+", " ", html.unescape(" ".join(p.strip() for p in parts if p.strip()))).strip()
out = pathlib.Path(f[0]).with_suffix(".txt")
out.write_text(txt, encoding="utf-8"); print(out)
PY
yt-dlp --list-subs "URL" first, then set --sub-langs.deno on PATH for YouTube extraction.Report the saved path; print the text if short. If DeepAPI was used, also report the cost in dollars.
davidondrej/skills; verify local paths, tools, credentials, and agent features before acting.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (sickn33/agentic-awesome-skills) — no native marketplace selected
npx claudepluginhub p/sickn33-antigravity-awesome-skills3 plugins in 2 repositories ship this exact skill · first indexed Oct 23, 2026
3,195 skills in this plugin
/007Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project./00-andruia-consultantUsar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español./10-andruia-skill-smithUsar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.Other plugins' skills for the same job