Borrowing it
Nothing to install: this file belongs to osisdie/claude-code-channels. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/osisdie/claude-code-channels/main/.claude/commands/yt2pdf.mdgit clone --depth 1 https://github.com/osisdie/claude-code-channelsWrote 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.
[](https://agentmods.dev/commands/osisdie/claude-code-channels/yt2pdf)<a href="https://agentmods.dev/commands/osisdie/claude-code-channels/yt2pdf"><img src="https://agentmods.dev/badge/commands/osisdie/claude-code-channels/yt2pdf/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.
<a href="https://agentmods.dev/commands/osisdie/claude-code-channels/yt2pdf"><img src="https://agentmods.dev/badge/commands/osisdie/claude-code-channels/yt2pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02739 |
| Opus 5.5 | $0.00000 | $0.01096 |
| Sonnet 5.5 | $0.00000 | $0.00548 |
| Haiku 4.5 | $0.00000 | $0.00274 |
Grade A, and why
yt2pdf scanned grade A with 1 finding 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 1mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -sL "https://i.ytimg.com/vi/VIDEO_ID/hqdefault.jpg" -o output/youtube/YYYY-MM-DD/VIDEO_ID/thumb.jpg How it starts
The opening of the file, as written. The whole thing — 278 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Convert a YouTube video into a downloadable PDF summary and upload to B2 Cloud Storage.
Input: $ARGUMENTS — A YouTube URL, optionally followed by --lang en or --lang zh-tw (default: both)
Examples:
/yt2pdf https://youtube.com/watch?v=xxx→ generates EN + zh-TW PDFs/yt2pdf https://youtube.com/watch?v=xxx --lang en→ English PDF only/yt2pdf https://youtube.com/watch?v=xxx --lang zh-tw→ Traditional Chinese PDF only
Step 1: Parse & Acknowledge
Extract the video ID and optional --lang flag from input. Supported URL formats:
https://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://youtube.com/shorts/VIDEO_IDhttps://www.youtube.com/live/VIDEO_ID
Default language: both en and zh-tw. If --lang is specified, only generate that one.
Compute today's date as YYYY-MM-DD for the output directory.
If running in a channel (Telegram/Slack), reply immediately:
Processing YouTube video... this may take a few minutes.
Save the reply message ID so you can edit it later with progress updates.
Step 2: Download Thumbnail
Download the YouTube video thumbnail to the output directory:
mkdir -p output/youtube/YYYY-MM-DD/VIDEO_ID
curl -sL "https://i.ytimg.com/vi/VIDEO_ID/hqdefault.jpg" -o output/youtube/YYYY-MM-DD/VIDEO_ID/thumb.jpg
If hqdefault.jpg fails, try mqdefault.jpg. If both fail, continue without thumbnail.
Step 3: Fetch Metadata & Extract Transcript
First, fetch video metadata (title, publish date, channel name, language) via yt-dlp:
yt-dlp --dump-json --skip-download "https://youtube.com/watch?v=VIDEO_ID" 2>/dev/null | python3 -c "
import json,sys; d=json.load(sys.stdin)
print(json.dumps({'title':d.get('title',''),'uploader':d.get('uploader',''),'upload_date':d.get('upload_date',''),'duration':d.get('duration',0),'language':d.get('language','en')}))"
Parse the JSON to get: title, uploader, upload_date (YYYYMMDD → YYYY-MM-DD), language.
Then extract transcript with timestamps and the video's original language:
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.
- 1mo ago First seen · 278 lines · 0 tokens per session scan A 04bf47c9a7c6
yt2pdf is a command published in the GitHub repository osisdie/claude-code-channels (6 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,739 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
council-extract
Extract a completed Perplexity Model Council response from the current browser tab, converting it to structured markdown with model attribution, and save to disk.
doc-to-md
Convert a PDF, docx, image, or other document to clean Markdown using Antigravity (agy) multimodal Gemini. Saves to docs/agy/converted/.
Captures the tab you are looking at in tandem's Chrome as a PDF (default) or a full-page PNG (--png). Saves to /.claude/tandem/output/.
pdf-to-markdown-docling
Convert a local PDF to markdown via Docling's standard pipeline (layout + table-structure recognition — higher fidelity than MarkItDown on complex tables/layouts, 10x slower). Requires the opt-in Docling install.
pdf-to-markdown
Convert a local PDF to markdown via the bundled MarkItDown Python CLI (fast, lightweight — plain text extraction, no table-structure recognition). For complex tables/layouts prefer /obsidian-router:pdf-to-markdown-docling.
report
Generate a professional penetration test report from all evidence files.