agentleFS
yinbaozongyinbaozong/Video-Note-Forge/SKILL.md

youtube-transcript

Skill1 starsChanged 11 days agoMITView on GitHub

Use for YouTube, Bilibili, and other video URLs when the user wants a Chinese Obsidian learning note with SRT subtitles, transcript-guided screenshots, and a fixed fail-fast workflow. Run the provided scripts only; never use browser automation, Chrome for Testing, Puppeteer, Canvas, or unbounded retries.

59 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use research-prompt, ship-learn-next and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • matyasstochSkill

    research-prompt

    Write a single-paragraph Deep Research prompt to hand to a human researcher (or a deep-research AI). Use when the user wants a research brief, a "deep research prompt", a one-paragraph task for a researcher, or asks "what should our researcher look for". Produces ONE tight paragraph with full context, numbered sub-questions, and per-finding output format.

    Also in 3 projects that use this

  • michalparkolaSkill

    ship-learn-next

    Transform learning content (like YouTube transcripts, articles, tutorials) into actionable implementation plans using the Ship-Learn-Next framework. Use when user wants to turn advice, lessons, or educational content into concrete action steps, reps, or a learning quest.

    Also in 4 projects that use this

  • huskerjeffSkill

    youtube-search

    Search YouTube and extract video metadata and captions using yt-dlp. Use when the user wants to search YouTube, find video transcripts, research topics via YouTube, or feed video content into other tools like NotebookLM.

    Also in 4 projects that use this

  • michalparkolaSkill

    article-extractor

    Extract clean article content from URLs (blog posts, articles, tutorials) and save as readable text. Use when user wants to download, extract, or save an article/blog post from a URL without ads, navigation, or clutter.

    Also in 3 projects that use this

  • MicrosoftSkill

    web-search

    Also in 3 projects that use this

  • ArogyaReddySkill

    changelog-generator

    Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 49 edited versions we read keep these.

  • 8

    Distinctive

    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. Distinctive:

    Use this Skill as a strict state machine.

    line 10
  2. Distinctive:

    When the user asks for the current version, run:

    line 16
  3. Distinctive:

    Use demonstrations, interfaces, diagrams, parameters, comparison states, and results.

    line 62
  4. Distinctive:

    Keep planned frames even when their overall layouts look similar.

    line 66
  5. Very specific:

    Never claim completion unless frame_manifest exists and every required manifest frame appears in ## 详细内容总结.

    line 67
  6. Distinctive:

    Do not create Canvas files.

    line 68
  7. Distinctive:

    Read the shared contract before planning and writing: adapt science, DIY, reviews, and travel automatically.

    line 74
  8. Distinctive:

    Remove source status, video description, visual-material indexes, extraction warnings, task instructions, and self-check sections from the …

    line 77
  9. Very specific:

    When YAML contains a saved cover, place it once below the ## 一句话摘要 text.

    line 79
  10. Distinctive:

    Remove the self-check checklist before final completion.

    line 83

“Common” is measured: kept by at least 6 in 10 of the 49 edited versions of this file we could read. “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 Transcript v4.3.0

The primary full-product runtime is the youtube-note-reader Obsidian desktop plugin. It owns the deterministic state machine, calls the configured OpenAI-compatible model, runs these scripts, persists task state, and writes the finished note into the active Vault. The Chrome extension only supplies the current video URL and browser Cookie. OpenCode remains an optional Skill-only entry point and is not required by the full browser + Obsidian installation.

Use this Skill as a strict state machine. Do not improvise alternate extraction paths.

For Bilibili, use an ordinary https://www.bilibili.com/video/BV.../?p=N URL. The scripts use bilibili-api-python for authenticated metadata, WBI signing, subtitles and stream resolution; do not invoke yt-dlp for this platform. A BV plus its part identifies the material directory. Each part is one note; do not silently process a whole collection. Short links must first resolve to a video page. Login failures and risk controls are not evidence of absent subtitles. Burned-in text and danmaku are not subtitle files; ASR still requires explicit consent. Supply the platform cookie file with --cookies for Skill-only usage; never place credentials in prompts or notes.

Version

When the user asks for the current version, run:

python .obsidian/skills/youtube-transcript/scripts/video_note.py --version

Return the command output. Never answer from memory. It reports the installed version, source path, and SHA-256 values for the core files.

Fixed workflow

For each URL, complete the following steps before moving to the next URL. Stop the whole batch at the first non-zero script result.

  1. Extract source material:
python .obsidian/skills/youtube-transcript/scripts/extract_transcript.py "<url>" --output-dir "YouTube video" --deadline 300
  1. Read the generated note and its SRT. Create one JSON plan with article_outline and frames. article_outline contains 3-8 transcript-derived chapters; every item has section_id, title, start, end, core_claims, and learning_goal. Choose frames by learning value, normally one required frame for each visually meaningful chapter plus optional evidence for distinct steps or results. Most videos need 6-14 frames; 24 is only the hard safety limit, never a target. Do not create multiple near-identical time points merely to increase the count. Every frame has section_id, timestamp, purpose, and required. Use the same section_id to bind each screenshot to its detailed-summary chapter. Do not rename or rewrite the note yet. Do not write probe scripts or inspect video formats manually.
  2. Extract planned frames exactly once. After a successful materials result, this is the only allowed next executable command:
