wlzh-youtube-tracker
Skill694 starsChanged 3 months agoMITView on GitHub
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.
- Reads credentials
In this repository14 other files it gives its agents.
- audiocut-keywordSkill
- code-roasterSkill
- image-generatorSkill
- quark-mswnlz-publisherSkill
- text-to-speechSkill
- youtube-downloaderSkill
- video-voice-changerSkill
- voice-changerSkill
- vps-security-hardeningSkill
- wespy-fetcherSkill
- wlzh-invoice-scannerSkill
- x-fetcherSkill
- youtube-publisherSkill
- youtube-to-blog-postSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Atomic seen marking: Only marks video as seen AFTER successful Telegram send
- Very specific: line 19
Reads bot token from
~/.openclaw/openclaw.json: No extra config needed - Distinctive: line 20
Fallback mode: If bot token unavailable, falls back to stdout output for LLM relay
- Distinctive: line 34
Parallel HTTP fetching: All channels now fetch concurrently (15 parallel curl processes)
- Distinctive: line 40
No more ~24k tokens consumed per check
- Distinctive: line 61
Add / remove / list tracked channels (input can be URL / @handle / channelId)
- Distinctive: line 68
All state is stored inside this Skill folder:
- Distinctive: line 75
Run from this skill directory:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
notifysends 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:
notifymarked 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
notifycommand: 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_PROXYenv vars, falls back tohttp://127.0.0.1:10808 - Replaced
fetch()API calls withcurlviaexecSyncfor 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 checkCron 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_OKLegacy: 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 "发现" foundOutput formats
check command (original)
频道:最佳拍档
标题:Anthropic呼吁按下AI暂停键?
链接:https://www.youtube.com/watch?v=xxxnotify command (Telegram-ready)
📺 最佳拍档
🎬 Anthropic呼吁按下AI暂停键?
🔗 https://www.youtube.com/watch?v=xxxMigration from v1.x / v2.x
- Existing
state/config.jsonandstate/seen.jsonare fully compatible checkcommand output unchanged (backwards compatible)- New
notifycommand is optional, designed for cron use
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
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.

