ai-news-aggregator-sl
Fetches AI & tech news (default) or any custom topic (crypto, geopolitics, etc.) from RSS feeds, Tavily search, Twitter/X, and YouTube. Writes an English editorial digest using OpenAI by default (or DeepSeek / Claude), then posts it to Discord. Supports any time range (today, last 3 days, last week). Trigger when user asks for news, a digest, trending topics, or YouTube updates on any subject.
What this skill does
# ๐ฆ AI News Aggregator Collects news on any topic, writes an English editorial digest using your choice of AI provider, and posts it to Discord. **Default (AI topic):** TechCrunch ยท The Verge ยท NYT Tech (RSS) + curated AI YouTube channels **Custom topics:** Tavily news search + YouTube topic search (no Shorts, sorted by views) **AI providers:** OpenAI (default) ยท DeepSeek ยท Anthropic Claude โ switchable per request --- ## Network Endpoints | Endpoint | Purpose | Condition | |----------|---------|-----------| | `https://api.deepseek.com/chat/completions` | AI editorial summarisation | Always (required) | | `https://discord.com/api/webhooks/...` | Post digest to Discord | Always (required) | | `https://techcrunch.com/.../feed/` | RSS news (AI topic) | Default AI topic only | | `https://www.theverge.com/rss/...` | RSS news (AI topic) | Default AI topic only | | `https://www.nytimes.com/svc/collections/...` | RSS news (AI topic) | Default AI topic only | | `https://api.tavily.com/search` | Custom topic news search | Only if `TAVILY_API_KEY` set | | `https://api.twitterapi.io/twitter/tweet/advanced_search` | Twitter search | Only if `TWITTERAPI_IO_KEY` set | | `https://www.googleapis.com/youtube/v3/...` | YouTube search | Only if `YOUTUBE_API_KEY` set | The script does **not** contact OpenAI endpoints. The `openai` package is used solely as an HTTP client pointed at `https://api.deepseek.com`. `OPENAI_API_KEY` is explicitly removed from the environment at startup. --- ## Usage Examples - "Get today's AI news" - "Collect news about crypto" - "Last week's news about climate change" - "What's trending in AI today?" - "Get crypto news from the last 3 days using OpenAI" - "Show me recent Bitcoin YouTube videos" - "Summarise WWIII news with Claude" - "AI news using GPT-4o" - "AI news dry run" *(preview without posting to Discord)* - "Test my Discord webhook" --- ## API Keys | Key | Required | Where to get it | |-----|----------|----------------| | `DISCORD_WEBHOOK_URL` | โ Always | Discord โ Channel Settings โ Integrations โ Webhooks โ Copy URL | | `DEEPSEEK_API_KEY` | If using DeepSeek (default) | [platform.deepseek.com/api_keys](https://platform.deepseek.com/api_keys) | | `OPENAI_API_KEY` | If using OpenAI | [platform.openai.com/api-keys](https://platform.openai.com/api-keys) | | `ANTHROPIC_API_KEY` | If using Claude | [console.anthropic.com](https://console.anthropic.com) โ API Keys | | `TAVILY_API_KEY` | For custom topics | [app.tavily.com](https://app.tavily.com) | | `TWITTERAPI_IO_KEY` | Optional | [twitterapi.io](https://twitterapi.io) | | `YOUTUBE_API_KEY` | Optional | [console.cloud.google.com](https://console.cloud.google.com) โ YouTube Data API v3 | ## AI Providers & Models | Provider | `--provider` value | Default model | Best for | |----------|--------------------|---------------|---------| | OpenAI | `openai` **(default)** | `gpt-4o-mini` | Quality, reliability | | DeepSeek | `deepseek` | `deepseek-chat` | Cost-effective, fast | | Claude | `claude` | `claude-3-5-haiku-20241022` | Nuanced writing | Override per request using the `--provider` flag. Set a permanent non-default with `openclaw config set env.AI_PROVIDER '"deepseek"'`. Override the model with `--model` (e.g. `--model gpt-4o` or `--model claude-3-5-sonnet-20241022`). --- ## Implementation **IMPORTANT:** Always run `news_aggregator.py` using the steps below. Do NOT search the web manually or improvise a response โ the script handles all fetching, summarisation, and Discord posting. ### Step 1 โ Locate the script The script is bundled with this skill. Find it: ```bash SKILL_DIR=$(ls -d ~/.openclaw/skills/ai-news-aggregator-sl 2>/dev/null || ls -d ~/.openclaw/skills/news-aggregator 2>/dev/null) SCRIPT="$SKILL_DIR/news_aggregator.py" echo "Script: $SCRIPT" ls "$SCRIPT" ``` ### Step 2 โ Check uv is available ```bash which uv && uv --version || echo "uv not found" ``` If `uv` is not found, ask the user to install it from their system package manager or from [https://docs.astral.sh/uv/getting-started/installation/](https://docs.astral.sh/uv/getting-started/installation/). Do not run a curl-pipe-sh command on the user's behalf. ### Step 3 โ API keys Env vars are passed automatically by OpenClaw from its config. No `.env` file is needed. Verify the required keys are set (without revealing values): ```bash [[ -n "$OPENAI_API_KEY" ]] && echo "OPENAI_API_KEY: set" || echo "OPENAI_API_KEY: MISSING (required for default provider)" [[ -n "$DISCORD_WEBHOOK_URL" ]] && echo "DISCORD_WEBHOOK_URL: set" || echo "DISCORD_WEBHOOK_URL: MISSING" ``` If any are missing, ask the user to register them: ``` openclaw config set env.OPENAI_API_KEY '<key>' openclaw config set env.DISCORD_WEBHOOK_URL '<url>' # Optional alternatives: openclaw config set env.DEEPSEEK_API_KEY '<key>' openclaw config set env.ANTHROPIC_API_KEY '<key>' ``` ### Step 4 โ Parse the request Extract **topic**, **days**, and **provider** from what the user said: For AI provider: | User said | --provider | --model | |-----------|-----------|---------| | "use OpenAI" / "with GPT" / "using ChatGPT" | `--provider openai` | *(omit)* | | "use Claude" / "with Anthropic" | `--provider claude` | *(omit)* | | "use DeepSeek" / nothing specified | *(omit โ default)* | *(omit)* | | "use GPT-4o" / "with gpt-4o" | `--provider openai` | `--model gpt-4o` | | "use claude sonnet" | `--provider claude` | `--model claude-3-5-sonnet-20241022` | | "use deepseek reasoner" | `--provider deepseek` | `--model deepseek-reasoner` | Extract **topic** and **days** from what the user said: | User said | --topic | --days | |-----------|---------|--------| | "AI news" / "tech news" / nothing specific | *(omit โ default AI)* | 1 | | "crypto news" | `--topic "crypto"` | 1 | | "news about climate change" | `--topic "climate change"` | 1 | | "last week's crypto news" | `--topic "crypto"` | 7 | | "last 3 days of Bitcoin news" | `--topic "Bitcoin"` | 3 | | "yesterday's AI news" | *(omit topic)* | 1 | | "this week in AI" | *(omit topic)* | 7 | For report type: | User said | flag to add | |-----------|-------------| | "news" / "articles" / "digest" | `--report news` | | "trending" / "Twitter" / "YouTube" | `--report trending` | | "dry run" / "preview" / "don't post" | `--dry-run` | | "test Discord" / "test webhook" | `--test-discord` | | anything else | *(omit โ runs all)* | ### Step 5 โ Run with uv `uv run` automatically installs all dependencies from the script's inline metadata โ no venv setup needed. ```bash uv run "$SCRIPT" [--topic "TOPIC"] [--days N] [--report TYPE] [--provider PROVIDER] [--model MODEL] [--dry-run] ``` Examples: ```bash # AI news today โ DeepSeek (default) uv run "$SCRIPT" # Crypto news using OpenAI uv run "$SCRIPT" --topic "crypto" --provider openai # Last week's climate news using Claude uv run "$SCRIPT" --topic "climate change" --days 7 --provider claude # Use a specific model uv run "$SCRIPT" --topic "Bitcoin" --provider openai --model gpt-4o # Trending AI on Twitter and YouTube uv run "$SCRIPT" --report trending # Preview without posting to Discord uv run "$SCRIPT" --topic "Bitcoin" --dry-run # Test webhook connection uv run "$SCRIPT" --test-discord ``` ### Step 6 โ Report back Tell the user what was posted to Discord, how many items were found per source, and note any skipped sources (e.g. "YouTube skipped โ YOUTUBE_API_KEY not set").
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts โ single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score โฅ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.