跳到正文
cccskills
免费在 GitHub 公开

wlzh-youtube-tracker

Track YouTube channels for new uploads. Supports both RSS mode (no API key needed, unlimited quota) and API mode. Use when: add/remove/list tracked YouTube channels, check for new videos, or run scheduled YouTube channel monitoring.

中文简介正在准备中。当前显示原文说明。

集成工具TelegramYouTube

实测评分 未实测

查看安装方法

包含的文件(11)

  • SKILL.md5.3 KB
  • README.md2.8 KB
  • README.zh-CN.md2.5 KB
  • scripts/cron-run.sh393 B
  • scripts/run-check.sh197 B
  • scripts/youtube-tracker-rss.js21.4 KB
  • scripts/youtube-tracker.js10.3 KB
  • state/channels-import.json918 B
  • state/config.json.example37 B
  • state/seen-videos.json32.8 KB
  • state/seen.json.example37 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

wlzh-youtube-tracker

A script-backed Skill to maintain a list of tracked YouTube channels and periodically check for new uploads.

v3.1.0 - Self-contained Telegram Sending (2026-06-06)

Critical reliability fix — script now sends Telegram directly, no LLM relay needed.

Changes

  • notify sends Telegram directly: Script calls Telegram Bot API itself, no LLM relay
  • Atomic seen marking: Only marks video as seen AFTER successful Telegram send
  • Auto-retry on failure: Failed sends stay "unseen", next cron cycle retries automatically
  • Reads bot token from ~/.openclaw/openclaw.json: No extra config needed
  • Fallback mode: If bot token unavailable, falls back to stdout output for LLM relay

Bug fix

  • v3.0.0 had a critical bug: notify marked videos as seen immediately upon detection, but Telegram sending was done by LLM. If LLM failed (rate limit/timeout), videos were lost forever — marked as seen but never sent. v3.1.0 fixes this completely.

v3.0.0 - Parallel Fetching + Notify Mode (2026-06-06)

Major performance optimization — parallel fetching, ~10x faster.

