一键导入
tencent-news
获取7×24 新闻资讯,聚焦中国国内信息和国际热点。支持热点新闻、早报晚报、实时资讯、新闻榜单、领域新闻、新闻主体查询。当用户需要搜新闻、查新闻、看热点、早晚报、订阅新闻推送、获取主题相关新闻资讯和最新消息时使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
获取7×24 新闻资讯,聚焦中国国内信息和国际热点。支持热点新闻、早报晚报、实时资讯、新闻榜单、领域新闻、新闻主体查询。当用户需要搜新闻、查新闻、看热点、早晚报、订阅新闻推送、获取主题相关新闻资讯和最新消息时使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Orchestrates the full pipeline of finding, analyzing, and extracting reusable modules from open-source GitHub repositories. 6 phases: demand → search → analyze → depgraph → extract → market. Each phase backed by a dedicated skill with its own methodology. Triggers: 开源复用, 模块提取, repo分析, 代码移植, 找开源库, github筛选, 依赖图
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a "report", "memo", "letter", "template", or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.
金融数据智能检索。根据用户的自然语言描述,自动识别需要的数据接口, 查阅 API 文档,构造请求并返回数据。覆盖股票、指数、期货、债券、 基金、宏观经济等 15 大类 209 个接口。 触发词:查行情、看股票、财务数据、基金净值、期货行情、宏观数据、 涨停股、龙虎榜、资金流向、利率、CPI、GDP、可转债、ETF、港股、美股。
Tools for building modern React webapps with TypeScript, Tailwind CSS and shadcn/ui. Best suited for applications with complex UI components and state management.
| name | tencent-news |
| description | 获取7×24 新闻资讯,聚焦中国国内信息和国际热点。支持热点新闻、早报晚报、实时资讯、新闻榜单、领域新闻、新闻主体查询。当用户需要搜新闻、查新闻、看热点、早晚报、订阅新闻推送、获取主题相关新闻资讯和最新消息时使用。 |
| description_zh | 7×24 新闻资讯,支持热点、早晚报、实时资讯、榜单、领域新闻及主体查询。 |
| description_en | 7×24 news with hot topics, briefings, rankings, and subject queries. |
| version | 1.0.1 |
| author | TencentNews |
| tags | ["news","tencent","headlines","briefings","news rankings","real-time updates"] |
| allowed-tools | Read,Bash |
通过 tencent-news-cli 获取腾讯新闻内容。
核心原则:基础设施流程(安装、更新、Key 配置)交给脚本处理;智能体只负责选择 CLI 子命令和组合参数——始终先读
help,不要硬编码。
所有平台统一通过 bun 运行 TypeScript 脚本,不依赖 Node.js、Python 或平台特定 Shell。
执行任何脚本之前,先检测 bun 是否可用:bun --version。若不可用,安装 bun:
macOS / Linux:
curl -fsSL https://bun.sh/install | bash
Windows:
powershell -c "irm bun.sh/install.ps1 | iex"
安装后若当前终端找不到 bun,需重启终端或手动刷新 PATH,再次 bun --version 确认。
运行状态检查
bun scripts/cli-state.ts
解析返回 JSON,重点关注 platform.cliPath、platform.helpCommand、cliExists、needsUpdateCheck、apiKey.present。
安装 CLI(cliExists 为 false 时)
bun scripts/install-cli.ts
若脚本失败,阅读 references/installation-guide.md。
更新 CLI(needsUpdateCheck 为 true,或 CLI 提示版本过旧时)
bun scripts/check-update.ts --apply
脚本内部通过 version 判断是否有新版本,有则下载覆盖,无则跳过。
配置 API Key(apiKey.present 为 false 时)
检查:bun scripts/api-key.ts
设置:bun scripts/api-key.ts --set KEY
apiKey 部分,按以下优先级恢复 Key:
apiKey.present 为 true → Key 已在环境变量中,无需操作。apiKey.present 为 false 且 apiKey.configFileHasKey 为 true → 直接复制 JSON 中 restoreCommand 的完整值并执行,将 Key 导入当前 Shell。示例:脚本返回 "restoreCommand": "export TENCENT_NEWS_APIKEY='eyJhbGci...'" 时,直接在终端执行:
export TENCENT_NEWS_APIKEY='eyJhbGci...'
原样执行 restoreCommand,不要修改或重新拼接。apiKey.present 为 false 且 apiKey.configFileHasKey 为 false → 不要自动获取 Key,不要用工具打开浏览器,不要执行 open / xdg-open / start 等命令。 只需向用户输出以下引导文案,让用户自己操作:
请使用浏览器打开 API Key 获取页面 获取 Key
bun scripts/api-key.ts --set KEY
API Key: 等前缀、去掉首尾引号和空白),直接拼在 --set 后面。API Key: abcdefg123456,则执行:
bun scripts/api-key.ts --set abcdefg123456
~/.zshrc / ~/.bashrc / ~/.profile,Windows 为用户环境变量)和配置文件(~/.config/tencent-news-cli/config.json),双份存储确保跨会话、跨沙箱可用。sessionCommand 让当前终端生效。不需要额外存入永久记忆。references/env-setup-guide.md。执行 help
优先使用 platform.helpCommand;自行拼命令时确保正确引用 platform.cliPath,Windows 使用 PowerShell 调用形式。
根据 help 输出选择子命令执行,按下方 Output Format 输出结果。
CLI 返回的每条新闻通常包含标题、摘要、来源、链接等字段。输出时必须按以下结构展示:
1. **标题文字**
来源:作者或媒体名称
摘要内容……
[查看原文](https://…)
2. **标题文字**
来源:作者或媒体名称
摘要内容……
[查看原文](https://…)
**来源:腾讯新闻**
序号. **标题**,序号从 1 开始,标题加粗。来源: 后跟 CLI 返回的作者或媒体名称;CLI 无该字段时可省略。[查看原文](URL),确保链接可点击,没有则不输出。**来源:腾讯新闻**。CLI 命令失败后,立即停止,绝不通过 WebSearch 或其他方式获取新闻作为替代。
cannot be opened、not verified)→ 系统设置 → 隐私与安全性 → 「仍要打开」→ 确认框「打开」connection refused、防火墙拦截)→ 安全提示中点击「信任」/「允许」permission denied)→ chmod +x <cliPath>bun 运行 TypeScript 脚本,不依赖 Node.js 或 Python。cli-state 重新验证。| 脚本 | 功能 |
|---|---|
cli-state.ts | 输出安装状态、更新检查状态、API Key 状态 |
install-cli.ts | 下载当前平台 CLI 并验证 |
check-update.ts | 版本检查,带 --apply 时自动更新 |
api-key.ts | 检查或设置 TENCENT_NEWS_APIKEY |
references/installation-guide.mdreferences/update-guide.mdreferences/env-setup-guide.md