{"id":51129951,"url":"https://github.com/osisdie/claude-loop-commands","last_synced_at":"2026-06-25T11:01:32.161Z","repository":{"id":342930144,"uuid":"1175641177","full_name":"osisdie/claude-loop-commands","owner":"osisdie","description":"Automated daily AI news digest powered by Claude Code's `/loop` feature. Gathers international AI news across 6 categories, summarizes them bilingually (English titles + Traditional Chinese summaries), and posts a formatted digest to Slack.","archived":false,"fork":false,"pushed_at":"2026-04-04T01:06:30.000Z","size":394,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T03:13:01.374Z","etag":null,"topics":["ai","automation","bilingual","claude","claude-code","news-digest","python","slack","youtube"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osisdie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-08T01:10:11.000Z","updated_at":"2026-04-04T01:06:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/osisdie/claude-loop-commands","commit_stats":null,"previous_names":["osisdie/ai-claude-loop","osisdie/claude-loop-commands"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/osisdie/claude-loop-commands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osisdie%2Fclaude-loop-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osisdie%2Fclaude-loop-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osisdie%2Fclaude-loop-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osisdie%2Fclaude-loop-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osisdie","download_url":"https://codeload.github.com/osisdie/claude-loop-commands/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osisdie%2Fclaude-loop-commands/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34771664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","automation","bilingual","claude","claude-code","news-digest","python","slack","youtube"],"created_at":"2026-06-25T11:01:30.188Z","updated_at":"2026-06-25T11:01:32.137Z","avatar_url":"https://github.com/osisdie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI News Digest\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![Python 3.12+](https://img.shields.io/badge/Python-3.12+-blue.svg)](https://www.python.org/)\n[![Lint](https://github.com/osisdie/ai-claude-loop/actions/workflows/lint.yml/badge.svg)](https://github.com/osisdie/ai-claude-loop/actions)\n[![Last Commit](https://img.shields.io/github/last-commit/osisdie/ai-claude-loop)](https://github.com/osisdie/ai-claude-loop/commits/main)\n\nAutomated daily AI news digest powered by Claude Code's `/loop` feature. Posts bilingual digests (English + Traditional Chinese) to Slack `#update-vibe`.\n\nTwo digest types:\n- **News Digest** — Web news across 6 AI categories\n- **YouTube Digest** — Video summaries from [@AIDailyBrief](https://www.youtube.com/@AIDailyBrief) with PDF exports\n\n## Demo\n\n![YouTube Digest Example](docs/screenshots/example-ai-news-digest-yt.png)\n\n## Setup\n\n1. Install Python dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n2. Install system dependencies:\n\n   | Tool | Purpose | Install |\n   |------|---------|---------|\n   | `yt-dlp` | Fetch YouTube videos \u0026 metadata | `pip install yt-dlp` |\n   | `ffmpeg` | Audio extraction for Whisper | [ffmpeg.org](https://ffmpeg.org/download.html) |\n   | `google-chrome` | Headless PDF generation | [chrome](https://www.google.com/chrome/) |\n   | `b2` | Backblaze B2 CLI for uploads | `pip install b2` |\n\n3. Copy `.env.example` to `.env` and fill in credentials:\n   ```bash\n   cp .env.example .env\n   ```\n\n4. Required environment variables:\n   | Variable | Purpose |\n   |----------|---------|\n   | `SLACK_BOT_TOKEN` | Slack Bot Token (`xoxb-...`) with `chat:write` scope |\n   | `SLACK_CHANNEL_ID` | Channel ID for `#update-vibe` |\n   | `SLACK_WEBHOOK_URL` | (Optional) Webhook fallback |\n   | `B2_KEY_ID` | Backblaze B2 key ID (for YT digest PDF uploads) |\n   | `B2_APP_KEY` | Backblaze B2 application key |\n   | `B2_BUCKET_NAME` | B2 bucket name (e.g. `claw-dir`) |\n   | `HF_TOKEN` | HuggingFace token (Whisper fallback for transcripts) |\n\n5. Invite your Slack bot to `#update-vibe`:\n   ```\n   /invite @YourBotName\n   ```\n\n## Usage\n\n### News Digest\n\n```bash\n/ai-news-digest-news           # Run once\n/loop 24h /ai-news-digest-news # Run every 24h\n```\n\nSearches 6 AI news categories via WebSearch, fetches articles, deduplicates against previous runs, and posts a bilingual summary to Slack.\n\n### YouTube Digest\n\n```bash\n/ai-news-digest-yt             # Run once\n/loop 24h /ai-news-digest-yt   # Run every 24h\n```\n\nPipeline:\n1. Fetch recent videos from @AIDailyBrief (last 48h)\n2. Extract transcripts (subtitles → Whisper fallback)\n3. Claude generates bilingual summaries (EN + zh-TW)\n4. Build HTML → PDF via headless Chrome\n5. Upload PDFs to Backblaze B2 (presigned URLs, 7-day expiry)\n6. Post digest with summaries + PDF links to Slack\n\n## Project Structure\n\n```\n.claude/commands/\n  ai-news-digest-news.md        — News digest slash command\n  ai-news-digest-yt.md          — YouTube digest slash command\n\nscripts/\n  slack_notify.sh                — Slack posting (Bot Token + webhook fallback)\n  yt/\n    fetch_recent_videos.py       — List recent videos (yt-dlp + date filter + dedup)\n    get_transcript.py            — Extract transcript (subs → Whisper fallback)\n    build_html.py                — Markdown → styled HTML\n    build_pdf.py                 — HTML → PDF (headless Chrome)\n    upload_b2.py                 — Upload to B2, returns presigned URL\n\ndigest-news/YYYY-MM-DD/         — News digest backups (gitignored)\ndigest-yt/YYYY-MM-DD/           — YT digest outputs (gitignored)\n.state/                          — Dedup state files (gitignored)\n```\n\n## News Categories\n\n| Emoji | Category |\n|-------|----------|\n| 🧠 | LLM / Foundation Models |\n| 📦 | AI Products \u0026 Applications |\n| ⚖️ | AI Policy \u0026 Regulation |\n| 🔬 | AI Research Papers |\n| 💼 | Industry \u0026 Business |\n| 🔓 | Open Source AI |\n\n## Limitations\n\n- `/loop` has a max duration of ~3 days — restart periodically\n- WebSearch availability may vary by region\n- Slack messages auto-split if exceeding ~4000 char limit\n- B2 presigned URLs expire after 7 days by default\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosisdie%2Fclaude-loop-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosisdie%2Fclaude-loop-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosisdie%2Fclaude-loop-commands/lists"}