Changes

  • Parallel HTTP fetching: All channels now fetch concurrently (15 parallel curl processes)
  • ~10x faster: 55 channels check in ~4-5 seconds (was ~45 seconds with serial curl)
  • New notify command: Outputs Telegram-ready formatted messages (📺🎬🔗 format)

  • Eliminates timeout failures (the #2 failure cause)
  • No more ~24k tokens consumed per check
  • Success rate expected: ~99% (was ~64%)

Why this matters

  • Previous cron used isolated agentTurn: LLM → exec script → LLM interpret → send
  • Each run consumed 24-95k tokens and took 45-180s, frequently hitting API rate limits
  • New approach: systemEvent → exec script (4s) → send if needed → done

v2.1.0 - Proxy Support (2026-06-05)

Fix: Added automatic proxy support for YouTube RSS feeds.

  • YouTube is inaccessible from China without proxy; all HTTP requests now route through proxy
  • Auto-detects proxy from HTTPS_PROXY / HTTP_PROXY env vars, falls back to http://127.0.0.1:10808
  • Replaced fetch() API calls with curl via execSync for consistent proxy routing

v2.0.0 - RSS Mode (2026-03-17)

Breaking change: Now uses YouTube RSS feeds by default - no API key needed, no quota limits!

What it does

  • Add / remove / list tracked channels (input can be URL / @handle / channelId)
  • On add, it will baseline (mark the channel's current latest videos as seen)
  • On check, prints only new videos since last run with channel name, title, video URL
  • On notify, prints Telegram-formatted output (📺🎬🔗) for direct cron use

Data files

All state is stored inside this Skill folder:

  • state/config.json (tracked channels, no API key needed for RSS mode)
  • state/seen.json (dedupe: already announced video ids, keeps up to 2000)

Commands

Run from this skill directory:

# RSS mode (recommended, no API key needed)
node scripts/youtube-tracker-rss.js add "https://www.youtube.com/@veritasium"
node scripts/youtube-tracker-rss.js add "@veritasium"
node scripts/youtube-tracker-rss.js add "UCddiUEpeqJcYeBxX1IVBKvQ"
node scripts/youtube-tracker-rss.js list
node scripts/youtube-tracker-rss.js remove "UCddiUEpeqJcYeBxX1IVBKvQ"
node scripts/youtube-tracker-rss.js check    # original output format
node scripts/youtube-tracker-rss.js notify   # Auto-sends to Telegram, marks seen on success

# API mode (legacy, requires API key)
node scripts/youtube-tracker.js set-key "YOUR_YT_API_KEY"
node scripts/youtube-tracker.js validate-key
node scripts/youtube-tracker.js add "@veritasium"
node scripts/youtube-tracker.js check

Cron usage

Recommended (v3.0+): systemEvent mode

Uses notify command + systemEvent cron target — no LLM needed per check.

Cron payload (isolated agentTurn):
  Execute `cd /Users/m./Documents/QNSZ/project/skills/wlzh-youtube-tracker && node scripts/youtube-tracker-rss.js notify`
  Script auto-sends new videos to Telegram topic 1016 via Bot API.
  Only marks seen on successful send — failed videos retry next cycle.
  stdout 有内容 → 逐条发到 Telegram
  stdout 为空 → HEARTBEAT_OK

Legacy: agentTurn mode

Previous approach using isolated LLM session. Higher overhead, subject to API rate limits.

Legacy (agentTurn with LLM relay — not recommended):
  Run `cd .../wlzh-youtube-tracker && node scripts/youtube-tracker-rss.js check`
  Interpret stdout, send if "发现" found

Output formats

check command (original)

频道:最佳拍档
标题:Anthropic呼吁按下AI暂停键?
链接:https://www.youtube.com/watch?v=xxx

notify command (Telegram-ready)

📺 最佳拍档
🎬 Anthropic呼吁按下AI暂停键?
🔗 https://www.youtube.com/watch?v=xxx

Migration from v1.x / v2.x

  • Existing state/config.json and state/seen.json are fully compatible
  • check command output unchanged (backwards compatible)
  • New notify command is optional, designed for cron use

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

音频关键字过滤工具 - 根据关键字配置自动识别并删除音频中的指定内容

中文简介正在准备中。当前显示原文说明。

wlzh/skills6922026年10月11日 更新

🔥 用 Gordon Ramsay 风格毒舌吐槽代码质量,生成搞笑且实用的代码审查报告

中文简介正在准备中。当前显示原文说明。

wlzh/skills6922026年10月11日 更新

通用图片生成 Skill,支持多种 AI 模型(ModelScope、Gemini、RunningHub 等),可被其他 Skills 调用

中文简介正在准备中。当前显示原文说明。

wlzh/skills6922026年10月11日 更新

Automate the full QuarkPanTool → mswnlz GitHub content publishing pipeline. Supports Quark / Baidu / Aliyun drives with multi-account rotation. Use when the user provides share URLs and wants: (1) auto-detect drive type and route to correct handler, (2) save resources with automatic account rotation, (3) clean junk files from shared folders, (4) copy promotional files into each folder, (5) generate permanent encrypted share links, (6) auto-classify items into local content dirs (book/movies/AIknowledge/tools/etc.), (7) append/update YYYYMM.md and README index, (8) local git commit, (9) send unified Telegram notifications to multiple groups, (10) rebuild site and deploy to Cloudflare Pages.

中文简介正在准备中。当前显示原文说明。

wlzh/skills6922026年10月11日 更新

文本转语音工具 - 默认 MiniMax TTS,支持切换 Edge TTS 和 Kokoro TTS (v1.1-zh)

中文简介正在准备中。当前显示原文说明。

wlzh/skills6922026年10月11日 更新

视频变声处理工具 - 从视频提取音频,调用 voice-changer skill 变声后合并回视频。用户要求视频变声、给视频换声音、视频音色转换或处理视频音频时使用。

中文简介正在准备中。当前显示原文说明。

wlzh/skills6922026年10月11日 更新

查看 wlzh 的全部技能

报告此技能的问题