腾讯新闻 Skills

tencent news skills

下载地址:https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news.zip
API Key 获取地址:https://news.qq.com/exchange?scene=appkey

-> % unzip -q ~/Downloads/tencent-news.zip -d ~/.agents/skills/
-> % ll ~/.agents/skills/tencent-news
total 36K
drwxr-xr-x   4 catroll catroll 4.0K 2026-09-16 19:41:48 .
drwxrwxr-x 133 catroll catroll 4.0K 2026-09-20 01:47:18 ..
-rw-r--r--   1 catroll catroll  13K 2026-09-16 19:37:18 SKILL.md
-rw-r--r--   1 catroll catroll  898 2026-09-16 19:41:48 _skillhub_meta.json
drwxr-xr-x   2 catroll catroll 4.0K 2026-09-16 19:41:48 references
drwxr-xr-x   2 catroll catroll 4.0K 2026-09-16 19:41:48 scripts

通过 tencent-news-cli 配置好 APIKey 就好了。

然后在 cursor 中测试一下:

使用 tencent-news skill 查询今天的 5 条新闻,并返回标题、发布时间、来源。

使用 tencent-news skill 查询武汉未来 7 天的天气,有没有雨。

tencent-news-cli

-> % curl -fsSL https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/tencent-news/setup.sh | sh
Downloading CLI from https://mat1.gtimg.com/qqcdn/qqnews/cli/hub/linux-amd64/tencent-news-cli
Checksum verification passed.
Tencent News CLI setup completed
CLI path: ~/.tencent-news-cli/bin/tencent-news-cli
Installed tencent-news-cli (v1.0.16)
Added TENCENT_NEWS_INSTALL and PATH setup to ~/.zshrc
warn: API Key is not configured.

后续步骤 / Next Steps:
1. 重启终端或打开新的 Shell。
   Restart your terminal or open a new shell.
2. 从以下地址获取 API Key:https://news.qq.com/exchange?scene=appkey
   Get an API Key from https://news.qq.com/exchange?scene=appkey
3. 设置 API Key:tencent-news-cli apikey-set KEY
   Set it with: tencent-news-cli apikey-set KEY
4. 验证 API Key:tencent-news-cli apikey-get
   Verify it with: tencent-news-cli apikey-get
5. 开始使用 CLI:tencent-news-cli help
   Start using the CLI: tencent-news-cli help

-> % tencent-news-cli apikey-set ******
✅ API Key 已写入 /home/catroll/.zshrc
   执行以下命令使当前终端立即生效:
   source /home/catroll/.zshrc

-> % tencent-news-cli help
tencent-news-cli 是腾讯新闻的命令行查询工具,支持热点新闻、新闻搜索、早晚报等内容查询。

Usage:
  tencent-news-cli [command]

Available Commands:
  apikey-clear 清除已配置的 API Key
  apikey-get   查看当前配置的 API Key
  apikey-set   设置 API Key 并持久化到系统配置文件
  evening      查询今日晚报,如果是18点之前,则提示用户查询热点新闻
  feedback     提交使用问题反馈,可以把跟问题相关的上下文一并提交
  gaokao       高考志愿填报相关查询
  help         Help about any command
  hot          查询热点新闻榜
  jiaozhen     较真查证,对网络流传的说法进行事实核查
  morning      查询今日早报
  search       搜索新闻,支持通过 --limit 指定返回条数
  sport        体育赛事相关查询
  update       更新 tencent-news-cli 到最新版本,支持 --force 强制更新
  version      查看版本信息及更新状态
  weather      查询天气,默认查询当前地区,可通过 --adcode 指定地区

Flags:
      --caller string   skill 的名称,用于上报
  -h, --help            help for tencent-news-cli

Use "tencent-news-cli [command] --help" for more information about a command.
如果你有魔法,你可以看到一个评论框~