/esso0428-skills:distilling-youtube-channelfrom esso0428-skills
把一個 YouTube 頻道從 inventory 一路帶到有 provenance 的蒸餾前證據(字幕、ASR、AGY 補證、source chunks、語意審查、Wiki 與 coverage)。
Ships in esso0428-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Entry skill: takes a YouTube channel from inventory to provenance-backed evidence that a downstream distillation step can consume. Each stage names its command, a Completion check, and the sub-skill that owns the detail.
**必讀規則:**開始前讀 ../../RULES.md,它是授權、磁碟、AGY、ASR 停止門檻與 provenance 的單一真實來源。逐階段旗標與路徑見 references/commands.md。
路徑慣例:<collection-root> 是含 pyproject.toml 的集合根(從本檔往上兩層),$W 代表 workspace(--workspace > $YTD_WORKSPACE > cwd;布局見集合 README.md)。命令寫成 uv run --project <collection-root> python -m channel_distill <sub> --workspace $W ...,或 uv run --project <collection-root> python <collection-root>/skills/<skill>/scripts/<script>.py ...。需要 yt-dlp、ffmpeg、ffprobe 在 PATH(或 $YTD_FFMPEG_DIR)。
Stages run in order; finish one (its Completion check) before the next. A terminal gap stays a gap; RULES.md decides retries.
Inventory — inventory --channel-id <UC...> (add --skip-playlists when playlists are not needed). Owner: acquiring-video-sources.
Completion: $W/data/manifest/videos.json lists every channel video once, with ID, URL, title, playlist links, visibility.
Captions and metadata — collected inside the acquisition run (stage 3); official or automatic timed captions come first. Completion: each video records its transcript type (official, automatic, none) and keeps the raw timed cues.
Authorised download and verification — pick explicit video IDs with the user, then plan-download (storage preflight) and download --topic <topic> [--video-id <id>], or the frozen-batch route acquire_video_batch.py freeze → plan → run --execute. Show the user the size estimate and get approval before any download.
Completion: each selected video has a local file that passed ffprobe and a manifest status; failed downloads are listed by ID.
ASR fallback — only for verified local videos with no usable caption: transcribe --video-id <id> [--postprocess]. Owner: recovering-asr.
Completion: each video is READY, READY_PARTIAL (offsets listed) or ASR_FAILED (reason recorded).
Bounded gap supplement — only ASR_SEGMENT_UNAVAILABLE / READY_PARTIAL intervals. Owner: supplementing-asr-gaps.
Completion: every gap has one evidence packet or an explicit unavailable result.
AGY fallback planning — video_batch_report.py --stage acquisition, then --stage agy-plan for whole-video failures. Planning and reports are the agent's; bulk agy_batch_jobs.py run --execute is only handed to the user as a pasteable command after the user picks scope and usage cap. Skip this stage when agy is not installed. Owner: acquiring-video-sources.
Completion: expected, verified, transcribed, repaired and failed ID sets partition the frozen batch (--stage final); otherwise stop and fix before stage 7.
Pre-distillation prep — prepare-sources (source chunks), build-reading-views, then transcript-first semantic review with scripts/build_semantic_review.py. Frame extraction (extract_video_frames.py, see ../../docs/selective-review-workflow.md) is selective follow-up, not a gate.
Completion: each readable video has source chunks, a reading view and a semantic-review record; unreadable ones carry SEMANTIC_REVIEW_BLOCKED_SOURCE_GAP.
Wiki and coverage — wiki-gate --record <record.json> (CLI wrapper of ../llm-wiki/scripts/wiki_gate.py) per terminal record, then audit-coverage and compile-wiki. Owner: llm-wiki.
Completion: gate outcome is COMPILE, COMPILE_WITH_GAPS or RECORD_BLOCKED for every record, and $W/data/manifest/coverage-report.json lists the remaining gaps.
The user holds a coverage report plus source chunks, reading views and semantic-review records with video ID, URL, time range, transcript type and status for each video, and every gap is named. Distillation itself happens downstream, outside this collection.
build_semantic_review.py and the CLI take their paths from the workspace; for a second channel use a separate workspace.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub esso0428/skills --plugin esso0428-skills15 skills in this plugin
/acquiring-video-sources建立官方 YouTube 頻道/playlist inventory、收集 metadata 與字幕、下載已授權影片,並規劃失敗項目的 AGY fallback;不做內容解讀。/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./data-repo-gitignore資料型 / ML repo 的 .gitignore 策略(資料類目錄各自的 .gitignore + root 全域副檔名排除 + git check-ignore 驗證)。在設定、檢查或修正含有資料、dataset、模型輸出、報表或大型二進位檔的 repo 的 .gitignore 時使用;新增資料目錄或會產出檔案的流程時,或使用者擔心大檔(npz、pt/pkl 模型、圖片、csv/xlsx 表格、VCF 等基因型檔)會被 git 收進去時也使用,即使沒有提到 gitignore。