Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add cclank/news-aggregator-skill
Or install specific skill: npx add-skill https://github.com/cclank/news-aggregator-skill
# Description
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.
# SKILL.md
name: news-aggregator-skill
description: "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."
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 ofhackernews,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):
1. READ the content of templates.md in the skill directory.
2. DISPLAY the list of available commands to the user exactly as they appear in the file.
3. 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):
1. Prioritize User Window: First, list all items that strictly fall within the user's requested time (Time < X).
2. 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.
2. Annotation: Clearly mark these older items (e.g., "⚠️ 18h ago", "🔥 24h Hot") so the user knows they are supplementary.
3. High Value: Always prioritize "SOTA", "Major Release", or "High Heat" items even if they slightly exceed the time window.
4. 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.
# README.md
News Aggregator Skill
全网科技/金融新闻聚合助手,支持AI 智能解读。
✨ 功能特性
- 多源聚合:一站式覆盖硅谷科技、中国创投、开源社区及金融市场。
- 深度阅读:支持 Deep Fetch 模式,自动获取正文并进行 AI 深度分析。
- 智能周报:自动生成杂志级排版的中文日报/周报。
- 交互菜单:可通过"news-aggregator-skill 如意如意"唤醒交互式菜单,指哪打哪。
📚 聚合信源
覆盖全球 8 大主流高价值信息渠道:
- 全球科技:Hacker News, Product Hunt
- 开源社区:GitHub Trending, V2EX
- 中国创投:36Kr, 腾讯新闻科技频道
- 社会/金融:微博热搜, 华尔街见闻
📥 安装指南
第一步:安装到 Code Agent
选择以下任一方式将 Skill 添加到您的 Agent:
方法 A:使用 Openskills CLI (推荐)
会自动处理路径依赖和配置同步。
# 克隆仓库
git clone [email protected]:cclank/news-aggregator-skill.git
# 安装 skill
openskills install ./news-aggregator-skill
# 同步配置到 Agent
openskills sync
方法 B:使用 NPX (推荐 2)
直接从远程仓库添加。
npx skills add https://github.com/cclank/news-aggregator-skill
方法 C:Claude 标准安装 (手动)
手动将 Skill 集成到 Claude 项目的标准方式。
# 1. 克隆仓库
git clone [email protected]:cclank/news-aggregator-skill.git
# 2. 定位或创建项目的 skills 目录
mkdir -p YourProject/.claude/skills
# 3. 将整个文件夹复制过去
cp -r news-aggregator-skill YourProject/.claude/skills/
# 4. 验证:确保 SKILL.md 存在于目标目录
ls YourProject/.claude/skills/news-aggregator-skill/SKILL.md
第二步:安装 Python 依赖(如果你的agent足够聪明,可以跳过)
进入已安装的 Skill 目录,执行依赖安装:
# 进入 Skill 安装目录 (根据您选择的安装方式调整路径)
cd ~/.claude/skills/news-aggregator-skill # 或 YourProject/.claude/skills/news-aggregator-skill
# 安装依赖
pip install -r requirements.txt
🚀 如何使用
1. 🔮 唤醒交互菜单 (推荐)
最简单的使用方式,来自岚叔的彩蛋--直接召唤智能菜单:
"news-aggregator-skill 如意如意"
系统将为您展示功能列表(如:早安日报、硅谷热点、全网扫描等),回复数字即可执行。
2. 🗣️ 自然语言触发
您也可以直接说出您的需求:
- 看热点:"帮我看看 Hacker News 和 Product Hunt 最近有什么 AI 新闻?"
- 看国内:"36氪和腾讯新闻今天有什么科技大瓜?"
- 看开源:"GitHub 上最近火的项目是啥?"
- 全网扫:"全网扫描一下关于 Agent 和 LLM 的最新进展。"
⚠️ 全网扫描注意: Global Scan 是基于各平台"热榜"进行关键词过滤,而非全文检索。如果关键词(如 Agent)在当天的全网热榜中未出现,可能返回较少结果。
📊 支持源列表
| Source Name | ID | Category |
|---|---|---|
| Hacker News | hackernews |
Global Tech |
| GitHub Trending | github |
Open Source |
| Product Hunt | producthunt |
New Products |
| 36Kr | 36kr |
China VC |
| Tencent News | tencent |
General Tech |
weibo |
Social Trends | |
| WallStreetCN | wallstreetcn |
Finance |
| V2EX | v2ex |
Dev Community |
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.