by JimmySadek
Portable AI-agent skill: capture YouTube transcripts as Obsidian-ready Markdown with metadata, linked timestamps, language selection, and subtitle exports
# Add to your Claude Code skills
git clone https://github.com/JimmySadek/youtube-fetcher-to-markdownGuides for using ai agents skills like youtube-fetcher-to-markdown.
Last scanned: 8/27/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-08-27T15:01:28.720Z",
"npmAuditRan": true,
"pipAuditRan": false,
"promptInjectionRan": true
}See how youtube-fetcher-to-markdown compares with popular alternatives.
youtube-fetcher-to-markdown is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by JimmySadek. Portable AI-agent skill: capture YouTube transcripts as Obsidian-ready Markdown with metadata, linked timestamps, language selection, and subtitle exports. It has 473 GitHub stars.
Yes. youtube-fetcher-to-markdown passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/JimmySadek/youtube-fetcher-to-markdown" and add it to your Claude Code skills directory (see the Installation section above). youtube-fetcher-to-markdown ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
youtube-fetcher-to-markdown is primarily written in Python. It is open-source under JimmySadek on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh youtube-fetcher-to-markdown against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
youtube-fetcher-to-markdown vs everything claude code
See comparison
Capture accessible YouTube captions without an API key. The bundled Python script
exports archival Markdown, plain text, JSON, SRT, or WebVTT. Optional yt-dlp
adds creator descriptions, chapters, upload dates, and duration.
--stdout --timestamps,
read the result, and answer the request with timestamp links where useful.
Saving an extra note is optional unless requested.--format txt
means plain text; text is the legacy name for Markdown.Resolve scripts/fetch_transcript.py relative to this SKILL.md, using a Python
interpreter with the dependencies installed. Do not assume a home-directory,
agent, operating system, working directory, or skill-manager path. Quote URLs and
paths; put options before -- so IDs beginning with - are accepted.
# SKILL_DIR is the directory containing this SKILL.md
python3 "$SKILL_DIR/scripts/fetch_transcript.py" -- "https://youtu.be/VIDEO_ID"
# Evidence for a summary or answer, with links to the relevant moments
python3 "$SKILL_DIR/scripts/fetch_transcript.py" --stdout --timestamps -- URL
# Save in the user's chosen vault
python3 "$SKILL_DIR/scripts/fetch_transcript.py" --output-dir "/path/to/My Vault" -- URL
--lang selects existing captions; it does not translate them. The default is
English. Specific requests try the language and its regional variants, then
English. Always report the actual selected language and any fallback.
# Prefer Spanish, then Portuguese, then English
python3 "$SKILL_DIR/scripts/fetch_transcript.py" --lang es,pt -- URL
# Require French captions (including regional variants); no English fallback
python3 "$SKILL_DIR/scripts/fetch_transcript.py" --lang fr --strict-lang -- URL
# Capture an available track when the language is unknown
python3 "$SKILL_DIR/scripts/fetch_transcript.py" --lang auto -- URL
# Only when the user requests translation: YouTube machine translation
python3 "$SKILL_DIR/scripts/fetch_transcript.py" --lang auto --translate en -- URL
# Inspect source tracks and their supported translation targets
python3 "$SKILL_DIR/scripts/fetch_transcript.py" --list -- URL
auto prefers a manual track and otherwise uses the first generated track; it
cannot prove the video's original spoken language. Translation records the
source language, original caption type, output language, and YouTube as provider
in Markdown. Raw exports contain caption text/timing only; report their language
and translation status alongside the file.
--force first. Exit 3 means a file was preserved. Report its path;
replace it only when the user has authorized overwriting that file. --force
refreshes an existing default note in place and replaces its entire contents,
including user annotations. To retain two languages or versions, use distinct
--output paths.--stdout writes nothing; otherwise --output, then
--output-dir, then YOUTUBE_FETCHER_DIR, then ~/yt_transcripts/. Do not choose
a different directory silently.--check-deps and the isolated setup in
README.md. Install only within the
user's authorized scope; never silently change global Python or system packages.python3 "$SKILL_DIR/scripts/fetch_transcript.py" --format txt --stdout -- URL
python3 "$SKILL_DIR/scripts/fetch_transcript.py" --format json -- URL
python3 "$SKILL_DIR/scripts/fetch_transcript.py" --format srt -- URL
python3 "$SKILL_DIR/scripts/fetch_transcript.py" --format vtt -- URL
python3 "$SKILL_DIR/scripts/fetch_transcript.py" --no-metadata --timeout 20 -- URL
--no-metadata skips both metadata providers; captions and source provenance are
still captured. --no-description omits description/chapters but retains other
metadata. --source overrides the capture-project label. See --help for options
and README.md for installation and failure guidance.
yt-dlp metadata requests. HTTP connect/read timeout defaults to 15 seconds;
each request has its own timeout. No automatic retry on blocking.--force. New saves use atomic publication where
supported, otherwise exclusive creation with cleanup on handled write failures.
An abrupt termination on the fallback filesystem can leave a partial new file.yt-dlp, with user configuration, playlist
expansion, caching, and downloads disabled for metadata capture.youtube-transcript-api and requests; optional yt-dlp.| Exit | Meaning |
|---|---|
0 |
Success |
1 |
Invalid video input, fetch failure, or filesystem error |
2 |
Missing required dependency or invalid command-line options |
3 |
Existing output preserved |
130 |
Cancelled by the user |
YouTube video in, structured archival Markdown note out. Capture the transcript, creator metadata, description, chapters, actual caption language, and provenance in one Obsidian-ready file—without an API key.
npx skills add JimmySadek/youtube-fetcher-to-markdown
Read the v1.2.0 release notes for the new language options, exports, and safer overwrite behavior.
Paste a YouTube link and receive a file such as:
~/yt_transcripts/2026-03-04_obsidian-the-king-of-learning-tools_[hSTy_BInQs8].md
---
title: "Obsidian: The King of Learning Tools (FULL GUIDE + SETUP)"
channel: "Odysseas"
url: "https://www.youtube.com/watch?v=hSTy_BInQs8"
video_id: "hSTy_BInQs8"
fetched: "2026-03-04"
source_project: "my-project"
language: "en"
caption_type: "manual"
duration: "36m 26s"
upload_date: "2024-04-24"
tags:
- yt-transcript
---
# Obsidian: The King of Learning Tools (FULL GUIDE + SETUP)
## Video Details
| Field | Value |
|----------|-------|
| URL | https://www.youtube.com/watch?v=hSTy_BInQs8 |
| Channel | Odysseas |
| Duration | 36m 26s |
| Uploaded | 2024-04-24 |
| Fetched | 2026-03-04 |
| Source | my-project |
| Language | en (manual) |
## Video Description
The creator's description, links, and chapter markers...
## Transcript
The complete caption text...
The YAML frontmatter makes a collection queryable through tools such as Dataview, while the Markdown remains portable to Logseq, other knowledge bases, and plain text workflows.
Most transcript extractors stop at raw caption text. An archival knowledge note also needs the source URL, creator, capture date, actual language, description, chapters, and a predictable filename. YouTube Fetcher keeps that complete record in one local file.
npx skills add JimmySadek/youtube-fetcher-to-markdown
Or clone the canonical repository:
git clone https://github.com/JimmySadek/youtube-fetcher-to-markdown.git
Python 3.8–3.14 is supported for captions. Python 3.10 or newer is recommended
for current optional yt-dlp releases. From the cloned or installed skill
directory, use an isolated environment so your system Python stays unchanged:
python3 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python scripts/fetch_transcript.py --check-deps
On Windows PowerShell:
py -m venv .venv
.venv\Scripts\python.exe -m pip install -r requirements.txt
.venv\Scripts\python.exe scripts\fetch_transcript.py --check-deps
Activate that environment before using the python3 examples below (source .venv/bin/activate on macOS/Linux), or use the full interpreter path each time.
An agent should also use that interpreter. If your skill installation is read-only,
create the environment in a writable location and pass the full path to
requirements.txt.
yt-dlp is optional for descriptions, chapters, duration, and upload dates:
.venv/bin/python -m pip install yt-dlp
# Windows: .venv\Scripts\python.exe -m pip install yt-dlp
Put its executable on PATH by activating the environment. Without it, oEmbed
still supplies title and channel when accessible. The script never installs
packages automatically. --no-metadata skips both metadata providers.
python3 scripts/fetch_transcript.py "https://youtu.be/VIDEO_ID"
An agent using the skill resolves scripts/fetch_transcript.py relative to its
installed SKILL.md; it does not depend on one fixed home-directory path.
The first configured option wins:
--output for one exact file--output-dir for this runYOUTUBE_FETCHER_DIR for a persistent directory~/yt_transcripts/ by default# Save this note to an Obsidian vault
python3 scripts/fetch_transcript.py URL --output-dir ~/Notes/MyVault
# Set a persistent default
export YOUTUBE_FETCHER_DIR=~/Notes/MyVault
python3 scripts/fetch_transcript.py URL
# Save to one exact file
python3 scripts/fetch_transcript.py URL --output ~/Notes/video.md
Every format preserves an existing destination and exits with code 3, before
making a network request when the destination is already known. This is the same
in terminals and agent sessions; there is no hidden interactive prompt. --force
replaces the chosen file completely, including any annotations. A default
Markdown refresh reuses the existing note's path even if its title or capture date
has changed. An explicit --output is honored independently of other notes for
the same video, so distinct files can hold different languages or versions.
Writes use a temporary file beside the destination. Where the filesystem supports hard links, a new file appears only once its UTF-8 content is complete. Other filesystems use exclusive creation: they still refuse to open an existing file for writing, but a new file can be visible during the write. Handled write failures remove that partial file; abrupt termination or disk failure can leave it behind. Forced refreshes replace a completed temporary file and preserve existing POSIX permission modes. New notes use normal file-creation permissions.
If another process creates the destination during a fetch, the non-force write
still refuses to overwrite it. --stdout prints only the result
and creates no file, even when output-path options are present; diagnostics go to
stderr.
# Prefer French, then German, with English as the final fallback
python3 scripts/fetch_transcript.py --lang fr,de -- URL
# Require Japanese captions; fail clearly if unavailable
python3 scripts/fetch_transcript.py --lang ja --strict-lang -- URL
# Capture available captions when you do not know their language
python3 scripts/fetch_transcript.py --lang auto -- URL
# Explicit YouTube machine translation of an available track into English
python3 scripts/fetch_transcript.py --lang auto --translate en -- URL
# Inspect caption tracks and supported translation targets
python3 scripts/fetch_transcript.py --list -- URL
Language preference outranks caption type. For each requested language, exact
codes are tried before regional variants (es can select es-MX); manual
captions win within that match. All requested languages precede English fallback.
--strict-lang disables that fallback, while still allowing regional variants.
The default remains --lang en for compatibility.
auto selects a manual track if available, otherwise a generated track, using
YouTube's track order for ties. It does not establish the original audio
language. Selection and fallback are reported to stderr and recorded in the note.
Translation happens only with --translate, requires support from YouTube, and
is never described as a human translation.
Markdown records requested_language, source_language, language (the actual
output language), caption_type (the original track's type), translated, and
translation_provider when applicable. metadata_source distinguishes yt-dlp,
oembed, unavailable, and deliberately skipped metadata. Existing frontmatter
keys remain compatible. JSON keeps its existing array of {text, start, duration}
objects; raw exports have no provenance wrapper, so retain stderr or use Markdown
when that context matters.
python3 scripts/fetch_transcript.py --stdout --timestamps -- URL
python3 scripts/fetch_transcript.py --format txt --stdout -- URL
python3 scripts/fetch_transcript.py --format json --output captions.json -- URL
python3 scripts/fetch_transcript.py --format srt -- URL
python3 scripts/fetch_transcript.py --format vtt -- URL
text and markdown both produce an archival Markdown note; txt produces plain
caption text. Timestamped Markdown and chapter lists link to the corresponding
video time. Raw exports skip metadata requests. A raw ID starting with - works
after --; put all options before that separator.
| Flag | What it does |
|---|---|
--output / -o |
Save to one exact file |
--output-dir |
Save inside a directory or knowledge vault |
--timestamps / -t |
Add linked Markdown timestamps or plain timestamps in txt |
--lang / -l |
One code, ordered comma-separated codes, or auto; default en |
--strict-lang |
Disable English fallback |
--translate |
Explicit YouTube machine translation to a target language |
--source / -s |
Override the capture-project name |
--format / -f |
text/markdown (default), txt, json, srt, or vtt |
--no-description |
Skip the description and chapters section |
--no-metadata |
Skip yt-dlp and oEmbed while retaining captions and source URL |
--timeout |
Connect/read timeout per HTTP request, in seconds; default |