News Aggregator Skill
Fetch real-time hot news from multiple sources.
Tools
fetch_news.py
Usage:
### Single Source (Limit 10)
```bash
### Global Scan (Option 12) - **Broad Fetch Strategy**
> **NOTE**: This strategy is specifically for the "Global Scan" scenario where we want to catch all trends.
```bash
# 1. Fetch broadly (Massive pool for Semantic Filtering)
python3 scripts/fetch_news.py --source all --limit 15 --deep
# 2. SEMANTIC FILTERING:
# Agent manually filters the broad list (approx 120 items) for user's topics.
Single Source & Combinations (Smart Keyword Expansion)
CRITICAL: You MUST automatically expand the user's simple keywords to cover the entire domain field.
- User: "AI" -> Agent uses:
--keyword "AI,LLM,GPT,Claude,Generative,Machine Learning,RAG,Agent"
- User: "Android" -> Agent uses:
--keyword "Android,Kotlin,Google,Mobile,App"
- User: "Finance" -> Agent uses:
--keyword "Finance,Stock,Market,Economy,Crypto,Gold"
# Example: User asked for "AI news from HN" (Note the expanded keywords)
python3 scripts/fetch_news.py --source hackernews --limit 20 --keyword "AI,LLM,GPT,DeepSeek,Agent" --deep
Specific Keyword Search
Only use --keyword for very specific, unique terms (e.g., "DeepSeek", "OpenAI").
python3 scripts/fetch_news.py --source all --limit 10 --keyword "DeepSeek" --deep
Arguments:
--source: One of hackernews, weibo, github, 36kr, producthunt, v2ex, tencent, wallstreetcn, all.
--limit: Max items per source (default 10).
--keyword: Comma-separated filters (e.g. "AI,GPT").
--deep: [NEW] Enable deep fetching. Downloads and extracts the main text content of the articles.
Output:
JSON array. If --deep is used, items will contain a content field associated with the article text.
Interactive Menu
When the user says "news-aggregator-skill 如意如意" (or similar "menu/help" triggers):
- READ the content of
templates.md in the skill directory.
- DISPLAY the list of available commands to the user exactly as they appear in the file.
- GUIDE the user to select a number or copy the command to execute.
Smart Time Filtering & Reporting (CRITICAL)
If the user requests a specific time window (e.g., "past X hours") and the results are sparse (< 5 items):
- Prioritize User Window: First, list all items that strictly fall within the user's requested time (Time < X).
- Smart Fill: If the list is short, you MUST include high-value/high-heat items from a wider range (e.g. past 24h) to ensure the report provides at least 5 meaningful insights.
- Annotation: Clearly mark these older items (e.g., "⚠️ 18h ago", "🔥 24h Hot") so the user knows they are supplementary.
- High Value: Always prioritize "SOTA", "Major Release", or "High Heat" items even if they slightly exceed the time window.
- GitHub Trending Exception: For purely list-based sources like GitHub Trending, strictly return the valid items from the fetched list (e.g. Top 10). List ALL fetched items. Do NOT perform "Smart Fill".
- Deep Analysis (Required): For EACH item, you MUST leverage your AI capabilities to analyze:
- Core Value (核心价值): What specific problem does it solve? Why is it trending?
- Inspiration (启发思考): What technical or product insights can be drawn?
- Scenarios (场景标签): 3-5 keywords (e.g.
#RAG #LocalFirst #Rust).
6. Response Guidelines (CRITICAL)
Format & Style:
- Language: Simplified Chinese (简体中文).
- Style: Magazine/Newsletter style (e.g., "The Economist" or "Morning Brew" vibe). Professional, concise, yet engaging.
- Structure:
- Global Headlines: Top 3-5 most critical stories across all domains.
- Tech & AI: Specific section for AI, LLM, and Tech items.
- Finance / Social: Other strong categories if relevant.
- Item Format:
- Title: MUST be a Markdown Link to the original URL.
- ✅ Correct:
### 1. [OpenAI Releases GPT-5](https://...)
- ❌ Incorrect:
### 1. OpenAI Releases GPT-5
- Metadata Line: Must include Source, Time/Date, and Heat/Score.
- 1-Liner Summary: A punchy, "so what?" summary.
- Deep Interpretation (Bulleted): 2-3 bullet points explaining why this matters, technical details, or context. (Required for "Deep Scan").
Output Artifact:
- Always save the full report to
reports/ directory with a timestamped filename (e.g., reports/hn_news_YYYYMMDD_HHMM.md).
- Present the full report content to the user in the chat.
1---
2name: news-aggregator-skill
3description: "Comprehensive news aggregator that fetches, filters, and deeply analyzes real-time content from 8 major sources: Hacker News, GitHub Trending, Product Hunt, 36Kr, Tencent News, WallStreetCN, V2EX, and Weibo. Best for 'daily scans', 'tech news briefings', 'finance updates', and 'deep interpretations' of hot topics."
4metadata:
5 source: https://skillmd.com/skills/modbender/news-aggregator-skill
6---
7
8# News Aggregator Skill
9
10Fetch real-time hot news from multiple sources.
11
12## Tools
13
14### fetch_news.py
15
16**Usage:**
17
18```bash
19### Single Source (Limit 10)
20```bash
21### Global Scan (Option 12) - **Broad Fetch Strategy**
22> **NOTE**: This strategy is specifically for the "Global Scan" scenario where we want to catch all trends.
23
24```bash
25# 1. Fetch broadly (Massive pool for Semantic Filtering)
26python3 scripts/fetch_news.py --source all --limit 15 --deep
27
28# 2. SEMANTIC FILTERING:
29# Agent manually filters the broad list (approx 120 items) for user's topics.
30```
31
32### Single Source & Combinations (Smart Keyword Expansion)
33**CRITICAL**: You MUST automatically expand the user's simple keywords to cover the entire domain field.
34* User: "AI" -> Agent uses: `--keyword "AI,LLM,GPT,Claude,Generative,Machine Learning,RAG,Agent"`
35* User: "Android" -> Agent uses: `--keyword "Android,Kotlin,Google,Mobile,App"`
36* User: "Finance" -> Agent uses: `--keyword "Finance,Stock,Market,Economy,Crypto,Gold"`
37
38```bash
39# Example: User asked for "AI news from HN" (Note the expanded keywords)
40python3 scripts/fetch_news.py --source hackernews --limit 20 --keyword "AI,LLM,GPT,DeepSeek,Agent" --deep
41```
42
43### Specific Keyword Search
44Only use `--keyword` for very specific, unique terms (e.g., "DeepSeek", "OpenAI").
45```bash
46python3 scripts/fetch_news.py --source all --limit 10 --keyword "DeepSeek" --deep
47```
48
49**Arguments:**
50
51- `--source`: One of `hackernews`, `weibo`, `github`, `36kr`, `producthunt`, `v2ex`, `tencent`, `wallstreetcn`, `all`.
52- `--limit`: Max items per source (default 10).
53- `--keyword`: Comma-separated filters (e.g. "AI,GPT").
54- `--deep`: **[NEW]** Enable deep fetching. Downloads and extracts the main text content of the articles.
55
56**Output:**
57JSON array. If `--deep` is used, items will contain a `content` field associated with the article text.
58
59## Interactive Menu
60
61When the user says **"news-aggregator-skill 如意如意"** (or similar "menu/help" triggers):
621. **READ** the content of `templates.md` in the skill directory.
632. **DISPLAY** the list of available commands to the user exactly as they appear in the file.
643. **GUIDE** the user to select a number or copy the command to execute.
65
66### Smart Time Filtering & Reporting (CRITICAL)
67If the user requests a specific time window (e.g., "past X hours") and the results are sparse (< 5 items):
681. **Prioritize User Window**: First, list all items that strictly fall within the user's requested time (Time < X).
692. **Smart Fill**: If the list is short, you MUST include high-value/high-heat items from a wider range (e.g. past 24h) to ensure the report provides at least 5 meaningful insights.
702. **Annotation**: Clearly mark these older items (e.g., "⚠️ 18h ago", "🔥 24h Hot") so the user knows they are supplementary.
713. **High Value**: Always prioritize "SOTA", "Major Release", or "High Heat" items even if they slightly exceed the time window.
724. **GitHub Trending Exception**: For purely list-based sources like **GitHub Trending**, strictly return the valid items from the fetched list (e.g. Top 10). **List ALL fetched items**. Do **NOT** perform "Smart Fill".
73 * **Deep Analysis (Required)**: For EACH item, you **MUST** leverage your AI capabilities to analyze:
74 * **Core Value (核心价值)**: What specific problem does it solve? Why is it trending?
75 * **Inspiration (启发思考)**: What technical or product insights can be drawn?
76 * **Scenarios (场景标签)**: 3-5 keywords (e.g. `#RAG #LocalFirst #Rust`).
77
78### 6. Response Guidelines (CRITICAL)
79
80**Format & Style:**
81- **Language**: Simplified Chinese (简体中文).
82- **Style**: Magazine/Newsletter style (e.g., "The Economist" or "Morning Brew" vibe). Professional, concise, yet engaging.
83- **Structure**:
84 - **Global Headlines**: Top 3-5 most critical stories across all domains.
85 - **Tech & AI**: Specific section for AI, LLM, and Tech items.
86 - **Finance / Social**: Other strong categories if relevant.
87- **Item Format**:
88 - **Title**: **MUST be a Markdown Link** to the original URL.
89 - ✅ Correct: `### 1. [OpenAI Releases GPT-5](https://...)`
90 - ❌ Incorrect: `### 1. OpenAI Releases GPT-5`
91 - **Metadata Line**: Must include Source, **Time/Date**, and Heat/Score.
92 - **1-Liner Summary**: A punchy, "so what?" summary.
93 - **Deep Interpretation (Bulleted)**: 2-3 bullet points explaining *why* this matters, technical details, or context. (Required for "Deep Scan").
94
95**Output Artifact:**
96- Always save the full report to `reports/` directory with a timestamped filename (e.g., `reports/hn_news_YYYYMMDD_HHMM.md`).
97- Present the full report content to the user in the chat.