python .obsidian/skills/youtube-transcript/scripts/extract_frames.py "<url>" --plan "<plan.json>" --note "<generated-note.md>" --output-dir "YouTube video" --deadline 120
  1. Confirm that the frame result has status: ok, at least one screenshot, and a real manifest path. The script automatically writes frame_manifest into the note YAML. If any of these are missing, stop; do not write the final note and do not substitute the cover.
  2. Rename and rewrite the generated note in place according to references/note-contract.md. Under ## 详细内容总结, use every article_outline.title as an exact ### heading, explain its core claims, and insert every required successful frame into its matching chapter with a Chinese explanation. For vault-local screenshots, always use Obsidian wiki embeds such as ![[YouTube video/assets/VIDEO_ID/frame.jpg]]; never use an unescaped Markdown target containing spaces. Only images listed in the manifest count as screenshots.
  3. Validate:
python .obsidian/skills/youtube-transcript/scripts/validate_note.py "<finished-note.md>"
  1. If validation fails, edit only that note once and run the validator once more. Never run extraction, write temporary scripts, inspect implementation code, or diagnose platform behavior during this repair. If it still fails, stop and report the returned errors. After a successful validation, the validator removes only 待命名 - ... Markdown drafts in the same folder whose YAML url exactly matches the final note; unmatched interrupted drafts remain available for resume.

Failure policy

PIPELINE_RESULT is the source of truth. On status: error, stop immediately and report the URL, stage, code, message, action, completed URLs, and unstarted URLs.

Never respond to a failure by running another downloader, a browser, Puppeteer, Chrome/Edge cookie extraction, a web search, an audio recording, or a second attempt. The only controlled retry is inside the scripts: one last-known-good Cookie check and one video-stream URL refresh during targeted frame extraction.

ASR is disabled by default. Use --allow-asr only if the user explicitly accepts audio download and slower processing.

Visual requirements

  • Screenshots are evidence, not decoration.
  • Use demonstrations, interfaces, diagrams, parameters, comparison states, and results.
  • The frame script first uses a remote 720p-or-lower stream with yt-dlp request headers. If remote seek fails, it may download only an 8-second bounded segment around each planned time point. Temporary segments are deleted immediately and a complete video is never downloaded for screenshots.
  • A required frame failure or less than 70% frame-plan coverage is a hard failure.
  • A cover, thumbnail, manually copied image, or duplicate embed never counts as a keyframe.
  • Keep planned frames even when their overall layouts look similar. Terminal text, code, slides, and UI state changes are useful. Reject only effectively blank black/white frames; do not use OCR, AI image analysis, or perceptual duplicate filtering.
  • Never claim completion unless frame_manifest exists and every required manifest frame appears in ## 详细内容总结.
  • Do not create Canvas files.

Final note requirements

  • Filename: 中文标题 - English Title.
  • YAML contains the current skill_version, quality_profile_version: 2, writing_rules: explanatory-3, and a valid frame_manifest written by extract_frames.py.
  • Read the shared contract before planning and writing: adapt science, DIY, reviews, and travel automatically; explain unfamiliar concepts before evidence, results, and limitations. For a dense 25-minute video, aim for 5000-7000 Chinese characters without padding. Keep optional AI extensions separate from source content.
  • Include distinct, connected Mermaid process and concept diagrams, not lists masquerading as diagrams. The shared contract defines evidence-aware captions and the optional-section rules.
  • Body begins at ## 一句话摘要 without a duplicate H1 title.
  • Remove source status, video description, visual-material indexes, extraction warnings, task instructions, and self-check sections from the final body; YAML already carries source metadata.
  • Professional terminology must first appear as 中文术语(English Full Name, ABBR). The glossary must have four columns: 中文术语 | 缩写 | English Full Name | 中文解释. Preserve standard abbreviations such as VLA, DoF and CAD alongside their full names; never omit an abbreviation that the source defined. Use — only when no established abbreviation exists; never invent one. Example: 视觉语言动作模型 | VLA | Vision-Language-Action | 结合视觉、语言与动作的模型。 Full names cannot be replaced by abbreviations.
  • When YAML contains a saved cover, place it once below the ## 一句话摘要 text. Do not create a placeholder when no cover was extracted, and never count the cover as a keyframe.
  • Let the transcript determine the article outline and depth. Images support the explanation; never shorten or omit important content merely because a matching frame is unavailable.
  • Match article depth to video duration. Every planned chapter needs a real explanation, video evidence or example, and a clear learning implication. Avoid generic filler and repeated paragraphs.
  • Link the SRT at the end. Do not paste raw transcript text.
  • Remove the self-check checklist before final completion.

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.