AGENT SKILL

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

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-modeling for 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

  1. Stdlib-first, dependency-free, and network-free. The validate and render paths use only the Python standard library. No packages are installed and no network calls are made.
  2. 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.
  3. Strict host allowlist. Hosts are read from data/bundle-integrations.json (youtube_fetcher.allowed_hosts) and the BUNDLE_YOUTUBE_HOSTS environment variable (comma-separated). Similar-looking hosts are rejected.
  4. 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.
  5. 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.
  6. Duplicate preservation unless explicitly approved. An existing note is never overwritten unless --overwrite is given in addition to --write --approve.
  7. 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.
  8. Raw transcript stays separate from summaries/inferences. The ## Raw transcript section contains only the provided text. Summaries or interpretations go through knowledge-modeling, not into this note.
  9. Containment and atomic writes. Output is written under the configured output directory only (youtube_fetcher.output_dir in data/bundle-integrations.json, or BUNDLE_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.
  10. Handoff to structured extraction. Every note ends with a ## Next step section documenting how to pass the raw note to knowledge-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.

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

Leostruka
Leostruka/devin-bundle

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.

★ 0
Leostruka
Leostruka/devin-bundle

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.

★ 0
Leostruka
Leostruka/devin-bundle

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.

★ 0
Leostruka
Leostruka/devin-bundle

demo

Use when demonstrating a skill in a fixture project.

★ 0
Leostruka
Leostruka/devin-bundle

duplicate-skill

Use when testing duplicate skill name detection.

★ 0
Leostruka
Leostruka/devin-bundle

duplicate-skill

Use when testing duplicate skill name detection.

★ 0