agentleFS
AWSKnown publisherawslabs/do-agent-aws/Container-Root/agent/skills/youtube-transcriber/SKILL.md

youtube-transcriber

Skill3 starsChanged 3 days agoApache-2.0View on GitHub

Transcribe YouTube videos using yt-dlp subtitle extraction, Amazon Transcribe, or local Whisper ASR. Use when user wants to transcribe a YouTube video or extract a video transcript.

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If blocked: use --cookies /path/to/cookies.txt

    line 21
  2. Distinctive:

    If subtitles aren't available, download audio first:

    line 65
  3. Very specific:

    Use --cookies flag with exported browser cookies

    line 78
  4. Distinctive:

    Use Amazon Transcribe (upload audio to S3, no YouTube needed)

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

YouTube Video Transcriber

When to Use

  • User provides a YouTube URL and wants a transcript
  • User asks to transcribe a video
  • User needs captions/subtitles extracted from a video

Method Priority

1. yt-dlp Subtitle Extraction (Fastest, Free)

yt-dlp --write-auto-sub --sub-lang en --skip-download --sub-format vtt \
  -o "transcript" "VIDEO_URL"
  • Works from residential IPs, blocked from cloud IPs
  • If blocked: use --cookies /path/to/cookies.txt
  • Export cookies: yt-dlp --cookies-from-browser chrome --cookies cookies.txt

2. Amazon Transcribe (Cloud-native, $0.024/min)

import boto3

s3 = boto3.client('s3')
transcribe = boto3.client('transcribe', region_name='us-west-2')

# Upload audio to S3
s3.upload_file('audio.mp3', 'amzn-s3-demo-bucket', 'transcribe/audio.mp3')

# Start transcription
transcribe.start_transcription_job(
    TranscriptionJobName='gtc-keynote',
    Media={'MediaFileUri': 's3://amzn-s3-demo-bucket/transcribe/audio.mp3'},
    MediaFormat='mp3',
    LanguageCode='en-US',
    Settings={'ShowSpeakerLabels': True, 'MaxSpeakerLabels': 5}
)

Cost: ~$3.50 for a 2.5hr video

3. Local Whisper ASR (Free, requires GPU or fast CPU)

# faster-whisper (CPU-optimized)
pip install faster-whisper
python3 -c "
from faster_whisper import WhisperModel
model = WhisperModel('large-v3', device='cpu', compute_type='int8')
segments, info = model.transcribe('audio.mp3', beam_size=5)
for segment in segments:
    print(f'[{segment.start:.2f}s -> {segment.end:.2f}s] {segment.text}')
"

4. Powerful ASR Models (GPU required)

  • Qwen3-ASR (1.7B): Highest accuracy for technical content
  • NVIDIA Canary-Qwen (2.5B): Best formatting
  • WhisperX: Best for speaker diarization

Audio Download

If subtitles aren't available, download audio first:

# From residential IP:
yt-dlp -f "bestaudio" -x --audio-format mp3 -o "audio.%(ext)s" "VIDEO_URL"

# Then SCP to cloud:
scp audio.mp3 ubuntu@host:/path/to/

Cloud IP Workaround

YouTube blocks cloud IPs. Options:

  1. Download from local machine, SCP to cloud
  2. Use --cookies flag with exported browser cookies
  3. Use Amazon Transcribe (upload audio to S3, no YouTube needed)

Output Format

# [Video Title]

**Duration:** HH:MM:SS
**URL:** [url]
**Transcribed:** YYYY-MM-DD

## Transcript
[Full text with timestamps]
<!-- imported on 2026-10-31 by tools/import-skills.py from a native Claude Code instance's skill library; the source site's names, ids, hosts and paths are scrubbed to <placeholders>; its other files were not copied -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.