mcpField

trends-bulletin

github.com/iamzhihuixProductivity157 installs
Repository

About trends-bulletin

trends-bulletin is a Bun-based skill that collects trends from six platforms, formats them, and sends a bulletin to Telegram. An optional Grok API key enables a summary of three key trends.

Key features

  1. 01Collect trends from six platforms
  2. 02Group the bulletin by platform
  3. 03Send updates to Telegram
  4. 04Optionally analyze three key trends
  5. 05Support dry runs and environment customization

Use cases

  1. 01Compile trending topics across platforms
  2. 02Send a bulletin to a target Telegram chat
  3. 03Preview content without sending it
  4. 04Adjust Reddit communities and items per platform

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/iamzhihuix/happy-claude-skills --skill trends-bulletin

After installing, type/trends-bulletinin Claude Code to confirm it loaded.

Bundled filesscripts/main.tsscripts/package.json

Details

From the project README

多平台热词速报

一键采集 6 个平台热门趋势,格式化后推送到 Telegram。

依赖

使用 Bun 运行时内置 fetch,无需安装额外依赖。

环境变量

必须配置以下环境变量(或在 .env 文件中设置):

变量必须说明
TELEGRAM_BOT_TOKEN是Telegram Bot Token
TELEGRAM_CHAT_ID是Telegram 目标 Chat ID
GROK_API_KEY否xAI Grok API Key(为空则跳过 AI 趋势分析)
PRODUCT_HUNT_TOKEN否Product Hunt API Token(为空则跳过 PH)
YOUTUBE_API_KEY否YouTube Data API Key(为空则跳过 YouTube)

执行

Agent Execution Instructions:

  1. Determine this SKILL.md file's directory path as {baseDir}
  2. Script path = {baseDir}/scripts/main.ts
  3. Replace all {baseDir} in this document with the actual path
  4. Resolve ${BUN_X} runtime: if bun installed → bun; if npx available → npx -y bun; else suggest installing bun
${BUN_X} run {baseDir}/scripts/main.ts

指定 .env 文件路径:

${BUN_X} --env-file=/path/to/.env run {baseDir}/scripts/main.ts

Dry-run 模式(只打印不发送):

${BUN_X} run {baseDir}/scripts/main.ts --dry-run

输出格式

按平台分组推送到 Telegram,顶部附带 AI 分析的三大关键趋势(需配置 GROK_API_KEY):

🔥 热词速报

━━━ 🎯 三大关键趋势 ━━━

1️⃣ AI代理兴起
💡 核心观点:AI代理技术正推动自动化任务执行
📊 关键数据:GitHub BitNet 今日+2149⭐
❗ 为什么重要:降低部署成本,促进广泛应用
🔗 https://github.com/microsoft/BitNet

━━━ HuggingFace Spaces ━━━
1. microsoft/TRELLIS.2 (🔥315)
2. Qwen/Qwen-Image-Layered (🔥264)

━━━ 每日论文 ━━━
1. SWE-EVO: Benchmarking... (👍3)

━━━ Hacker News ━━━
1. Python 3.15's interpreter... (🔥102 | 💬23)

━━━ Product Hunt ━━━
1. DiffSense (🔺211)

━━━ Reddit 热帖 ━━━
1. [r/singularity] GPT-5.2 Pro... (🔺346 | 💬83)

━━━ GitHub Trending ━━━
1. rendercv/rendercv ⭐+1,797 Python

自定义

脚本支持通过环境变量自定义:

  • REDDIT_SUBS - Reddit 子版列表,逗号分隔(默认:MachineLearning,LocalLLaMA,artificial,ChatGPT,singularity)
  • ITEMS_PER_PLATFORM - 每个平台展示条数(默认:5)

示例

用户请求:

帮我发一下热词速报

执行流程:

  1. 检查环境变量是否配置(TELEGRAM_BOT_TOKEN、TELEGRAM_CHAT_ID)
  2. 执行 ${BUN_X} run {baseDir}/scripts/main.ts
  3. 确认 Telegram 发送结果

Comments

Markdown supported