← 返回
AI智能 中文

YouTube Archiver

Archive YouTube playlists into markdown notes with metadata, transcripts, AI summaries, and tags. Use when a user asks to import/sync YouTube playlists, arch...
将YouTube播放列表归档为包含元数据、字幕、AI摘要和标签的Markdown笔记。当用户请求导入或同步YouTube播放列表时使用。
benmillerat
AI智能 clawhub v1.0.0 1 版本 99825.5 Key: 无需
★ 1
Stars
📥 552
下载
💾 15
安装
1
版本
#latest

概述

YouTube Archiver

Use this skill to import YouTube playlists into markdown files and optionally enrich notes with transcript, summary, and tagging.

Requirements

  • Python 3.7+
  • yt-dlp (pip install yt-dlp or brew install yt-dlp)
  • A browser signed into YouTube (for private playlists like Liked/Watch Later)
  • macOS: terminal needs Full Disk Access to read browser cookies
  • Windows: browser cookie extraction can be flaky; cookies_file export is the safer path
  • Linux: works on desktop installs; headless servers need cookies_file

First-run setup flow (interactive)

If no config exists at /.config.json, ask these questions before running scripts.

Required questions

  1. Where should archived notes be stored?
    • Default: ./YouTube-Archive
  2. Which playlists should be archived?
    • Accept playlist IDs or URLs
    • Default: LL (Liked Videos), WL (Watch Later)
  3. Which browser is signed into YouTube for cookie auth?
    • Default: chrome

Optional enrichment questions

Ask only if the user wants summaries/tags.

  1. Generate AI summaries? (yes/no)
  2. Summary provider? (openai, gemini, anthropic, openrouter, ollama, none)
  3. Summary model name?
  4. API key env var name?
  5. Enable auto-tagging? (yes/no)
  6. Tagging provider/model/env var?
  7. Keep default tags or define custom vocabulary?

First-run execution sequence

  1. Run init:
    • python3 /scripts/yt-import.py --output --init
  2. Edit /.config.json from the user’s answers.
  3. Verify auth with dry run:
    • python3 /scripts/yt-import.py --output --dry-run
  4. Run real import.
  5. Run enrichment (optional):
    • python3 /scripts/yt-enrich.py --output --limit 10

One-shot quick start

Use this for immediate manual sync:

python3 <skill>/scripts/yt-import.py --output <output-dir>
python3 <skill>/scripts/yt-enrich.py --output <output-dir> --limit 10

Useful import flags:

  • --dry-run
  • --playlist (repeatable)
  • --no-summary
  • --no-tags
  • --cookies
  • --browser

Useful enrich flags:

  • --dry-run
  • --limit
  • --strict-config

Idempotency and safety behavior

  • Import skips already archived videos by video_id.
  • Filenames include video ID: Title [video_id].md.
  • Enrichment skips notes where frontmatter has enriched: true.
  • Lockfile prevents concurrent runs: /.yt-archiver.lock.

Automation with cron (single-agent default)

Offer cron only after one successful manual run.

Example schedule (daily 11:00):

  1. Import new videos
  2. Enrich a bounded batch

Example task text:

  • Run yt-import.py for , then run yt-enrich.py --limit 10 for the same output.

Keep it single-agent by default. Do not assume multi-agent routing.

Troubleshooting and provider details

Read these references when needed:

  • Provider setup, model suggestions, cost: references/providers.md
  • Common failures and fixes: references/troubleshooting.md
  • Default summary prompt template: references/default-summary-prompt.md

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 05:12 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,232
developer-tools

Supermarket Deals (DE)

benmillerat
通过Marktguru搜索德国超市(Aldi、Lidl、REWE、EDEKA、Kaufland)传单优惠,结果按每升最佳价格(EUR/L)排序。无需API...
★ 1 📥 775
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,076