youtube-fetcher
Use when you need to turn a YouTube URL and provider-supplied caption/metadata JSON into a raw, timestamped transcript + metadata Markdown note under `.devin/notes/youtube/` for later structured extraction, without auto-installing dependencies, invoking yt-dlp/Whisper, or calling the network. Not for publishing or posting to YouTube; use social-midia/youtube for that.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- youtube-fetcher
- version
- 1.0.0
- triggers
- [ "user" ]
- description
- Use when you need to turn a YouTube URL and provider-supplied caption/metadata JSON into a raw, timestamped transcript + metadata Markdown note under `.devin/notes/youtube/` for later structured extraction, without auto-installing dependencies, invoking yt-dlp/Whisper, or calling the network. Not for publishing or posting to YouTube; use social-midia/youtube for that.
02 资源文件 1
- 脚本scripts/fetch.py19.0 KB
03 SKILL.md 正文
youtube-fetcher
Deterministic, stdlib-first capture of YouTube transcripts and metadata into a configurable output directory. The skill only accepts caption + metadata JSON from a provider or fixture; it never installs youtube-transcript-api, requests, yt-dlp, or Whisper, and it never calls the network.
When to use
- A user gives you a YouTube URL and asks for a raw transcript note.
- A provider or fixture already hands you caption + metadata JSON.
- You want a deterministic Markdown artifact that separates raw transcript from any summary or inference.
- You intend to hand the note off to
knowledge-modelingfor entity/relation extraction.
When NOT to use
- You want the agent to auto-install
youtube-transcript-api,requests,yt-dlp, or Whisper. - You want the adapter to call YouTube, oEmbed, or any other network endpoint.
- You want summaries, bullet points, or inferred takeaways mixed into the raw transcript.
- You want to overwrite an existing note in the configured output directory without explicit approval.
Core operations
All output stays inside the configured output directory. Persistence requires both --write and --approve. No external dependency is installed or called by the skill.
| Operation | Purpose | Default output |
|---|---|---|
validate |
Check that a URL or bare ID is a supported YouTube reference. | { "video_id": "..." } to stdout |
render |
Render provider/fixture JSON into raw transcript + metadata Markdown. | Markdown to stdout; writes note only with --write --approve |
Usage
From the bundle root:
python skills/youtube-fetcher/scripts/fetch.py validate <url-or-id>
python skills/youtube-fetcher/scripts/fetch.py render <source.json> [project] [--write] [--approve] [--overwrite]
After installation the helper is available at ~/.config/devin/skills/youtube-fetcher/scripts/fetch.py.
Rules
- Stdlib-first, dependency-free, and network-free. The
validateandrenderpaths use only the Python standard library. No packages are installed and no network calls are made. - Provider JSON only. Captions and metadata must be supplied by a provider or fixture JSON. The adapter does not call YouTube, oEmbed, or any other endpoint.
- Strict host allowlist. Hosts are read from
data/bundle-integrations.json(youtube_fetcher.allowed_hosts) and theBUNDLE_YOUTUBE_HOSTSenvironment variable (comma-separated). Similar-looking hosts are rejected. - Input and output size limits. JSON inputs above 50 MiB and Markdown outputs above 100 MiB are rejected. No partial file is written on failure.
- Truthful language and caption type. The note records the language and caption type supplied by the provider. Missing values are recorded as
unknown; no value is invented. - Duplicate preservation unless explicitly approved. An existing note is never overwritten unless
--overwriteis given in addition to--write --approve. - Timestamps are preserved and validated, not fabricated. Each caption line keeps its start time; the rendered Markdown only includes timestamps that exist in the source. Negative or non-finite timestamps are rejected.
- Raw transcript stays separate from summaries/inferences. The
## Raw transcriptsection contains only the provided text. Summaries or interpretations go throughknowledge-modeling, not into this note. - Containment and atomic writes. Output is written under the configured output directory only (
youtube_fetcher.output_dirindata/bundle-integrations.json, orBUNDLE_YOUTUBE_OUTPUT_DIR, defaulting to.devin/notes/youtube/). Symlink components that would escape the target directory are rejected, and the temporary file is removed on any failure. - Handoff to structured extraction. Every note ends with a
## Next stepsection documenting how to pass the raw note toknowledge-modeling.
Source and license attribution
youtube-fetcher is conceptually adapted from JimmySadek/youtube-fetcher-to-markdown (MIT) after source review. No code, prompts, or templates are copied from the upstream project. The core implementation uses only the Python standard library.
- youtube-fetcher-to-markdown (MIT): https://github.com/JimmySadek/youtube-fetcher-to-markdown
- README: https://github.com/JimmySadek/youtube-fetcher-to-markdown/blob/main/README.md
- Skill: https://github.com/JimmySadek/youtube-fetcher-to-markdown/blob/main/SKILL.md
- Script: https://github.com/JimmySadek/youtube-fetcher-to-markdown/blob/main/scripts/fetch_transcript.py
- License: https://github.com/JimmySadek/youtube-fetcher-to-markdown/blob/main/LICENSE
Cross-references
/knowledge-modeling— extract entities, relations, and evidence from the raw note produced by this skill./research— verify upstream source claims and integration options./mcp-governance— measure tool-definition cost before enabling any MCP-based fetch provider.
04 同仓库更多 Skills
montador-de-ideias
Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening/optimization, and high-impact contact surfaces.
git-github-adaptive-engineering
Use when any task touches git history, GitHub issues/PRs/releases/CI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit/PR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug/finish skills.
adaptive-agenda-calendar-routine-engine
Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions/gcal/wrapper.py.
demo
Use when demonstrating a skill in a fixture project.
duplicate-skill
Use when testing duplicate skill name detection.
duplicate-skill
Use when testing duplicate skill name detection.