agentleFS
yinbaozongyinbaozong/Youtube-note-forge/SKILL.md

youtube-transcript

Skill1 starsChanged 3 months 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.

36 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use markdown-converter, context7 and 6 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.
  • bongartzdiazSkill

    markdown-converter

    Convert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, or EPubs to Markdown format for LLM processing or text analysis.

    Also in 3 projects that use this

  • bongartzdiazSkill

    context7

    Retrieve up-to-date documentation for software libraries, frameworks, and components via the Context7 API. This skill should be used when looking up documentation for any programming library or framework, finding code examples for specific APIs or features, verifying correct usage of library functions, or obtaining current information about library APIs that may have changed since training.

    Also in 4 projects that use this

  • LangChainSkill

    file-organizer

    Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.

    Also in 3 projects that use this

  • ttmouseSkill

    notebooklm

    Automate Google NotebookLM - create notebooks, add sources, generate podcasts/videos/quizzes, download artifacts. Supports browser-based content extraction for anti-crawler platforms (Twitter/X, LinkedIn, etc.). Activates on explicit /notebooklm or intent like "create a podcast about X

    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

  • MicrosoftSkill

    skill-creator

    Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.

    Also in 7 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 30 edited versions we read keep these.

  • 7

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

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

    line 60
  4. Distinctive:

    Keep planned frames even when their overall layouts look similar.

    line 64
  5. Very specific:

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

    line 65
  6. Distinctive:

    Do not create Canvas files.

    line 66
  7. Distinctive:

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

    line 73
  8. Very specific:

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

    line 75
  9. Distinctive:

    Remove the self-check checklist before final completion.

    line 79

“Common” is measured: kept by at least 6 in 10 of the 30 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.1.3

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.

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 skill_version: 4.1.3, quality_profile_version: 1, and a valid frame_manifest written by extract_frames.py.
  • 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); omit only ABBR when no accepted abbreviation exists. The terminology table must include the English full name and a Chinese contextual explanation.
  • 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.