ytdl

ytdl is a command for Claude Code from Achitokun14/claude-universal. It costs 25 tokens per session (561 once invoked), scanned A, original, MIT.

A command that downloads a video or podcast, optionally transcribes its audio, and saves the result as a searchable Markdown entry in an llm-wiki.

In plain words
What is it for?
Use it with a YouTube, podcast, or other supported media URL when you want to archive and search its content later.
Why use it?
It turns media that is difficult to search into a local note containing the source, downloaded files, and available transcript.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it with a YouTube, podcast, or other supported media URL when you want to archive and search its content later.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/achitokun14/claude-universal/ytdl
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Achitokun14/claude-universal

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ytdl

README.md
[![agentmods](https://agentmods.dev/badge/commands/achitokun14/claude-universal/ytdl/github.svg)](https://agentmods.dev/commands/achitokun14/claude-universal/ytdl)
Your own site
<a href="https://agentmods.dev/commands/achitokun14/claude-universal/ytdl"><img src="https://agentmods.dev/badge/commands/achitokun14/claude-universal/ytdl/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ytdl

Your own site · 80×15
<a href="https://agentmods.dev/commands/achitokun14/claude-universal/ytdl"><img src="https://agentmods.dev/badge/commands/achitokun14/claude-universal/ytdl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 561 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.00561
Opus 5.5 $0.00010 $0.00224
Sonnet 5.5 $0.00005 $0.00112
Haiku 4.5 $0.00003 $0.00056

Measured 3mo ago against content hash 773370c65425, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ytdl scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

user/commands/ytdl.md · 56 lines

What it actually says

Convert a video/podcast URL into a searchable markdown entry in the llm-wiki.

Steps:

  1. If $ARGUMENTS is empty, ask: "What URL? (YouTube, podcast, any yt-dlp-supported source)".

  2. Verify prerequisites with Bash:

    • command -v yt-dlp — if missing, print pipx install yt-dlp and stop.
    • command -v whisper-cli or command -v whisper.cpp or check ~/whisper.cpp/main — if missing, note transcription is skipped (still downloads audio).
  3. Invoke the helper script which already handles the pipeline:

    bash ~/Desktop/ACTIVITIES/claude-universal/scripts/ytdl-to-wiki.sh "$ARGUMENTS"
    

    If the helper is missing (first-time machine), fall back to:

    slug=$(echo "$ARGUMENTS" | sha1sum | cut -c1-8)
    out="$HOME/Desktop/ACTIVITIES/llm-wiki/media/$(date +%Y%m%d)-$slug"
    mkdir -p "$out"
    yt-dlp --write-info-json --write-description -x --audio-format mp3 \
      -o "$out/%(title)s.%(ext)s" "$ARGUMENTS"
    # transcribe first .mp3
    whisper-cli -f "$out"/*.mp3 -otxt -of "$out/transcript" 2>/dev/null || true
    
  4. Produce the markdown entry at ~/Desktop/ACTIVITIES/llm-wiki/media/<date>-<slug>.md:

    # <video title>
    
    **Source:** $ARGUMENTS
    **Downloaded:** YYYY-MM-DD
    **Duration:** <from info.json>
    **Uploader:** <from info.json>
    
    ## Description
    <from yt-dlp --write-description>
    
    ## Transcript
    <whisper output, or "Transcription skipped — whisper.cpp not installed">
    
    ## Key takeaways
    <if transcript exists, give 5 bullet summary>
    
  5. Append a pointer to today's wiki file: - 🎥 [<title>](media/<date>-<slug>.md) — <url>

  6. Print: ✓ ytdl complete — llm-wiki/media/<date>-<slug>.md.

Large videos (>30 min): warn the user before transcribing and ask to proceed.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 56 lines · 25 tokens per session scan A 773370c65425

Subscribe to this mod's changes

ytdl is a command published in the GitHub repository Achitokun14/claude-universal (2 stars, last pushed 5mo ago), licensed MIT. It adds 25 tokens to every session and 561 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

ytdl compared with commands from other repositories

ytdl next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ytdlAchitokun14/claude-universalCommand25mo agoMITA25Claude Code
wtfp:export-latexakougkas/wtf-pCommand205d agoMITA22Claude Code
report-schemaLeoyang183/sync-agents-settingsCommand78mo agoMITA12Claude Code
factory-pdffrankxai/claude-codex-gemini-opencode-settingsCommand21mo agononeA13Claude Code
mem-docSI-GMT/SecondBrainCommand35mo agononeA0Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code