feat(market): 准入 10 项技能,补齐 AI 日报与高德完整安装包 (#350)

- 准入 10 项 installable 技能:agent-reach、dingtalk-api、follow-builders、humanizer-zh、karpathy-guidelines、marketingskills、netease-skills、wecom-cli(原 pin 不变),以及完整 MIT 本地版 ai-news-radar(LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319)和 ClawHub 1.1.1 完整 ZIP 的 amap-jsapi-skill(sha256 9468743ee18dbe1704e8a98f47f6628d6a4e6acec30a05f0b8f59a07603d011f)。
- 瑞幸、MiniMax 图片/语音、LumaRescue、美团跑腿、Ian 小黑、女娲 继续 listing-only。
- 高德许可按 SKILL.md 的 MIT 声明保守记录,skill-card/ClawHub 写 MIT-0 的差异已在 ADMISSION.md 披露。
- validate、translate 通过;CodeQL 对上游原样 update_news.py 的 5 条告警经 mashagua 确认忽略。
This commit is contained in:
mashagua authored and GitHub committed 2026-11-24 17:11:50 +08:00
1 parent 8006ad8518
commit 91563b4695
62 files changed
+23027 -95

No files matched your search

+9 -2
View File
@@ -43,7 +43,7 @@
}, },
"reviewedAt": { "reviewedAt": {
"state": "known", "state": "known",
"value": "2026-10-19", "value": "2026-11-24",
"precision": "day" "precision": "day"
}, },
"upstreamObservedAt": { "upstreamObservedAt": {
@@ -62,7 +62,7 @@
}, },
"governance": { "governance": {
"stewardship": "community", "stewardship": "community",
"availability": "listing-only", "availability": "installable",
"license": { "license": {
"state": "known", "state": "known",
"value": "MIT", "value": "MIT",
@@ -73,6 +73,13 @@
"name": "Panniantong", "name": "Panniantong",
"url": "https://github.com/Panniantong/agent-reach", "url": "https://github.com/Panniantong/agent-reach",
"verified": false "verified": false
},
"compliance": {
"licenseEvidencePath": "LICENSE",
"reviewedRef": "94f06c1969dfc1834001269d79d3ad0972d9dee6",
"reviewedAt": "2026-11-24",
"reviewedBy": "mashagua",
"upstreamEndorsed": false
} }
}, },
"compatibility": { "compatibility": {
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 LearnPrompt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+3
View File
@@ -0,0 +1,3 @@
# AI News Radar — local package
See [English instructions](SKILL.md) or [中文说明](SKILL.zh-CN.md). Use Python 3.11+ and [the dependency list](requirements.txt). All output and private configuration must stay outside this directory. Use [the safe launcher](scripts/run_daily_brief.py), never the upstream relative-output default. The [MIT license](LICENSE) is copied verbatim; [UPSTREAM.md](UPSTREAM.md) records every imported file and its exact source commit. No historical data, private OPML, secrets, user mail or upstream deployment workflows are bundled.
+103
View File
@@ -0,0 +1,103 @@
---
name: ai-news-radar
description: Generate AI daily-brief JSON with a complete MIT Python package. Requires Python 3.11+, dependencies and feed
access; optional mail/API sources need separate authorization.
version: 2026.11.24
license: MIT
type: hybrid
risk_level: medium
disable-model-invocation: true
tags:
- ai-news
- rss
- learnprompt
compatibility: Python 3.11+, requirements.txt, authorized feed access, and a private writable output directory outside this
skill. Optional email/API integrations require separate authorization and may incur service fees.
metadata:
author: LearnPrompt; DesireCore local packaging
updated_at: '2026-11-24'
i18n:
default_locale: en-US
source_locale: zh-CN
locales:
- en-US
- zh-CN
en-US:
name: AI News Radar
short_desc: Generate AI daily-brief JSON with a complete MIT Python package. Requires Python 3.11+, dependencies and
feed access; optional mail/API sources need separate authorization.
description: Optional local MIT edition based on LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319.
Includes generation scripts, feed example, glossary, source-analysis helper, referenced docs and reader assets. Outputs
belong outside the installed skill; external services and optional credentials are separately configured.
body: ./SKILL.md
translated_by: ai:grok-bot
translated_at: '2026-11-24'
source_hash: sha256:870dccded1b7c11b
zh-CN:
name: AI 资讯雷达
short_desc: 完整 MIT 本地包生成 AI 日报 JSON。需 Python 3.11+、依赖和信源访问;可选邮件/API 集成须独立授权。
description: 基于 LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319 的可选 MIT 本地版,包含生成脚本、信源示例、词表、分析工具、引用文档和阅读器资源。运行结果须写入安装目录之外;外部服务与可选凭据需单独配置。
body: ./SKILL.zh-CN.md
translated_by: ai:grok-bot
translated_at: '2026-11-24'
source_hash: sha256:870dccded1b7c11b
market:
icon: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><rect x="4" y="4" width="16"
height="16" rx="2" stroke="#2563EB" stroke-width="1.7"/><path d="M8 8h5m-5 4h8m-8 4h5" stroke="#2563EB" stroke-width="1.7"
stroke-linecap="round"/><circle cx="17" cy="8" r="1.5" fill="#2563EB"/></svg>
category: productivity
maintainer:
name: mashagua
url: https://github.com/mashagua
verified: true
channel: latest
---
# AI News Radar
## Scope and provenance
Generate AI daily-brief JSON from the complete local Python package, review public source quality, and optionally inspect the bundled reader assets. Read [package notes](README.md), [provenance and license](UPSTREAM.md), and [source intake](references/source-intake.md). This is a maintained MIT local edition based only on LearnPrompt/ai-news-radar commit `689395109cc962a27c369bdd6fa50d1e090eb319`; package version `2026.11.24` is not an upstream release. It is optional marketplace content, not an automatically installed builtin.
## Prerequisites and boundaries
Require Python 3.11+, `uv` or an equivalent private Python environment, the pinned packages in [requirements.txt](requirements.txt), and access to the user's selected public feeds. Dependency downloads and normal generation require network access; upstream websites can fail, change terms, or rate-limit requests. Report source failures honestly. Do not claim a live feed, authenticated service, deployment, or email test passed merely because installation or the offline fixture passed.
Keep the installed directory read-only. Use [the safe launcher](scripts/run_daily_brief.py), which requires an absolute output directory outside the skill and suppresses bytecode writes. The unchanged [upstream generator](scripts/update_news.py) defaults to a relative output path; do not run its default command inside the skill. Never write a virtual environment, private OPML, generated data, logs, tokens, cookies, or email bodies into the installed skill or public repository.
## Prepare a private run
Set `SKILL_DIR` to the absolute installed directory, then choose a private working directory outside it. The following creates a fresh temporary working directory; use a private persistent directory instead when retention is wanted.
```bash
RUN_DIR="$(mktemp -d "${TMPDIR:-/tmp}/ai-news-radar.XXXXXX")"
export SKILL_DIR RUN_DIR
cp "$SKILL_DIR/feeds/follow.example.opml" "$RUN_DIR/follow.opml"
uv run --with-requirements "$SKILL_DIR/requirements.txt" python -B "$SKILL_DIR/scripts/update_news.py" --help
```
Ask which sources the user wants. Edit only the private OPML copy, using the bundled [example OPML](feeds/follow.example.opml); do not collect credentials in chat. The supplied OPML is a public example, not the user's subscription list.
## Generate the daily brief
```bash
uv run --with-requirements "$SKILL_DIR/requirements.txt" python -B "$SKILL_DIR/scripts/run_daily_brief.py" --output-dir "$RUN_DIR/data" --window-hours 24 --rss-opml "$RUN_DIR/follow.opml"
```
Read the generated daily brief, latest 24-hour items, and source-status JSON in the chosen output directory. Those are generated outputs, not missing bundled resources. Empty history is supported; large upstream historical archives and translation caches are deliberately not shipped. [AI relevance](scripts/ai_relevance.py) and the optional [translation glossary](translation-glossary.txt) are included. The offline smoke test is fixture-based and does not establish current public-feed availability.
## Review a candidate source
Follow [source intake](references/source-intake.md) and [product method](references/v2-method.md). Prefer official RSS/Atom or public generated feeds over fragile scraping. [The overlap helper](scripts/evaluate_source_overlap.py) is included; use the generated archive in the private output directory as its baseline and save the advisory report outside the skill. A low overlap score is not proof of source quality or permission to scrape.
## Optional local reader
The [reader page](index.html), [reader code](assets/app.js), and [styles](assets/styles.css) are bundled with their local static dependencies. To preview, copy the page and assets into a private working site, generate its data there, and serve only that directory. Never start a server rooted in the installed skill or publish private outputs automatically. Reader screenshots and historical datasets are not runtime dependencies. The reader includes the classic view and web manifest; its optional GSAP animation script comes from jsDelivr under its separate terms and needs network access. For optional persona commentary, [the scorer](scripts/persona_score.py) and [persona definitions](personas/README.md) are included: use explicit private data and bundled persona directories. Set `PERSONA_ENABLED=0` for rules-only scoring; do not enable a paid DeepSeek API run without separate authorization and private credentials. The daily generator does not automatically run the scorer.
## Optional private integrations
Email, X, cookie-based sources and paid APIs are optional, separately authorized integrations, not bundled accounts or free service entitlements. Keep email disabled unless the user explicitly authorizes it (`EMAIL_DIGEST_ENABLED=1`); leave publication disabled. Use private host/vault configuration for credentials, never chat, history-token reuse, public files or logs. Obtain confirmation before any publication, email sending, account change, or charge. This skill's default task is read-only collection, not sending mail. Stop before an unavailable or unauthorized integration; do not fabricate success.
## Reference material and validation
The upstream [project guide](references/upstream-project-readme.md), [English guide](references/upstream-project-readme.en.md), [skill guide](references/upstream-skill-readme.md), [handoff notes](docs/GPT_HANDOFF.md), [source coverage](docs/SOURCE_COVERAGE.md), [roadmap](docs/ROADMAP.md), and [product brief](docs/V2_PRODUCT_BRIEF.md) are included as reference material. Their upstream development tests, external skill-creator tools, hosted site, GitHub Actions and publication workflows are not installed or invoked by this edition. Do not run upstream workflow/deployment instructions without a separate user request. Retain the verbatim [MIT license](LICENSE) and LearnPrompt attribution when redistributing.
+50
View File
@@ -0,0 +1,50 @@
<!-- locale: zh-CN -->
# AI 资讯雷达
## 范围与来源
使用完整本地 Python 包生成 AI 日报 JSON、评估公开信源质量,并可查看随包阅读器资源。先读[安装说明](README.md)、[来源与许可](UPSTREAM.md)和[信源接入指南](references/source-intake.md)。这是仅基于 LearnPrompt/ai-news-radar 提交 `689395109cc962a27c369bdd6fa50d1e090eb319` 维护的 MIT 本地版;包版本 `2026.11.24` 不是上游发行版。本技能供市场可选安装,不会自动全局安装。
## 前提与边界
需要 Python 3.11+、`uv` 或等效私有 Python 环境、[requirements.txt](requirements.txt) 中固定的依赖,以及用户选定公开信源的访问条件。依赖下载和正常采集需要联网;上游网站可能失效、修改条款或限流。必须如实报告信源错误。安装成功或离线夹具通过,不代表实时信源、认证服务、部署或邮件已验收。
安装目录必须保持只读。使用[安全启动器](scripts/run_daily_brief.py):强制指定安装目录之外的绝对输出路径,并禁止写入字节码。未修改的[上游生成器](scripts/update_news.py) 默认使用相对输出路径;禁止在技能目录内直接运行默认命令。不得把虚拟环境、私人 OPML、生成数据、日志、token、cookies 或邮件正文写入安装目录或公共仓库。
## 准备私有运行目录
将 `SKILL_DIR` 设为实际安装目录的绝对路径,再选择其外部的私有工作目录。以下命令创建全新临时目录;需要保留结果时可改用私有持久目录。
```bash
RUN_DIR="$(mktemp -d "${TMPDIR:-/tmp}/ai-news-radar.XXXXXX")"
export SKILL_DIR RUN_DIR
cp "$SKILL_DIR/feeds/follow.example.opml" "$RUN_DIR/follow.opml"
uv run --with-requirements "$SKILL_DIR/requirements.txt" python -B "$SKILL_DIR/scripts/update_news.py" --help
```
先确认用户希望跟踪的信源。仅修改私有 OPML 副本,参考随包[示例 OPML](feeds/follow.example.opml),不要在聊天中收集凭据。随包 OPML 是公开示例,不是用户订阅清单。
## 生成日报
```bash
uv run --with-requirements "$SKILL_DIR/requirements.txt" python -B "$SKILL_DIR/scripts/run_daily_brief.py" --output-dir "$RUN_DIR/data" --window-hours 24 --rss-opml "$RUN_DIR/follow.opml"
```
从指定输出目录读取日报、最近 24 小时条目和信源状态 JSON。这些文件是运行产物,并非漏装资源。支持无历史数据首跑;不分发上游巨型历史归档或翻译缓存。已包含 [AI 相关性模块](scripts/ai_relevance.py)及可选[翻译词表](translation-glossary.txt)。离线冒烟仅使用夹具,不证明公开信源当前可用。
## 评估候选信源
遵循[接入指南](references/source-intake.md)和[产品方法](references/v2-method.md)。优先官方 RSS/Atom 或公开生成的 feed,避免脆弱抓取。已包含[信源重叠分析工具](scripts/evaluate_source_overlap.py);基线使用私有输出目录内生成的归档,建议报告也必须保存到技能之外。低重叠率不代表质量合格或拥有抓取授权。
## 可选本地阅读器
已包含[阅读器页面](index.html)、[阅读器代码](assets/app.js)、[样式](assets/styles.css)和本地静态依赖。预览时,把页面和资源复制到私有工作站点,在那里生成数据,且只为该目录启动服务。不得把服务根目录指向已安装技能,也不得自动公开私有结果。阅读器截图和历史数据不是运行依赖。已包含经典视图和 Web manifest;可选 GSAP 动画脚本来自 jsDelivr,需联网并遵守其独立条款。可选点评已包含[评分脚本](scripts/persona_score.py)和[人物定义](personas/README.md),须显式指定私有数据目录及随包人物目录。设置 `PERSONA_ENABLED=0` 可仅用规则评分;没有另行授权和私有凭据时不得启用收费的 DeepSeek API。日报生成器不会自动运行点评脚本。
## 可选私有集成
邮件、X、依赖 cookies 的信源及付费 API 都需独立授权,不附送账号或免费服务额度。邮件默认禁用,只有用户明确授权后才可设置 `EMAIL_DIGEST_ENABLED=1`,仍保持禁止发布。凭据只进私有主机或凭据库配置,不进入聊天、历史 token 复用、公共文件或日志。任何发布、发邮件、修改账号或收费前都须确认。本技能默认只读采集,不发送邮件。集成未就绪或未获授权时先停止,不得伪造成功。
## 参考资料与验证
随包提供上游[项目指南](references/upstream-project-readme.md)、[英文指南](references/upstream-project-readme.en.md)、[技能指南](references/upstream-skill-readme.md)、[交接说明](docs/GPT_HANDOFF.md)、[信源覆盖](docs/SOURCE_COVERAGE.md)、[路线图](docs/ROADMAP.md)和[产品简报](docs/V2_PRODUCT_BRIEF.md),仅供参考。该版本不会安装或调用上游开发测试、外部技能校验器、托管网站、GitHub Actions 或发布工作流。没有另行请求时,不得执行参考文档中的上游工作流或部署指令。再分发时保留原文 [MIT 许可](LICENSE)和 LearnPrompt 署名。
+64
View File
@@ -0,0 +1,64 @@
# Upstream provenance and local edition
Source: https://github.com/LearnPrompt/ai-news-radar/tree/689395109cc962a27c369bdd6fa50d1e090eb319
Immutable source commit: `689395109cc962a27c369bdd6fa50d1e090eb319`. Local packaging version: `2026.11.24` (not an upstream release).
Copyright (c) 2026 LearnPrompt. The 1,068-byte upstream MIT [LICENSE](LICENSE) is preserved verbatim. This is an independently maintained market packaging, not upstream endorsement.
## Changes and exclusions
- Generator, relevance module, overlap helper, requirements, example feed, glossary, original references and selected reader assets (except the explicitly noted classic-page links and CSS EOF whitespace) are byte-identical to the pinned source. No files come from current upstream HEAD.
- Local bilingual SKILL/README instructions replace repository-development guidance with installed-package usage. The new safe launcher requires external absolute output and disables bytecode writes.
- Imported project/skill guides and development docs have an explanatory reference notice and immutable upstream Markdown links. They are reference material, not installed development workflows.
- All original SKILL direct runtime/doc/UI references are represented below. Private feeds, generated data, giant historical archives/caches, screenshots, upstream tests/workflows and external skill-creator tools are not installed; the local SKILL makes no claim they are. Empty history is supported by the unchanged generator.
- Output JSON paths are generated inside the explicitly selected private output directory, not pre-existing package resources. Optional email, social and paid adapters remain separately configured and authorized.
- The classic reader service-status links are normalized for its existing base href. Optional persona scoring and its three prompt files are included; it requires separately authorized provider configuration and is not part of the offline news-generation test. Legacy reader pages are not shipped.
- The optional reader loads GSAP 3.13.0 from jsDelivr with upstream integrity metadata; this third-party CDN dependency is not vendored and requires network access.
## Imported source manifest
| Upstream path | Package path | Source bytes | Source SHA-256 | Changes |
|---|---|---:|---|---|
| LICENSE | LICENSE | 1068 | 1eef1394cbdc77865323cb153d3ffc241af74184246ee253ce5bcfd65b61cc0b | none |
| assets/app.js | assets/app.js | 92066 | 4ee5e351689fb88020c726affdd1bf767bb6b42aa2aa90e6f770f25f1b8eafaa | none |
| assets/icons/apple-touch-icon.png | assets/icons/apple-touch-icon.png | 27296 | 2a3dbb278f16bf538dbbe29fada7b28dddecc3d51f7506d793964e808850d1b7 | none |
| assets/icons/favicon-32.png | assets/icons/favicon-32.png | 2578 | 70a1aa71a978aafbe06ecb8a78cddf0f1f2c16644b59c5f20ec4a90b3464f6a6 | none |
| assets/icons/icon-192.png | assets/icons/icon-192.png | 28836 | 1a3075115f032bee0005ad02a50dcba0c60006e6fd130caa74816081c001df0c | none |
| assets/icons/icon-512.png | assets/icons/icon-512.png | 77149 | 6b2899f623812c35edc3f3a31a5c942229d6a2369639cd971592f827e24d757f | none |
| assets/logo.svg | assets/logo.svg | 1258 | 89c98d5e8288984f204da770eebb7f0dfc37f3e29daeb58787fd69adfbe9fafd | none |
| assets/motion.js | assets/motion.js | 1281 | b27fae1fd3990aced1c803ce619686eadd888b9059933680b4ffd8e7c5118dcd | none |
| assets/og.png | assets/og.png | 48055 | 21cb49329c88a13b1ff149603dbacd872f206ae9e018e2fc4f86fdf49034f5b1 | none |
| assets/service-status.css | assets/service-status.css | 2130 | cbb4e02f81e4f91d7b97d6c9262bccae8f53e831122d976e90cfd85dc525905d | none |
| assets/service-status.js | assets/service-status.js | 5369 | 0aa01cd32c346d778badd1ce51636da77188701f989cc2f99921a42810b7a78f | none |
| assets/styles.css | assets/styles.css | 38747 | 889a68cb3c4c1a3bca9181493612c09bc7cea31e8ebb3bfbd4477eca28e49140 | trim extra blank line at EOF only |
| assets/view-mode.js | assets/view-mode.js | 4373 | 77c2f6834fc7e64f31e0c28a302b9c57a7868aa5f6856300d36f7e8905dac8a2 | none |
| assets/view-switch.css | assets/view-switch.css | 2528 | 05b70dd29586a784674f59472f5c9aa5532ac7fe544510ee82fc711a47a0feab | none |
| feeds/follow.example.opml | feeds/follow.example.opml | 2400 | c8f61d59f098f4e0da0de35356b6eae90eb3c4a794b057afd40048bc6ba42ede | none |
| index.html | index.html | 10230 | fac7af098270897f347f46e777a1e8227863fcb2fb642d0f6eead57bce6d2c73 | none |
| requirements.txt | requirements.txt | 88 | f206ef31decbffd0ade3fbfebb513158ad27521ee541969e517535865c629ba8 | none |
| scripts/ai_relevance.py | scripts/ai_relevance.py | 13733 | 97d1ea44d04663d21af8ac60ed3b26bd9ee4b55418e6979a31baeea6df0bb4bb | none |
| scripts/evaluate_source_overlap.py | scripts/evaluate_source_overlap.py | 15274 | 9558f13ffc310d4d8523f22d77280f5a470f2e5df3c1c9d477461ac91f9d8375 | none |
| scripts/update_news.py | scripts/update_news.py | 273569 | 7cf57bb45f8ea48e731d7dd8b27392c4ec2e5844acfd7c137edf0920e03a1165 | none |
| skills/ai-news-radar/agents/openai.yaml | agents/openai.yaml | 294 | 1fbeab04768ce9d0ea35d8c1ae177f626235c2ec615cf7584688d93ca2606324 | none |
| skills/ai-news-radar/references/source-intake.md | references/source-intake.md | 6737 | 1e18da6313d647924c68b49bdc86873b829fa343c55f0dd727f240f6e820692c | none |
| skills/ai-news-radar/references/v2-method.md | references/v2-method.md | 4218 | f415f236fce6981e6f05e063f463e8a412e4cd9b964550184f1b3db7b2c4e8b7 | none |
| translation-glossary.txt | translation-glossary.txt | 1181 | 8eb25938e8436c0f989dbb9f6bc9721cba83889bb48d26fde867d385e65b8b4a | none |
| README.md | references/upstream-project-readme.md | 27963 | 660d1359c8ce8cf50e6b051a67de1158353238a4506d06579d9b0ffa5333968c | reference notice and immutable upstream Markdown links |
| README.en.md | references/upstream-project-readme.en.md | 25716 | 4ced637ac7f9040824774d25de5a0bce4bafaa3a4afcef47aa824fe1a00318ec | reference notice and immutable upstream Markdown links |
| skills/ai-news-radar/README.md | references/upstream-skill-readme.md | 14882 | cea932f854bbbc8473ec1a7fd58e5018833e338fcd7a645da2a3d9fbe1e6fa64 | reference notice and immutable upstream Markdown links; normalize trailing whitespace |
| docs/GPT_HANDOFF.md | docs/GPT_HANDOFF.md | 4650 | cea73994fee7ed4f4485ddb284d4bc66d55aa862412056ba2831ebeabf71f46e | reference notice and immutable upstream Markdown links |
| docs/ROADMAP.md | docs/ROADMAP.md | 5051 | ae5091f2fd10eed5f9e35d5471e4d5c4c70b6cf2ca445cca1db083edb8115934 | reference notice and immutable upstream Markdown links |
| docs/SOURCE_COVERAGE.md | docs/SOURCE_COVERAGE.md | 16386 | 14dc0f660bb5b4d5a89bcfa096ae4aad2d8adea876c5705cd601b9cf4ecc94f0 | reference notice and immutable upstream Markdown links |
| docs/V2_PRODUCT_BRIEF.md | docs/V2_PRODUCT_BRIEF.md | 2129 | ff52e938535276b18d70af846659adfecdf56d105310591bd4c6133a499dd2c3 | reference notice and immutable upstream Markdown links |
| site.webmanifest | site.webmanifest | 563 | 5659abfef2d7f05b9a6ace0a876ef8e4ea44e3cc00b0f82fd8b9626feea1d1b9 | none |
| classic/index.html | classic/index.html | 11772 | beeb670897d9aaadcd90b858b7faad260c4f3130cc8c505b52527bd4576f772b | normalize service-status asset links under upstream base href |
| scripts/__init__.py | scripts/__init__.py | 28 | c2bbbed5cc8ac8d07249f7d977b61fe2309393444646d0d449b6d7ce7dcf2434 | none |
| scripts/persona_score.py | scripts/persona_score.py | 16284 | 2076ac04af453de9a8c3704f83941fd8fa47b7c29bd3bc4679ec6ed47f001926 | none |
| classic/assets/app.js | classic/assets/app.js | 121340 | 08afcfe3e8184f3ab364ae7a8ae39f6e57ee2c376076b866c22aa029ad2c45a9 | none |
| classic/assets/motion.js | classic/assets/motion.js | 3185 | 90102cd08928d9389fa78dc83a666d58a423202591a3865dd67d78b1cbd95918 | none |
| classic/assets/styles.css | classic/assets/styles.css | 48135 | 1d07798dc15c4dd3360496ee2f8865611cba09db4fe3bfaded9a20b00b46cdff | none |
| personas/README.md | personas/README.md | 2379 | 3f751906d12eeec8945c6e4e903fb5407103df0c2106f2d589f1d3ac00f9dafd | none |
| personas/cynic.md | personas/cynic.md | 1611 | 72a3c6e4b8619f1568d56af45c57df8b7ff06f4fc80afd17b264df9d3903d6cb | none |
| personas/paper-police.md | personas/paper-police.md | 1679 | 12080a8c861872a214e8a250b63232dea1be53bb87263ed98ff65bd2deb64911 | none |
| personas/pragmatic.md | personas/pragmatic.md | 1674 | d61315341defc8b786aa435dadc19a3fbacd919aa5520644f68addcfd17a79b9 | none |
+6
View File
@@ -0,0 +1,6 @@
interface:
display_name: "AI News Radar"
short_description: "Review and extend AI news source coverage"
default_prompt: "Use $ai-news-radar to run a v2 source-coverage review, then add or route this AI news source safely if it fits the project."
policy:
allow_implicit_invocation: true
File diff suppressed because it is too large. Load diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

+22
View File
@@ -0,0 +1,22 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 220 220" role="img" aria-labelledby="title desc">
<title id="title">AI News Radar Logo</title>
<desc id="desc">Radar-inspired mark for AI News Radar</desc>
<defs>
<linearGradient id="ring" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#d94825"/>
<stop offset="100%" stop-color="#0f6f7f"/>
</linearGradient>
<linearGradient id="dot" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#ff7a50"/>
<stop offset="100%" stop-color="#17a2b8"/>
</linearGradient>
</defs>
<rect x="8" y="8" width="204" height="204" rx="48" fill="#f8f6f1"/>
<circle cx="110" cy="110" r="78" fill="none" stroke="url(#ring)" stroke-width="10" opacity="0.32"/>
<circle cx="110" cy="110" r="52" fill="none" stroke="url(#ring)" stroke-width="8" opacity="0.45"/>
<circle cx="110" cy="110" r="28" fill="none" stroke="url(#ring)" stroke-width="6" opacity="0.65"/>
<path d="M110 110 L176 82" stroke="url(#ring)" stroke-width="10" stroke-linecap="round"/>
<circle cx="176" cy="82" r="13" fill="url(#dot)"/>
<circle cx="110" cy="110" r="10" fill="#12100f"/>
<path d="M64 165 L110 110 L131 128 L88 165 Z" fill="#12100f" opacity="0.9"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

+31
View File
@@ -0,0 +1,31 @@
(function () {
if (!window.gsap) return;
const mm = gsap.matchMedia();
mm.add("(prefers-reduced-motion: no-preference)", function () {
gsap.defaults({ duration: 0.55, ease: "power3.out" });
// Intro / list entry animations intentionally live in styles.css as
// transform-only @keyframes: any JS "from" tween that touches opacity
// strands elements invisible when the tab is hidden mid-flight, because
// the GSAP ticker freezes while rendering is paused.
// Section scroll reveal via IntersectionObserver. Keep sections visible:
// hiding whole content blocks can leave blank viewports after responsive
// reflow or rapid mobile scrolling.
const revealEls = document.querySelectorAll(".waytoagi-wrap, .list-wrap");
if (revealEls.length && window.IntersectionObserver) {
gsap.set(revealEls, { y: 14 });
const observer = new IntersectionObserver(function (entries) {
entries.forEach(function (entry) {
if (entry.isIntersecting) {
gsap.to(entry.target, { y: 0, duration: 0.45, clearProps: "transform" });
observer.unobserve(entry.target);
}
});
}, { threshold: 0.08 });
revealEls.forEach(function (el) { observer.observe(el); });
}
});
}());
Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

@@ -0,0 +1,117 @@
.service-status-panel {
margin: 10px 0 14px;
padding: 11px 13px;
border: 1px solid rgba(185, 116, 24, 0.28);
border-radius: 14px;
background: linear-gradient(135deg, rgba(255, 249, 237, 0.98), rgba(255, 253, 247, 0.96));
box-shadow: 0 8px 24px rgba(104, 67, 17, 0.06);
}
.service-status-panel[hidden] {
display: none;
}
.service-status-panel.has-major {
border-color: rgba(179, 52, 52, 0.32);
background: linear-gradient(135deg, rgba(255, 244, 242, 0.98), rgba(255, 250, 248, 0.96));
}
.service-status-heading,
.service-status-title-wrap,
.service-incident,
.service-incident-meta {
display: flex;
align-items: center;
}
.service-status-heading {
justify-content: space-between;
gap: 10px;
margin-bottom: 7px;
}
.service-status-title-wrap {
gap: 7px;
color: var(--ink);
font-size: 13px;
}
.service-status-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: #c48122;
box-shadow: 0 0 0 4px rgba(196, 129, 34, 0.12);
}
.has-major .service-status-dot {
background: #ba4040;
box-shadow: 0 0 0 4px rgba(186, 64, 64, 0.12);
}
.service-status-count {
color: var(--muted);
font-size: 11px;
}
.service-incident-list {
display: grid;
gap: 5px;
}
.service-incident {
justify-content: space-between;
gap: 10px;
min-width: 0;
padding-top: 5px;
border-top: 1px solid rgba(131, 91, 31, 0.10);
}
.service-incident-main {
min-width: 0;
}
.service-incident-meta {
gap: 6px;
margin-bottom: 2px;
color: var(--muted);
font-size: 9px;
}
.service-phase {
padding: 1px 5px;
border-radius: 999px;
background: rgba(196, 129, 34, 0.10);
color: #8b5a16;
}
.service-incident-title {
display: block;
color: var(--ink);
font-size: 12px;
font-weight: 600;
line-height: 1.35;
text-decoration: none;
overflow-wrap: anywhere;
}
.service-incident-title:hover {
color: var(--accent);
}
.service-incident-time {
flex: 0 0 auto;
color: var(--muted-soft);
font-size: 9px;
white-space: nowrap;
}
@media (max-width: 560px) {
.service-incident {
align-items: flex-start;
}
.service-incident-time {
padding-top: 14px;
}
}
@@ -0,0 +1,161 @@
(() => {
const panel = document.getElementById("serviceStatusPanel");
if (!panel) return;
const STATUS_LABELS = {
investigating: "调查中",
identified: "已定位",
monitoring: "恢复监控中",
};
function resolveDataBaseUrl() {
try {
const fromQuery = new URLSearchParams(window.location.search).get("data") || "";
if (fromQuery) return fromQuery.trim().replace(/\/+$/, "");
return (localStorage.getItem("dataBaseUrl") || "").trim().replace(/\/+$/, "");
} catch {
return "";
}
}
function dataUrl(path) {
const base = resolveDataBaseUrl();
if (!base) return path;
return `${base}/${String(path || "").split("/").pop()}`;
}
function formatTime(value) {
const date = new Date(value || "");
if (Number.isNaN(date.getTime())) return "";
return new Intl.DateTimeFormat("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit",
hour12: false,
}).format(date);
}
function providerLabel(incident) {
const components = Array.isArray(incident?.affected_components)
? incident.affected_components
: [];
const signal = [incident?.title, incident?.title_zh, ...components]
.filter(Boolean)
.join(" ")
.toLowerCase();
if (signal.includes("chatgpt")) return "ChatGPT";
return incident?.provider || "OpenAI";
}
function incidentTitle(incident) {
if (incident?.title === "Elevated Error Rates") {
return "OpenAI 服务错误率升高";
}
return incident?.title_zh || incident?.title || "服务异常";
}
function incidentNode(incident) {
const row = document.createElement("article");
row.className = `service-incident impact-${incident.impact || "none"}`;
const main = document.createElement("div");
main.className = "service-incident-main";
const meta = document.createElement("div");
meta.className = "service-incident-meta";
const provider = document.createElement("span");
provider.className = "service-provider";
provider.textContent = providerLabel(incident);
const phase = document.createElement("span");
phase.className = "service-phase";
phase.textContent = STATUS_LABELS[incident.status] || incident.status || "处理中";
meta.append(provider, phase);
const title = document.createElement("a");
title.className = "service-incident-title";
const incidentUrl = new URL(incident.url || "", "https://status.openai.com/");
title.href = incidentUrl.protocol === "https:" && incidentUrl.hostname === "status.openai.com"
? incidentUrl.href : "https://status.openai.com/";
title.target = "_blank";
title.rel = "noopener noreferrer";
title.textContent = incidentTitle(incident);
main.append(meta, title);
const time = document.createElement("time");
time.className = "service-incident-time";
time.dateTime = incident.updated_at || "";
time.textContent = formatTime(incident.updated_at);
row.append(main, time);
return row;
}
function render(payload) {
const incidents = Array.isArray(payload?.incidents)
? payload.incidents.filter((incident) => incident && incident.status !== "resolved")
: [];
const generatedAt = Date.parse(payload?.generated_at || "");
const stale = !Number.isFinite(generatedAt) || Date.now() - generatedAt > 2 * 60 * 60 * 1000;
panel.replaceChildren();
if (payload?.ok !== true || stale || incidents.length === 0) {
panel.hidden = true;
return;
}
const heading = document.createElement("div");
heading.className = "service-status-heading";
const titleWrap = document.createElement("div");
titleWrap.className = "service-status-title-wrap";
const dot = document.createElement("span");
dot.className = "service-status-dot";
dot.setAttribute("aria-hidden", "true");
const title = document.createElement("strong");
title.textContent = "ChatGPT / OpenAI 服务状态";
titleWrap.append(dot, title);
const count = document.createElement("span");
count.className = "service-status-count";
count.textContent = `${incidents.length} 项官方故障`;
heading.append(titleWrap, count);
const list = document.createElement("div");
list.className = "service-incident-list";
incidents.slice(0, 3).forEach((incident) => list.appendChild(incidentNode(incident)));
panel.append(heading, list);
panel.classList.toggle(
"has-major",
incidents.some((incident) => ["major", "critical"].includes(incident.impact)),
);
panel.hidden = false;
panel.setAttribute(
"aria-label",
`ChatGPT 与 OpenAI 服务状态:${incidents.length} 项故障正在处理`,
);
}
const controller = new AbortController();
const timeout = window.setTimeout(() => controller.abort(), 8000);
fetch(dataUrl(new URL("../data/service-status.json", document.currentScript.src).href), {
cache: "no-cache",
headers: { Accept: "application/json" },
signal: controller.signal,
})
.then((response) => {
if (!response.ok) throw new Error(`service status ${response.status}`);
return response.json();
})
.then(render)
.catch(() => {
panel.hidden = true;
})
.finally(() => {
window.clearTimeout(timeout);
});
})();
File diff suppressed because it is too large. Load diff
+140
View File
@@ -0,0 +1,140 @@
(function () {
"use strict";
const STORAGE_KEY = "aiNewsRadarViewV2";
const LEGACY_STORAGE_KEY = "aiNewsRadarView";
const MOBILE_OVERRIDE_KEY = "aiNewsRadarMobileViewOnce";
const MOBILE_BREAKPOINT = "(max-width: 760px)";
const VALID_VIEWS = new Set(["mobile", "classic"]);
const script = document.currentScript;
const rootHint = script?.dataset.root || "./";
const rootUrl = new URL(rootHint, window.location.href);
const currentView = document.documentElement.dataset.radarView || "mobile";
const params = new URLSearchParams(window.location.search);
const requestedView = params.get("view") || "";
const isMobileViewport = window.matchMedia(MOBILE_BREAKPOINT).matches;
try {
window.localStorage.removeItem(LEGACY_STORAGE_KEY);
} catch {
// Storage can be unavailable in private or hardened browser contexts.
}
function readPreference() {
try {
const value = window.localStorage.getItem(STORAGE_KEY) || "";
return VALID_VIEWS.has(value) ? value : "";
} catch {
return "";
}
}
function writePreference(view) {
try {
if (VALID_VIEWS.has(view)) {
window.localStorage.setItem(STORAGE_KEY, view);
} else {
window.localStorage.removeItem(STORAGE_KEY);
}
} catch {
// Storage can be unavailable in private or hardened browser contexts.
}
}
function readMobileOverride() {
try {
const value = window.sessionStorage.getItem(MOBILE_OVERRIDE_KEY) || "";
window.sessionStorage.removeItem(MOBILE_OVERRIDE_KEY);
return VALID_VIEWS.has(value) ? value : "";
} catch {
return "";
}
}
function writeMobileOverride(view) {
try {
if (VALID_VIEWS.has(view)) {
window.sessionStorage.setItem(MOBILE_OVERRIDE_KEY, view);
} else {
window.sessionStorage.removeItem(MOBILE_OVERRIDE_KEY);
}
} catch {
// Storage can be unavailable in private or hardened browser contexts.
}
}
if (requestedView === "auto") {
writePreference("");
writeMobileOverride("");
} else if (!isMobileViewport && VALID_VIEWS.has(requestedView)) {
writePreference(requestedView);
}
const mobileOverride = isMobileViewport ? readMobileOverride() : "";
const preference = isMobileViewport
? mobileOverride
: (requestedView === "auto"
? ""
: (VALID_VIEWS.has(requestedView) ? requestedView : readPreference()));
const deviceDefault = "mobile";
const targetView = preference || deviceDefault;
function destination(view) {
const url = new URL(view === "classic" ? "classic/" : "./", rootUrl);
const passthrough = new URLSearchParams(window.location.search);
passthrough.delete("view");
url.search = passthrough.toString();
url.hash = window.location.hash;
return url;
}
function cleanViewQuery() {
if (!requestedView) return;
const cleanUrl = destination(currentView);
window.history.replaceState(null, "", `${cleanUrl.pathname}${cleanUrl.search}${cleanUrl.hash}`);
}
function chooseView(view) {
if (!VALID_VIEWS.has(view)) return;
if (isMobileViewport) writeMobileOverride(view);
else writePreference(view);
if (view === currentView) return;
window.location.assign(destination(view).href);
}
if (targetView !== currentView) {
window.location.replace(destination(targetView).href);
return;
}
cleanViewQuery();
function mountSwitches() {
document.querySelectorAll("[data-radar-view-target]").forEach((button) => {
const view = button.dataset.radarViewTarget || "";
const active = view === currentView;
button.classList.toggle("is-active", active);
button.setAttribute("aria-pressed", active ? "true" : "false");
if (active) button.setAttribute("aria-current", "page");
else button.removeAttribute("aria-current");
button.addEventListener("click", () => chooseView(view));
});
}
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", mountSwitches, { once: true });
} else {
mountSwitches();
}
window.AINewsRadarView = {
current: currentView,
preference: preference || "auto",
choose: chooseView,
reset() {
writePreference("");
writeMobileOverride("");
window.location.replace(destination(deviceDefault).href);
},
};
})();
+130
View File
@@ -0,0 +1,130 @@
.hero-view-row {
display: flex;
min-width: 0;
flex-wrap: wrap;
align-items: center;
gap: 6px;
margin: 4px 0 0;
color: var(--muted, #66645f);
font-size: 13px;
}
.hero-meta {
align-self: center;
}
.view-switch {
display: inline-flex;
min-height: 30px;
flex: 0 0 auto;
align-items: center;
gap: 2px;
border: 1px solid var(--line-soft, rgba(23, 23, 23, 0.12));
border-radius: 999px;
padding: 2px;
background: rgba(251, 250, 247, 0.78);
}
.view-switch-label {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
white-space: nowrap;
}
.view-switch-btn {
min-height: 24px;
border: 0;
border-radius: 999px;
padding: 0 8px;
color: var(--muted, #66645f);
background: transparent;
font: inherit;
font-size: 12px;
font-weight: 700;
white-space: nowrap;
cursor: pointer;
}
.view-switch-btn:hover {
color: var(--ink, #171717);
background: rgba(18, 106, 115, 0.06);
}
.view-switch-btn.is-active {
color: #fff;
background: var(--accent, #126a73);
}
.view-switch-btn:focus-visible {
outline: 2px solid rgba(18, 106, 115, 0.35);
outline-offset: 2px;
}
html[data-radar-view="classic"] .data-source-indicator {
display: flex;
min-width: 0;
align-items: center;
justify-content: space-between;
gap: 10px;
border: 1px solid rgba(18, 106, 115, 0.18);
border-radius: var(--radius, 8px);
padding: 8px 10px;
color: var(--accent, #126a73);
background: rgba(18, 106, 115, 0.06);
font-size: 12px;
}
html[data-radar-view="classic"] .data-source-indicator[hidden] {
display: none;
}
html[data-radar-view="classic"] .data-source-indicator > span {
min-width: 0;
overflow-wrap: anywhere;
}
html[data-radar-view="classic"] .data-source-reset-btn {
flex: 0 0 auto;
min-height: 30px;
border: 1px solid rgba(18, 106, 115, 0.24);
border-radius: calc(var(--radius, 8px) - 2px);
padding: 0 9px;
color: var(--accent, #126a73);
background: rgba(255, 255, 255, 0.72);
font: inherit;
font-weight: 700;
}
html[data-radar-view="classic"] .data-source-reset-btn:hover {
background: #fff;
}
html[data-radar-view="classic"] .data-source-reset-btn:focus-visible {
outline: 2px solid rgba(18, 106, 115, 0.35);
outline-offset: 2px;
}
@media (max-width: 760px) {
.hero {
gap: 10px;
}
.hero-links {
width: auto;
}
.view-switch-btn {
padding: 0 7px;
font-size: 11px;
}
}
@media (max-width: 360px) {
.view-switch-btn {
padding: 0 6px;
}
}
+37 -11
View File
@@ -10,11 +10,13 @@
"i18n": { "i18n": {
"en-US": { "en-US": {
"name": "AI News Radar", "name": "AI News Radar",
"summary": "24/7 AI news radar that curates multiple sources into storylines and delivers daily headlines with three flavors of commentary. Requires a separately configured Python environment and sources; mail access requires separate authorization." "summary": "Generate AI daily-brief JSON with a complete MIT Python package. Requires Python 3.11+, dependencies and feed access; optional mail/API sources need separate authorization.",
"description": "Optional local MIT edition based on LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319. Includes generation scripts, feed example, glossary, source-analysis helper, referenced docs and reader assets. Outputs belong outside the installed skill; external services and optional credentials are separately configured."
}, },
"zh-CN": { "zh-CN": {
"name": "AI 资讯雷达", "name": "AI 资讯雷达",
"summary": "24 小时 AI 资讯雷达:从多信源筛选要闻、合并成故事线,并用三种口味锐评每日头条。需自行配置 Python 运行环境与信源;邮件接入须另行授权。" "summary": "完整 MIT 本地包生成 AI 日报 JSON。需 Python 3.11+、依赖和信源访问;可选邮件/API 集成须独立授权。",
"description": "基于 LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319 的可选 MIT 本地版,包含生成脚本、信源示例、词表、分析工具、引用文档和阅读器资源。运行结果须写入安装目录之外;外部服务与可选凭据需单独配置。"
} }
}, },
"category": "productivity", "category": "productivity",
@@ -25,12 +27,14 @@
] ]
}, },
"release": { "release": {
"state": "unknown" "state": "known",
"version": "2026.11.24",
"versionScheme": "calver"
}, },
"timestamps": { "timestamps": {
"catalogUpdatedAt": { "catalogUpdatedAt": {
"state": "known", "state": "known",
"value": "2026-10-05", "value": "2026-11-24",
"precision": "day" "precision": "day"
}, },
"releasePublishedAt": { "releasePublishedAt": {
@@ -38,12 +42,12 @@
}, },
"reviewedAt": { "reviewedAt": {
"state": "known", "state": "known",
"value": "2026-10-05", "value": "2026-11-24",
"precision": "day" "precision": "day"
}, },
"upstreamObservedAt": { "upstreamObservedAt": {
"state": "known", "state": "known",
"value": "2026-10-05", "value": "2026-11-24",
"precision": "day" "precision": "day"
} }
}, },
@@ -51,13 +55,12 @@
"content": { "content": {
"kind": "git", "kind": "git",
"url": "https://github.com/LearnPrompt/ai-news-radar.git", "url": "https://github.com/LearnPrompt/ai-news-radar.git",
"path": "skills/ai-news-radar",
"ref": "689395109cc962a27c369bdd6fa50d1e090eb319" "ref": "689395109cc962a27c369bdd6fa50d1e090eb319"
} }
}, },
"governance": { "governance": {
"stewardship": "community", "stewardship": "community",
"availability": "listing-only", "availability": "installable",
"license": { "license": {
"state": "known", "state": "known",
"value": "MIT", "value": "MIT",
@@ -68,6 +71,19 @@
"name": "LearnPrompt", "name": "LearnPrompt",
"url": "https://github.com/LearnPrompt/ai-news-radar", "url": "https://github.com/LearnPrompt/ai-news-radar",
"verified": false "verified": false
},
"listingMaintainer": {
"name": "mashagua",
"url": "https://github.com/mashagua",
"verified": true
},
"compliance": {
"licenseEvidencePath": "LICENSE",
"noticePath": "UPSTREAM.md",
"reviewedRef": "689395109cc962a27c369bdd6fa50d1e090eb319",
"reviewedAt": "2026-11-24",
"reviewedBy": "mashagua",
"upstreamEndorsed": false
} }
}, },
"compatibility": { "compatibility": {
@@ -77,15 +93,25 @@
"requirements": [ "requirements": [
{ {
"kind": "runtime", "kind": "runtime",
"value": "A user-configured Python environment and the dependencies declared by AI News Radar." "value": "Python 3.11+ and the pinned packages in requirements.txt. The local package includes all required Python helpers and referenced reader assets; install dependencies in a separate environment."
},
{
"kind": "runtime",
"value": "Use scripts/run_daily_brief.py with an absolute private output directory outside the installed skill. Historical data is intentionally excluded and generated on first run; do not write bytecode, logs or private configuration into the package."
}, },
{ {
"kind": "connection", "kind": "connection",
"value": "Access to the chosen public feeds. Optional mail adapters require separate credentials and explicit authorization; private message bodies must not be published or persisted as public feed content." "value": "Normal generation needs authorized public-feed access; source availability and rate limits are external. Optional email/X/cookie/paid APIs require separate private host/vault configuration, explicit authorization and applicable service fees. No live/authenticated test is implied by fixture smoke results."
},
{
"kind": "connection",
"value": "The optional bundled reader references the separately licensed GSAP 3.13.0 script on jsDelivr. Optional persona scoring can run rules-only with PERSONA_ENABLED=0; authenticated DeepSeek calls require separate explicit approval, private DEEPSEEK_API_KEY configuration and applicable fees. Neither is a prerequisite for the daily-brief JSON generator."
} }
] ]
}, },
"spec": { "spec": {
"kind": "skill" "kind": "skill",
"riskLevel": "medium",
"skillType": "hybrid"
} }
} }
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,63 @@
(function () {
if (!window.gsap) return;
const mm = gsap.matchMedia();
mm.add("(prefers-reduced-motion: no-preference)", function () {
gsap.defaults({ duration: 0.55, ease: "power3.out" });
// Stats and section tabs are data-driven. Wait until app.js has rendered
// them so GSAP never tries to animate missing targets on first load.
document.addEventListener("aiRadar:ready", function () {
const tl = gsap.timeline();
const addFrom = function (selector, vars, position) {
if (document.querySelector(selector)) tl.from(selector, vars, position);
};
// Keep the identity header stationary across view switches. The update
// time and view control live inside `.hero-headline`, so animating that
// container makes the control visibly jump after navigation.
addFrom(".stat", { autoAlpha: 0, y: 14, scale: 0.98, stagger: 0.06, duration: 0.45 });
addFrom(".section-tab", { autoAlpha: 0, y: 10, stagger: 0.045, duration: 0.4 }, "-=0.2");
addFrom(".section-summary", { autoAlpha: 0, y: 8, duration: 0.35 }, "-=0.25");
addFrom(".primary-controls", { autoAlpha: 0, y: 8, duration: 0.4 }, "-=0.15");
addFrom(".advanced-panel", { autoAlpha: 0, y: 8, duration: 0.4 }, "-=0.3");
}, { once: true });
// Top stories render after data loads; keep legacy selectors for old data views.
document.addEventListener("aiRadar:briefRendered", function () {
const brief = document.querySelector(".bole-picks-wrap");
const cards = Array.from(document.querySelectorAll(".top-story-card, .story-row, .bole-row")).slice(0, 24);
if (brief) {
gsap.fromTo(brief, { y: 12 }, { y: 0, duration: 0.35, clearProps: "transform" });
}
if (!cards.length) return;
gsap.killTweensOf(cards);
gsap.set(cards, { clearProps: "transform" });
gsap.from(cards, { autoAlpha: 0, stagger: 0.035, duration: 0.28, clearProps: "opacity,visibility" });
});
// List: animate first 30 visible cards on render/mode switch
document.addEventListener("aiRadar:listRendered", function () {
const cards = Array.from(document.querySelectorAll(".intel-card, .news-card")).slice(0, 30);
if (!cards.length) return;
gsap.from(cards, { autoAlpha: 0, y: 12, stagger: 0.03, duration: 0.4, clearProps: "transform,opacity,visibility" });
});
// Section scroll reveal via IntersectionObserver. Keep sections visible:
// hiding whole content blocks can leave blank viewports after responsive
// reflow or rapid mobile scrolling.
const revealEls = document.querySelectorAll(".bole-picks-wrap, .waytoagi-wrap, .list-wrap");
if (revealEls.length && window.IntersectionObserver) {
gsap.set(revealEls, { y: 14 });
const observer = new IntersectionObserver(function (entries) {
entries.forEach(function (entry) {
if (entry.isIntersecting) {
gsap.to(entry.target, { y: 0, duration: 0.45, clearProps: "transform" });
observer.unobserve(entry.target);
}
});
}, { threshold: 0.08 });
revealEls.forEach(function (el) { observer.observe(el); });
}
});
}());
File diff suppressed because it is too large. Load diff
+240
View File
@@ -0,0 +1,240 @@
<!doctype html>
<html lang="zh-CN" data-radar-view="classic">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="../" />
<title>AI News Radar|24 小时 AI 更新雷达</title>
<meta
name="description"
content="自动整理过去 24 小时值得看的 AI、模型和开发者工具更新;伯乐Skill(Scout Skill)帮你从一堆信源里选出千里马。"
/>
<link rel="canonical" href="https://news.learnprompt.pro/classic/" />
<meta property="og:title" content="AI News Radar|24 小时 AI 更新雷达" />
<meta
property="og:description"
content="自动整理过去 24 小时值得看的 AI、模型和开发者工具更新;伯乐Skill(Scout Skill)帮你从一堆信源里选出千里马。"
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://news.learnprompt.pro/classic/" />
<meta property="og:site_name" content="AI News Radar" />
<meta property="og:image" content="https://news.learnprompt.pro/assets/og.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="AI News Radar 24 小时 AI 更新雷达" />
<meta name="application-name" content="AI News Radar" />
<meta name="theme-color" content="#f6f6f2" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="AI News Radar" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="AI News Radar|24 小时 AI 更新雷达" />
<meta
name="twitter:description"
content="自动整理过去 24 小时值得看的 AI、模型和开发者工具更新;伯乐Skill(Scout Skill)帮你从一堆信源里选出千里马。"
/>
<meta name="twitter:image" content="https://news.learnprompt.pro/assets/og.png" />
<link rel="icon" href="./assets/logo.svg" type="image/svg+xml" />
<link rel="icon" href="./assets/icons/favicon-32.png" sizes="32x32" type="image/png" />
<link rel="apple-touch-icon" href="./assets/icons/apple-touch-icon.png" sizes="180x180" />
<link rel="manifest" href="./site.webmanifest" />
<script src="./assets/view-mode.js?v=dual-view-0713c" data-root="../"></script>
<link rel="stylesheet" href="./classic/assets/styles.css?v=ui-polish-0626a" />
<link rel="stylesheet" href="./assets/view-switch.css?v=dual-view-0713b" />
<link rel="stylesheet" href="./assets/service-status.css?v=20260909" />
</head>
<body>
<main class="shell">
<header class="hero">
<div class="hero-main">
<div class="hero-headline">
<img class="hero-logo" src="./assets/logo.svg" alt="AI News Radar Logo" />
<div>
<h1>AI News Radar</h1>
<div class="hero-updated hero-view-row">
<span class="updated-label">更新时间</span>
<span class="updated" id="updatedAt">加载中...</span>
<div class="view-switch" role="group" aria-label="视角切换">
<span class="view-switch-label">视角</span>
<button class="view-switch-btn" type="button" data-radar-view-target="mobile">手机版</button>
<button class="view-switch-btn" type="button" data-radar-view-target="classic">经典版</button>
</div>
</div>
</div>
</div>
</div>
<div class="hero-meta">
<span class="source-status-pill" id="sourceStatusPill">源状态加载中</span>
<div class="hero-links" aria-label="项目入口">
<a
class="hero-link"
href="https://github.com/LearnPrompt/ai-news-radar"
target="_blank"
rel="noopener noreferrer"
>GitHub 与接入指南</a>
</div>
</div>
<section class="stats" id="stats"></section>
<section class="section-nav-wrap" aria-label="内容栏目">
<div class="section-tabs" id="sectionTabs" role="tablist" aria-label="AI 新闻栏目"></div>
<div class="section-summary" id="sectionSummary">正在整理栏目...</div>
</section>
</header>
<section class="service-status-panel" id="serviceStatusPanel" aria-live="polite" hidden></section>
<section class="primary-controls">
<input id="searchInput" type="search" placeholder="搜索 AI 信号 / 来源" />
<div class="mode-hint" id="modeHint">AI强相关</div>
</section>
<div class="sticky-summary-bar" aria-label="当前视图摘要">
<strong>AI News Radar</strong>
<span id="stickySummaryText">正在整理 24 小时信号...</span>
</div>
<details class="advanced-panel">
<summary>
<span>高级筛选</span>
<span class="advanced-summary" id="advancedSummary">加载中...</span>
</summary>
<div class="advanced-content">
<div class="advanced-controls">
<label class="field">
<span>时间范围</span>
<select id="timeRangeSelect" aria-label="时间范围">
<option value="24h">过去 24 小时</option>
</select>
</label>
<label class="field">
<span>来源类型</span>
<select id="sourceTypeSelect">
<option value="">全部来源</option>
<option value="official">官方 / 一手</option>
<option value="media">精选媒体 / 日报</option>
<option value="community">社区 / HN / Builders</option>
<option value="rss">RSS / OPML</option>
<option value="aggregate">聚合源</option>
<option value="creator">自媒体</option>
<option value="advanced">进阶源</option>
</select>
</label>
<label class="field">
<span>内容类型</span>
<select id="sectionSelect"></select>
</label>
<label class="field">
<span>信号等级</span>
<select id="signalLevelSelect">
<option value="">全部信号</option>
<option value="high">高优先级</option>
<option value="curated">精选 / 官方</option>
<option value="multi">多源验证</option>
</select>
</label>
<label class="field">
<span>具体来源</span>
<select id="siteSelect">
<option value="">全部站点</option>
</select>
</label>
<div class="field">
<span>AI 相关度</span>
<div class="mode-switch">
<button id="modeAiBtn" class="mode-btn active" type="button">AI强相关</button>
<button id="modeAllBtn" class="mode-btn" type="button">全量</button>
</div>
</div>
<label id="allDedupeWrap" class="all-dedupe" for="allDedupeToggle">
<input id="allDedupeToggle" type="checkbox" checked />
<span class="all-dedupe-dot"></span>
<span id="allDedupeLabel">去重开</span>
</label>
</div>
<div class="data-source-indicator" id="dataSourceIndicator" hidden>
<span id="dataSourceIndicatorText"></span>
<button type="button" id="dataSourceResetBtn" class="data-source-reset-btn">恢复本地</button>
</div>
<div class="source-health" id="sourceHealth">源状态加载中...</div>
<details class="source-detail-panel">
<summary>查看源状态详情</summary>
<div class="source-health-details" id="sourceHealthDetails"></div>
<section class="coverage-strip" id="coverageStrip" aria-label="Source coverage status"></section>
<section class="source-status-table" id="sourceStatusTable" aria-label="源状态详情"></section>
<section class="site-pills" id="sitePills"></section>
</details>
</div>
</details>
<section class="bole-picks-wrap" aria-label="今日 Top 3" id="bolePicksWrap">
<div class="bole-picks-head">
<div>
<p class="section-eyebrow">TODAY'S SIGNALS</p>
<h2 id="topStoriesTitle">今日重点信号</h2>
</div>
<div class="bole-head-tools">
<div class="bole-view-toggle" id="boleViewToggle" hidden>
<button id="boleHotBtn" class="mode-btn" type="button">当前热点</button>
<button id="boleTimelineBtn" class="mode-btn" type="button">时间线</button>
</div>
<span id="bolePicksMeta">按评分排序</span>
</div>
</div>
<div id="bolePicksList" class="bole-board"></div>
</section>
<section class="waytoagi-wrap">
<div class="waytoagi-head">
<h2>社区更新 · WaytoAGI</h2>
<div class="waytoagi-tools">
<div class="waytoagi-switch">
<button id="waytoagiTodayBtn" class="waytoagi-btn active" type="button">最近更新日</button>
<button id="waytoagi7dBtn" class="waytoagi-btn" type="button">近7日</button>
</div>
<span id="waytoagiUpdatedAt">加载中...</span>
</div>
</div>
<div id="waytoagiMeta" class="waytoagi-meta"></div>
<div id="waytoagiList" class="waytoagi-list"></div>
</section>
<section class="list-wrap">
<div class="list-head">
<h2 id="listTitle">全量 AI 情报源</h2>
<div class="list-head-tools">
<div class="list-sort-tools" id="listSortTools" role="group" aria-label="全量列表排序">
<button class="list-sort-btn active" type="button" data-sort="priority" title="综合来源权重、AI相关度、新鲜度与信号强度">综合</button>
<button class="list-sort-btn" type="button" data-sort="latest" title="按发布时间或发现时间倒序">最新</button>
<button class="list-sort-btn" type="button" data-sort="ai" title="按高相关度信号倒序">高分</button>
<button class="list-sort-btn" type="button" data-sort="source" title="按来源聚合度整理">来源</button>
</div>
<span id="resultCount">0 条</span>
</div>
</div>
<div id="newsList" class="news-list"></div>
</section>
</main>
<template id="itemTpl">
<article class="news-card">
<a class="title" target="_blank" rel="noopener noreferrer"></a>
<div class="meta-row">
<span class="site"></span>
<span class="category"></span>
<span class="source"></span>
<time class="time"></time>
</div>
<p class="news-summary"></p>
</article>
</template>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.13.0/dist/gsap.min.js" integrity="sha384-HOvlOYPIs/zjoIkWUGXkVmXsjr8GuZLV+Q+rcPwmJOVZVpvTSXQChiN4t9Euv9Vc" crossorigin="anonymous" defer></script>
<script src="./classic/assets/motion.js?v=ui-adjustment-0620a" defer></script>
<script src="./classic/assets/app.js?v=ui-polish-0626a" defer></script>
<script src="./assets/service-status.js?v=20260909" defer></script>
</body>
</html>
+132
View File
@@ -0,0 +1,132 @@
> Upstream reference from LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319. Relative Markdown links target that immutable upstream snapshot. This reference is not a claim that upstream deployment workflows, development tests or private integrations are installed.
# GPT Handoff: AI News Radar V2
Use this document to hand the project to a fresh GPT/Codex/Claude session for
verification.
## Local Project
- Local path: `/Users/carl2077/workspace/ai-news-radar`
- Public site: `https://learnprompt.github.io/ai-news-radar/`
- Local preview used during development: `http://127.0.0.1:8091/`
- Local preview directory: `/tmp/ai-news-radar-preview`
The working repo may use skip-worktree for large `data/*.json` files. For
browser validation, prefer the preview URL above or rebuild a preview directory
from Git-tracked data. If a checked-out copy already has `data/*.json`, this is
enough:
```bash
cd /Users/carl2077/workspace/ai-news-radar
python -m http.server 8080
```
## What This Project Is
AI News Radar is a static 24h AI/tech news radar:
- ordinary readers open the hosted page and read 24h AI updates
- maintainers can fork it and add private OPML/RSS via GitHub Secrets
- Codex / Claude Code can use `skills/ai-news-radar/SKILL.md` to maintain source
coverage, evaluate new feeds, and keep the product simple
## Implemented V2 Work
Product/UI:
- Added first-viewport coverage radar:
- source health
- AI signal density
- official/newsletter coverage
- Builders/X coverage through Follow Builders
- aggregator breadth
- private extension readiness through OPML/Secrets
- Added source-type tags on news cards, such as official, newsletter,
Builders/X, and aggregator.
- Kept advanced filters inside the advanced panel so ordinary readers are not
forced to choose between many source controls.
- Added SVG favicon from the existing logo.
Sources and coverage:
- Built-in official AI sources include OpenAI News, OpenAI Codex Changelog,
OpenAI Skills commits filtered for Codex/pet-related updates, Anthropic,
Google DeepMind, Google AI, Hugging Face, and GitHub AI/Changelog.
- AI Breakfast is read through its public archive path because Beehiiv feed
access can be blocked in CLI/GitHub Actions environments.
- Follow Builders is consumed as public generated JSON feed files. The project
does not copy its X API token flow.
- X API, email inboxes, WeChat, cookies, and login-bound bridges are treated as
advanced/private integrations, not public defaults.
Skill/docs:
- Added `skills/ai-news-radar/SKILL.md` for Codex/Claude workflows.
- Added `skills/ai-news-radar/references/source-intake.md`.
- Added `skills/ai-news-radar/references/v2-method.md`.
- Added `docs/SOURCE_COVERAGE.md`.
- Added `docs/V2_PRODUCT_BRIEF.md`.
- Updated `README.md` so readers, fork users, and agent users each have a clear
entry point.
## Validation Already Run
```bash
node --check assets/app.js
/tmp/ai-news-radar-venv/bin/python /Users/carl2077/.codex/skills/.system/skill-creator/scripts/quick_validate.py skills/ai-news-radar
/tmp/ai-news-radar-venv/bin/pytest -q
git diff --check
```
Last known result:
- Skill validator: `Skill is valid!`
- Tests: `28 passed`
- GitHub Pages deployment: success
## Verification Checklist For A Fresh GPT
Please verify:
1. Reader path: Can a normal user understand that they only need to open the
public page?
2. Fork path: Can a GitHub user understand how to fork, enable Pages/Actions,
and optionally add OPML through `FOLLOW_OPML_B64`?
3. Agent path: Can Codex/Claude find the Skill and know which files to read
first?
4. Coverage honesty: Does the repo clearly distinguish public default sources
from advanced/private integrations?
5. UI: Does the first viewport show source coverage without overwhelming new
users?
6. Safety: Are private OPML files, tokens, cookies, inboxes, and API keys kept
out of the repository?
7. Maintenance: Are validation commands and source-intake rules clear enough for
a future agent to add or reject new sources?
## Suggested Prompt For New GPT
```text
你现在接手本地项目:
/Users/carl2077/workspace/ai-news-radar
请使用项目内 Skill:
skills/ai-news-radar/SKILL.md
请先阅读:
README.md
docs/GPT_HANDOFF.md
docs/SOURCE_COVERAGE.md
docs/V2_PRODUCT_BRIEF.md
skills/ai-news-radar/references/source-intake.md
skills/ai-news-radar/references/v2-method.md
任务:
1. 判断这个 AI 新闻聚合项目是否已经达到 v2 soft launch / 可公开发布状态。
2. 分别从普通读者、fork 用户、Codex/Claude Skill 用户三个角度验收 README 和项目结构。
3. 检查是否有隐私/密钥/OPML 泄漏风险。
4. 检查信息源覆盖是否诚实:哪些是公共默认源,哪些只是高级/私有路径。
5. 如果发现问题,请按严重程度列出具体文件和建议修复方式。
不要直接重构。先做验收报告。
```
+113
View File
@@ -0,0 +1,113 @@
> Upstream reference from LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319. Relative Markdown links target that immutable upstream snapshot. This reference is not a claim that upstream deployment workflows, development tests or private integrations are installed.
# AI News Radar Roadmap
## Parked — 三口味 persona 网页 UI(2026-07-15 归档)
v0.8–v0.9 期间网页端曾上线「今日 TOP3 · 三口味锐评」置顶板块与精选卡片的单条锐评行,因样式不满意在 v0.9 发布前暂时下线,待重新设计后回归。
- 开关:`assets/app.js` 的 `PERSONA_UI_ENABLED`(现为 `false`,置回 `true` 即恢复板块与锐评行,渲染代码完整保留)。
- 不受影响:数据管线(`scripts/persona_score.py` 每轮照常生成 `data/daily-brief.json` 的 persona 字段与 `data/top3-personas.json`)、Skill 端日报的三口味点评。
- 回归前要解决的:三列并排面板与卡片视觉融合度、锐评行与推荐理由的层级关系、口味名称/分数的展示样式。
## v0.3.0 — Source Overlap Check
Goal: before adding a new public default source, evaluate whether its recent items are mostly duplicates of the existing source set.
Status: implemented as a maintainer-facing intake tool.
### What ships
- `scripts/evaluate_source_overlap.py`
- Fetches a candidate RSS/Atom source.
- Compares recent candidate items against `data/archive.json` or another baseline JSON.
- Reports hard duplicates, possible duplicates, unique items, top overlapping sources, and a recommendation.
- `tests/test_source_overlap.py`
- Covers URL exact matches, title similarity, duplicate-rate statistics, threshold recommendations, and the small-sample guard.
### Default decision thresholds
- `< 35%` duplicate rate: `accept_default`
- `35%–65%` duplicate rate: `watchlist`
- `>= 65%` duplicate rate: `skip_duplicate`
- `< 5` recent candidate items: always `watchlist`, because the sample is too small for automatic rejection.
### Example
```bash
python scripts/evaluate_source_overlap.py \
--source-url https://aihot.virxact.com/feed.xml \
--source-name "AI HOT" \
--site-id aihot_candidate \
--baseline data/archive.json \
--lookback-days 7 \
--output /tmp/aihot-overlap.json
```
The tool is advisory only. It does not change `update_news.py`, does not remove any items, and does not publish the report to GitHub Pages by default.
## v0.4.0 — Explainable AI Relevance Scoring
Goal: move beyond a black-box boolean topic filter and make every AI relevance decision inspectable, testable, and tunable.
Status: implemented as the default topic-filtering layer.
### What ships
- `scripts/ai_relevance.py`
- Scores each normalized record with `score_ai_relevance(record)`.
- Emits `is_ai_related`, `score`, `label`, `reason`, `signals`, and `noise`.
- Keeps `is_ai_related_record(record)` as a backward-compatible boolean wrapper.
- `scripts/update_news.py`
- Uses the new scorer before writing the 24h Signal payload.
- Adds AI relevance fields to kept records so downstream UI and audits can explain why an item passed.
- Publishes the filter metadata as `topic_filter=ai_relevance_scoring_v0_4` and `ai_relevance_threshold=0.65`.
- `scripts/audit_ai_relevance.py`
- Generates a Markdown audit report from `latest-24h.json` and `latest-24h-all.json`.
- Summarizes raw keep rate, label distribution, source keep rate, top kept samples, high-score dropped samples, and review-band candidates.
- `tests/test_ai_relevance.py`
- Covers strong AI signals, broad AI terms with tech context, trusted AI-source priors, noise suppression, structured output fields, and boolean compatibility.
### Default decision thresholds
- `score >= 0.65`: keep in the AI Signal view.
- `0.45 <= score < 0.65`: review band for future manual or LLM second-pass review.
- `< 0.45`: keep only in all-mode/archive data.
### Audit example
```bash
python scripts/update_news.py \
--output-dir /tmp/ai-news-radar-v0.4-preview \
--window-hours 24 \
--rss-opml feeds/follow.opml
python scripts/audit_ai_relevance.py \
--data-dir /tmp/ai-news-radar-v0.4-preview \
--output reports/ai-relevance-audit/v0.4.0-YYYY-MM-DD.md
```
### Non-goals for v0.4.0
- No LLM classifier in the default GitHub Actions path.
- No full-body semantic reading; the default scorer remains title/source/url based.
- No automatic source deletion based on keep rate.
- No public page layout redesign.
## v0.5.0 — Story Merge / Event Cluster
Goal: move beyond per-item filtering and represent the same event as one story with multiple source references.
### Planned direction
- Keep the current filter-first behavior as the safe default.
- Add a story clustering layer after source normalization and before page payload generation.
- Preserve one primary title plus secondary source references, instead of randomly choosing one duplicated item.
- Show repeated coverage as a trust signal: "多个来源报道了这件事".
### Non-goals for v0.5.0
- No LLM semantic clustering in the first pass.
- No cross-language deep semantic matching unless the rule-based event merge proves insufficient.
- No automatic deletion of sources based only on overlap score.
- No change to the public page layout unless the story data model is stable.
@@ -0,0 +1,278 @@
> Upstream reference from LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319. Relative Markdown links target that immutable upstream snapshot. This reference is not a claim that upstream deployment workflows, development tests or private integrations are installed.
# Source Coverage Plan
This project should help ordinary AI enthusiasts scan high-signal updates
without forcing them to follow noisy timelines or manage many source choices.
## Product Model
Use a two-layer model:
1. **Signal layer**: the default web UI. It should show a high-priority curated
subset first, with the complete AI-related pool available as an explicit
advanced choice. It should also show AI/tech updates,
WaytoAGI changes, search, site filtering, and a simple AI-focused / all toggle.
2. **Advanced layer**: maintainer and power-user workflows. It includes OPML,
source health data, GitHub Actions secrets, and custom fetchers.
Do not expose every source-management decision in the first screen. Too many
choices make the tool harder for new users to understand.
The first screen may show coverage and health as read-only status signals:
source health, AI signal density, official/newsletter coverage, builders/X,
aggregator breadth, and private extension readiness.
## V2 Coverage Claim
The project can be packaged as a Skill because it covers the common public paths
for AI news collection:
- official RSS/Atom/JSON and changelog pages
- OPML collections for personal source lists
- public GitHub-generated feeds such as curated X/blog/newsletter projects
- public newsletter archives and static pages
- optional secret-backed adapters for sources that need user-owned credentials
It does not promise reliable default coverage for private inboxes, cookies,
WeChat accounts, or raw social timelines. Those belong in the advanced layer or
private forks because they need credentials, bridges, or ongoing maintenance.
## Supported Source Types
| Source type | Current support | Recommended path | Notes |
| --- | --- | --- | --- |
| Official RSS / Atom | Supported through OPML | Add to `feeds/follow.opml` locally, or `FOLLOW_OPML_B64` in GitHub Actions | Best default for personal customization. |
| Official AI vendor updates | Built in for selected high-signal sources | Keep OpenAI, Anthropic, Google DeepMind/AI, Hugging Face, and GitHub AI/Changelog as first-class sources | These should not depend only on aggregator coverage. |
| Curated AI media RSS | Built in for selected high-signal public feeds | Keep source-specific caps and AI/research filters so media breadth does not drown the default view | Useful for product, industry, model, and research coverage. |
| OPML collections | Supported | Export from RSS reader, copy from `feeds/follow.example.opml`, keep private file out of git | Good for cross-device and multi-agent workflows. |
| Public JSON APIs | Supported by custom Python fetchers | Add a `fetch_*` function in `scripts/update_news.py` and register it in the task list | Use only stable APIs with timestamps. |
| Public GitHub-generated feeds | Supported by custom Python fetchers | Prefer raw `feed*.json` / RSS / Atom files generated by another repo's Actions | Good for curated projects like Follow Builders. |
| Public static pages | Supported by custom Python fetchers | Parse with `requests` + BeautifulSoup and normalize titles/URLs/times | Avoid fragile selectors when possible. |
| GitHub releases/blogs | Usually supported through Atom/RSS | Prefer GitHub Atom feeds or official blog RSS | Useful for model/platform/tool release tracking. |
| Newsletters | Partially supported | Prefer public archive RSS or stable archive pages | Do not scrape private inboxes. |
| X / Twitter | Supported only through curated central feeds or opt-in API adapters | Prefer public generated feeds that already use official X API; keep direct X API optional and secret-backed | Following a person often imports noise; public bridge routes can be unstable. |
| WeChat public accounts | Not recommended as a default | Use stable third-party RSS only if the maintainer accepts breakage risk | Login/copyright/bridge stability can be poor. |
| Telegram / Bilibili / Zhihu / podcasts | Skipped by default when feeds are unreliable | Add only as opt-in OPML entries | These can be noisy or bridge-dependent. |
## Source Selection Rules
Add a source only when it passes most of these checks:
- Publishes AI, model, developer tool, or tech industry updates with low noise.
- Has a stable URL, feed, API, or page structure.
- Provides usable timestamps or enough ordering information.
- Does not require private cookies, login sessions, browser automation, or secrets.
- Can be fetched politely by GitHub Actions without heavy rate limits.
- Adds coverage not already represented by stronger sources.
## Built-In Official Nodes
The public site should directly track these high-signal official sources:
- OpenAI News RSS
- Anthropic News page
- Google DeepMind RSS
- Google AI Blog RSS
- Hugging Face Blog RSS
- GitHub AI & ML RSS
- GitHub Changelog RSS
Aggregator sites may already surface some of these updates, but they are not
guaranteed to be complete or timely. Keep these official sources as a stable
baseline, then let the aggregator layer add breadth.
## Built-In Curated Feeds
- **Follow Builders**: reads public `feed-x.json`, `feed-blogs.json`, and
`feed-podcasts.json` generated by `zarazhangrui/follow-builders`. That project
uses centralized GitHub Actions plus official X API credentials. This project
consumes only its public generated JSON files, so public visitors do not need
X API credentials.
- **Curated AI media RSS**: reads a small set of public RSS/Atom feeds that add
coverage without requiring login: The Decoder AI News, TechCrunch AI, The
Verge RSS with strict AI-title filtering, MarkTechPost Research with research
filtering, VentureBeat AI, Artificial Intelligence News, and Claude Code
GitHub releases. These feeds are capped per source and pass through the same
AI relevance scoring as the rest of the radar. Research-heavy feeds are
intentionally filtered and downweighted so they fill the research lane without
dominating the default hot view.
- **AI Breakfast**: reads the public Beehiiv archive through Jina Reader because
the original Beehiiv feed can be blocked from GitHub Actions.
- **AI HOT**: reads the public `https://aihot.virxact.com/api/public/items`
API in selected mode and keeps only items whose AI HOT card score is at least
60. The parser preserves AI HOT's Chinese title, valid English original title,
editorial summary, category, score, and canonical source URL. The RSS feed is
intentionally not used for the default fetch path because it does not expose
the source score field needed for this quality gate.
- **Hacker News Algolia**: reads the public
`https://hn.algolia.com/api/v1/search_by_date` endpoint for the last 24 hours
of HN stories matching focused AI/tooling keywords such as OpenAI, Anthropic,
Claude Code, Codex, MCP, Cursor, Gemini, DeepSeek, Qwen, LLM, GPT, Sora, and
Copilot. This is not a private HN API and does not require a key. It keeps
only titles with multiple AI keyword signals and enough discussion
(`num_comments >= 2` or `points >= 10`), so it remains a discussion/heat
reference rather than a broad HN firehose.
- **WaytoAGI**: reads the public Feishu wiki update log into
`data/waytoagi-7d.json`; the latest update day is also promoted into the
community signal lane so it can appear under the Community tab without
occupying a standalone homepage block.
## Disabled Default Sources
- **X API direct recent search**: supported as an advanced, secret-backed adapter
through `X_API_ENABLED=1` and `X_BEARER_TOKEN`, but disabled by default because
current official X API docs describe paid read credits rather than a free daily
read quota. Use `X_API_MAX_RESULTS`, `X_API_DAILY_POST_LIMIT`, and
`X_API_RUN_UTC_HOUR` to cap usage.
- **SocialData.tools X search**: supported as an advanced, secret-backed adapter
through `SOCIALDATA_ENABLED=1` and `SOCIALDATA_API_KEY`, but disabled by
default. It reads public X/Twitter search results from the third-party
SocialData API, not from the official X API. Use `SOCIALDATA_QUERY`,
`SOCIALDATA_MAX_RESULTS`, `SOCIALDATA_DAILY_TWEET_LIMIT`, and
`SOCIALDATA_RUN_INTERVAL_HOURS` to keep cost and noise bounded. The default
SocialData interval is 12 hours. The previous `SOCIALDATA_RUN_UTC_HOUR`
setting still controls the first run window when no paid-source state exists
yet. SocialData search normally returns about 20
tweets per page; the fetcher follows `next_cursor` with the `cursor`
parameter until the configured effective cap is reached or the API stops
returning a cursor.
- **TikHub Douyin/Xiaohongshu search**: supported as an advanced,
secret-backed adapter through `TIKHUB_ENABLED=1` and `TIKHUB_API_KEY`, but
disabled by default. It reads public Douyin and Xiaohongshu keyword search
results through TikHub's paid API, not official RSS. Use `TIKHUB_QUERY`,
`TIKHUB_PLATFORMS`, `TIKHUB_MAX_RESULTS`, `TIKHUB_DAILY_ITEM_LIMIT`, and
`TIKHUB_RUN_INTERVAL_HOURS` to keep cost and noise bounded. The default
TikHub interval for Douyin/Xiaohongshu is 24 hours. The previous
`TIKHUB_RUN_UTC_HOUR` setting still controls the first run window when no
paid-source state exists yet. Prefer focused AI
keywords over general hot lists so entertainment trends do not flood the
Signal view. The default query puts focused AI terms such as OpenAI, Claude,
large models, Agent, and AI tools ahead of broad `AI`/`人工智能` fallbacks, and
per-platform caps are spread across keywords so one broad term cannot consume
the whole paid-source budget. TikHub requests use the most-liked/popularity
sort and a one-week publish bucket, then the radar enforces the current-week
cutoff in code. The creator lane uses a separate seven-day pool ranked by
85% engagement heat plus a 15-point bonus for posts published in the last
24 hours; the rest of the site remains a 24-hour radar. Xiaohongshu uses the
recommended App V2 search endpoint
first and only falls back to Web V3 when App V2 cannot fill the current
keyword budget. It deduplicates by note id, ignores sentinel API timestamps
such as zero, infers missing note times from the timestamp prefix in the
Xiaohongshu note id, and drops results whose publish time is missing or older
than the current-week window; Douyin stays on TikHub's current Douyin Search
API rather than deprecated App V3 search paths.
The official TikHub Python SDK is generated from OpenAPI V5.3.2, so SDK
resources mirror OpenAPI tags. The SDK documents Douyin coverage as
`douyin_web`, `douyin_app_v3`, `douyin_search`, `douyin_billboard`,
`douyin_creator`, and `douyin_xingtu` with 400+ endpoints. The current
OpenAPI also includes `douyin_creator_v2`, `douyin_index`, and
`douyin_xingtu_v2`. For AI News Radar, keep the default TikHub read on
`douyin_search.fetch_general_search_v2`; App V3 search endpoints are
deprecated, while billboard, creator, xingtu, and index endpoints are better
future candidates for separate advanced trend/creator lanes.
The SDK documents Xiaohongshu coverage as `xiaohongshu_web` and
`xiaohongshu_app` plus v2/v3 variants with 80+ endpoints. Current OpenAPI
priority is `xiaohongshu_app_v2` first, then `xiaohongshu_app`, then
`xiaohongshu_web_v2`, then `xiaohongshu_web`; however, the old
`xiaohongshu_app` and `xiaohongshu_web` tags are marked deprecated in
OpenAPI. The radar therefore scans `xiaohongshu_app_v2.search_notes` and
`xiaohongshu_web_v3.fetch_search_notes`, records the `search_surface` in
public raw output, and treats Web V3 failures as non-fatal when App V2
succeeds.
- **AgentMail digest**: supported as an advanced metadata-only source through
`EMAIL_DIGEST_ENABLED=1`, but disabled by default. For the current QQ Agent
Mail path, set `AGENTMAIL_PROVIDER=agently_cli` after `agently-cli auth login`;
the fetcher defaults to `agently-cli message +list`. In a privately authorized run, `AGENTMAIL_RESOLVE_PUBLIC_URLS=1` may read allowed senders’ messages in memory to extract newsletter archive URLs; bodies are never written to output. The
legacy API path remains available with `AGENTMAIL_PROVIDER=api`,
`AGENTMAIL_API_KEY`, and `AGENTMAIL_INBOX_ID`. It deliberately lists messages
only and does not publish body text, raw `.eml`, full email addresses, or
secrets. Use `AGENTMAIL_ALLOWED_SENDER_DOMAINS` to scope a shared inbox. Only
set `EMAIL_DIGEST_INCLUDE_IN_RADAR=1` when the maintainer explicitly wants
subject/snippet metadata to appear as the standalone `agentmail` source in
Radar data.
See `docs/research/advanced-source-free-tier-budget-2026-05-10.md` for the X API
and AgentMail budget notes.
## Example OPML Seeds
`feeds/follow.example.opml` contains a public, low-risk demo set that is expected
to pass through the real project fetch path on GitHub Actions:
- **Official examples**: OpenAI News, Hugging Face Blog, Google DeepMind Blog,
Google AI Blog, and Microsoft AI Blog.
- **AI media / builder feeds**: Wired AI, InfoQ CN, NVIDIA Generative AI Blog,
宝玉, and Simon Willison.
In GitHub Actions, `feeds/follow.example.opml` is also used as the public demo
fallback when no private `FOLLOW_OPML_B64` secret is configured. This keeps the
hosted page visibly proving that RSS/OPML import works without requiring any
private subscriptions. Maintainers can override it by setting `FOLLOW_OPML_B64`.
Substack newsletters are intentionally excluded from the public demo OPML because
GitHub Actions runners can receive `403 Forbidden` even when the same feeds work
locally. QbitAI remains on the watchlist because the direct feed probed via
`urllib` but returned `403 Forbidden` through the project fetch path. Broad
sources such as Hacker News frontpage, general hot lists, X bridges, and WeChat
bridges remain outside the example file unless the maintainer explicitly accepts
the extra filtering and maintenance risk.
Recent candidates skipped from the built-in default set:
- **OpenRouter Announcements**: the public page advertises an RSS alternate, but
the observed `/blog/feed.xml` target returned a Not Found page during intake.
- **LMSYS Blog**: probed feed endpoints redirected or returned 404.
- **Hugging Face Daily Papers**: probed RSS-style endpoints returned 401/404;
keep it out of the default set until a stable public feed is available.
- **Berkeley RDI Blog**: `/feed.xml` returned only a stale Jekyll placeholder
item from 2021, so it is not useful as a default source yet.
## Personal Source Workflow
For a private custom setup:
1. Copy `feeds/follow.example.opml` to `feeds/follow.opml`.
2. Add official RSS/Atom feeds to `feeds/follow.opml`.
3. Run:
```bash
python scripts/update_news.py --output-dir data --window-hours 24 --rss-opml feeds/follow.opml
```
4. Check `data/source-status.json` for `failed_feeds`, `zero_item_feeds`,
`skipped_feeds`, and `replaced_feeds`.
5. Keep `feeds/follow.opml` private. For GitHub Actions, store its base64
content in the `FOLLOW_OPML_B64` secret.
## Adding A Built-In Source
Use this only for sources that should benefit every public visitor:
1. Add a `fetch_<source_name>(session, now)` function in `scripts/update_news.py`.
2. Return `RawItem` objects with `site_id`, `site_name`, `source`, `title`, `url`,
`published_at`, and `meta`.
3. Register the fetcher in the built-in task list.
4. Normalize URLs and dates using existing helpers.
5. Update this document if the source changes coverage.
6. Run the fastest relevant checks:
```bash
python -m py_compile scripts/update_news.py
pytest -q
```
## Deployment
The public deployment should remain GitHub Pages + GitHub Actions:
- GitHub Actions updates `data/*.json`.
- GitHub Pages serves `index.html` and `assets/*`.
- Private OPML input belongs in `FOLLOW_OPML_B64`, not in the repository.
This keeps the public version easy to fork while still letting each maintainer
bring their own private source list.
## Official service status
The collector reads OpenAI’s public status API and writes `data/service-status.json` separately from news. Only investigating, identified and monitoring incidents appear in the shared mobile/classic banner; resolved incidents, failed reads and snapshots older than two hours stay hidden. A hidden banner is not an assertion that every service is healthy. The normal update workflow publishes the generated file.
@@ -0,0 +1,61 @@
> Upstream reference from LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319. Relative Markdown links target that immutable upstream snapshot. This reference is not a claim that upstream deployment workflows, development tests or private integrations are installed.
# AI News Radar V2 Product Brief
Generated from an Office Hours style product diagnostic plus a Superpowers style
implementation loop.
## Problem Statement
Ordinary AI enthusiasts want a high-signal AI update page they can open without
building a personal RSS/X/email pipeline. Maintainers and agent users need a
clear path to add their own sources without breaking the public default.
## Demand Evidence
- The user asked for broad distribution, not just a personal dashboard.
- Too many source choices were called out as a problem for newcomers.
- X and email were discussed as valuable but unreliable as defaults.
- GitHub-generated public feeds such as Follow Builders were preferred because
they centralize unstable API work and expose stable public outputs.
## Status Quo
People currently mix manual site visits, noisy X timelines, newsletter inboxes,
RSS readers, and aggregator sites. Each path covers part of the signal, but none
is both low-noise and easy to fork.
## Narrowest Useful Wedge
Keep the default page as a simple 24h signal board, but make the source model
visible: source health, AI signal density, official/newsletter coverage,
builders/X coverage, aggregator breadth, and private extension readiness.
## Approaches Considered
### A: Add More Sources
Fast to make the feed look richer, but risks noise and does not explain the
coverage model.
### B: Surface Coverage As Product Signal
Adds first-viewport trust without adding controls. It helps users understand why
the project is more than another aggregator.
### C: Build Full Self-Hosted X/Email Adapters
Powerful for private forks, but too credential-heavy and fragile for the public
default.
## Recommended Approach
Use Approach B now. Keep Approach C as advanced/private integration guidance.
## Success Criteria
- First viewport answers: what is covered, whether sources are healthy, and how
private extensions fit.
- No extra default choices are required from ordinary readers.
- X/email remain optional and secret-backed, not public defaults.
- Future agents can route a new source into public default vs advanced/private.
-37
View File
@@ -1,37 +0,0 @@
{
"id": "ai-news-radar",
"name": "AI News Radar",
"category": "productivity",
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\"><rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"2\" stroke=\"#2563EB\" stroke-width=\"1.7\"/><path d=\"M8 8h5m-5 4h8m-8 4h5\" stroke=\"#2563EB\" stroke-width=\"1.7\" stroke-linecap=\"round\"/><circle cx=\"17\" cy=\"8\" r=\"1.5\" fill=\"#2563EB\"/></svg>",
"tags": [
"ai-news",
"rss",
"learnprompt"
],
"i18n": {
"zh-CN": {
"name": "AI 资讯雷达",
"shortDesc": "24 小时 AI 资讯雷达:从多信源筛选要闻、合并成故事线,并用三种口味锐评每日头条。需自行配置 Python 运行环境与信源;邮件接入须另行授权。"
},
"en-US": {
"name": "AI News Radar",
"shortDesc": "24/7 AI news radar that curates multiple sources into storylines and delivers daily headlines with three flavors of commentary. Requires a separately configured Python environment and sources; mail access requires separate authorization."
}
},
"maintainer": {
"name": "LearnPrompt",
"verified": false,
"account": "LearnPrompt",
"url": "https://github.com/LearnPrompt/ai-news-radar"
},
"stewardship": "community",
"license": "MIT",
"redistribution": "allowed",
"source": {
"kind": "git",
"repoUrl": "https://github.com/LearnPrompt/ai-news-radar.git",
"repoBranch": "master",
"path": "skills/ai-news-radar",
"ref": "689395109cc962a27c369bdd6fa50d1e090eb319"
}
}
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<opml version="2.0">
<head>
<title>AI News Radar RSS Example</title>
</head>
<body>
<outline text="Official AI Sources">
<outline
text="OpenAI News"
title="OpenAI News"
type="rss"
xmlUrl="https://openai.com/news/rss.xml"
htmlUrl="https://openai.com/news"
/>
<outline
text="Hugging Face Blog"
title="Hugging Face Blog"
type="rss"
xmlUrl="https://huggingface.co/blog/feed.xml"
htmlUrl="https://huggingface.co/blog"
/>
<outline
text="Google DeepMind Blog"
title="Google DeepMind Blog"
type="rss"
xmlUrl="https://deepmind.google/blog/rss.xml"
htmlUrl="https://deepmind.google/discover/blog/"
/>
<outline
text="Google AI Blog"
title="Google AI Blog"
type="rss"
xmlUrl="https://blog.google/technology/ai/rss/"
htmlUrl="https://blog.google/technology/ai/"
/>
<outline
text="Microsoft AI Blog"
title="Microsoft AI Blog"
type="rss"
xmlUrl="https://news.microsoft.com/source/topics/ai/feed/"
htmlUrl="https://news.microsoft.com/source/topics/ai/"
/>
</outline>
<outline text="AI Media and Builders">
<outline
text="Wired AI"
title="Wired AI"
type="rss"
xmlUrl="https://www.wired.com/feed/tag/ai/latest/rss"
htmlUrl="https://www.wired.com/tag/artificial-intelligence/"
/>
<outline
text="InfoQ CN"
title="InfoQ CN"
type="rss"
xmlUrl="https://www.infoq.cn/feed"
htmlUrl="https://www.infoq.cn/"
/>
<outline
text="NVIDIA Generative AI Blog"
title="NVIDIA Generative AI Blog"
type="rss"
xmlUrl="https://developer.nvidia.com/blog/category/generative-ai/feed/"
htmlUrl="https://developer.nvidia.com/blog/category/generative-ai/"
/>
<outline
text="宝玉"
title="宝玉"
type="rss"
xmlUrl="https://baoyu.io/feed.xml"
htmlUrl="https://baoyu.io/"
/>
<outline
text="Simon Willison"
title="Simon Willison"
type="rss"
xmlUrl="https://simonwillison.net/atom/everything/"
htmlUrl="https://simonwillison.net/"
/>
</outline>
</body>
</opml>
+213
View File
@@ -0,0 +1,213 @@
<!doctype html>
<html lang="zh-CN" data-radar-view="mobile">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AI News Radar|24 小时 AI 更新雷达</title>
<meta
name="description"
content="自动整理过去 24 小时值得看的 AI、模型和开发者工具更新;伯乐Skill(Scout Skill)帮你从一堆信源里选出千里马。"
/>
<link rel="canonical" href="https://news.learnprompt.pro/" />
<meta property="og:title" content="AI News Radar|24 小时 AI 更新雷达" />
<meta
property="og:description"
content="自动整理过去 24 小时值得看的 AI、模型和开发者工具更新;伯乐Skill(Scout Skill)帮你从一堆信源里选出千里马。"
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://news.learnprompt.pro/" />
<meta property="og:site_name" content="AI News Radar" />
<meta property="og:image" content="https://news.learnprompt.pro/assets/og.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="AI News Radar 24 小时 AI 更新雷达" />
<meta name="application-name" content="AI News Radar" />
<meta name="theme-color" content="#f6f6f2" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="AI News Radar" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="AI News Radar|24 小时 AI 更新雷达" />
<meta
name="twitter:description"
content="自动整理过去 24 小时值得看的 AI、模型和开发者工具更新;伯乐Skill(Scout Skill)帮你从一堆信源里选出千里马。"
/>
<meta name="twitter:image" content="https://news.learnprompt.pro/assets/og.png" />
<link rel="icon" href="./assets/logo.svg" type="image/svg+xml" />
<link rel="icon" href="./assets/icons/favicon-32.png" sizes="32x32" type="image/png" />
<link rel="apple-touch-icon" href="./assets/icons/apple-touch-icon.png" sizes="180x180" />
<link rel="manifest" href="./site.webmanifest" />
<script src="./assets/view-mode.js?v=dual-view-0713c" data-root="./"></script>
<link rel="stylesheet" href="./assets/styles.css?v=aihot-0715b" />
<link rel="stylesheet" href="./assets/view-switch.css?v=dual-view-0713b" />
<link rel="stylesheet" href="./assets/service-status.css?v=20260909" />
</head>
<body>
<a class="skip-link" href="#hotBoardWrap">跳到当前热点</a>
<main class="shell">
<header class="hero">
<div class="hero-main">
<div class="hero-headline">
<img class="hero-logo" src="./assets/logo.svg" alt="AI News Radar Logo" />
<div>
<h1>AI News Radar</h1>
<div class="hero-updated hero-view-row">
<span class="updated-label">更新时间</span>
<span class="updated" id="updatedAt">加载中...</span>
<div class="view-switch" role="group" aria-label="视角切换">
<span class="view-switch-label">视角</span>
<button class="view-switch-btn" type="button" data-radar-view-target="mobile">手机版</button>
<button class="view-switch-btn" type="button" data-radar-view-target="classic">经典版</button>
</div>
</div>
</div>
</div>
</div>
<div class="hero-meta">
<span class="source-status-pill" id="sourceStatusPill">源状态加载中</span>
<div class="hero-links" aria-label="项目入口">
<a
class="hero-link"
href="https://github.com/LearnPrompt/ai-news-radar"
target="_blank"
rel="noopener noreferrer"
>GitHub 与接入指南</a>
<a
class="hero-link"
href="https://aimap.carlwow.com"
target="_blank"
rel="noopener noreferrer"
>AI MAP 热点图谱</a>
<a
class="hero-link"
href="https://goodcase.carlwow.com"
target="_blank"
rel="noopener noreferrer"
>GoodCase 用例库</a>
</div>
</div>
<section class="section-nav-wrap" aria-label="内容栏目">
<div class="section-tabs" id="sectionTabs" role="tablist" aria-label="AI 新闻栏目"></div>
<div class="section-scroll-hint" aria-hidden="true">左右滑动,查看更多栏目 →</div>
</section>
</header>
<section class="service-status-panel" id="serviceStatusPanel" aria-live="polite" hidden></section>
<section class="primary-controls">
<div class="mode-switch curation-mode-switch" role="group" aria-label="精选/全量切换">
<button id="modeSelectedBtn" class="mode-btn active" type="button" aria-pressed="true">
<span class="mode-btn-icon" aria-hidden="true">&#10022;</span>精选
</button>
<button id="modeAllBtn" class="mode-btn" type="button" aria-pressed="false">
<span class="mode-btn-icon" aria-hidden="true">&#9776;</span>全量
</button>
</div>
<input id="searchInput" type="search" placeholder="搜索 AI 信号 / 来源" aria-label="搜索 AI 信号或来源" />
<div class="mode-hint" id="modeHint">精选加载中</div>
<button class="clear-filters-btn" id="clearFiltersBtn" type="button" hidden>清除筛选</button>
</section>
<details class="advanced-panel">
<summary>
<span>高级筛选</span>
<span class="advanced-hint">只看某个来源,或检查各信源采集是否正常</span>
</summary>
<div class="advanced-content">
<div class="advanced-controls">
<label class="field">
<span>具体来源</span>
<select id="siteSelect">
<option value="">全部站点</option>
</select>
</label>
</div>
<div class="data-source-indicator" id="dataSourceIndicator" hidden>
<span id="dataSourceIndicatorText"></span>
<button type="button" id="dataSourceResetBtn" class="data-source-reset-btn">恢复本地</button>
</div>
<div class="source-health" id="sourceHealth">源状态加载中...</div>
<details class="source-detail-panel">
<summary>查看源状态详情</summary>
<div class="source-health-details" id="sourceHealthDetails"></div>
<section class="source-status-table" id="sourceStatusTable" aria-label="源状态详情"></section>
</details>
</div>
</details>
<section class="list-wrap hot-board-wrap" id="hotBoardWrap" aria-label="当前热点">
<div class="list-head">
<h2>当前热点</h2>
<span id="hotBoardMeta">按热度排序</span>
</div>
<div id="hotBoardList" class="hot-board-list"></div>
</section>
<section class="list-wrap top3-board-wrap" id="top3BoardWrap" aria-label="今日 TOP3 · 三口味锐评" hidden>
<div class="list-head">
<h2>今日 TOP3 · 三口味锐评</h2>
<span id="top3BoardMeta"></span>
</div>
<div id="top3BoardList" class="top3-board-list"></div>
</section>
<section class="waytoagi-wrap">
<div class="waytoagi-head">
<h2>社区更新 · WaytoAGI</h2>
<div class="waytoagi-tools">
<div class="waytoagi-switch">
<button id="waytoagiTodayBtn" class="waytoagi-btn active" type="button" aria-pressed="true">最近更新日</button>
<button id="waytoagi7dBtn" class="waytoagi-btn" type="button" aria-pressed="false">近7日</button>
</div>
<span id="waytoagiUpdatedAt">加载中...</span>
</div>
</div>
<div id="waytoagiMeta" class="waytoagi-meta"></div>
<div id="waytoagiList" class="waytoagi-list"></div>
</section>
<section class="list-wrap" id="newsListWrap">
<div class="list-head">
<h2 id="listTitle">精选</h2>
<div class="list-head-tools">
<label id="allDedupeWrap" class="all-dedupe" for="allDedupeToggle">
<input id="allDedupeToggle" type="checkbox" checked />
<span class="all-dedupe-dot"></span>
<span id="allDedupeLabel">去重开</span>
</label>
<span id="resultCount">0 条</span>
</div>
</div>
<div id="newsList" class="news-list" aria-live="polite"></div>
</section>
</main>
<template id="itemTpl">
<article class="news-card">
<div class="news-card-body">
<div class="meta-row">
<span class="curated-badge" hidden>精选</span>
<span class="site"></span>
<span class="source"></span>
<strong class="score-badge" hidden></strong>
</div>
<a class="title" target="_blank" rel="noopener noreferrer"></a>
<p class="news-summary"></p>
<div class="why-box" hidden>
<span class="why-label">推荐理由:</span>
<span class="why-text"></span>
</div>
<div class="persona-slot"></div>
</div>
</article>
</template>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.13.0/dist/gsap.min.js" integrity="sha384-HOvlOYPIs/zjoIkWUGXkVmXsjr8GuZLV+Q+rcPwmJOVZVpvTSXQChiN4t9Euv9Vc" crossorigin="anonymous" defer></script>
<script src="./assets/motion.js?v=aihot-0715b" defer></script>
<script src="./assets/app.js?v=aihot-0715b" defer></script>
<script src="./assets/service-status.js?v=20260909" defer></script>
</body>
</html>
+57
View File
@@ -0,0 +1,57 @@
# Personas 口味目录
这里存放 persona 评分器的"口味"定义。`scripts/persona_score.py` 会读取本目录下所有 `*.md` 文件(本 README 除外),用它们作为 LLM 的 system prompt 给每日简报打分和点评。
## 内置口味
| id | 名称 | 视角 |
|----|------|------|
| `pragmatic` | 实用派(默认) | 只关心对开发者/从业者今天有什么用 |
| `cynic` | 毒舌评论员 | 拆穿营销话术和炒作,讥讽但基于事实 |
| `paper-police` | 较真党 | 只认论文/代码/benchmark 实证,对"即将推出"零容忍 |
## 文件格式
每个 persona 是一个 Markdown 文件,由 YAML frontmatter 和正文 prompt 两部分组成:
```markdown
---
id: my-persona
name: 中文名
name_en: English Name
---
正文即 system prompt……
```
frontmatter 字段:
- `id`(必填):只允许小写字母和连字符(`[a-z-]`),需与文件名一致。
- `name`(必填):中文显示名。
- `name_en`(必填):英文显示名。
- `default: true`(可选):默认口味标记,全目录只允许一个(当前是 `pragmatic`)。
注意:解析器是手写的简易 frontmatter 解析(逐行 `key: value`),不要在 frontmatter 里用嵌套结构、多行值或列表。
## 正文 prompt 必须包含
1. **口味自述**:一段话讲清这个口味的立场和关注点,人格要鲜明。
2. **评分标准**:0-100 分的分段说明,写明各分段的侧重点。
3. **输出要求**:要求模型返回 `{"score": <0-100 整数>, "review": "<一句中文点评>"}`,点评不超过 40 字,说人话,不复读标题。
4. **示例点评**:至少 3 条"输入 → 输出"示例,帮模型对齐语气和分数尺度。
## 如何贡献第 4 个口味
1. 复制任意内置口味文件作为模板,起一个符合 `[a-z-]` 的文件名(如 `personas/vc-radar.md`)。
2. 填好 frontmatter(不要写 `default: true`,默认位已被 pragmatic 占用)。
3. 按上面四要素写正文,中文文案避免翻译腔。
4. 本地验证:
```bash
python scripts/persona_score.py --list-personas
```
确认新口味出现在列表里。
5. 跑 `python -m pytest -q tests/test_persona_score.py` 确认解析无误。
新口味会自动参与 TOP3 多口味点评(`data/top3-personas.json`);每日逐条评分仍只用默认口味。
+32
View File
@@ -0,0 +1,32 @@
---
id: cynic
name: 毒舌评论员
name_en: Cynic
---
你是一名毒舌的科技评论员,代号"毒舌评论员"。
## 口味自述
你见过太多发布会和"革命性突破",营销话术在你面前一层层剥落。你专门盯 PR 稿里的水分:夸大的对比基线、精心挑选的 demo、避而不谈的成本和限制。你讥讽,但每一句挖苦都踩在事实上;真材实料你也认,只是嘴上不饶人。
## 评分标准(0-100)
- 85-100:经得起拆。有硬数据、可复现、连竞品都得承认的进展。
- 65-84:七分真三分吹。东西是真的,宣传口径注了水,扣掉水分还剩点干货。
- 40-64:半真半假。demo 好看但条件苛刻,或者对比对象故意挑弱的。
- 15-39:营销为主。改个名就叫新品,或蹭热点的跟风官宣。
- 0-14:纯炒作。无产品、无数据、无时间表,只有形容词。
## 输出要求
返回 JSON:`{"score": <0-100 整数>, "review": "<一句中文点评>"}`。
- 点评不超过 40 字,讥讽要落在具体事实上,不许人身攻击。
- 禁止复读标题,禁止无凭据的阴阳怪气。
## 示例点评
- 输入:某公司称新模型"全面超越 GPT" → `{"score": 30, "review": "对比表只挑了三个自家擅长的榜,剩下的呢?"}`
- 输入:开源模型附完整训练代码和数据配方 → `{"score": 88, "review": "少见的全都敢晒出来,这次没法挑刺。"}`
- 输入:某创业公司宣布"即将颠覆搜索" → `{"score": 12, "review": "颠覆搜索的公司排到门口了,先发个能用的再说。"}`
@@ -0,0 +1,32 @@
---
id: paper-police
name: 较真党
name_en: Stickler
---
你是一名严苛的学术审查员,代号"较真党"。
## 口味自述
你只认三样东西:论文、代码、benchmark。有 arXiv 链接吗?代码开源了吗?评测能复现吗?三个都没有,在你这里就等于什么都没发生。"即将推出""内部消息""知情人士透露"这类措辞会直接触发你的零分警报。你不是不近人情,你只是要求证据。
## 评分标准(0-100)
- 85-100:铁证如山。论文+开源代码+公开 benchmark 三件套齐全,结果可复现。
- 65-84:证据充分。有论文或代码之一,评测方法公开,缺一角但主体可查。
- 40-64:有迹可循。技术报告或博客给了细节和数字,暂无独立验证。
- 15-39:只有说法。官方博客宣称性能,无论文无代码无第三方评测。
- 0-14:查无实据。"即将推出"、传闻、内部消息、匿名爆料,一律不认。
## 输出要求
返回 JSON:`{"score": <0-100 整数>, "review": "<一句中文点评>"}`。
- 点评不超过 40 字,指出证据在哪或缺什么证据。
- 禁止复读标题,禁止用"看起来不错"这类无判断的话。
## 示例点评
- 输入:新模型发布,附论文和 GitHub 仓库 → `{"score": 92, "review": "论文代码都在,跑一遍就知真假,这才叫发布。"}`
- 输入:CEO 访谈称下一代模型"聪明十倍" → `{"score": 8, "review": "十倍从哪测的?没有评测报告就是十倍形容词。"}`
- 输入:技术博客公布评测数字但未开源 → `{"score": 45, "review": "数字给了但没法复现,等第三方跑分再定论。"}`
@@ -0,0 +1,33 @@
---
id: pragmatic
name: 实用派
name_en: Pragmatic
default: true
---
你是一名务实的 AI 从业者点评员,代号"实用派"。
## 口味自述
你只关心一件事:这条新闻对开发者和从业者今天有什么用。能立刻上手的工具、能直接抄的方案、影响选型的价格和接口变化,才值得高分。愿景发布会、融资八卦、没有产品的宣言,一律低分。你不激动也不悲观,像一个每天要交付代码的工程师在扫早报。
## 评分标准(0-100)
- 85-100:今天就能用。新模型/新 API 已开放、开源仓库可 clone、价格降了、限制放开了。
- 65-84:短期内影响工作。重要工具的路线图、benchmark 换榜首、主流框架大版本。
- 40-64:值得知道但不用行动。行业动向、大厂人事、中期研究进展。
- 15-39:与动手无关。融资、估值、宏观评论、口水战。
- 0-14:纯噪音。旧闻回锅、软文、无信息量的官宣。
## 输出要求
返回 JSON:`{"score": <0-100 整数>, "review": "<一句中文点评>"}`。
- 点评不超过 40 字,说人话,直接讲"对你有什么用"或"为什么不用管"。
- 禁止复读标题,禁止"值得关注""令人期待"这类空话。
## 示例点评
- 输入:某模型 API 降价 50% → `{"score": 90, "review": "直接省一半账单,跑批量任务的今天就能换。"}`
- 输入:某大厂宣布五年 AGI 愿景 → `{"score": 20, "review": "愿景不写代码,等有产品再看。"}`
- 输入:主流 Agent 框架发布 2.0,破坏性更新 → `{"score": 78, "review": "老项目升级前先锁版本,迁移指南得读。"}`
@@ -0,0 +1,172 @@
# Source Intake Reference
Use this when evaluating a new information source for AI News Radar.
## V2 Intake Questions
Before implementation, answer these from the URL, repo, or user's message:
- Who benefits: every public visitor, the maintainer, or one private fork?
- What signal does it add that stronger existing sources do not already cover?
- Does it publish stable timestamps and canonical URLs?
- Can GitHub Actions fetch it without login, cookies, or browser automation?
- Does it need secrets? If yes, can it skip cleanly when secrets are missing?
- Will it flood the Signal view with off-topic items?
Only ask the user when the answer changes default vs advanced routing.
## Decision Order
1. Prefer official RSS/Atom/JSON feeds.
2. Prefer public GitHub-generated feeds over rebuilding another project's crawler.
3. Use OPML for private or user-specific feeds.
4. Before making a source public-default, run the Source Overlap Check against the recent archive.
5. Use a built-in fetcher only when the source improves the public default.
6. Avoid login, cookies, browser automation, private inboxes, and committed secrets.
## Source Classes
| Source class | Preferred integration | Default suitability |
| --- | --- | --- |
| Official RSS/Atom | OPML or built-in official source | High |
| GitHub generated JSON/RSS | Built-in fetcher reading raw GitHub URLs | High if curated and timestamped |
| GitHub releases/commits | Atom feed | Medium to high |
| Public changelog page | Focused `requests` + BeautifulSoup fetcher | Medium |
| Aggregator site | Existing custom fetcher pattern | Medium |
| Newsletter archive | RSS if available; stable archive page otherwise | Medium |
| X/Twitter public timeline | Curated central feed or optional X API adapter | Low as default |
| Email inbox | Do not default; require explicit user-owned bridge/API | Low |
| WeChat/private social | Optional only, bridge-dependent | Low |
## GitHub Project Intake
When a user gives a GitHub repo:
1. Read `README*`, `SKILL.md`, `config/*`, and `.github/workflows/*`.
2. Look for generated outputs: `feed*.json`, `latest*.json`, `rss.xml`,
`atom.xml`, `state*.json`, or a `gh-pages` branch.
3. Inspect output schema:
- title/text field
- canonical URL
- timestamp (`createdAt`, `publishedAt`, `generatedAt`, `pubDate`)
- source/person/feed name
- stable IDs for dedupe
4. Inspect workflow secrets and dependencies:
- If the repo uses API keys centrally but publishes public feed files, consume
the feed files.
- If every user must provide keys, treat it as an optional advanced source.
5. Test raw URLs from GitHub Actions-friendly locations:
- `https://raw.githubusercontent.com/<owner>/<repo>/<branch>/<file>`
- public GitHub Pages URL if provided
6. Add a fetcher only after a source-only probe succeeds locally.
Treat public generated feed files as the durable path. If the repo has a stable
GitHub Action that commits `feed*.json` using its own API credentials, consume
those public outputs. Do not clone its token flow into this repo unless the user
explicitly asks for a self-hosted variant.
## X/Twitter Rules
Do not depend on public RSSHub/XCancel/Nitter routes as a default source unless
the user explicitly accepts instability. They can work briefly and then time out.
Stable patterns:
- Read a curated central feed that already uses official X API, like
Follow Builders.
- Add a self-hosted optional X adapter using `X_BEARER_TOKEN`; skip cleanly when
the token is missing.
For optional X API adapters:
- Store tokens only in GitHub Secrets or environment variables.
- Never print or commit tokens.
- Exclude retweets/replies by default.
- Cap per-account items.
- Record rate-limit or permission failures in `source-status.json`.
- Skip cleanly when `X_BEARER_TOKEN` is missing; the public site must still run.
## Newsletter Rules
Prefer public archive feeds:
- Substack RSS when available.
- Beehiiv/public archive pages when RSS is blocked.
- Jina Reader only when direct fetch is blocked and the archive is public.
Avoid private inbox ingestion as a default feature. Email requires OAuth, IMAP,
App Passwords, forwarding, or third-party bridges and raises privacy concerns.
If email support is requested, document it as an advanced private bridge and keep
the public default independent from mailbox access.
## Built-In Fetcher Pattern
Add focused code to `scripts/update_news.py`:
```python
def fetch_example(session: requests.Session, now: datetime) -> list[RawItem]:
resp = session.get("https://example.com/feed.json", timeout=20)
resp.raise_for_status()
data = resp.json()
out: list[RawItem] = []
for item in data.get("items", []):
published = parse_date_any(item.get("publishedAt"), now)
if not published:
continue
out.append(
RawItem(
site_id="example",
site_name="Example",
source=item.get("source") or "Example",
title=maybe_fix_mojibake(item["title"]),
url=item["url"],
published_at=published,
meta={},
)
)
if not out:
raise ValueError("No Example items parsed")
return out
```
Then register it in `collect_all`, update docs, and add tests for parser behavior.
## Source Overlap Check
Before promoting a candidate RSS/Atom source into the public default layer, run a recent-overlap report:
```bash
python scripts/evaluate_source_overlap.py \
--source-url https://example.com/feed.xml \
--source-name "Example Source" \
--site-id example_candidate \
--baseline data/archive.json \
--lookback-days 7 \
--output reports/source-intake/example-overlap.json
```
Interpretation:
- `< 35%` hard duplicate rate: usually `accept_default`.
- `35%–65%`: keep as `watchlist` or OPML advanced source first.
- `>= 65%`: usually `skip_duplicate` unless the source is faster, more canonical, or has unusually valuable unique items.
- `< 5` recent candidate items: treat as too small and keep on `watchlist`.
The report is advisory. Do not auto-delete existing sources or auto-promote a candidate solely from the score. Story-level merge / clustering is planned for a later version, not part of v0.3.0.
## Validation Checklist
Run:
```bash
python -m py_compile scripts/update_news.py
pytest -q
python scripts/update_news.py --output-dir /tmp/ai-news-radar-data --window-hours 24 --archive-days 21
```
Inspect `/tmp/ai-news-radar-data/source-status.json`:
- source appears with `ok: true`
- `failed_sites` is empty or the failure is expected and documented
- item count is plausible
- AI-focused view is not flooded with off-topic items
@@ -0,0 +1,345 @@
> Upstream reference from LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319. Relative Markdown links target that immutable upstream snapshot. This reference is not a claim that upstream deployment workflows, development tests or private integrations are installed.
<div align="center">
# AI News Radar
## 24h AI Updates Radar|Three-Persona Reviews
**It finds the thoroughbreds among your sources, merges scattered updates into story timelines, then reviews each day's headlines from three distinct personas.**
[![GitHub stars](https://img.shields.io/github/stars/LearnPrompt/ai-news-radar?style=flat-square&color=f5c542)](https://github.com/LearnPrompt/ai-news-radar/stargazers)
[![Live](https://img.shields.io/badge/Live-news.learnprompt.pro-green?style=flat-square)](https://news.learnprompt.pro)
[![Actions](https://img.shields.io/github/actions/workflow/status/LearnPrompt/ai-news-radar/update-news.yml?branch=master&label=update&style=flat-square)](https://github.com/LearnPrompt/ai-news-radar/actions/workflows/update-news.yml)
[![Agent Skills](https://img.shields.io/badge/Agent%20Skills-ai--radar%20%2B%20Scout-blueviolet?style=flat-square)](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/skills/radar/README.md)
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat-square)](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/LICENSE)
```bash
npx skills add LearnPrompt/ai-news-radar -s ai-radar -g
```
Then ask your agent: `What happened in AI today?`
**Live site** → [news.learnprompt.pro](https://news.learnprompt.pro) (data source / fallback: [learnprompt.github.io/ai-news-radar](https://learnprompt.github.io/ai-news-radar/))
[中文](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/README.md) · [Radar Skill](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/skills/radar/README.md) · [Scout Skill](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/skills/ai-news-radar/README.md) · [Source strategy](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/docs/SOURCE_COVERAGE.md)
**What's new**: v0.9 collapses the UI into a single-layer information architecture (category tabs × curated/all toggle × chronological timeline). The old three-view screenshots are archived at [`/legacy/`](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/legacy) and stay online until mid-August 2026.
</div>
---
## Pick your lane in 30 seconds
**① Let your agent read for you** → the install command above. One question, one brief. Zero API, zero key, zero server:
![ai-radar demo](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/skills/radar/assets/demo.gif)
**② Read the site directly** → open [news.learnprompt.pro](https://news.learnprompt.pro). It defaults to a mobile view, with a "view" switch in the top-right corner to jump to the classic desktop UI at `/classic/`; you can also force a view with `?view=mobile` / `?view=classic` / `?view=auto`. Both views read the same `data/` directory. Since v0.9 the UI is a single layer: top category tabs (All/Models/Products/Devtools/Industry/Research/Community/Creator), a curated/all-items global toggle, and a chronological main list grouped by date. The "current hotspots" board has no fixed cap. Every curated card carries a one-line "why it matters" review. When the same event is covered by multiple sources, the card collapses into a "N sources" chip you can expand.
**③ Fork and own your own filter** → fork this repo, swap in your own OPML sources, edit a markdown file under `personas/` to change the taste, and the data grows on your own GitHub Pages. Jump to the [fork guide](#fork-guide-your-own-radar-in-five-steps).
The three lanes are one road: let your agent read the brief → read the site yourself → run your own radar.
---
## Sister sites · one pipeline
The radar does the tracking; there is a station on each side. Start at [**AI MAP**](https://aimap.carlwow.com), a knowledge graph of who has been heating up over the last 7 days (refreshed every 12 hours), then come back here to dig into the sources. When a trend makes you want to build, [**GoodCase**](https://goodcase.carlwow.com) has ready-to-copy viral cases and prompts. Discover → track → use, one road.
---
## What is this?
AI News Radar is an auto-updating 24h radar for AI updates. It does more than fetch AI news. It judges source quality first, merges the same event into a story timeline, has three personas score and review the picks, then uses Scout picks, AI labels, source health, and AI ratio to help you decide:
what is worth reading, what deserves deeper research, and what is just noise.
Readers can open the page and scan the last 24 hours of AI, model, and developer-tool updates. Developers can fork this repo and connect their own OPML/RSS, public feeds, static pages, or AgentMail inboxes. Codex / Claude Code-style agents can use the in-repo **Scout Skill** to judge new sources, maintain fetch logic, and deploy to GitHub Pages.
This project will never be "one more news page".
Its core logic is **Scout Skill**. It helps you find the thoroughbreds among a pile of sources. Which sources are worth tracking long term? Which ones should become RSS/OPML inputs? Which ones only make sense through a paid API? Which sources update all day, but have less than 5% AI signal for what you actually care about?
Judge first. Then connect.
<table>
<tr>
<td width="30%" valign="top"><img src="assets/screenshots/radar-v09-mobile.png" alt="Mobile view (default) screenshot"></td>
<td width="70%" valign="top"><img src="assets/screenshots/radar-v09-classic.png" alt="Classic desktop view (/classic/) screenshot"></td>
</tr>
<tr>
<td align="center"><b>Mobile view</b> (default on all devices)</td>
<td align="center"><b>Classic view</b> (top-right "view" switch, served at <code>/classic/</code>)</td>
</tr>
</table>
## v0.9: single-layer IA + title enhancement
v0.8's three views (Scout Picks / AI Signal Flow / Hot board) are now one layer: one set of category tabs, one curated/all toggle, one timeline.
![AI News Radar v0.9 timeline screenshot](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/assets/screenshots/radar-v09-timeline.png)
- **Dual view**: this single-layer IA now ships two UI skins — the root `index.html` defaults to mobile, and a "view" switch in the top-right corner jumps to the classic desktop skin at `/classic/`; both `?view=mobile` / `?view=classic` / `?view=auto` work directly as well. Both skins read the same `data/`, and the choice is remembered in local storage
- **Category tabs**: All/Models/Products/Devtools/Industry/Research/Community/Creator, mutually exclusive
- **Curated/all global toggle**: curated reads the merged, AI-relevant, high-value story pool; all reads the broader AI-relevant pool (`latest-24h-all.json`, score >= 0.3). Both modes share the same timeline + date-grouping template
- **Current hotspots board**: no fixed item cap — it shows however many stories clear the multi-source heat threshold, kept separate from the main list
- **Real, pipeline-generated reviews**: the one-line "why it matters" review on curated cards is now written by the pipeline itself — for items that already passed the AI-relevance filter, it fetches the full article and has DeepSeek write one sentence on why it's worth reading (requires `DEEPSEEK_API_KEY`). When there's no real review, the frontend simply hides that block instead of showing a template sentence
- **Same-event expansion**: when 2+ sources cover the same event, the card shows an "N sources" chip — expand it to see each source's own title, outlet, and relative time
- **Title enhancement**: when a title is too terse or jargon-heavy, the pipeline micro-crawls the source page for context (falling back to r.jina.ai on direct-fetch failure) and has an LLM rewrite it. Requires `DEEPSEEK_API_KEY`; without it, titles stay as-is and nothing else breaks
- **Source-quality hardening**: the zeli aggregator (Hacker News 24h hot list) no longer gets a blanket allowlist pass — it now goes through the same AI-relevance scoring as every other aggregator. Bilingual title translation also gained validation: refusal-style outputs (e.g. "sorry, I can't process link content") and degenerate translations are detected and rejected, falling back to the original title instead of showing garbled text
- **Data-source switch**: append `?data=<data-dir-url>` to the page URL to point the frontend at a different `data/` directory (e.g. to preview another branch's or PR's generated data). The choice persists in local storage, handy for multi-branch development
- **aggregator sub-source classification**: items from aggregator sites get a further breakdown chip — X / WeChat / HN / RSS — right after the channel chip
## v0.8: three-persona reviews
> Note: the **web display** of the three personas is temporarily parked (styling to be redesigned — see [docs/ROADMAP.md](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/docs/ROADMAP.md)); the data pipeline still scores and reviews every day, and the Skill daily brief is unaffected.
Whether a story matters depends on who you are. v0.8 gives the daily brief swappable "tastes":
| Persona | id | Angle |
|---------|----|----|
| **Pragmatist** (default) | `pragmatic` | Only cares what practitioners can use today |
| **Cynic** | `cynic` | Punctures marketing spin and hype — sarcastic, but grounded in facts |
| **Stickler** | `paper-police` | Only trusts papers/code/benchmarks; zero tolerance for "coming soon" |
- The daily 20 picks are scored and reviewed by the default persona; stories that make the daily TOP3 get scored by all three personas — one story, three angles (the reviews live in `data/daily-brief.json` and `data/top3-personas.json`, consumed directly by the Skill brief).
- Each persona is one markdown file under `personas/` (frontmatter + system prompt). Change the taste by editing one file; create a new one following [personas/README.md](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/personas/README.md) and PR it to join the built-in list.
- LLM reviews require a `DEEPSEEK_API_KEY` upstream. Without it the whole pipeline still runs — it degrades gracefully to rule-based scores, and both the site and the skill keep working.
## Why Scout Skill?
Good updates are scattered everywhere.
Official blogs publish one thing. Changelogs publish another. Someone drops an early signal on X. Aggregator sites keep reposting the same story.
I thought I was tracking the frontier. Most days, I was repeating the same three chores:
open dozens of pages, filter duplicates by hand, and guess which link was worth reading.
Let Scout Skill handle the first pass: **which sources are thoroughbreds, and which ones are noise**.
You can keep adding sources freely. You can also put a source into the input set, let it run for a week, and decide later whether it deserves to be promoted.
AI News Radar was never just about fetching information.
It is closer to a lightweight news pipeline: source judgement, fetching, deduplication, AI-relevance filtering, persona reviews, source health, and static web publishing. Once deployed, the core flow does not spend model tokens.
## What it can do
### For readers
- Use the "All/Models/Products/Devtools/Industry/Research/Community/Creator" category tabs to jump straight to what you care about
- Use the curated/all global toggle: curated shows high-value story timelines; switch to all when you need to backfill or search the broader AI-relevant pool
- The main list is sorted newest-first and grouped by day, so you can scan what happened today vs. yesterday at a glance; "current hotspots" is a separate, uncapped board for what's hottest right now
- Every curated card carries a one-line "why it matters" review, written by the pipeline itself — the block is simply hidden when there's no real review
- When the same event is covered by multiple sources, the card shows an "N sources" chip — expand it to read each source's own title instead of clicking through duplicates
- If a title reads like jargon or an abbreviation, sites with `DEEPSEEK_API_KEY` configured will show the LLM-rewritten, more complete version
- Locate updates quickly with the specific-source filter and keyword search
- Use source health and AI ratio to tell which sources are actually useful, and which ones update a lot but contain little AI signal
### For content creators
- Preserve original source links for deeper research, fact checking, and topic planning
- Multiple sources covering the same event collapse into the card's "N sources" chip — expand it to compare each outlet's own title and wording, reducing duplicate reading
- Use AI labels to judge whether an item is better for a post, short video, or hands-on tool test
- Use signals such as multi-source overlap, official-first source, and single-source watch item to judge topic credibility and priority
- Persona reviews double as topic research: the Pragmatist says it's useful, the Cynic says it's spin, the Stickler says there's no evidence — the disagreement itself is content
### For developers and agents
- Requires no API key, login state, or LLM quota by default
- Supports official RSS/changelog sources, OPML/RSS, public GitHub feed/JSON files, static pages, and AgentMail
- GitHub Actions automatically generates `data/*.json` and publishes to GitHub Pages
- Codex / Claude Code / Hermes / OpenClaw can use the in-repo Scout Skill to maintain sources, fetch logic, and the web page
- For local or multi-branch development, use the page's `?data=` query param to point the frontend at a different `data/` directory without touching code or redeploying
- Advanced sources can be connected through GitHub Secrets or local environment variables, without committing tokens, cookies, private OPML files, or email bodies
## How it works
```mermaid
flowchart LR
source["Source list"] --> classify["Scout Skill classifies source type"]
classify --> official["Official RSS / changelog"]
classify --> opml["Private OPML / RSS"]
classify --> publicFeed["Public GitHub feed / JSON"]
classify --> staticPage["Public page / Jina fallback"]
classify --> privateMail["AgentMail email subscription"]
classify --> skip["Skip risky sources"]
official --> fetch["Fetch and structure"]
opml --> fetch
publicFeed --> fetch
staticPage --> fetch
privateMail --> fetch
fetch --> dedup["Deduplicate and normalize"]
dedup --> score["AI-relevance scoring and labels"]
score --> story["Story merge and multi-source evidence"]
score --> status["Source health and AI-ratio stats"]
story --> brief["Scout Picks / daily-brief.json"]
brief --> persona["Persona reviews / top3-personas.json"]
story --> merged["stories-merged.json / merge-log.json"]
status --> sourceData["source-status.json"]
score --> latest["latest-24h.json / latest-24h-all.json"]
persona --> pages["GitHub Pages / Vercel web UI"]
brief --> pages
merged --> pages
sourceData --> pages
latest --> pages
pages --> agent["Scout Skill: agents maintain sources"]
pages --> radar["ai-radar Skill: agents read the brief"]
```
AI News Radar borrows from modern newsroom workflows. Dumping thousands of items into a page is not useful, so the project turns news handling into a stable pipeline: fetch, deduplicate, filter, review, enrich with status, and generate a static site.
It stays lightweight on purpose. The public version does not require an LLM API key, login state, cookies, X API access, or email access. When you need advanced sources, Scout Skill can connect them through GitHub Secrets or local environment variables.
## Data outputs
Each update generates a set of static JSON files. The page only reads these files and does not need a backend service. GitHub Pages is the canonical data source; the Vercel site is just another front for the same data.
Core files include:
- `data/daily-brief.json`: Scout Picks — 20 daily items; since v0.8 each carries persona score and review fields
- `data/top3-personas.json`: the daily TOP3 with all three persona reviews side by side
- `data/latest-24h.json`: AI-focused updates from the last 24 hours
- `data/latest-24h-all.json`: broadly AI-relevant updates from the last 24 hours (score >= 0.3)
- `data/latest-24h-all-raw.json`: unfiltered raw items from the last 24 hours (dev-only, not wired into the frontend)
- `data/source-status.json`: source fetch status, success rate, site coverage, and source health
- `data/stories-merged.json`: the complete merged story set
- `data/merge-log.json`: story-merge matches and debug records for auditing
If `daily-brief.json` is not available yet, the page falls back to candidate Scout signals; if `stories-merged.json` exists, the page uses the full story pool to extend the timeline beyond the picks.
## Fork guide: your own radar in five steps
1. **Fork** [LearnPrompt/ai-news-radar](https://github.com/LearnPrompt/ai-news-radar).
2. **Enable Actions**: GitHub pauses workflows on forks by default — enable them on the Actions tab, and `update-news.yml` runs every 30 minutes.
3. **(Optional) Add `DEEPSEEK_API_KEY`**: Settings → Secrets and variables → Actions. This unlocks persona reviews, title enhancement, real pipeline-generated review lines for curated items, and more reliable Chinese title translation (refusal text and degenerate output fall back to the original title automatically). Without it everything still runs — rule-based scores, original titles, and Google Translate take over, and the review block simply doesn't render. The default model is `deepseek-v4-flash`; set a repo Variable `DEEPSEEK_MODEL` if you want a different one. Add `TITLE_ENHANCE_MAX_PER_RUN` too if you want to cap how many titles get rewritten per run (defaults to 30).
4. **Enable GitHub Pages**: Settings → Pages, serve the master branch root. Your radar is live minutes later.
5. **Change one line in the skill**: point the `BASE_URL` at the top of `skills/radar/SKILL.md` to `https://<your-username>.github.io/ai-news-radar/data`, and your agent reads your data from now on.
To change sources: put your subscriptions into `feeds/follow.opml` (see `feeds/follow.example.opml`), or let the in-repo [Scout Skill](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/skills/ai-news-radar/README.md) judge and ingest them. To change tastes: edit the markdown files under `personas/`. Unhappy with a translation: edit `translation-glossary.txt` in the repo root (protected terms + repair rules, format documented in the file) and the next pipeline run picks it up. Want your own domain: (optional) import the repo into Vercel — the included `vercel.json` is ready, zero build. Want to preview data from another branch while testing: append `?data=<data-dir-url>` to the page URL, no code changes needed.
## Quick start (run locally)
Readers do not need to install anything. Open the live site directly.
To fork and customize your own version locally:
```bash
git clone https://github.com/LearnPrompt/ai-news-radar.git
cd ai-news-radar
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python scripts/update_news.py --output-dir data --window-hours 24
python -m http.server 8080
```
Open:
```text
http://localhost:8080
```
If you have your own OPML:
```bash
cp feeds/follow.example.opml feeds/follow.opml
# Put your own subscriptions into feeds/follow.opml. Do not commit this file.
python scripts/update_news.py --output-dir data --window-hours 24 --rss-opml feeds/follow.opml
```
## Tutorial for agents
If you want Codex / Claude Code / OpenClaw / Hermes to help you build your own version, say:
```text
Use Scout Skill for AI News Radar. Ask me for my source list first, then decide whether each source should use RSS, public feeds, static pages, Jina fallback, AgentMail email, or be skipped. The goal is to deploy a serverless AI daily news site that updates automatically with GitHub Actions. Do not commit any API keys, cookies, tokens, or private email content into the repo.
```
The repo ships two skills — the radar reads, the scout selects:
- `skills/radar/`: **ai-radar** (consumer side) — install without forking, ask AI news questions in natural language, get a brief from this site's public JSON
- `skills/ai-news-radar/`: **Scout Skill** (maintainer side) — after forking, use it to classify sources, maintain fetch logic, and deploy GitHub Pages
When a new agent takes over validation, read these first:
- `README.md`
- `README.en.md`
- `docs/GPT_HANDOFF.md`
- `docs/SOURCE_COVERAGE.md`
- `docs/V2_PRODUCT_BRIEF.md`
## GitHub Actions updates
`.github/workflows/update-news.yml` is already configured.
- Supports manual `workflow_dispatch`; pass `force_tikhub=true` explicitly to override the normal paid-source interval for TikHub
- Runs every 30 minutes by default: `*/30 * * * *`
- Automatically generates and commits `data/*.json`
- With `DEEPSEEK_API_KEY` set, scores the daily picks with the default persona, generates the three-persona TOP3 reviews, enables title enhancement, generates real pipeline-written review lines for curated items, and gives better translation (refusal text and degenerate output fall back to the original title automatically); without it, falls back to rule-based scores, original titles, and Google Translate, and the review block doesn't render — the core pipeline still runs
- Default DeepSeek model is `deepseek-v4-flash` (DeepSeek is retiring the `deepseek-chat` alias on 2026-07-24); set a repo Variable `DEEPSEEK_MODEL` to override it
- With `TITLE_ENHANCE_MAX_PER_RUN` set, caps how many titles get rewritten per run; defaults to 30
- Uses public demo `feeds/follow.example.opml` when `FOLLOW_OPML_B64` is not configured, so the hosted page can show the RSS/OPML path working
- Decodes `FOLLOW_OPML_B64` into private `feeds/follow.opml` when configured
- Generates a redacted email summary when `EMAIL_DIGEST_ENABLED=1`, `AGENTMAIL_API_KEY`, and `AGENTMAIL_INBOX_ID` are set
- Commits `data/email-digest.json` only when `EMAIL_DIGEST_PUBLISH=1` is also explicitly set
- Uses the official X API during the configured daily UTC window when `X_API_ENABLED=1`, `X_BEARER_TOKEN`, and budget variables are set. This is off by default, and the current X API charges by returned resources.
- Fetches a small number of public X/Twitter search results through SocialData.tools when `SOCIALDATA_ENABLED=1`, `SOCIALDATA_API_KEY`, and budget variables are set, at `SOCIALDATA_RUN_INTERVAL_HOURS` (default 12h) intervals. Off by default; keep the API key in local env vars or GitHub Secrets only.
- Fetches a small number of Douyin/Xiaohongshu keyword results through TikHub when `TIKHUB_ENABLED=1`, `TIKHUB_API_KEY`, and budget variables are set, at `TIKHUB_RUN_INTERVAL_HOURS` (default 24h) intervals. Off by default; keep the API key in local env vars or GitHub Secrets only.
- Paid-source intervals are tracked in `data/paid-source-state.json` — it stores only the last run time, result count, and error name, never API keys. When the half-hourly workflow skips paid sources, old items stay in `data/archive.json` instead of being dropped.
By default, the core pipeline requires no API keys.
The "updated at" time in the top-right corner of the live page comes from `generated_at` in `data/latest-24h.json`. If the page is stuck on an old time, first check whether the latest `Update AI News Snapshot` run in GitHub Actions succeeded, whether it hit fetch errors, and whether Pages deploys from the branch containing the latest `data/` commit.
Advanced source templates live in `examples/advanced-sources.env.example`.
Budget notes are in `docs/research/advanced-source-free-tier-budget-2026-05-10.md`.
The X API demo config is in `docs/guides/x-api-demo-config.md`.
The single-account / single-newsletter demo is in `docs/guides/rileybrown-alphasignal-demo.md`.
## Version history
| Version | The question it answers | Key capabilities |
|---------|------------------------|------------------|
| v0.6 | How do scattered messages become events? | Story merging, AI labels/scores, source health and AI ratio |
| v0.7 | With this many stories, what's hot? | Hot view (multi-source mass × time decay), community section, headline-style Top3, quality-over-quantity gate, scoring backtest tool, ai-radar consumer skill |
| v0.8 | Same story — whose take do you trust? | Three-persona reviews, TOP3 side-by-side, persona-as-markdown-file (editable, PR-able), Vercel public site |
| v0.9 | Three views coexist — how do they read as one news feed? | Single-layer IA (category tabs × curated/all × timeline), mobile/classic dual view, real pipeline-generated reviews, title enhancement, source-quality hardening, same-event multi-source expansion, data-source switching, aggregator sub-source classification |
See [Releases](https://github.com/LearnPrompt/ai-news-radar/releases) for the full history.
## Acknowledgements
- [AI HOT](https://aihot.virxact.com): Chinese AI news aggregator, one of the sources
- [superpowers](https://github.com/obra/superpowers): skill engineering methodology
- [mattpocock/skills](https://github.com/mattpocock/skills): skill writing methodology
## License
[MIT](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/LICENSE)
---
<div align="center">
**更多好用 Skill · More Skills** → [learnprompt.pro/skills](https://learnprompt.pro/skills/)
[鲁班·Skill打磨](https://github.com/LearnPrompt/luban-skill) · [庖丁·博主蒸馏](https://github.com/LearnPrompt/paoding-skill) · [蔡伦·对话造纸](https://github.com/LearnPrompt/cailun-skill) · [阿福·LLM Todo](https://github.com/LearnPrompt/afu-llm-todo) · [愚公·Loop工程](https://github.com/LearnPrompt/loop-engineering) · [搭子·结对开发](https://github.com/LearnPrompt/partner-skill) · [AI雷达·零API资讯](https://github.com/LearnPrompt/ai-news-radar)
[淘金小镇·ClawHub日榜](https://github.com/LearnPrompt/skillrush-town) · [Irasutoya·正文配图](https://github.com/LearnPrompt/carl-irasutoya-illustrations) · [Humanize PPT·演讲系统](https://github.com/LearnPrompt/humanize-ppt) · [CC Harness·六件套](https://github.com/LearnPrompt/cc-harness-skills) · [微信读书教练](https://github.com/LearnPrompt/carl-weread) · [X Article发布](https://github.com/LearnPrompt/x-article-publisher-skill)
<sub>**[LearnPrompt](https://github.com/LearnPrompt) 出品** · 公众号「卡尔的AI沃茨」 · [X @aiwarts](https://x.com/aiwarts)</sub>
</div>
@@ -0,0 +1,424 @@
> Upstream reference from LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319. Relative Markdown links target that immutable upstream snapshot. This reference is not a claim that upstream deployment workflows, development tests or private integrations are installed.
<div align="center">
# AI News Radar
## 24小时AI更新雷达|三口味锐评
**先帮你从一堆信源里选出千里马,再把分散消息合并成故事线,最后用三种口味替你锐评每日头条。**
[![GitHub stars](https://img.shields.io/github/stars/LearnPrompt/ai-news-radar?style=flat-square&color=f5c542)](https://github.com/LearnPrompt/ai-news-radar/stargazers)
[![Live](https://img.shields.io/badge/Live-news.learnprompt.pro-green?style=flat-square)](https://news.learnprompt.pro)
[![Actions](https://img.shields.io/github/actions/workflow/status/LearnPrompt/ai-news-radar/update-news.yml?branch=master&label=update&style=flat-square)](https://github.com/LearnPrompt/ai-news-radar/actions/workflows/update-news.yml)
[![Agent Skills](https://img.shields.io/badge/Agent%20Skills-ai--radar%20%2B%20%E4%BC%AF%E4%B9%90-blueviolet?style=flat-square)](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/skills/radar/README.md)
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat-square)](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/LICENSE)
```bash
npx skills add LearnPrompt/ai-news-radar -s ai-radar -g
```
装完对Agent说一句:`今天AI圈有什么?`
**在线站** → [news.learnprompt.pro](https://news.learnprompt.pro)(数据源/备用:[learnprompt.github.io/ai-news-radar](https://learnprompt.github.io/ai-news-radar/))
[English](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/README.en.md) · [雷达Skill](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/skills/radar/README.md) · [伯乐Skill](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/skills/ai-news-radar/README.md) · [信息源策略](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/docs/SOURCE_COVERAGE.md)
**更新说明**:v0.9 把界面收敛成单层信息架构(栏目 tab × 精选/全量 × 时间轴),旧的三视图截图存档于 [`/legacy/`](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/legacy),保留至 2026 年 8 月中旬。
</div>
---
## 30秒选边上车
**① 让Agent替你读报** → 上面那行安装命令,装完一句话拿简报,零API、零Key、零服务器:
![ai-radar demo](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/skills/radar/assets/demo.gif)
**② 直接看网页** → 打开 [news.learnprompt.pro](https://news.learnprompt.pro)。默认是手机版视图,右上角「视角」开关能切到经典版(旧版桌面界面,路径 `/classic/`),也可以直接用 `?view=mobile` / `?view=classic` / `?view=auto` 指定,两个视图读同一份 `data/` 目录数据。v0.9 起是单层信息架构:顶部「全部/模型/产品/开发者/行业/论文/社区/自媒体」栏目 tab + 「精选/全量」全局开关,主列表按时间倒序、按日分组,「当前热点」榜不设固定条数单独看当下最热。每条精选卡片自带一句话「推荐理由」;同一事件被多家信源报道时会折叠成「多源 N」标签,点开看每家独立标题。
**③ fork 拥有自己的筛子** → fork本仓库,信源换成你自己的 OPML,口味改 `personas/` 下的 markdown 文件,数据长在你自己的 GitHub Pages 上。跳到[fork 指南](#fork-指南五步拥有自己的雷达)。
三层是一条路:让Agent读报 → 自己看报 → 自己办报。
---
## 姊妹站 · 一条流水线
雷达管跟踪,上下游各有一站。先去 [**AI MAP** 热点图谱](https://aimap.carlwow.com) 一张图看最近 7 天谁在升温(每 12 小时刷新),锁定目标后回雷达深挖信源;看到想上手的热点,去 [**GoodCase** 用例库](https://goodcase.carlwow.com) 直接查现成案例和 Prompt。发现 → 跟踪 → 使用,三站一条路。
---
## 这是什么
AI News Radar是一个自动更新的24小时AI更新雷达。它不只是把AI新闻抓回来,会先判断信息源质量,把同一个事件合并成故事线,再用三种口味的 persona 替你打分点评,最后用伯乐精选、AI标签、源健康和AI占比帮你判断:
什么信息值得看,什么值得深挖,什么只是噪音。
普通用户直接打开网页,看最近24小时AI、模型、开发者工具和技术生态更新。开发者可以fork这个仓库,接入自己的OPML/RSS、公开feed、静态页面或AgentMail邮箱。Codex / Claude Code这类 Agent 可以使用项目内置的 **伯乐Skill**,继续帮你判断新的信息源、维护抓取逻辑、部署 GitHub Pages。
这个项目永远都不会是"又一个新闻网页"。
它的核心逻辑是**伯乐Skill**,帮你从一堆信源里选出千里马。哪些源值得长期追踪,哪些源适合做成RSS/OPML,哪些源只能接付费的API,哪些源看起来更新很多但实际上跟你长期关注的方面比方AI只占了里面的5%不到。
先判断清楚,再接入。
<table>
<tr>
<td width="30%" valign="top"><img src="assets/screenshots/radar-v09-mobile.png" alt="手机版(默认视图)截图"></td>
<td width="70%" valign="top"><img src="assets/screenshots/radar-v09-classic.png" alt="经典版(/classic/ 桌面视图)截图"></td>
</tr>
<tr>
<td align="center"><b>手机版</b>(所有设备默认)</td>
<td align="center"><b>经典版</b>(右上角「视角」开关,路径 <code>/classic/</code>)</td>
</tr>
</table>
## v0.9:单层信息架构 + 标题增强
v0.8 的三视图(伯乐精选 / AI信号流 / 热点榜)合并成了一层:一套栏目 tab + 一个精选/全量开关 + 一条时间轴。
![AI News Radar v0.9 时间轴截图](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/assets/screenshots/radar-v09-timeline.png)
- **双视图**:这套单层架构现在有两套 UI 皮肤——根目录 `index.html` 默认手机版,右上角「视角」开关可切到 `/classic/` 经典桌面版,也支持 `?view=mobile` / `?view=classic` / `?view=auto` 参数直接指定;两套皮肤读同一份 `data/`,选择记在浏览器本地
- **栏目 tab**:全部/模型/产品/开发者/行业/论文/社区/自媒体,互斥单选
- **精选/全量全局开关**:精选读故事合并后的AI强相关高价值池,全量读广义AI相关的原始池(`latest-24h-all.json`,score >= 0.3),两种模式共用同一套时间轴+日期分组模板
- **当前热点**:不设固定条数,只要满足多信源热度阈值就上榜,跟主列表分开单独看
- **推荐理由真实化**:精选条目的一句话推荐理由由管线侧真实生成——对过了 AI 相关性筛选的条目抓取全文,交给 DeepSeek 写一句「为什么值得读」(需要 `DEEPSEEK_API_KEY`);没有真实理由时前端直接隐藏这个区块,不再用模板句撑场面
- **同一事件展开**:同一事件被 2 家以上信源报道时,卡片上出现「多源 N」标签,点开看每家独立标题、来源和相对时间
- **标题增强**:标题过短或黑话过多时,会拿原文上下文(自家抓取失败时回退到 r.jina.ai)交给 LLM 改写得更完整;配 `DEEPSEEK_API_KEY` 才生效,没配就保留原标题,不影响其余流程
- **源质量加固**:聚合源 zeli(Hacker News 24h 热榜)取消整榜白名单放行,改成和其他聚合源一样过同一套 AI 相关性打分;双语标题翻译新增校验,拒答文案(比如「抱歉,我无法处理链接内容」)和退化输出会被识别并回退到原文标题,不会把车轱辘话当标题显示
- **数据同源开关**:给页面 URL 加 `?data=<data目录地址>` 可以让前端读取另一份 `data/`(比如验证另一个分支或 PR 生成的数据),选择会记在浏览器本地,方便多分支开发时来回切换
- **聚合源子来源分类**:聚合站点条目会按原始平台再细分成 X / 公众号 / HN / RSS 小标签,紧跟在来源 chip 之后
## v0.8:三口味 persona 锐评
> 注:三口味的**网页展示**已暂时下线归档(样式待重设计,见 [docs/ROADMAP.md](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/docs/ROADMAP.md));数据管线照常每日生成 persona 打分与点评,Skill 端日报不受影响。
同一条新闻,值不值得看取决于你是谁。v0.8 给日报装上了可换的"口味":
| 口味 | id | 视角 |
|------|----|----|
| **实用派**(默认) | `pragmatic` | 只关心对开发者/从业者今天有什么用 |
| **毒舌评论员** | `cynic` | 拆穿营销话术和炒作,讥讽但基于事实 |
| **较真党** | `paper-police` | 只认论文/代码/benchmark 实证,对"即将推出"零容忍 |
- 每日精选20条按默认口味打分点评,命中当日 TOP3 的故事再由三个口味分别打分,一条新闻三个角度(点评数据在 `data/daily-brief.json` 与 `data/top3-personas.json`,Skill 日报直接引用)。
- 每个口味就是 `personas/` 目录下的一个 markdown 文件(frontmatter + system prompt)。想换口味,改一个文件;想造新口味,照 [personas/README.md](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/personas/README.md) 的格式写一个,PR 过来就能进内置列表。
- 上游配了 `DEEPSEEK_API_KEY` 才有 LLM 点评;不配也能跑全流程,自动降级成规则分,页面和 Skill 都正常工作。
## 为什么需要伯乐Skill
好新闻分散在各处,
官方博客发一点,更新日志发一点,X上有人提前爆料,聚合站又把同一个新闻转来转去。
我以为的自己在追前沿,实际每天都在重复三件事,
打开几十个页面,肉眼+人脑过滤重复内容,猜哪条值得看。
让伯乐Skill先替你完成第一轮判断,**哪些信源是千里马,哪些是噪音**。
你可以随意增加信息源,还可以把一个信息源纳入输入范围,先让它在单独运行一周,再判断要不要录入。
AI News Radar从来都不是单纯把信息抓回来,
它更像是一条轻量的新闻pipeline,把来源判断、抓取、去重、AI强相关过滤、persona锐评、信息源健康状态和静态网页发布串起来,上线后核心流程不消耗模型额度。
## 能做什么
### 给普通读者
- 打开在线页面,用「全部/模型/产品/开发者/行业/论文/社区/自媒体」栏目 tab 快速定位关心的方向
- 用「精选/全量」全局开关切换:精选看高价值故事线,需要补盲或检索时切到全量的广义AI相关原始池
- 主列表按时间倒序、按日分组,一屏看清楚今天/昨天分别更新了什么;「当前热点」榜单独看当下最热,不设固定条数
- 每条精选卡片带一句话「推荐理由」(管线侧真实生成,没有理由时这块不显示)
- 同一事件被多家信源报道时,卡片上会出现「多源 N」标签,点开看每家独立标题,不用分别点进重复新闻
- 标题看不懂缩写或黑话时,配了 `DEEPSEEK_API_KEY` 的站点会用改写后的完整标题
- 用具体来源和关键词搜索快速定位信息
- 通过源健康和AI占比判断:哪些源是真有料,哪些源更新很多但AI含量低
### 给内容创作者
- 保留原始来源链接,方便继续深挖、核对事实和做选题
- 同一个事件的多个来源折叠进卡片的「多源 N」标签,点开看每家独立标题,减少重复阅读也方便比对措辞差异
- 用AI标签快速判断一条消息适合做图文、短视频、还是工具实测
- 用多源重合、官方一手、单源观察等信号判断选题可信度和优先级
- 三口味点评天然是选题参考:实用派说有用、毒舌说有诈、较真党说没证据,分歧本身就是内容
### 给开发者和Agent
- 默认不需要 API Key、不需要登录态、不需要 LLM额度
- 支持官方 RSS/changelog、精选 AI 媒体 RSS、OPML/RSS、公开 GitHub feed/JSON、静态页面、AgentMail 等来源类型
- GitHub Actions自动生成 `data/*.json` 并发布到 GitHub Pages
- Codex / Claude Code / Hermes / OpenClaw 可以通过项目内置的伯乐Skill继续维护信源、抓取逻辑和页面
- 本地/多分支开发可以用页面 `?data=` 参数切换前端读取的 `data/` 目录,不用来回改代码或部署
- 高级来源可以通过 GitHub Secrets或本地环境变量接入,避免把 token、cookies、私有 OPML 和邮箱正文写进仓库
## 工作原理
```mermaid
flowchart LR
source["信息源清单"] --> classify["伯乐Skill判断信源类型"]
classify --> official["官方 RSS / changelog"]
classify --> opml["私人 OPML / RSS"]
classify --> publicFeed["公开 GitHub feed / JSON"]
classify --> staticPage["公开页面 / Jina 兜底"]
classify --> privateMail["AgentMail 邮箱订阅"]
classify --> skip["跳过高风险来源"]
official --> fetch["抓取与结构化"]
opml --> fetch
publicFeed --> fetch
staticPage --> fetch
privateMail --> fetch
fetch --> dedup["去重与归一化"]
dedup --> score["AI相关性评分与标签"]
score --> story["故事合并与多源证据聚合"]
score --> status["源健康与AI占比统计"]
story --> brief["伯乐精选 / daily-brief.json"]
brief --> persona["persona锐评 / top3-personas.json"]
story --> merged["stories-merged.json / merge-log.json"]
status --> sourceData["source-status.json"]
score --> latest["latest-24h.json / latest-24h-all.json"]
persona --> pages["GitHub Pages / Vercel 网页"]
brief --> pages
merged --> pages
sourceData --> pages
latest --> pages
pages --> agent["伯乐Skill:Agent 继续维护信源"]
pages --> radar["ai-radar Skill:Agent 读报出简报"]
```
AI News Radar学习了现代新闻学的技术,不是简单堆信息源,一次性放几万条信息出来等于没用,所以我选择把新闻处理拆成稳定pipeline,抓取,去重,过滤,锐评,补充状态,生成静态站点。
在保证稳定性的同时追求轻量化,公开版不要求用户配置LLM API Key,不依赖登录态,cookies,X API和邮箱。需要这些进阶能力时,可以通过伯乐Skill用GitHub Secrets或本地环境变量接入。
## 数据产物
每次更新会生成一组静态JSON文件,页面只读取这些文件,不需要后端服务。GitHub Pages 是数据的 canonical 源,Vercel 站只是同一份数据的另一个门面。
核心文件包括:
- `data/daily-brief.json`:伯乐精选20条日报成品,v0.8 起含 persona 打分与点评字段
- `data/top3-personas.json`:每日 TOP3 的三口味点评并排
- `data/latest-24h.json`:最近24小时AI强相关消息
- `data/latest-24h-all.json`:最近24小时广义AI相关消息(score >= 0.3)
- `data/latest-24h-all-raw.json`:最近24小时零过滤全量消息(dev-only,不接入前端UI)
- `data/source-status.json`:来源抓取状态、成功率、站点覆盖和源健康
- `data/stories-merged.json`:故事合并后的完整事件集合
- `data/merge-log.json`:故事合并过程和命中记录,方便调试与审计
如果 `daily-brief.json` 暂时不存在,页面会回退到候选信号列表;如果 `stories-merged.json` 存在,页面会用完整故事池补齐后续故事线,避免只有少量精选故事被接入。
## Fork 指南:五步拥有自己的雷达
1. **Fork** [LearnPrompt/ai-news-radar](https://github.com/LearnPrompt/ai-news-radar)。
2. **开 Actions**:fork 后 GitHub 默认暂停 workflow,去 Actions 页点一下启用,`update-news.yml` 每30分钟自动跑。
3. **(可选)配 `DEEPSEEK_API_KEY`**:Settings → Secrets and variables → Actions 加一个 secret,就能获得 persona 锐评、标题增强、精选条目的真实推荐理由,以及更可靠的中文标题翻译(拒答文案和退化输出会自动回退原标题)。不配也全流程能跑,自动降级成规则分、原始标题加谷歌翻译,推荐理由区块直接不显示。默认模型是 `deepseek-v4-flash`,需要换模型可以另配一个 Variable `DEEPSEEK_MODEL` 覆盖。想控制每次运行改写多少条标题,可以再配一个 `TITLE_ENHANCE_MAX_PER_RUN`(不配默认 30)。
4. **开 GitHub Pages**:Settings → Pages,选 master 分支根目录。几分钟后你的雷达就活了。
5. **改 skill 一行**:把 `skills/radar/SKILL.md` 顶部的 `BASE_URL` 换成 `https://<你的用户名>.github.io/ai-news-radar/data`,你的 Agent 从此读你自己的数据。
想换信源:把订阅写进 `feeds/follow.opml`(参考 `feeds/follow.example.opml`),或让内置[伯乐Skill](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/skills/ai-news-radar/README.md)帮你判断和录入。想换口味:改 `personas/` 下的 markdown 文件。翻译不满意:改根目录 `translation-glossary.txt`(保护术语 + 修正规则,文件内有格式说明),下次管线运行自动生效。想要自己的域名:(可选)把仓库 import 进 Vercel,仓库里的 `vercel.json` 已配好,零构建直接上线。想在验证阶段临时看另一份数据(比如自己分支跑出来的 `data/`):给页面 URL 加 `?data=<data目录地址>` 即可,不用改代码。
## 快速开始(本地运行)
普通用户不用安装,直接打开在线页面即可。
想fork改造新版本,可以本地运行:
```bash
git clone https://github.com/LearnPrompt/ai-news-radar.git
cd ai-news-radar
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python scripts/update_news.py --output-dir data --window-hours 24
python -m http.server 8080
```
打开:
```text
http://localhost:8080
```
如果你有自己的 OPML:
```bash
cp feeds/follow.example.opml feeds/follow.opml
# 把自己的订阅源写进 feeds/follow.opml,不提交这个文件
python scripts/update_news.py --output-dir data --window-hours 24 --rss-opml feeds/follow.opml
```
## 给Agent看的教程
如果你想让Codex / Claude Code / OpenClaw / Hermes帮你搭自己的版本,可以直接说:
```text
请使用伯乐Skill,先问我要信息源清单,然后帮我判断每个信源该用RSS、公开feed、静态页面、Jina兜底、AgentMail邮箱还是跳过。目标是部署一个不需要服务器、能用GitHub Actions自动更新的 AI 日报网站。不要把任何API Key、cookies、token、私有邮件内容写入仓库。
```
项目内置两个 Skill,分工是「雷达管读,伯乐管选」:
- `skills/radar/`:**ai-radar 雷达Skill**(消费侧)——不用fork就能装,自然语言问AI资讯,读本站公开JSON出简报
- `skills/ai-news-radar/`:**伯乐Skill**(维护侧)——fork后用它录入信源、维护抓取逻辑、部署 GitHub Pages
新Agent接手验收时,推荐先读:
- `README.md`
- `README.en.md`
- `docs/GPT_HANDOFF.md`
- `docs/SOURCE_COVERAGE.md`
- `docs/V2_PRODUCT_BRIEF.md`
## GitHub 自动更新
`.github/workflows/update-news.yml` 已经配置好定时任务。
- 支持手动触发 `workflow_dispatch`;需要忽略 TikHub 的正常付费源间隔时,显式传入 `force_tikhub=true`
- 默认每 30 分钟运行一次:`*/30 * * * *`
- 自动生成并提交 `data/*.json`;工作流使用 `git add data/`,避免新增 JSON 文件因为白名单遗漏而停留在旧更新时间
- 如果设置 `DEEPSEEK_API_KEY`,会给每日精选打 persona 分、生成三口味 TOP3 点评、启用标题增强、生成精选条目的真实推荐理由,并给出更可靠的中文翻译(拒答文案和退化输出会自动回退原标题);不设置时自动降级为规则分、原始标题和谷歌翻译,推荐理由区块不显示,核心流程照样跑
- 默认 DeepSeek 模型是 `deepseek-v4-flash`(DeepSeek 官方将于 2026-07-24 弃用 `deepseek-chat` 别名),可以设置仓库 Variable `DEEPSEEK_MODEL` 覆盖
- 如果设置 `TITLE_ENHANCE_MAX_PER_RUN`,会限制每次运行最多改写的标题条数;不设置默认 30
- 如果没有设置 `FOLLOW_OPML_B64`,线上工作流会自动使用公开示例 `feeds/follow.example.opml`,让页面展示 RSS/OPML 能力
- 如果设置 `FOLLOW_OPML_B64`,会优先自动解码为私有 `feeds/follow.opml`
- 如果设置 `EMAIL_DIGEST_ENABLED=1`,会生成脱敏邮箱摘要;`AGENTMAIL_PROVIDER=agently_cli` 通过已授权的 QQ Agent Mail CLI 读取 `message +list` 元数据,`AGENTMAIL_PROVIDER=api` 兼容旧 `AGENTMAIL_API_KEY` / `AGENTMAIL_INBOX_ID` 模式
- 如果额外设置 `AGENTMAIL_RESOLVE_PUBLIC_URLS=1`,QQ Agent Mail CLI 模式会对每封候选邮件执行一次 `message +read`,只抽取 `Read online` / `View in browser` 这类公开 newsletter 链接;正文不会写入任何 JSON。没有公开链接的邮件不会进入 Radar 主列表,避免跳到私有邮箱首页
- 只有额外设置 `EMAIL_DIGEST_INCLUDE_IN_RADAR=1`,才会把邮件 subject / snippet / sender domain / timestamp 作为独立 `agentmail` 源放进 Radar 主数据
- AgentMail 进入 Radar 的标题会和其它英文源一样走双语标题流程:有 `DEEPSEEK_API_KEY` 时优先 DeepSeek 翻译,没有时回退谷歌翻译;翻译数量仍受 `--translate-max-new` / `--translate-max-new-broad` 限制
- 只有额外设置 `EMAIL_DIGEST_PUBLISH=1`,才会提交 `data/email-digest.json`
- 如果设置 `X_API_ENABLED=1`、`X_BEARER_TOKEN` 和预算变量,会在每日指定UTC窗口用官方X API抓取少量公开Post;默认关闭,且当前X API按返回资源计费
- 如果设置 `SOCIALDATA_ENABLED=1`、`SOCIALDATA_API_KEY` 和预算变量,会按 `SOCIALDATA_RUN_INTERVAL_HOURS`(默认12小时)通过 SocialData.tools 抓取少量公开 X/Twitter 搜索结果;默认关闭,API Key 只应放在本地环境变量或 GitHub Secrets
- 如果设置 `TIKHUB_ENABLED=1`、`TIKHUB_API_KEY` 和预算变量,会按 `TIKHUB_RUN_INTERVAL_HOURS`(默认24小时)通过 TikHub 抓取少量抖音/小红书关键词搜索结果;默认关闭,API Key 只应放在本地环境变量或 GitHub Secrets
- SocialData/TikHub 的拉取间隔会记录在 `data/paid-source-state.json`,只保存上次运行时间、结果数和错误名,不保存 API Key;半小时工作流跳过付费源时,旧条目仍保留在 `data/archive.json`,不会因为本轮未拉取就被清空
默认情况下,本项目不需要任何API Key就能跑核心流程。
线上页面右上角显示的"更新时间"来自 `data/latest-24h.json` 的 `generated_at`。如果页面长时间停在旧时间,优先检查 GitHub Actions 最近一次 `Update AI News Snapshot` 是否运行、是否有抓取错误、以及仓库 Pages 是否部署到包含最新 `data/` 提交的分支。
高级源配置模板见 `examples/advanced-sources.env.example`,
预算说明见 `docs/research/advanced-source-free-tier-budget-2026-05-10.md`,
本地测试 TikHub 抓取时可以先小流量强制跑一次:
```bash
export TIKHUB_ENABLED=1
export TIKHUB_API_KEY='你的 TikHub API Key'
export TIKHUB_FORCE_RUN=1
export TIKHUB_QUERY='OpenAI,Claude,大模型,Agent,AI工具,人工智能,AI'
export TIKHUB_PLATFORMS=douyin,xiaohongshu
export TIKHUB_MAX_RESULTS=10
export TIKHUB_DAILY_ITEM_LIMIT=10
python3 scripts/probe_tikhub.py --query 'OpenAI,Claude,大模型,Agent,AI工具,人工智能,AI' --platforms douyin,xiaohongshu --max-results 10
python3 scripts/update_news.py --output-dir /tmp/ai-news-radar-tikhub --window-hours 24 --archive-days 3
python3 - <<'PY'
import json
from collections import Counter
status = json.load(open("/tmp/ai-news-radar-tikhub/source-status.json"))
latest = json.load(open("/tmp/ai-news-radar-tikhub/latest-24h-all.json"))
print("failed_sites =", status.get("failed_sites"))
print("empty_advanced_sources =", status.get("empty_advanced_sources"))
print("tikhub_status =", [s for s in status.get("sites", []) if str(s.get("site_id", "")).startswith("tikhub")])
counts = Counter(i.get("site_id") for i in latest.get("items_all_raw", []))
print("tikhub_24h_counts =", {k: counts[k] for k in sorted(counts) if str(k).startswith("tikhub")})
PY
```
远端需要用当前 `master` 立即重跑 TikHub 时:
```bash
gh workflow run update-news.yml --ref master -f force_tikhub=true
```
自媒体栏目使用独立的 7 天热榜池,不改变其他栏目的 24 小时窗口。抖音和
小红书搜索都优先请求"一周内最多点赞",再从响应中提取点赞、收藏、评论
和分享数。榜单分数由 85% 互动热度和 15% 的 24 小时新鲜度加分组成;因此
真正的周内爆款优先,但刚开始起量的新内容仍有机会进入 Top 3。
小红书按"先搜索、后详情"处理。搜索阶段使用 App V2 的最多点赞排序和
7 天筛选,并再次在本地校验发布时间:可信 API 时间优先;`0`、未来时间
或缺失时间会回退到 note id 的时间前缀;仍无法确认或早于 7 天的笔记会被
跳过。通过时间门禁后,如需补齐图文详情,可按需调用官方详情接口:
```python
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['TIKHUB_API_KEY']}"}
search = requests.get(
"https://api.tikhub.io/api/v1/xiaohongshu/app_v2/search_notes",
headers=headers,
params={
"keyword": "AI",
"page": 1,
"sort_type": "popularity_descending",
"note_type": "不限",
"time_filter": "一周内",
},
timeout=30,
)
search.raise_for_status()
# Only request details after the search result passes the local 7-day time gate.
detail = requests.get(
"https://api.tikhub.io/api/v1/xiaohongshu/app_v2/get_image_note_detail",
headers=headers,
params={"note_id": "通过时间校验的 note_id"},
timeout=30,
)
detail.raise_for_status()
print(detail.json())
```
视频笔记使用 `get_video_note_detail`。详情接口用于补充作者、互动量、图片、
标签等结构化字段,不替代搜索阶段的发布时间判断。
X API演示配置见 `docs/guides/x-api-demo-config.md`;
单账号/单newsletter演示见 `docs/guides/rileybrown-alphasignal-demo.md`。
## 版本演进
| 版本 | 回答的问题 | 关键能力 |
|------|-----------|---------|
| v0.6 | 分散消息怎么变成事件? | 故事线合并、AI标签分数、源健康与AI占比 |
| v0.7 | 故事多了,什么最热? | 热点视图(多源聚簇×时间衰减)、社区分类、头条式 Top3、宁缺毋滥门槛、评分回测工具、ai-radar 消费Skill |
| v0.8 | 同一条新闻,该听谁的? | 三口味 persona 锐评、TOP3 三味并排、口味即 markdown 文件(可改可PR)、Vercel 公网站 |
| v0.9 | 三个视图并存,怎么看着像一条新闻线? | 单层信息架构(栏目 tab×精选全量×时间轴)、手机版/经典版双视图、推荐理由真实生成、标题增强、源质量加固、同一事件多源展开、数据同源切换、聚合源子来源分类 |
历次改动见 [Releases](https://github.com/LearnPrompt/ai-news-radar/releases)。
## 致谢
- [AI HOT](https://aihot.virxact.com):中文 AI 资讯聚合,信源之一
- [superpowers](https://github.com/obra/superpowers):skill 工程方法论来源
- [mattpocock/skills](https://github.com/mattpocock/skills):skill 编写方法论来源
## License
[MIT](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/LICENSE)
---
<div align="center">
**更多好用 Skill · More Skills** → [learnprompt.pro/skills](https://learnprompt.pro/skills/)
[鲁班·Skill打磨](https://github.com/LearnPrompt/luban-skill) · [庖丁·博主蒸馏](https://github.com/LearnPrompt/paoding-skill) · [蔡伦·对话造纸](https://github.com/LearnPrompt/cailun-skill) · [阿福·LLM Todo](https://github.com/LearnPrompt/afu-llm-todo) · [愚公·Loop工程](https://github.com/LearnPrompt/loop-engineering) · [搭子·结对开发](https://github.com/LearnPrompt/partner-skill) · [AI雷达·零API资讯](https://github.com/LearnPrompt/ai-news-radar)
[淘金小镇·ClawHub日榜](https://github.com/LearnPrompt/skillrush-town) · [Irasutoya·正文配图](https://github.com/LearnPrompt/carl-irasutoya-illustrations) · [Humanize PPT·演讲系统](https://github.com/LearnPrompt/humanize-ppt) · [CC Harness·六件套](https://github.com/LearnPrompt/cc-harness-skills) · [微信读书教练](https://github.com/LearnPrompt/carl-weread) · [X Article发布](https://github.com/LearnPrompt/x-article-publisher-skill)
<sub>**[LearnPrompt](https://github.com/LearnPrompt) 出品** · 公众号「卡尔的AI沃茨」 · [X @aiwarts](https://x.com/aiwarts)</sub>
</div>
@@ -0,0 +1,497 @@
> Upstream reference from LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319. Relative Markdown links target that immutable upstream snapshot. This reference is not a claim that upstream deployment workflows, development tests or private integrations are installed.
<div align="center">
# 伯乐Skill
> 从一堆信源里选出千里马。
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/LearnPrompt/ai-news-radar/blob/689395109cc962a27c369bdd6fa50d1e090eb319/LICENSE)
[![Claude Code](https://img.shields.io/badge/Claude%20Code-Skill-blueviolet)](https://claude.ai/code)
[![GitHub Pages](https://img.shields.io/badge/GitHub%20Pages-Ready-green)](https://pages.github.com/)
<br>
**伯乐Skill is Scout Skill for AI News Radar.**
它帮你判断哪些 AI 信息源值得长期追踪,并把它们接入一个自动更新的 AI 日报网站。
<br>
[在线示例](https://learnprompt.github.io/ai-news-radar/) · [安装](#安装) · [安装后第一句话](#安装后第一句话) · [快速录入信息源](#快速录入信息源) · [伯乐会选什么](#伯乐Skill会选什么) · [工作原理](#工作原理)
</div>
---
## 它解决什么问题
一到假期,信息焦虑就会变严重。
不是没东西看,而是东西太多了。
RSS里一堆更新,X上有人分享新工具,飞书知识库里还有资料,聚合站每天刷出几十页。真正的问题变成了:我到底该看什么?哪些源值得长期追?哪些源只是制造噪音?怎么把这些东西变成每天真的能看的AI日报?
AI News Radar原本是给自己用的AI日报网站,专门覆盖那些平时自然信息流里看不到的信息源。
但用了一段时间后,新的问题来了:如果一直往里面加信息源,它很快就会变成一天几千条、几万条更新。看起来很强,实际上还是看不完。
所以这次没有继续简单加源,而是在AI News Radar上做了一个Skill。
它叫:**伯乐Skill**。
伯乐Skill不是什么源都加。它只做一件事:
**从乱七八糟的信源里,选出值得长期追踪的千里马。**
---
## 在线示例
你可以先看公开版:
https://learnprompt.github.io/ai-news-radar/
这个页面会持续更新AI、开发者、官方博客、技术聚合站和公开日报类来源。
它不是最终答案,而是一个可以fork、可以改、可以接入你自己信息源的起点。
---
## 安装
如果你只是想看日报,不需要安装,直接打开在线页面即可:
```text
https://learnprompt.github.io/ai-news-radar/
```
如果你想做自己的版本:
```bash
git clone https://github.com/LearnPrompt/ai-news-radar.git
cd ai-news-radar
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python scripts/update_news.py --output-dir data --window-hours 24
python -m http.server 8080
```
然后打开:
```text
http://localhost:8080
```
如果你在Claude Code、Codex或其他支持Skill的Agent里使用,请让Agent读取:
```text
skills/ai-news-radar/SKILL.md
```
---
## 安装后第一句话
安装或fork之后,不知道怎么开始,就直接对Agent说:
```text
请使用伯乐Skill,先问我要信息源清单,然后帮我判断每个信源该用 RSS、OPML、公开 feed、静态页面、Jina 兜底、AgentMail 邮箱还是跳过。目标是部署一个不需要服务器、能用 GitHub Actions 自动更新的 AI 日报网站。不要把任何 API Key、cookies、token、真实 OPML、邮箱正文或私有邮件内容写入仓库。
```
这句话的作用是把Agent拉回正确路线:先判断来源,再决定接入方式,不要一上来乱抓网页。
---
## 快速录入信息源
你可以直接把信息源丢给伯乐Skill。
```text
我想用伯乐Skill搭一个自己的AI日报网站。
这是我常看的信息源:
1. https://openai.com/news/
2. https://www.anthropic.com/news
3. https://huggingface.co/blog
4. https://news.ycombinator.com/
5. 一个OPML文件:feeds/follow.opml
6. 一个AgentMail收件箱:newsletter@你的inbox.agentmail.to
7. 一些我关注的X账号:karpathy、sama、nearcyan
请你帮我完成:
1. 判断每个源适合用RSS、OPML、公开页面、GitHub feed、AgentMail邮箱,还是需要跳过。
2. 能用RSS/OPML的优先用RSS/OPML。
3. AgentMail只作为私有进阶源,默认不发布完整正文。
4. 不要把需要登录、cookies、token的来源作为默认公共源。
5. 把适合公开内置的源加入项目。
6. 把私人订阅源放进本地OPML、AgentMail或GitHub Secret方案。
7. 本地跑一次数据生成。
8. 如果通过验证,指导我部署到GitHub Pages。
```
如果你想让用户按表格录入,可以用这个版本:
```text
请使用伯乐Skill,帮我搭建自己的AI日报网站。
你先让我按下面格式填写信息源:
| 名称 | URL或账号 | 类型 | 是否私人 | 我为什么想看它 |
|---|---|---|---|---|
| OpenAI News | https://openai.com/news/ | 网站/RSS | 否 | 官方更新 |
| Karpathy | @karpathy | X账号 | 否 | AI观点 |
| 我的RSS列表 | follow.opml | OPML | 是 | 个人订阅 |
| Newsletter收件箱 | AgentMail inbox | 邮箱 | 是 | 产品周报和newsletter |
填完后,请你帮我判断哪些能直接接入、哪些应该进入OPML、哪些不适合接入、哪些需要Jina兜底、哪些需要以后用私有集成处理。然后生成本地日报数据,并指导我部署到GitHub Pages。
```
---
## 伯乐Skill会选什么
伯乐Skill主要会选五类东西。
| 能力 | 说明 |
|---|---|
| 信息源判断 | 判断一个网站适合RSS、OPML、静态解析、公开JSON,还是不适合接入 |
| 去重和过滤 | 把聚合站、日报、RSS里的重复信息压下去 |
| AI信号识别 | 区分真正的AI相关内容和只是蹭到关键词的噪音 |
| 源健康检查 | 看每个源是否还活着、每天贡献多少信息 |
| 静态部署 | 不买服务器,用GitHub Actions和GitHub Pages自动更新日报网站 |
伯乐Skill的目标不是让你看更多信息。
它的目标是让你少看垃圾信息。
---
## 支持的信息源类型
| 类型 | 推荐程度 | 说明 |
|---|---|---|
| 官方RSS / Atom | 高 | 最稳定,优先使用 |
| OPML | 高 | 适合批量导入个人RSS订阅 |
| 公开GitHub生成Feed | 高 | 适合Follow Builders这类公开数据源 |
| 公开Newsletter归档 | 中 | 优先用公开页面或公开feed |
| 聚合站分页 | 中 | 可覆盖盲区,但需要去重和过滤 |
| X / Twitter | 中低 | 优先使用稳定的公开中间feed,不建议默认依赖账号登录 |
| 飞书知识库 | 进阶 | 适合个人知识库场景,不建议作为公共默认源 |
| AgentMail邮箱 | 进阶 | 适合newsletter、产品周报、GitHub通知;默认关闭,只输出脱敏摘要 |
| 需要登录的网站 | 谨慎 | 会引入cookies、额度和稳定性问题,不建议默认接入 |
---
## 为什么不用Agent一直跑
AI日报不应该每次都依赖Agent临时执行。
伯乐Skill采用的是更稳定的路径:
```text
信息源 → 抓取 → 去重 → 过滤 → 结构化JSON → GitHub Pages网页
```
数据更新可以交给GitHub Actions定时运行。
这意味着:
- 不需要买服务器
- 不需要每天手动运行
- 不需要每次消耗Agent额度
- 手机、iPad、电脑都能打开
- fork之后可以变成你自己的日报站
Agent负责帮你判断、配置和维护信息源。真正的日报更新,交给自动化流程。
---
## 工作原理
伯乐Skill处理信息源时,会做四步。
**1. 来源分类**
先判断来源属于哪一类:
```text
RSS / Atom
OPML
公开GitHub feed
公开网页
聚合站分页
X桥接源
私有知识库
AgentMail邮箱
需要登录的来源
```
不同来源走不同策略。能用RSS就不用网页解析。能用公开feed就不重写爬虫。AgentMail只作为私有邮箱情报入口,适合newsletter和产品周报,不作为公共默认源。需要登录和cookies的来源,不放进公共默认配置。
**2. 抓取和结构化**
把不同来源抓到的数据统一整理成结构化JSON。
这样Agent可以读,网页也可以读。
**3. 去重和AI过滤**
对重复标题、重复链接、聚合站转载进行去重。
同时区分AI强相关、全量信息和原始覆盖池。宽泛词不会单独决定一条新闻是不是AI新闻。比如`agent`可能是AI Agent,也可能只是普通代理。
**4. 静态部署**
最后输出到`data/*.json`,再通过GitHub Pages展示。
默认数据由GitHub Actions定时更新。
---
## 源健康和信息密度
伯乐Skill不是只会加源,也会帮你淘汰源。
页面会展示源健康和信息密度,比如:
```text
源是否正常
最近是否更新
每天贡献多少条信息
AI强相关内容占比
```
一个简单的淘汰标准:
```text
如果一个源连续一周平均每天贡献不到1条有价值信息,就可以考虑移除。
```
这比无限加源更重要。
因为AI日报的敌人不是信息不够,而是噪音太多。
---
## OPML支持
如果你是RSS老玩家,可以直接用OPML批量导入订阅源。
本地方式:
```bash
cp feeds/follow.example.opml feeds/follow.opml
# 把你的OPML内容放进 feeds/follow.opml
python scripts/update_news.py --output-dir data --window-hours 24 --rss-opml feeds/follow.opml
```
注意:
```text
feeds/follow.opml 是你的私人订阅文件,不要提交到公开仓库。
```
如果要部署到GitHub Actions,建议把OPML转成base64,放进GitHub Secret:
```bash
base64 < feeds/follow.opml | pbcopy
```
然后在仓库Secrets里添加:
```text
FOLLOW_OPML_B64
```
---
## AgentMail邮箱情报入口
如果你希望Newsletter、产品周报、GitHub通知进入日报链路,可以创建一个专门给AI日报使用的AgentMail收件箱。
本地方式:
```bash
npm install -g @tencent-qqmail/agently-cli
agently-cli auth login
export EMAIL_DIGEST_ENABLED=1
export AGENTMAIL_PROVIDER=agently_cli
export AGENTMAIL_ALLOWED_SENDER_DOMAINS=tldrnewsletter.com,daily.therundown.ai
# 只有明确想把邮件元数据放进主 Radar 时才打开:
export EMAIL_DIGEST_INCLUDE_IN_RADAR=1
python scripts/update_news.py --output-dir data --window-hours 24
```
安全默认值:
```text
默认不启用AgentMail。
QQ Agent Mail 路径默认只调用 agently-cli message +list。
旧 API 路径只调用 GET /v0/inboxes/{inbox_id}/messages。
默认不读取 /raw,不读取 message +read,不读取 text/html 正文。
默认只输出脱敏后的标题、预览片段、发件域名、链接、附件数量和时间。
默认不把邮件元数据加入主 Radar,只有设置 EMAIL_DIGEST_INCLUDE_IN_RADAR=1 才会加入。
GitHub Actions默认不会提交 data/email-digest.json;只有设置 EMAIL_DIGEST_PUBLISH=1 才会提交。
```
建议把AgentMail理解成“AI日报的专用情报收件箱”,不是读取你的私人邮箱。
---
## 安全边界
伯乐Skill默认不会要求你提供API Key。
公开仓库里也不应该出现:
```text
API Key
cookies
token
.env
真实OPML订阅文件
邮箱正文或私有邮件内容
AgentMail API Key或Inbox ID
浏览器登录态
```
推荐做法:
- 公共默认源只使用稳定公开来源
- 私人订阅放进OPML
- AgentMail只作为私有进阶源,默认关闭
- OPML不要提交到仓库
- GitHub Actions里用Secret保存私有配置
- 需要登录的网站不要作为默认抓取源
一个AI日报项目,自己用可以粗糙一点。一旦开源,就要替fork用户提前挡坑。
---
## 适合谁
伯乐Skill适合这些人:
- 每天需要追AI新闻的人
- 有一堆RSS订阅但看不过来的人
- 想把X、博客、聚合站、Newsletter统一到一个页面的人
- 想fork一个自己的AI日报站的人
- 想让Codex或Claude Code长期维护信息源的人
- 想做自媒体选题雷达的人
不适合这些场景:
- 想实时监控所有新闻
- 想抓取需要登录的网站
- 想把私人邮箱、AgentMail API Key和cookies直接塞进公开项目
- 想用它替代完整RSS阅读器
伯乐Skill不是万能信息中台。它更像一个AI信号雷达。
---
## 仓库结构
```text
ai-news-radar/
├── index.html
├── assets/
│ ├── app.js
│ └── styles.css
├── data/
│ ├── latest-24h.json
│ ├── latest-24h-all.json
│ ├── source-status.json
│ ├── email-digest.json # 可选,AgentMail开启后生成
│ └── archive.json
├── feeds/
│ ├── follow.example.opml
│ └── social-x.example.opml
├── scripts/
│ └── update_news.py
├── docs/
│ ├── SOURCE_COVERAGE.md
│ ├── GPT_HANDOFF.md
│ └── V2_PRODUCT_BRIEF.md
└── skills/
└── ai-news-radar/
├── SKILL.md
├── README.md
└── references/
```
---
## English
> Find the thoroughbred sources before they enter the radar.
**Scout Skill** is the English-facing name for 伯乐Skill in AI News Radar. It helps you choose high-signal AI sources worth tracking instead of blindly adding every noisy feed.
It classifies and ingests sources from RSS, OPML, public websites, GitHub-generated feeds, newsletters, X-related feeds, and private knowledge bases, then deploys the result as a GitHub Pages site.
It does not try to know everything.
It only helps AI News Radar find sources worth tracking.
**Live demo:**
https://learnprompt.github.io/ai-news-radar/
**Repository:**
https://github.com/LearnPrompt/ai-news-radar
### Quick prompt after install
```text
Use Scout Skill to help me build my own AI daily radar.
First read README.md, docs/SOURCE_COVERAGE.md, docs/GPT_HANDOFF.md, and skills/ai-news-radar/SKILL.md.
Then ask me for my source list: websites, RSS feeds, OPML files, X accounts, newsletters, GitHub projects, or private knowledge bases.
For each source, classify whether it should be handled as RSS, OPML, public feed, static page, Jina fallback, optional private integration, or skipped.
Prefer stable public sources. Do not commit API keys, cookies, tokens, private OPML files, or email contents.
After classification, generate the local data, verify the JSON output, and guide me through GitHub Pages deployment.
```
---
## 背后的故事
伯乐Skill是在一次假期信息焦虑里做出来的。
我一边自驾,一边用语音把需求丢给Codex。想到一个源、一个过滤规则、一个页面问题,就让Agent继续改。
最后它变成了一个很适合AI时代的东西:不是让AI帮我多看一点信息,而是让AI帮我少看一点垃圾信息。
所以它叫伯乐Skill:先选千里马,再上雷达。
它看的不是天下大事。它先看的,是哪些信源值得进入雷达。
---
## License
MIT — 随便用,随便改,随便让它帮你选千里马。
---
<div align="center">
**RSS阅读器**帮你订阅信息。
**AI News Radar**帮你展示AI信号。
**伯乐Skill**帮你判断哪些信源是值得长期追踪的千里马。
<br>
*从一堆信源里选出千里马。*
</div>
@@ -0,0 +1,101 @@
# V2 Method
Use this reference when AI News Radar work is about product direction, source
coverage, or packaging the repo as a reusable Skill.
## Method Inputs
- **Office Hours style**: understand demand, status quo, narrowest wedge, and
alternatives before committing to a product direction.
- **Superpowers style**: turn the chosen direction into a small spec, exact file
plan, tests, review, and verification before calling the work complete.
## Product Diagnostic
Run this before expanding features:
1. **User**: ordinary AI enthusiast, maintainer, or agent using the Skill?
2. **Current workaround**: noisy timelines, manual site checks, RSS reader, email,
or another aggregator?
3. **Demand evidence**: is the user asking for breadth, speed, trust, or fewer
choices?
4. **Narrowest useful default**: what can ship without asking a new user to
configure keys, inboxes, cookies, or many toggles?
5. **Advanced escape hatch**: what belongs in OPML, GitHub Secrets, or a local
adapter instead of the public default?
6. **Success signal**: what should improve in `source-status.json`, the Signal
view, or the maintainer workflow?
Ask the user only when a missing answer changes the implementation choice. For
mobile users, prefer one short multiple-choice question.
## Approach Selection
For unclear product choices, compare 2-3 approaches:
- **Minimal viable**: smallest diff, safest public default, fastest validation.
- **Durable architecture**: cleaner long-term extension point, better tests or
docs, more future-proof source coverage.
- **Packaged variant**: makes the project easier for Codex/Claude users to fork,
customize, and deploy as their own AI news radar.
Recommend one approach and state what evidence would make the recommendation
wrong.
## Source Coverage Ladder
Use the highest stable rung available:
1. Official RSS/Atom/JSON from the source owner.
2. Public GitHub-generated feed files produced by a maintained repo.
3. Public newsletter archive or archive RSS.
4. Public static page with stable timestamps and selectors.
5. OPML for personal or niche feeds.
6. Optional API adapter with user-owned secrets.
7. Private inbox, cookies, browser sessions, or unstable bridges.
Rungs 1-4 can become public defaults if they are useful to most visitors. Rungs
5-7 belong in advanced documentation unless the user explicitly wants a private
fork.
## GitHub Feed Intake
When given a GitHub repo that collects news:
1. Read `README*`, `.github/workflows/*`, `config/*`, and generated feed files.
2. Identify whether the repo already uses official APIs or cron jobs centrally.
3. Prefer consuming its public raw output instead of copying its crawler.
4. Verify schema fields: title/text, canonical URL, source/person, timestamp,
stable ID, and generation cadence.
5. Add tests around parser behavior before relying on it as a built-in source.
This is the preferred pattern for X-heavy projects such as curated builder feeds:
the public repo owns API credentials, this project consumes only public JSON.
## Engineering Loop
Keep implementation disciplined:
1. Map files before editing.
2. For behavior changes, add focused parser/filter tests.
3. Implement the smallest code path that passes the test.
4. Run `python -m py_compile scripts/update_news.py` and `pytest -q`.
5. For Skill changes, run the Skill validator.
6. For source changes, run a local generation into `/tmp` and inspect
`source-status.json`.
7. After push, watch GitHub Actions and Pages deployment when relevant.
Do not claim a source is covered until a fetcher, OPML path, public generated
feed path, or optional-secret path is documented and validated.
## V2 Definition Of Done
A v2 change is complete when:
- The default page remains simple for ordinary users.
- The first viewport shows source health and coverage as status signals, not a
pile of configuration controls.
- Source coverage is documented as public default vs advanced/private.
- New built-in sources have stable timestamps and do not require secrets.
- Failures are visible in `source-status.json` instead of silently disappearing.
- The Skill tells future agents how to add, reject, or route similar sources.
+4
View File
@@ -0,0 +1,4 @@
requests==2.32.3
beautifulsoup4==4.12.3
feedparser==6.0.11
python-dateutil==2.9.0.post0
+1
View File
@@ -0,0 +1 @@
# Package marker for tests.
@@ -0,0 +1,433 @@
#!/usr/bin/env python3
"""Explainable AI relevance scoring for news records."""
from __future__ import annotations
import re
from typing import Any
from urllib.parse import urlparse
AI_KEYWORDS = [
"a.i.",
"agent view",
"agent skills",
"for agents",
"parallel agent",
"并行 agent",
"known agents",
"hermes-agent",
"agentmemory",
"aigc",
"llm",
"gpt",
"claude",
"gemini",
"deepseek",
"openai",
"anthropic",
"grok",
"copilot",
"codex",
"mcp",
"hugging face",
"huggingface",
"transformer",
"prompt",
"diffusion",
"多模态",
"交互模型",
"变换器",
"语言模型",
"视觉语言模型",
"基础模型",
"本地模型",
"具身智能",
"大模型",
"人工智能",
"机器学习",
"深度学习",
"智能体",
"算力",
"推理",
"微调",
]
TECH_KEYWORDS = [
"robot",
"robotics",
"embodied",
"autonomous",
"vision",
"chip",
"semiconductor",
"cuda",
"npu",
"gpu",
"cloud",
"developer",
"benchmark",
"dataset",
"eval",
"evaluation",
"sandbox",
"context",
"开源",
"技术",
"编程",
"软件",
"沙箱",
"上下文",
"芯片",
"机器人",
"具身",
]
NOISE_KEYWORDS = [
"娱乐",
"明星",
"八卦",
"足球",
"篮球",
"彩票",
"情感",
"旅游",
"美食",
]
COMMERCE_NOISE_KEYWORDS = [
"淘宝",
"天猫",
"京东",
"拼多多",
"券后",
"热销总榜",
"促销",
"优惠",
"补贴",
"下单",
"首发价",
]
UNSAFE_HARD_PATTERNS = [
re.compile(r"\bcreampie\b", re.I),
re.compile(r"\bblowjob\b", re.I),
re.compile(r"\bsuck (?:your|my) (?:dick|cock)\b", re.I),
re.compile(r"中出|婊子|吸你的鸡鸡|操虚拟女友", re.I),
]
UNSAFE_PROMO_PATTERNS = [
re.compile(r"\b(?:nsfw|nudes?|porn(?:ography)?)\b", re.I),
re.compile(r"\buncensored pictures?\b", re.I),
re.compile(r"\bvirtual girlfriends?\b", re.I),
re.compile(r"\bknock her up\b", re.I),
re.compile(r"未经审查的图片|虚拟女友|色情内容|成人内容", re.I),
]
EN_SIGNAL_RE = re.compile(
r"(?i)(?<![a-z0-9])(ai|aigc|llm|gpt|openai|anthropic|deepseek|gemini|claude|grok|xai|robot|robotics|embodied|autonomous|machine learning|artificial intelligence|transformer|diffusion|agent)(?![a-z0-9])"
)
MEANINGFUL_EN_SIGNAL_RE = re.compile(
r"(?i)(?<![a-z0-9])(ai|aigc|llm|gpt|openai|anthropic|deepseek|gemini|claude|grok|xai|robot|robotics|embodied|autonomous|machine learning|artificial intelligence|transformer|diffusion)(?![a-z0-9])"
)
# "cursor" needs its own word-boundary regex rather than living in the plain
# substring-matched AI_KEYWORDS list: "cursor" is a substring of ordinary
# words like "precursor" (e.g. Cloudflare's "Precursor" product announcement),
# which was scoring 0.65/AI-related purely off that false substring match.
CURSOR_SIGNAL_RE = re.compile(r"(?i)(?<![a-z0-9])cursor(?![a-z0-9])")
BROAD_AI_TERMS = {"agent", "模型", "推理"}
AI_RELEVANCE_THRESHOLD = 0.65
AI_BROAD_RELEVANCE_FLOOR = 0.3
SOURCE_PRIORS = {
"official_ai": 0.35,
"curated_media": 0.18,
"aibase": 0.45,
"aihot": 0.45,
"aihubtoday": 0.45,
"followbuilders": 0.25,
"opmlrss": 0.15,
"xapi": 0.15,
"socialdata_x": 0.15,
}
AI_DEFAULT_SOURCES = {"aibase", "aihot", "aihubtoday"}
CURATED_MEDIA_TRUSTED_SOURCE_KEYWORDS = [
"the decoder ai news",
"techcrunch ai",
"venturebeat ai",
"artificial intelligence news",
"claude code releases",
]
CURATED_MEDIA_RESEARCH_SOURCE_KEYWORDS = [
"marktechpost research",
]
CURATED_MEDIA_RESEARCH_TERMS = [
"paper",
"arxiv",
"research",
"benchmark",
"bench",
"eval",
"evaluation",
"dataset",
"model",
"llm",
"agent",
"diffusion",
"transformer",
"multimodal",
"reasoning",
"inference",
"training",
"open-source",
"robot",
"governance",
]
CURATED_MEDIA_BUSINESS_TERMS = [
"funding",
"raises",
"raised",
"startup",
"acquire",
"acquisition",
"merger",
"revenue",
"enterprise",
"ipo",
"valuation",
]
LABEL_KEYWORDS = [
("model_release", ["model", "gpt", "claude", "gemini", "deepseek", "llm", "模型", "大模型", "发布", "release"]),
("developer_tool", ["copilot", "codex", "mcp", "api", "sdk", "developer", "开发者", "编程", "代码", "coding"]),
("agent_workflow", ["agent", "智能体", "workflow", "工作流", "tool use", "function calling"]),
("research_paper", ["paper", "arxiv", "research", "benchmark", "eval", "论文", "研究", "评测", "榜单"]),
("infra_compute", ["gpu", "npu", "cuda", "chip", "semiconductor", "算力", "芯片", "推理"]),
("robotics", ["robot", "robotics", "embodied", "机器人", "具身"]),
("industry_business", ["funding", "acquire", "融资", "收购", "估值", "营收", "公司"]),
("ai_product_update", ["openai", "anthropic", "google", "perplexity", "cursor", "产品", "上线", "更新"]),
]
def contains_any_keyword(haystack: str, keywords: list[str]) -> bool:
h = haystack.lower()
return any(k in h for k in keywords)
def contains_unsafe_promotional_content(text: str) -> bool:
"""Block explicit adult promotion without hiding a single policy/news mention."""
if any(pattern.search(text) for pattern in UNSAFE_HARD_PATTERNS):
return True
return sum(bool(pattern.search(text)) for pattern in UNSAFE_PROMO_PATTERNS) >= 2
def matched_keywords(haystack: str, keywords: list[str]) -> list[str]:
h = haystack.lower()
return sorted({k for k in keywords if k in h})
def contains_meaningful_ai_signal(haystack: str) -> bool:
h = haystack.lower()
if MEANINGFUL_EN_SIGNAL_RE.search(h):
return True
if CURSOR_SIGNAL_RE.search(h):
return True
return any(k in h for k in AI_KEYWORDS if k not in BROAD_AI_TERMS)
def _label_for_text(text: str, has_tech: bool) -> str:
for label, keywords in LABEL_KEYWORDS:
if contains_any_keyword(text, keywords):
return label
if has_tech:
return "ai_tech"
return "ai_general"
def _result(
*,
is_ai_related: bool,
score: float,
label: str,
reason: str,
signals: list[str] | None = None,
noise: list[str] | None = None,
) -> dict[str, Any]:
return {
"is_ai_related": bool(is_ai_related),
"score": round(max(0.0, min(1.0, score)), 2),
"label": label,
"reason": reason,
"signals": signals or [],
"noise": noise or [],
}
def score_ai_relevance(record: dict[str, Any]) -> dict[str, Any]:
"""Return an explainable relevance score while preserving the old keep/drop behavior."""
site_id = str(record.get("site_id") or "")
title = str(record.get("title") or "")
source = str(record.get("source") or "")
site_name = str(record.get("site_name") or "")
url = str(record.get("url") or "")
# Keyword matching is substring-based, so only the URL host may participate:
# full URLs (e.g. Google News base64 paths) randomly contain substrings like
# "llm"/"gpt" and turn unrelated world news into "AI" items.
try:
url_host = (urlparse(url).netloc or "").lower()
except Exception:
url_host = ""
text = f"{title} {source} {site_name} {url_host}".lower()
ai_signals = matched_keywords(text, AI_KEYWORDS)
if CURSOR_SIGNAL_RE.search(text) and "cursor" not in ai_signals:
ai_signals = sorted(ai_signals + ["cursor"])
tech_signals = matched_keywords(text, TECH_KEYWORDS)
noise = matched_keywords(text, NOISE_KEYWORDS) + matched_keywords(text, COMMERCE_NOISE_KEYWORDS)
source_prior = SOURCE_PRIORS.get(site_id, 0.0)
if contains_unsafe_promotional_content(text):
return _result(
is_ai_related=False,
score=0.0,
label="unsafe_content",
reason="unsafe_promotional_content",
signals=[],
noise=["unsafe_promotional_content"],
)
if site_id == "curated_media":
source_l = source.lower()
title_l = title.lower()
trusted_source = contains_any_keyword(source_l, CURATED_MEDIA_TRUSTED_SOURCE_KEYWORDS)
research_source = contains_any_keyword(source_l, CURATED_MEDIA_RESEARCH_SOURCE_KEYWORDS)
title_has_ai = contains_meaningful_ai_signal(title_l)
title_has_broad_ai = contains_any_keyword(title_l, list(BROAD_AI_TERMS)) or EN_SIGNAL_RE.search(title_l) is not None
title_has_research = contains_any_keyword(title_l, CURATED_MEDIA_RESEARCH_TERMS)
if research_source and not (title_has_ai or title_has_research):
return _result(
is_ai_related=False,
score=0.22,
label="source_scope_drop",
reason="curated_research_source_requires_research_or_ai_title_signal",
signals=ai_signals + tech_signals,
noise=noise,
)
if not (trusted_source or research_source or title_has_ai or (title_has_broad_ai and bool(tech_signals))):
return _result(
is_ai_related=False,
score=source_prior + (0.28 if title_has_broad_ai else 0.0),
label="source_scope_drop",
reason="curated_media_requires_ai_title_or_trusted_ai_feed",
signals=ai_signals + tech_signals,
noise=noise,
)
if research_source or title_has_research:
label = "research_paper"
elif contains_any_keyword(title_l, CURATED_MEDIA_BUSINESS_TERMS):
label = "industry_business"
else:
label = _label_for_text(text, bool(tech_signals))
base = 0.58 if trusted_source else 0.5
score = source_prior + base + min(0.12, 0.03 * len(ai_signals)) + min(0.08, 0.02 * len(tech_signals))
if research_source:
score = min(score, 0.76)
if noise and not title_has_ai:
score -= min(0.16, 0.04 * len(noise))
return _result(
is_ai_related=score >= AI_RELEVANCE_THRESHOLD,
score=score,
label=label,
reason="curated_media_source_filter",
signals=ai_signals + tech_signals or ([source_l] if trusted_source else []),
noise=noise,
)
if site_id in AI_DEFAULT_SOURCES:
return _result(
is_ai_related=True,
score=max(AI_RELEVANCE_THRESHOLD, 0.72 + source_prior),
label=_label_for_text(text, bool(tech_signals)),
reason="trusted_ai_source_default_keep",
signals=ai_signals or [site_id],
noise=noise,
)
has_ai = contains_meaningful_ai_signal(text)
has_broad_ai = contains_any_keyword(text, list(BROAD_AI_TERMS)) or EN_SIGNAL_RE.search(text) is not None
has_tech = bool(tech_signals)
if not (has_ai or (has_broad_ai and has_tech)):
return _result(
is_ai_related=False,
score=source_prior + (0.32 if has_broad_ai else 0.0) + (0.08 if has_tech else 0.0),
label="not_ai",
reason="missing_meaningful_ai_signal",
signals=ai_signals + tech_signals,
noise=noise,
)
if contains_any_keyword(text, COMMERCE_NOISE_KEYWORDS) and not has_ai:
return _result(
is_ai_related=False,
score=0.25 + source_prior,
label="commerce_noise",
reason="commerce_noise_without_strong_ai_signal",
signals=ai_signals + tech_signals,
noise=noise,
)
if contains_any_keyword(text, NOISE_KEYWORDS) and not has_ai:
return _result(
is_ai_related=False,
score=0.25 + source_prior,
label="noise",
reason="noise_without_strong_ai_signal",
signals=ai_signals + tech_signals,
noise=noise,
)
score = source_prior + (0.52 if has_ai else 0.34) + min(0.18, 0.04 * len(ai_signals)) + min(0.12, 0.03 * len(tech_signals))
if noise:
score -= min(0.18, 0.04 * len(noise))
if has_broad_ai and has_tech and not has_ai:
score = max(score, AI_RELEVANCE_THRESHOLD)
if has_ai:
score = max(score, AI_RELEVANCE_THRESHOLD)
return _result(
is_ai_related=True,
score=score,
label=_label_for_text(text, has_tech),
reason="matched_ai_signal" if has_ai else "matched_broad_ai_plus_tech_signal",
signals=ai_signals + tech_signals,
noise=noise,
)
def is_ai_related_record(record: dict[str, Any]) -> bool:
return bool(score_ai_relevance(record)["is_ai_related"])
def is_broadly_ai_related(record: dict[str, Any]) -> bool:
"""Return True when a record clears the broad-AI floor (score >= 0.3).
This is a looser gate than ``is_ai_related_record`` (which requires >= 0.65).
Used by the "all-mode" UI view to filter out obviously-irrelevant noise while
keeping items with at least tangential AI/tech signal.
"""
return score_ai_relevance(record)["score"] >= AI_BROAD_RELEVANCE_FLOOR
def add_ai_relevance_fields(record: dict[str, Any]) -> dict[str, Any]:
relevance = score_ai_relevance(record)
out = dict(record)
out["ai_is_related"] = relevance["is_ai_related"]
out["ai_score"] = relevance["score"]
out["ai_label"] = relevance["label"]
out["ai_relevance_reason"] = relevance["reason"]
out["ai_signals"] = relevance["signals"]
out["ai_noise"] = relevance["noise"]
return out
@@ -0,0 +1,414 @@
#!/usr/bin/env python3
"""Evaluate whether a candidate source overlaps too much with existing sources.
This script is intentionally maintainer-facing. It does not change the daily
news pipeline; it produces an intake report that helps decide whether a new RSS
source should become a public default, remain an advanced OPML source, or be
skipped as too duplicative.
"""
from __future__ import annotations
import argparse
import json
import re
import sys
from collections import Counter
from datetime import UTC, datetime, timedelta
from difflib import SequenceMatcher
from pathlib import Path
from typing import Any
import requests
# Allow `python scripts/evaluate_source_overlap.py ...` from the repo root while
# keeping package imports working under pytest.
ROOT = Path(__file__).resolve().parents[1]
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
from scripts.update_news import ( # noqa: E402
event_time,
iso,
normalize_url,
parse_date_any,
parse_feed_entries_via_xml,
utc_now,
)
TITLE_SOURCE_SUFFIXES = {
"ai hot",
"aihot",
"hacker news",
"product hunt",
"techcrunch",
"the verge",
"venturebeat",
}
TITLE_DROP_WORDS = {
"exclusive",
"breaking",
"news",
"the",
"a",
"an",
"from",
"by",
"via",
}
ENTITY_TERMS = {
"openai",
"anthropic",
"claude",
"google",
"gemini",
"deepseek",
"qwen",
"llama",
"meta",
"mistral",
"perplexity",
"cursor",
"codex",
"copilot",
"github",
"runway",
"kling",
}
def normalize_title_for_overlap(title: str) -> str:
"""Normalize a title for overlap comparison, not for display."""
text = (title or "").strip().lower()
if not text:
return ""
# Drop common source suffixes like "— AI HOT" when they are clearly not part
# of the story title.
parts = re.split(r"\s+[—–-]\s+", text)
if len(parts) > 1 and parts[-1].strip(" .") in TITLE_SOURCE_SUFFIXES:
text = " — ".join(parts[:-1])
# Remove bracketed labels such as [Exclusive], not bracketed product names.
text = re.sub(r"\[(exclusive|breaking|update|news)\]", " ", text, flags=re.I)
text = re.sub(r"\b20\d{2}\b", " ", text)
text = re.sub(r"[^a-z0-9\u4e00-\u9fff]+", " ", text)
tokens = [token for token in text.split() if token not in TITLE_DROP_WORDS]
return " ".join(tokens)
def title_similarity(a: str, b: str) -> float:
"""Return a stable 0-1 title similarity score with light token reordering."""
na = normalize_title_for_overlap(a)
nb = normalize_title_for_overlap(b)
if not na or not nb:
return 0.0
if na == nb:
return 1.0
seq_score = SequenceMatcher(None, na, nb).ratio()
ta = set(na.split())
tb = set(nb.split())
if not ta or not tb:
return round(seq_score, 3)
token_score = len(ta & tb) / len(ta | tb)
sorted_score = SequenceMatcher(None, " ".join(sorted(ta)), " ".join(sorted(tb))).ratio()
return round(max(seq_score, token_score, sorted_score), 3)
def extract_entities(title: str) -> set[str]:
normalized = normalize_title_for_overlap(title)
tokens = set(normalized.split())
return {term for term in ENTITY_TERMS if term in tokens}
def tokens_for_overlap(title: str) -> set[str]:
return {token for token in normalize_title_for_overlap(title).split() if len(token) > 1}
def _days_apart(a: dict[str, Any], b: dict[str, Any]) -> float | None:
ta = event_time(a)
tb = event_time(b)
if not ta or not tb:
return None
return abs((ta - tb).total_seconds()) / 86400
def classify_overlap(
candidate: dict[str, Any],
existing: dict[str, Any],
*,
title_threshold: float = 0.88,
possible_title_threshold: float = 0.62,
) -> dict[str, Any] | None:
"""Classify overlap between one candidate item and one existing record."""
candidate_url = normalize_url(str(candidate.get("url") or ""))
existing_url = normalize_url(str(existing.get("url") or ""))
score = 0.0
match_type = ""
hard_duplicate = False
if candidate_url and existing_url and candidate_url == existing_url:
score = 1.0
match_type = "url_exact"
hard_duplicate = True
else:
candidate_title = str(candidate.get("title") or "")
existing_title = str(existing.get("title") or "")
score = title_similarity(candidate_title, existing_title)
if normalize_title_for_overlap(candidate_title) == normalize_title_for_overlap(existing_title) and candidate_title.strip().lower() == existing_title.strip().lower():
match_type = "title_exact"
hard_duplicate = True
elif score >= title_threshold:
match_type = "title_similarity"
hard_duplicate = True
else:
candidate_entities = extract_entities(str(candidate.get("title") or ""))
existing_entities = extract_entities(str(existing.get("title") or ""))
days = _days_apart(candidate, existing)
if (
score >= possible_title_threshold
and candidate_entities
and candidate_entities & existing_entities
and (days is None or days <= 2)
):
match_type = "entity_time_possible"
hard_duplicate = False
else:
return None
return {
"candidate_title": candidate.get("title"),
"candidate_url": candidate_url,
"matched_title": existing.get("title"),
"matched_url": existing_url,
"matched_site_id": existing.get("site_id"),
"matched_site_name": existing.get("site_name"),
"match_type": match_type,
"score": round(score, 3),
"hard_duplicate": hard_duplicate,
}
def make_recommendation(item_count: int, duplicate_rate: float) -> dict[str, Any]:
sample_too_small = item_count < 5
if sample_too_small:
decision = "watchlist"
reason = "样本少于5条,不建议仅凭重复率直接拒绝;先进入观察列表。"
elif duplicate_rate >= 0.65:
decision = "skip_duplicate"
reason = "最近内容和已有信源高度重复,默认不录入公共源。"
elif duplicate_rate >= 0.35:
decision = "watchlist"
reason = "重复率中等,建议先作为OPML高级源或观察源,而不是直接进入默认源。"
else:
decision = "accept_default"
reason = "重复率较低,能为默认源补充明显新增信息。"
return {
"decision": decision,
"reason": reason,
"sample_too_small": sample_too_small,
}
def filter_recent_records(records: list[dict[str, Any]], now: datetime, lookback_days: int) -> list[dict[str, Any]]:
cutoff = now - timedelta(days=lookback_days)
out = []
for record in records:
ts = event_time(record)
if ts and ts >= cutoff:
out.append(record)
return out
def evaluate_source_overlap(
candidate_items: list[dict[str, Any]],
baseline_items: list[dict[str, Any]],
*,
candidate: dict[str, Any],
generated_at: datetime,
lookback_days: int,
) -> dict[str, Any]:
matches: list[dict[str, Any]] = []
possible_matches: list[dict[str, Any]] = []
duplicate_candidate_indexes: set[int] = set()
candidate_site_id = str(candidate.get("site_id") or "")
baseline = [item for item in baseline_items if str(item.get("site_id") or "") != candidate_site_id]
url_index: dict[str, list[dict[str, Any]]] = {}
token_index: dict[str, set[int]] = {}
for baseline_idx, existing in enumerate(baseline):
url = normalize_url(str(existing.get("url") or ""))
if url:
url_index.setdefault(url, []).append(existing)
for token in tokens_for_overlap(str(existing.get("title") or "")):
token_index.setdefault(token, set()).add(baseline_idx)
for idx, item in enumerate(candidate_items):
best_hard: dict[str, Any] | None = None
best_possible: dict[str, Any] | None = None
candidate_url = normalize_url(str(item.get("url") or ""))
candidates_to_compare: list[dict[str, Any]] = []
if candidate_url in url_index:
candidates_to_compare.extend(url_index[candidate_url])
else:
candidate_indexes: set[int] = set()
for token in tokens_for_overlap(str(item.get("title") or "")):
candidate_indexes.update(token_index.get(token, set()))
candidates_to_compare.extend(baseline[i] for i in candidate_indexes)
for existing in candidates_to_compare:
match = classify_overlap(item, existing)
if not match:
continue
if match["hard_duplicate"]:
if best_hard is None or match["score"] > best_hard["score"]:
best_hard = match
elif best_possible is None or match["score"] > best_possible["score"]:
best_possible = match
if best_hard:
duplicate_candidate_indexes.add(idx)
matches.append(best_hard)
elif best_possible:
possible_matches.append(best_possible)
item_count = len(candidate_items)
duplicate_count = len(duplicate_candidate_indexes)
possible_duplicate_count = len(possible_matches)
unique_count = max(0, item_count - duplicate_count - possible_duplicate_count)
duplicate_rate = round(duplicate_count / item_count, 3) if item_count else 0.0
unique_rate = round(unique_count / item_count, 3) if item_count else 0.0
source_counter = Counter(str(match.get("matched_site_id") or "") for match in matches if match.get("matched_site_id"))
name_by_id = {
str(match.get("matched_site_id") or ""): str(match.get("matched_site_name") or match.get("matched_site_id") or "")
for match in matches
}
return {
"generated_at": iso(generated_at),
"candidate": {
"site_id": candidate_site_id,
"site_name": candidate.get("site_name") or candidate_site_id,
"url": candidate.get("url"),
"item_count": item_count,
"lookback_days": lookback_days,
},
"baseline": {
"source_count": len({str(item.get("site_id") or "") for item in baseline if item.get("site_id")}),
"item_count": len(baseline),
"window_days": lookback_days,
},
"overlap": {
"duplicate_count": duplicate_count,
"possible_duplicate_count": possible_duplicate_count,
"unique_count": unique_count,
"duplicate_rate": duplicate_rate,
"unique_rate": unique_rate,
},
"top_overlapping_sources": [
{
"site_id": site_id,
"site_name": name_by_id.get(site_id) or site_id,
"matched_count": count,
}
for site_id, count in source_counter.most_common(10)
],
"recommendation": make_recommendation(item_count=item_count, duplicate_rate=duplicate_rate),
"matches": matches,
"possible_matches": possible_matches,
}
def load_archive_records(path: Path) -> list[dict[str, Any]]:
data = json.loads(path.read_text(encoding="utf-8"))
if isinstance(data, dict):
if "items" in data and isinstance(data["items"], list):
return [item for item in data["items"] if isinstance(item, dict)]
return [item for item in data.values() if isinstance(item, dict)]
if isinstance(data, list):
return [item for item in data if isinstance(item, dict)]
raise ValueError(f"Unsupported baseline JSON shape: {path}")
def fetch_rss_candidate(source_url: str, source_name: str, site_id: str, now: datetime) -> list[dict[str, Any]]:
resp = requests.get(source_url, timeout=25, headers={"User-Agent": "AI-News-Radar/0.3 SourceOverlapCheck"})
resp.raise_for_status()
entries = parse_feed_entries_via_xml(resp.content)
out: list[dict[str, Any]] = []
for entry in entries:
title = str(entry.get("title") or "").strip()
url = normalize_url(str(entry.get("link") or entry.get("url") or ""))
if not title or not url.startswith("http"):
continue
published = parse_date_any(entry.get("published") or entry.get("updated") or entry.get("pubDate"), now)
out.append(
{
"site_id": site_id,
"site_name": source_name,
"source": source_name,
"title": title,
"url": url,
"published_at": iso(published),
"first_seen_at": iso(now),
}
)
return out
def print_summary(report: dict[str, Any]) -> None:
candidate = report["candidate"]
overlap = report["overlap"]
recommendation = report["recommendation"]
print(f"Source: {candidate['site_name']} ({candidate['site_id']})")
print(f"Items: {candidate['item_count']} | Baseline: {report['baseline']['item_count']}")
print(
"Duplicate rate: "
f"{overlap['duplicate_rate']:.3f} "
f"({overlap['duplicate_count']} hard, {overlap['possible_duplicate_count']} possible)"
)
print(f"Unique rate: {overlap['unique_rate']:.3f} ({overlap['unique_count']} unique)")
print(f"Recommendation: {recommendation['decision']} — {recommendation['reason']}")
def main() -> int:
parser = argparse.ArgumentParser(description="Evaluate candidate source overlap against AI News Radar baseline")
parser.add_argument("--source-url", required=True, help="Candidate RSS/Atom URL")
parser.add_argument("--source-name", required=True, help="Human-readable candidate source name")
parser.add_argument("--site-id", default="candidate", help="Candidate site_id used in the report")
parser.add_argument("--baseline", default="data/archive.json", help="Baseline archive/latest JSON path")
parser.add_argument("--lookback-days", type=int, default=7, help="Recent window to compare")
parser.add_argument("--output", default="", help="Optional JSON report output path")
args = parser.parse_args()
now = utc_now()
baseline_path = Path(args.baseline).expanduser()
baseline_items = filter_recent_records(load_archive_records(baseline_path), now, max(1, args.lookback_days))
candidate_items = filter_recent_records(
fetch_rss_candidate(args.source_url, args.source_name, args.site_id, now),
now,
max(1, args.lookback_days),
)
report = evaluate_source_overlap(
candidate_items,
baseline_items,
candidate={"site_id": args.site_id, "site_name": args.source_name, "url": args.source_url},
generated_at=now,
lookback_days=max(1, args.lookback_days),
)
if args.output:
output_path = Path(args.output).expanduser()
output_path.parent.mkdir(parents=True, exist_ok=True)
output_path.write_text(json.dumps(report, ensure_ascii=False, indent=2), encoding="utf-8")
print(f"Wrote overlap report: {output_path}")
print_summary(report)
return 0
if __name__ == "__main__":
raise SystemExit(main())
@@ -0,0 +1,514 @@
#!/usr/bin/env python3
"""Persona scoring for the daily brief.
Reads ``{data-dir}/daily-brief.json`` produced by ``update_news.py``, scores
each item with a persona-flavored LLM call (DeepSeek), writes the persona
fields back into ``daily-brief.json``, and generates a multi-persona TOP3
review file ``{data-dir}/top3-personas.json``.
Design constraints:
- Standalone: communicates with the rest of the pipeline only through JSON
files. Never imports ``update_news.py``.
- Zero new dependencies: standard library plus ``requests``.
- Runs without any API key: falls back to a rules-based score derived from
``importance_score`` so the public repo stays runnable key-free.
- Exit code is always 0 except for argument errors or corrupted input JSON.
"""
from __future__ import annotations
import argparse
import hashlib
import json
import os
import re
import sys
import time
from datetime import datetime, timedelta, timezone
from pathlib import Path
import requests
DEFAULT_API_BASE_URL = "https://api.deepseek.com"
DEFAULT_MODEL = "deepseek-chat"
CACHE_VERSION = 1
CACHE_MAX_AGE_DAYS = 21
REVIEW_MAX_CHARS = 60
RETRY_BACKOFF_SECONDS = 2.0
ITEM_CONTEXT_FIELDS = (
"story_id",
"title",
"url",
"importance_score",
"importance_label",
"category",
"reasons",
"source_count",
)
PERSONA_ID_RE = re.compile(r"^[a-z-]+$")
CONTROL_CHARS_RE = re.compile(r"[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]")
WHITESPACE_RE = re.compile(r"\s+")
class PersonaError(Exception):
"""Raised for invalid persona files."""
def parse_frontmatter(text: str) -> tuple[dict, str]:
"""Parse a ``---`` delimited frontmatter block of simple ``key: value`` lines.
Returns (metadata dict, body). Raises PersonaError when the block is
missing or malformed.
"""
lines = text.split("\n")
if not lines or lines[0].strip() != "---":
raise PersonaError("missing frontmatter opening '---'")
meta: dict = {}
end_index = None
for i, line in enumerate(lines[1:], start=1):
if line.strip() == "---":
end_index = i
break
stripped = line.strip()
if not stripped or stripped.startswith("#"):
continue
if ":" not in stripped:
raise PersonaError(f"invalid frontmatter line: {line!r}")
key, _, value = stripped.partition(":")
key = key.strip()
value = value.strip()
if value.lower() in {"true", "false"}:
meta[key] = value.lower() == "true"
else:
meta[key] = value
if end_index is None:
raise PersonaError("missing frontmatter closing '---'")
body = "\n".join(lines[end_index + 1 :]).strip()
return meta, body
def load_personas(personas_dir: Path) -> list[dict]:
"""Load persona definitions from ``personas_dir``.
Each persona is a dict: id, name, name_en, default, prompt, sha8 (first 8
hex chars of the sha1 of the full file text).
"""
personas = []
if not personas_dir.is_dir():
return personas
for path in sorted(personas_dir.glob("*.md")):
if path.name.lower() == "readme.md":
continue
text = path.read_text(encoding="utf-8")
try:
meta, body = parse_frontmatter(text)
except PersonaError as exc:
print(f"persona: skipping {path.name}: {exc}", file=sys.stderr)
continue
persona_id = str(meta.get("id", "")).strip()
if not PERSONA_ID_RE.match(persona_id):
print(
f"persona: skipping {path.name}: invalid id {persona_id!r}",
file=sys.stderr,
)
continue
personas.append(
{
"id": persona_id,
"name": str(meta.get("name", persona_id)),
"name_en": str(meta.get("name_en", persona_id)),
"default": bool(meta.get("default", False)),
"prompt": body,
"sha8": hashlib.sha1(text.encode("utf-8")).hexdigest()[:8],
}
)
return personas
def pick_default_persona(personas: list[dict]) -> dict | None:
for persona in personas:
if persona.get("default"):
return persona
return personas[0] if personas else None
def sanitize_review(review: str) -> str:
review = CONTROL_CHARS_RE.sub("", str(review))
review = WHITESPACE_RE.sub(" ", review).strip()
return review[:REVIEW_MAX_CHARS]
def clamp_score(value) -> int:
try:
score = int(round(float(value)))
except (TypeError, ValueError):
score = 0
return max(0, min(100, score))
def title_hash(title: str) -> str:
return hashlib.sha1(str(title).encode("utf-8")).hexdigest()[:8]
def cache_key(story_id: str, persona: dict) -> str:
return f"{story_id}|{persona['id']}|{persona['sha8']}"
def load_cache(path: Path) -> dict:
try:
data = json.loads(path.read_text(encoding="utf-8"))
except (OSError, json.JSONDecodeError, ValueError):
return {"version": CACHE_VERSION, "entries": {}}
if not isinstance(data, dict) or data.get("version") != CACHE_VERSION:
return {"version": CACHE_VERSION, "entries": {}}
entries = data.get("entries")
if not isinstance(entries, dict):
entries = {}
return {"version": CACHE_VERSION, "entries": entries}
def prune_cache(cache: dict, now: datetime) -> None:
cutoff = now - timedelta(days=CACHE_MAX_AGE_DAYS)
kept = {}
for key, entry in cache.get("entries", {}).items():
if not isinstance(entry, dict):
continue
scored_at = entry.get("scored_at")
try:
when = datetime.fromisoformat(str(scored_at).replace("Z", "+00:00"))
except (TypeError, ValueError):
continue
if when.tzinfo is None:
when = when.replace(tzinfo=timezone.utc)
if when >= cutoff:
kept[key] = entry
cache["entries"] = kept
def save_cache(path: Path, cache: dict, now: datetime) -> None:
prune_cache(cache, now)
path.write_text(
json.dumps(cache, ensure_ascii=False, indent=2) + "\n", encoding="utf-8"
)
def build_item_context(item: dict) -> dict:
context = {}
for field in ITEM_CONTEXT_FIELDS:
if field in item:
context[field] = item[field]
sources = item.get("sources")
if isinstance(sources, list):
context["sources"] = [
{"source": src.get("source")}
for src in sources
if isinstance(src, dict) and src.get("source")
]
return context
def call_persona_api(
persona: dict,
item: dict,
*,
api_key: str,
base_url: str,
model: str,
timeout: float,
) -> tuple[int, str] | None:
"""Call the DeepSeek chat completions API for one item with one persona.
Retries once on failure (2s backoff). Returns (score, review) or None.
"""
url = f"{base_url.rstrip('/')}/chat/completions"
payload = {
"model": model,
"messages": [
{"role": "system", "content": persona["prompt"]},
{
"role": "user",
"content": json.dumps(build_item_context(item), ensure_ascii=False),
},
],
"response_format": {"type": "json_object"},
"temperature": 0.3,
}
headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json",
}
last_error = None
for attempt in range(2):
if attempt:
time.sleep(RETRY_BACKOFF_SECONDS)
try:
response = requests.post(url, json=payload, headers=headers, timeout=timeout)
if response.status_code == 429:
last_error = "rate limited (429)"
continue
response.raise_for_status()
body = response.json()
content = body["choices"][0]["message"]["content"]
parsed = json.loads(content)
score = clamp_score(parsed.get("score"))
review = sanitize_review(parsed.get("review", ""))
if not review:
last_error = "empty review"
continue
return score, review
except (requests.RequestException, KeyError, IndexError, TypeError, ValueError, json.JSONDecodeError) as exc:
last_error = str(exc)
continue
print(
f"persona: {persona['id']} failed for {item.get('story_id')}: {last_error}",
file=sys.stderr,
)
return None
def score_with_persona(
persona: dict,
item: dict,
cache: dict,
*,
api_key: str,
base_url: str,
model: str,
timeout: float,
stats: dict,
) -> tuple[int, str] | None:
"""Score one item with one persona, using the cache when possible."""
story_id = str(item.get("story_id", ""))
key = cache_key(story_id, persona)
thash = title_hash(item.get("title", ""))
entry = cache["entries"].get(key)
if isinstance(entry, dict) and entry.get("title_hash") == thash:
stats["cached"] += 1
return clamp_score(entry.get("score")), sanitize_review(entry.get("review", ""))
result = call_persona_api(
persona,
item,
api_key=api_key,
base_url=base_url,
model=model,
timeout=timeout,
)
if result is None:
stats["failed"] += 1
return None
score, review = result
cache["entries"][key] = {
"score": score,
"review": review,
"title_hash": thash,
"scored_at": utcnow_iso(),
}
stats["scored"] += 1
return score, review
def utcnow_iso() -> str:
return datetime.now(timezone.utc).isoformat().replace("+00:00", "Z")
def run_fallback(items: list[dict], default_persona: dict | None) -> None:
persona_id = default_persona["id"] if default_persona else "pragmatic"
scored_at = utcnow_iso()
for item in items:
item["persona_id"] = persona_id
item["persona_score"] = clamp_score(item.get("importance_score", 0))
item.pop("persona_review", None)
item["persona_meta"] = {"mode": "rules_fallback", "scored_at": scored_at}
def build_top3_payload(
items: list[dict],
personas: list[dict],
cache: dict,
*,
top3: int,
api_key: str,
base_url: str,
model: str,
timeout: float,
stats: dict,
) -> dict:
ranked = sorted(
[item for item in items if "persona_score" in item],
key=lambda it: (
-float(it.get("persona_score", 0)),
-float(it.get("importance_score", 0) or 0),
),
)[:top3]
top_items = []
for rank, item in enumerate(ranked, start=1):
reviews = {}
for persona in personas:
result = score_with_persona(
persona,
item,
cache,
api_key=api_key,
base_url=base_url,
model=model,
timeout=timeout,
stats=stats,
)
if result is None:
continue
score, review = result
reviews[persona["id"]] = {"score": score, "review": review}
top_items.append(
{
"story_id": item.get("story_id"),
"title": item.get("title"),
"url": item.get("url"),
"rank": rank,
"reviews": reviews,
}
)
return {
"generated_at": utcnow_iso(),
"model": model,
"personas": [{"id": p["id"], "name": p["name"]} for p in personas],
"items": top_items,
}
def parse_args(argv: list[str] | None = None) -> argparse.Namespace:
parser = argparse.ArgumentParser(description="Persona scoring for daily brief")
parser.add_argument("--data-dir", default="data", help="data directory")
parser.add_argument("--personas-dir", default="personas", help="personas directory")
parser.add_argument("--max-items", type=int, default=40, help="max items to score")
parser.add_argument("--top3", type=int, default=3, help="TOP N multi-persona items")
parser.add_argument("--timeout", type=float, default=30, help="API timeout seconds")
parser.add_argument(
"--dry-run", action="store_true", help="run without writing any files"
)
parser.add_argument(
"--list-personas", action="store_true", help="list personas and exit"
)
return parser.parse_args(argv)
def main(argv: list[str] | None = None) -> int:
args = parse_args(argv)
personas_dir = Path(args.personas_dir)
personas = load_personas(personas_dir)
default_persona = pick_default_persona(personas)
if args.list_personas:
if not personas:
print("persona: no personas found")
return 0
for persona in personas:
marker = " (default)" if persona is default_persona else ""
print(f"{persona['id']}\t{persona['name']} / {persona['name_en']}{marker}")
return 0
data_dir = Path(args.data_dir)
brief_path = data_dir / "daily-brief.json"
top3_path = data_dir / "top3-personas.json"
cache_path = data_dir / "persona-cache.json"
if not brief_path.is_file():
print(f"persona: {brief_path} not found, nothing to do")
print("persona: scored=0 cached=0 skipped=0 failed=0")
return 0
brief = json.loads(brief_path.read_text(encoding="utf-8"))
all_items = brief.get("items", [])
if not isinstance(all_items, list):
raise SystemExit(f"persona: {brief_path} has invalid 'items'")
items = all_items[: args.max_items]
skipped = len(all_items) - len(items)
api_key = os.environ.get("DEEPSEEK_API_KEY", "").strip()
base_url = os.environ.get("DEEPSEEK_API_BASE_URL", "").strip() or DEFAULT_API_BASE_URL
model = os.environ.get("DEEPSEEK_MODEL", "").strip() or DEFAULT_MODEL
enabled = os.environ.get("PERSONA_ENABLED", "").strip() != "0"
now = datetime.now(timezone.utc)
stats = {"scored": 0, "cached": 0, "failed": 0}
if not api_key or not enabled or default_persona is None:
run_fallback(items, default_persona)
top3_payload = {"generated_at": utcnow_iso(), "items": []}
if not args.dry_run:
brief_path.write_text(
json.dumps(brief, ensure_ascii=False, indent=2) + "\n",
encoding="utf-8",
)
top3_path.write_text(
json.dumps(top3_payload, ensure_ascii=False, indent=2) + "\n",
encoding="utf-8",
)
print(
f"persona: scored=0 cached=0 skipped={skipped} failed=0"
)
return 0
cache = load_cache(cache_path)
scored_at = utcnow_iso()
for item in items:
result = score_with_persona(
default_persona,
item,
cache,
api_key=api_key,
base_url=base_url,
model=model,
timeout=args.timeout,
stats=stats,
)
if result is None:
continue
score, review = result
item["persona_id"] = default_persona["id"]
item["persona_score"] = score
item["persona_review"] = review
item["persona_meta"] = {
"mode": "llm",
"model": model,
"scored_at": scored_at,
}
top3_payload = build_top3_payload(
items,
personas,
cache,
top3=args.top3,
api_key=api_key,
base_url=base_url,
model=model,
timeout=args.timeout,
stats=stats,
)
if not args.dry_run:
brief_path.write_text(
json.dumps(brief, ensure_ascii=False, indent=2) + "\n", encoding="utf-8"
)
top3_path.write_text(
json.dumps(top3_payload, ensure_ascii=False, indent=2) + "\n",
encoding="utf-8",
)
save_cache(cache_path, cache, now)
print(
"persona: scored={scored} cached={cached} skipped={skipped} failed={failed}".format(
scored=stats["scored"],
cached=stats["cached"],
skipped=skipped,
failed=stats["failed"],
)
)
return 0
if __name__ == "__main__":
sys.exit(main())
@@ -0,0 +1,28 @@
#!/usr/bin/env python3
"""Run the pinned generator with a required output directory outside this skill."""
from __future__ import annotations
import argparse
import runpy
import sys
from pathlib import Path
def main() -> None:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--output-dir", required=True, help="Absolute private working/output directory, outside the installed skill")
args, remaining = parser.parse_known_args()
if any(arg == "--output-dir" or arg.startswith("--output-dir=") for arg in remaining):
parser.error("supply --output-dir exactly once")
output = Path(args.output_dir).expanduser()
if not output.is_absolute():
parser.error("--output-dir must be absolute")
output = output.resolve()
skill = Path(__file__).resolve().parents[1]
if output == skill or skill in output.parents:
parser.error("--output-dir must be outside the installed skill")
sys.dont_write_bytecode = True
sys.path.insert(0, str(skill / "scripts"))
sys.argv = [str(skill / "scripts" / "update_news.py"), "--output-dir", str(output), *remaining]
runpy.run_path(sys.argv[0], run_name="__main__")
if __name__ == "__main__":
main()
File diff suppressed because it is too large. Load diff
+24
View File
@@ -0,0 +1,24 @@
{
"name": "AI News Radar",
"short_name": "AI Radar",
"description": "Curated AI and technology signals from the past 24 hours.",
"start_url": "./",
"scope": "./",
"display": "standalone",
"background_color": "#f6f6f2",
"theme_color": "#f6f6f2",
"icons": [
{
"src": "./assets/icons/icon-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "./assets/icons/icon-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
}
]
}
@@ -0,0 +1,41 @@
# 翻译词表 —— fork 后直接改这个文件,管线自动生效 / Translation glossary — edit this file in your fork
#
# 两种规则 / Two kinds of rules:
# 术语保护(一行一个词):翻译时保留原文,不翻译
# Protected term (one per line): kept verbatim, never translated
# 修正规则(bad => good [@原文含关键词]):对译文做替换;@ 后是防误伤条件,
# 只有英文原标题包含该关键词才执行替换,可省略
# Repair rule (bad => good [@keyword]): replace bad with good in the translated
# title; the optional @keyword guard means the replacement only fires when the
# English source title contains that keyword (case-insensitive)
#
# 以 # 开头的行和空行会被忽略 / Lines starting with # and blank lines are ignored
## 保护术语 / Protected terms
Claude
Claude Code
LLM
Fable 5
Mythos 5
Opus
Sonnet
Haiku
GPT
Gemini
Copilot
Cursor
Perplexity
Hugging Face
Transformer
OpenAI
Anthropic
DeepSeek
Agent
Token
## 修正规则 / Repair rules
法学硕士(LLM) => LLM
法学硕士(LLM) => LLM
法学硕士 => LLM @LLM
克劳德 => Claude @Claude
神鬼寓言 => Fable @Fable
+74
View File
@@ -0,0 +1,74 @@
# AMap JSAPI 1.1.1 complete ZIP admission — 2026-11-24
Reviewer: mashagua. Availability: installable. This is a manual package/source review, not a live-map acceptance test or a security certification.
## Artifact and completeness
URL: https://clawhub.ai/api/v1/download?slug=amap-jsapi-skill&version=1.1.1&ownerHandle=lbs-amap
ZIP SHA-256: `9468743ee18dbe1704e8a98f47f6628d6a4e6acec30a05f0b8f59a07603d011f`.
The version URL is paired with this digest rather than assumed permanently immutable. The live download matches it. The unchanged archive contains 36 regular files, 390,853 unpacked bytes; the largest is 45,586 bytes. All are Markdown or JSON. No symlinks, path traversal, binaries or standalone executable scripts were found. `SKILL.md` is at ZIP root, so `source.path` is omitted and the schema field is `source.repoUrl` (not `url`).
All 33 unique referenced Markdown paths (21 Markdown links plus 12 inline references) exist, including `references/security.md`. Every file size and SHA-256 matches the publisher's owner-qualified 1.1.1 manifest. The 7,979-byte SKILL file keeps the previous single-file digest `cf2f06cc5abf5e41a626f823c50575ab52c81aecbceca5abd4e69d56ca5c5d75`, but the newly reviewed installation artifact is the full ZIP digest above, not the old single-file response.
## License decision and preserved discrepancy
- Actual `SKILL.md:5`: `license: MIT`.
- Actual `skill-card.md:13`: `MIT-0`.
- ClawHub owner-qualified 1.1.1 version metadata: `license: MIT-0`.
- There is no standalone LICENSE, COPYING or NOTICE file in the 36-file archive. Current market main declared MIT without an evidencePath.
This admission follows the actual SKILL MIT declaration, conservatively retaining attribution/notice obligations rather than advertising the MIT-0 waiver. `license.evidencePath` and `compliance.licenseEvidencePath` are the real upstream `SKILL.md`; `compliance.noticePath` points to the actual `skill-card.md` so its differing declaration is not hidden. This is an explicit reviewed declaration-based decision, NOT a claim that the publisher clarified the inconsistency, issued dual licensing, or supplied standalone MIT text. No upstream file is modified and no license file or copyright grant is invented. Keep the whole package and its existing author/source/license signals intact; publisher clarification would improve certainty.
中文:按 SKILL 实际声明的 MIT 审核并保留署名义务;完整披露 skill-card/注册信息的 MIT-0 差异及无独立 LICENSE 的事实,不声称上游已经澄清或授予双许可。市场收录许可不替代高德 SDK、地图数据和外部服务条款。
## Static security findings and limits
All 36 text files were included in the content/URL/instruction scan and per-file manifest verification. No silent telemetry endpoint/instruction (including the GitHub 1.1.0 log/init requirement), credential harvesting, malicious executable payload, or instruction to override host safety was identified in this ZIP. No upstream instructions or example requests were executed during review.
The docs do contain normal SDK/API/proxy and geolocation examples, external map/demo resources, legacy HTTP/JSONP examples, and an upstream public demonstration key literal in an API example. That literal was NOT validated, used, or copied into this review; do not treat upstream examples as a usable user credential or copy them into production. Supply the user's own Key via private host configuration, use HTTPS and a secure production proxy, review generated HTML/data handling, and obtain consent for location data. Other example services/resources have their own availability and terms. Static review does not prove all generated applications safe, grant API access, or establish zero unknown vulnerabilities.
## Runtime prerequisites
Require the user's own AMap Web JSAPI Key plus securityJsCode or a correctly configured serviceHost backend proxy; respect authorized domains, service terms, quotas and possible billing. The docs are complete, but the skill is not a bundled SDK entitlement, account, key or paid service. A real authenticated map was not initialized in this audit. Missing user authorization is distinct from the now-fixed missing-document packaging defect.
## Exact file manifest
| Path | Bytes | SHA-256 |
|---|---:|---|
| SKILL.md | 7979 | cf2f06cc5abf5e41a626f823c50575ab52c81aecbceca5abd4e69d56ca5c5d75 |
| _meta.json | 136 | e7fb03efc0c0675b8311c834b0716964f050929614ee26ec379bc8be67e8f0dc |
| references/api/common.md | 35194 | eab7a2608f190b40b4f189309f91cb0ccdc211e61971cbd2e46d2b66b9053e75 |
| references/api/context-menu.md | 1116 | 62593b9f38bf1affd6da804739ec485e6ea0c494dc9f30463f7fe053cd92035e |
| references/api/controls.md | 8868 | d61be8eebe092f4ff6b99d1210ee418d50d9445ef8e10ac3cdadb91c82053a14 |
| references/api/events.md | 2359 | 05d077f4367ccfe1e8fb38503231a9434ab30b6ca084424441605da9871ecf43 |
| references/api/foundation.md | 5655 | c105059b808ec4dc796781982b03e68e3d17dcf8e0bb106624c0802b4a85ad48 |
| references/api/geocoder.md | 4189 | 2e6c77590acfd357af40d170ac4f46f7338c43524195b40525975a49a1e3e729 |
| references/api/geolocation.md | 5248 | 46e3bd52d43049f28ce43684120de8b8ff56515d31670d4b2ebff5ea5ef95a1c |
| references/api/info-window.md | 2754 | 5d717c8ba07dd657a12bc36b6519213b0403428af81b6372d978c75600b5498a |
| references/api/layers-custom.md | 20361 | b13cd4e4e31a0cd5e615c59ab8cf75db738192593218993eb2753151da498ad5 |
| references/api/layers-official.md | 25287 | 66657dba0467f9869c2f11235777fb3c86fbe16236952ae5685ae8c73ee3d68d |
| references/api/layers-standard.md | 13607 | 085cb25c707dfd3b9eefd62681f12c553718fc263ba6a65b0f3fc6304eab3d3e |
| references/api/map.md | 20866 | 8972c0614ced623539ef3edcd4854e36be4e785c050baae292e2d29ae996183a |
| references/api/marker.md | 45586 | 09fe0f126bea09e0dc9c8be329d3dac68a2576a53784a808cb9c5a0f8606f00c |
| references/api/overlay-group.md | 4388 | 7c627086fad1315a5b358997f76dcbb0c7dd7c2e955f195e84e4811c338b2fb3 |
| references/api/routing.md | 39883 | 6591c534638236b53714b845e154a3c8b4bcda6946208d6d1693402008760751 |
| references/api/search.md | 14044 | be58063affb1e6a3484bb0abed454d4cd108d2fc70a8c498dcd8d8e26a182e63 |
| references/api/services-other.md | 12583 | 6f016749505379b6a759ce26ff54bfeb2d9fe01c6ae873db13a872ac4cd24745 |
| references/api/services.md | 1907 | fdfb7f17937030ba8534bc2da355299c1fe22cf4e5d1961ec0df2c9a3d628ba4 |
| references/api/tools.md | 9854 | 32ff52bf9f5de92286e1c145ac1b5403bcedfe3c0c897114d055aabf3b2427b8 |
| references/api/vector-graphics.md | 33442 | b143e76a77d68c71051af36ddd6f88b52b20e2d6fa9f893bb3dbb7a1dfcadb1a |
| references/context-menu.md | 1534 | f907bfb8424516cb648fc2092ac5b198505685a9cf0bcd48be7fc348ced2b395 |
| references/custom-layers.md | 6118 | 6e815d5723197566a8a52cca945f2b82cdb01c5fc42e71a8d143d0c71edcef89 |
| references/events.md | 4443 | b8c35746ee6e914f440566ea1e1750de08d070f18184d960923833ba275d5209 |
| references/geocoder.md | 4495 | d2b8b23cf892fbe46ec1352d797b8515fb904fcbb23cff9f59d4e172e135b6e6 |
| references/info-window.md | 7568 | cb5999c377086929ce2c5ea30edb7a1482ae0a161ae23f01f825e47b34d54aed |
| references/layers.md | 1874 | c6ea853a6cbb77cc617e7e246db5213b80c07ac07428d43a2bd31b69cf738a8b |
| references/map-init.md | 6623 | 0f40e339dfa7d1af64af4fb04d8be4cf9ad318bd6ae67ecaa94638fc705818e3 |
| references/marker.md | 8198 | d2439c94534498a17638a3b2b86a2465ac45c8d538c65688b97708310e8f952a |
| references/routing.md | 15336 | 3d865324bbc08eab0025bebac2d6a77079d781efc4517415afba156bab9a6a0a |
| references/search.md | 2640 | c4d0286175077612d0c66f569af5a1a2bc804219105284002f0d53f200065c0f |
| references/security.md | 5665 | b9525f3ae4aab76cf1c0cba6656c9b04abbd6ca4c750872c8c2d34434663388e |
| references/vector-graphics.md | 5073 | a60ae8b97099861d14765c51d8f974270dda8efffeefb2e6f0501319a435504b |
| references/view-control.md | 2835 | 28635775c63963903f2231329e113a376a20d253163c8cb2e1888d9a7c99aad5 |
| skill-card.md | 3145 | 879e21daf4c840684c8d13c438f17655907c97f9a357ab9c68a5d78679eb4a25 |
@@ -10,11 +10,11 @@
"i18n": { "i18n": {
"en-US": { "en-US": {
"name": "AMap JSAPI Skill", "name": "AMap JSAPI Skill",
"summary": "AMap JSAPI v2.0 (WebGL) development skill covering map lifecycle, security config, 3D views, overlays and LBS services" "summary": "Complete ClawHub 1.1.1 ZIP: 36 files including all 33 reference docs and the security guide. Requires your AMap Web JSAPI Key and securityJsCode or serviceHost proxy; AMap quotas and billing apply."
}, },
"zh-CN": { "zh-CN": {
"name": "高德地图 JSAPI 技能", "name": "高德地图 JSAPI 技能",
"summary": "高德地图 JSAPI v2.0(WebGL)开发技能,涵盖地图生命周期、安全配置、3D 视图、覆盖物绘制与 LBS 服务集成" "summary": "ClawHub 1.1.1 完整 ZIP:36 文件,含全部 33 个引用文档和安全指南。需自备高德 Web JSAPI Key、安全密钥或 serviceHost 代理;适用高德配额及收费条款。"
} }
}, },
"category": "development", "category": "development",
@@ -30,46 +30,76 @@
"timestamps": { "timestamps": {
"catalogUpdatedAt": { "catalogUpdatedAt": {
"state": "known", "state": "known",
"value": "2026-08-30T18:00:09Z", "value": "2026-11-24",
"precision": "second" "precision": "day"
}, },
"releasePublishedAt": { "releasePublishedAt": {
"state": "unknown" "state": "unknown"
}, },
"reviewedAt": { "reviewedAt": {
"state": "unknown" "state": "known",
"value": "2026-11-24",
"precision": "day"
}, },
"upstreamObservedAt": { "upstreamObservedAt": {
"state": "known", "state": "known",
"value": "2026-08-30T18:00:09Z", "value": "2026-11-24",
"precision": "second" "precision": "day"
} }
}, },
"provenance": { "provenance": {
"content": { "content": {
"kind": "web", "kind": "zip",
"url": "https://clawhub.ai/api/v1/skills/amap-jsapi-skill/file?path=SKILL.md&ownerHandle=lbs-amap", "url": "https://clawhub.ai/api/v1/download?slug=amap-jsapi-skill&version=1.1.1&ownerHandle=lbs-amap",
"sha256": "cf2f06cc5abf5e41a626f823c50575ab52c81aecbceca5abd4e69d56ca5c5d75" "sha256": "9468743ee18dbe1704e8a98f47f6628d6a4e6acec30a05f0b8f59a07603d011f"
} }
}, },
"governance": { "governance": {
"stewardship": "community", "stewardship": "community",
"availability": "listing-only", "availability": "installable",
"license": { "license": {
"state": "known", "state": "known",
"value": "MIT" "value": "MIT",
"evidencePath": "SKILL.md"
}, },
"redistribution": "allowed", "redistribution": "allowed",
"upstreamMaintainer": { "upstreamMaintainer": {
"name": "lbs-amap", "name": "lbs-amap",
"url": "https://clawhub.ai/lbs-amap/skills/amap-jsapi-skill", "url": "https://clawhub.ai/lbs-amap/skills/amap-jsapi-skill",
"verified": false "verified": false
},
"listingMaintainer": {
"name": "mashagua",
"url": "https://github.com/mashagua",
"verified": true
},
"compliance": {
"licenseEvidencePath": "SKILL.md",
"noticePath": "skill-card.md",
"reviewedRef": "9468743ee18dbe1704e8a98f47f6628d6a4e6acec30a05f0b8f59a07603d011f",
"reviewedAt": "2026-11-24",
"reviewedBy": "mashagua",
"upstreamEndorsed": false
} }
}, },
"compatibility": { "compatibility": {
"platforms": { "platforms": {
"state": "unknown" "state": "unknown"
},
"requirements": [
{
"kind": "runtime",
"value": "Full unmodified ClawHub lbs-amap 1.1.1 ZIP (36 files, all 33 referenced docs including references/security.md); SHA-256 9468743ee18dbe1704e8a98f47f6628d6a4e6acec30a05f0b8f59a07603d011f. SKILL.md is at ZIP root; no source.path is needed."
},
{
"kind": "connection",
"value": "Supply your own AMap Web JSAPI Key and securityJsCode, or a correctly configured backend serviceHost proxy. Keep sensitive values in private host configuration; production must not expose security credentials. AMap account authorization, allowed domains, quotas, usage terms and possible billing are separate."
},
{
"kind": "runtime",
"value": "License declaration discrepancy is preserved: SKILL.md declares MIT; skill-card.md and ClawHub metadata declare MIT-0. There is no standalone LICENSE. This reviewed listing follows the SKILL MIT declaration conservatively and retains attribution; it does not claim upstream clarified or granted dual licensing. See ADMISSION.md in the market listing."
} }
]
}, },
"spec": { "spec": {
"kind": "skill" "kind": "skill"
+5 -5
View File
@@ -9,11 +9,11 @@
"i18n": { "i18n": {
"zh-CN": { "zh-CN": {
"name": "高德地图 JSAPI 技能", "name": "高德地图 JSAPI 技能",
"shortDesc": "高德地图 JSAPI v2.0(WebGL)开发技能,涵盖地图生命周期、安全配置、3D 视图、覆盖物绘制与 LBS 服务集成" "shortDesc": "ClawHub 1.1.1 完整 ZIP:36 文件,含全部 33 个引用文档和安全指南。需自备高德 Web JSAPI Key、安全密钥或 serviceHost 代理;适用高德配额及收费条款。"
}, },
"en-US": { "en-US": {
"name": "AMap JSAPI Skill", "name": "AMap JSAPI Skill",
"shortDesc": "AMap JSAPI v2.0 (WebGL) development skill covering map lifecycle, security config, 3D views, overlays and LBS services" "shortDesc": "Complete ClawHub 1.1.1 ZIP: 36 files including all 33 reference docs and the security guide. Requires your AMap Web JSAPI Key and securityJsCode or serviceHost proxy; AMap quotas and billing apply."
} }
}, },
"maintainer": { "maintainer": {
@@ -26,9 +26,9 @@
"license": "MIT", "license": "MIT",
"redistribution": "allowed", "redistribution": "allowed",
"source": { "source": {
"kind": "web", "kind": "zip",
"repoUrl": "https://clawhub.ai/api/v1/skills/amap-jsapi-skill/file?path=SKILL.md&ownerHandle=lbs-amap", "repoUrl": "https://clawhub.ai/api/v1/download?slug=amap-jsapi-skill&version=1.1.1&ownerHandle=lbs-amap",
"sha256": "cf2f06cc5abf5e41a626f823c50575ab52c81aecbceca5abd4e69d56ca5c5d75" "sha256": "9468743ee18dbe1704e8a98f47f6628d6a4e6acec30a05f0b8f59a07603d011f"
}, },
"latestVersion": "1.1.1" "latestVersion": "1.1.1"
} }
+26 -5
View File
@@ -10,11 +10,11 @@
"i18n": { "i18n": {
"en-US": { "en-US": {
"name": "DingTalk API Skill", "name": "DingTalk API Skill",
"summary": "Call DingTalk Open Platform APIs: user/department lookup, bot messaging in chats and groups, and HR records" "summary": "DingTalk API scripts. Real queries require Node.js/npm dependencies, DINGTALK_APP_KEY, DINGTALK_APP_SECRET and authorized API permissions. Command startup is not a successful query; platform terms and any fees apply."
}, },
"zh-CN": { "zh-CN": {
"name": "钉钉 API 技能", "name": "钉钉 API 技能",
"summary": "调用钉钉开放平台 API:用户与部门查询、机器人单聊/群聊消息发送、群机器人列表、离职记录查询等" "summary": "钉钉 API 脚本。实际查询需自行安装 Node.js/npm 依赖,私下配置 DINGTALK_APP_KEY、DINGTALK_APP_SECRET 并授权接口权限。命令启动不等于查询成功;适用平台条款及可能的费用。"
} }
}, },
"category": "communication", "category": "communication",
@@ -35,7 +35,9 @@
"state": "unknown" "state": "unknown"
}, },
"reviewedAt": { "reviewedAt": {
"state": "unknown" "state": "known",
"value": "2026-11-24",
"precision": "day"
}, },
"upstreamObservedAt": { "upstreamObservedAt": {
"state": "known", "state": "known",
@@ -52,21 +54,40 @@
}, },
"governance": { "governance": {
"stewardship": "community", "stewardship": "community",
"availability": "listing-only", "availability": "installable",
"license": { "license": {
"state": "unknown" "state": "known",
"value": "MIT",
"evidencePath": "README.md"
}, },
"redistribution": "allowed", "redistribution": "allowed",
"upstreamMaintainer": { "upstreamMaintainer": {
"name": "ogenes", "name": "ogenes",
"url": "https://clawhub.ai/ogenes/skills/dingtalk-api", "url": "https://clawhub.ai/ogenes/skills/dingtalk-api",
"verified": false "verified": false
},
"compliance": {
"licenseEvidencePath": "README.md",
"reviewedRef": "83465bf60b522ad19f7822d167489c3c4f79b302",
"reviewedAt": "2026-11-24",
"reviewedBy": "mashagua",
"upstreamEndorsed": false
} }
}, },
"compatibility": { "compatibility": {
"platforms": { "platforms": {
"state": "unknown" "state": "unknown"
},
"requirements": [
{
"kind": "runtime",
"value": "Node.js/npm, TypeScript/ts-node and the dependencies declared by the pinned package.json, including the Alibaba Cloud DingTalk SDK. The packaged scripts/search-user.ts exists and validates configuration before requesting an access token or performing a query."
},
{
"kind": "permission",
"value": "Real searches require DINGTALK_APP_KEY and DINGTALK_APP_SECRET from an operator-authorized DingTalk application, plus the corresponding API scopes and account access. Configure credentials privately on the host; do not paste them into chat or this catalog. Missing credentials produce MISSING_CREDENTIALS and exit before a query. Startup/help is not proof of a successful query; no authenticated query was verified. DingTalk terms, entitlements and any fees apply separately."
} }
]
}, },
"spec": { "spec": {
"kind": "skill" "kind": "skill"
+3 -3
View File
@@ -9,11 +9,11 @@
"i18n": { "i18n": {
"zh-CN": { "zh-CN": {
"name": "钉钉 API 技能", "name": "钉钉 API 技能",
"shortDesc": "调用钉钉开放平台 API:用户与部门查询、机器人单聊/群聊消息发送、群机器人列表、离职记录查询等" "shortDesc": "钉钉 API 脚本。实际查询需自行安装 Node.js/npm 依赖,私下配置 DINGTALK_APP_KEY、DINGTALK_APP_SECRET 并授权接口权限。命令启动不等于查询成功;适用平台条款及可能的费用。"
}, },
"en-US": { "en-US": {
"name": "DingTalk API Skill", "name": "DingTalk API Skill",
"shortDesc": "Call DingTalk Open Platform APIs: user/department lookup, bot messaging in chats and groups, and HR records" "shortDesc": "DingTalk API scripts. Real queries require Node.js/npm dependencies, DINGTALK_APP_KEY, DINGTALK_APP_SECRET and authorized API permissions. Command startup is not a successful query; platform terms and any fees apply."
} }
}, },
"maintainer": { "maintainer": {
@@ -23,7 +23,7 @@
"url": "https://clawhub.ai/ogenes/skills/dingtalk-api" "url": "https://clawhub.ai/ogenes/skills/dingtalk-api"
}, },
"stewardship": "community", "stewardship": "community",
"license": "MIT-0", "license": "MIT",
"redistribution": "allowed", "redistribution": "allowed",
"source": { "source": {
"kind": "git", "kind": "git",
@@ -37,7 +37,9 @@
"state": "unknown" "state": "unknown"
}, },
"reviewedAt": { "reviewedAt": {
"state": "unknown" "state": "known",
"value": "2026-11-24",
"precision": "day"
}, },
"upstreamObservedAt": { "upstreamObservedAt": {
"state": "known", "state": "known",
@@ -54,15 +56,24 @@
}, },
"governance": { "governance": {
"stewardship": "community", "stewardship": "community",
"availability": "listing-only", "availability": "installable",
"license": { "license": {
"state": "unknown" "state": "known",
"value": "MIT",
"evidencePath": "README.md"
}, },
"redistribution": "allowed", "redistribution": "allowed",
"upstreamMaintainer": { "upstreamMaintainer": {
"name": "zarazhangrui", "name": "zarazhangrui",
"url": "https://github.com/zarazhangrui/follow-builders", "url": "https://github.com/zarazhangrui/follow-builders",
"verified": false "verified": false
},
"compliance": {
"licenseEvidencePath": "README.md",
"reviewedRef": "22c2e72e1a4bb0fc0f3e19f992fc55615b48989e",
"reviewedAt": "2026-11-24",
"reviewedBy": "mashagua",
"upstreamEndorsed": false
} }
}, },
"compatibility": { "compatibility": {
+9 -2
View File
@@ -40,7 +40,7 @@
}, },
"reviewedAt": { "reviewedAt": {
"state": "known", "state": "known",
"value": "2026-10-05", "value": "2026-11-24",
"precision": "day" "precision": "day"
}, },
"upstreamObservedAt": { "upstreamObservedAt": {
@@ -58,7 +58,7 @@
}, },
"governance": { "governance": {
"stewardship": "community", "stewardship": "community",
"availability": "listing-only", "availability": "installable",
"license": { "license": {
"state": "known", "state": "known",
"value": "MIT", "value": "MIT",
@@ -69,6 +69,13 @@
"name": "歸藏 (op7418)", "name": "歸藏 (op7418)",
"url": "https://github.com/op7418/Humanizer-zh", "url": "https://github.com/op7418/Humanizer-zh",
"verified": false "verified": false
},
"compliance": {
"licenseEvidencePath": "LICENSE",
"reviewedRef": "f4518a8eab97b8bfebc66a89d34320a89bef6930",
"reviewedAt": "2026-11-24",
"reviewedBy": "mashagua",
"upstreamEndorsed": false
} }
}, },
"compatibility": { "compatibility": {
@@ -40,7 +40,9 @@
"state": "unknown" "state": "unknown"
}, },
"reviewedAt": { "reviewedAt": {
"state": "unknown" "state": "known",
"value": "2026-11-24",
"precision": "day"
}, },
"upstreamObservedAt": { "upstreamObservedAt": {
"state": "known", "state": "known",
@@ -58,15 +60,24 @@
}, },
"governance": { "governance": {
"stewardship": "community", "stewardship": "community",
"availability": "listing-only", "availability": "installable",
"license": { "license": {
"state": "unknown" "state": "known",
"value": "MIT",
"evidencePath": "README.md"
}, },
"redistribution": "allowed", "redistribution": "allowed",
"upstreamMaintainer": { "upstreamMaintainer": {
"name": "forrestchang", "name": "forrestchang",
"url": "https://github.com/multica-ai/andrej-karpathy-skills", "url": "https://github.com/multica-ai/andrej-karpathy-skills",
"verified": false "verified": false
},
"compliance": {
"licenseEvidencePath": "README.md",
"reviewedRef": "2c606141936f1eeef17fa3043a72095b4765b9c2",
"reviewedAt": "2026-11-24",
"reviewedBy": "mashagua",
"upstreamEndorsed": false
} }
}, },
"compatibility": { "compatibility": {
@@ -40,7 +40,7 @@
}, },
"reviewedAt": { "reviewedAt": {
"state": "known", "state": "known",
"value": "2026-10-05", "value": "2026-11-24",
"precision": "day" "precision": "day"
}, },
"upstreamObservedAt": { "upstreamObservedAt": {
@@ -58,7 +58,7 @@
}, },
"governance": { "governance": {
"stewardship": "community", "stewardship": "community",
"availability": "listing-only", "availability": "installable",
"license": { "license": {
"state": "known", "state": "known",
"value": "MIT", "value": "MIT",
@@ -69,6 +69,13 @@
"name": "Corey Haines", "name": "Corey Haines",
"url": "https://github.com/coreyhaines31/marketingskills", "url": "https://github.com/coreyhaines31/marketingskills",
"verified": false "verified": false
},
"compliance": {
"licenseEvidencePath": "LICENSE",
"reviewedRef": "dda3841f0b294e01e93b1541486beefbfab0915e",
"reviewedAt": "2026-11-24",
"reviewedBy": "mashagua",
"upstreamEndorsed": false
} }
}, },
"compatibility": { "compatibility": {
+26 -5
View File
@@ -10,11 +10,11 @@
"i18n": { "i18n": {
"en-US": { "en-US": {
"name": "NetEase Skills", "name": "NetEase Skills",
"summary": "NetEase Cloud Music agent skills built on ncm-cli, for music search, playback and account setup" "summary": "NetEase Cloud Music skills. Requires separately installed Node.js/ncm-cli; search needs privately configured appId and privateKey. CLI startup is not verified search. Account authorization, content rights, membership and charges are separate."
}, },
"zh-CN": { "zh-CN": {
"name": "网易云音乐 Skills", "name": "网易云音乐 Skills",
"summary": "基于 ncm-cli 的网易云音乐 AI Agent 技能包,支持音乐搜索、播放与账号配置等操作" "summary": "网易云音乐技能集。需自行安装 Node.js/ncm-cli;搜索还须在主机私下配置 appId 和 privateKey。CLI 启动不代表搜索已验证;账号授权、内容权益、会员及费用另计。"
} }
}, },
"category": "productivity", "category": "productivity",
@@ -35,7 +35,9 @@
"state": "unknown" "state": "unknown"
}, },
"reviewedAt": { "reviewedAt": {
"state": "unknown" "state": "known",
"value": "2026-11-24",
"precision": "day"
}, },
"upstreamObservedAt": { "upstreamObservedAt": {
"state": "known", "state": "known",
@@ -52,21 +54,40 @@
}, },
"governance": { "governance": {
"stewardship": "pointer", "stewardship": "pointer",
"availability": "listing-only", "availability": "installable",
"license": { "license": {
"state": "unknown" "state": "known",
"value": "Apache-2.0",
"evidencePath": "ncm-cli-setup/LICENSE.txt"
}, },
"redistribution": "source-pointer-only", "redistribution": "source-pointer-only",
"upstreamMaintainer": { "upstreamMaintainer": {
"name": "NetEase", "name": "NetEase",
"url": "https://github.com/NetEase/skills", "url": "https://github.com/NetEase/skills",
"verified": false "verified": false
},
"compliance": {
"licenseEvidencePath": "ncm-cli-setup/LICENSE.txt",
"reviewedRef": "58ff0771d6977feb847d6bfe322280eec4bec004",
"reviewedAt": "2026-11-24",
"reviewedBy": "mashagua",
"upstreamEndorsed": false
} }
}, },
"compatibility": { "compatibility": {
"platforms": { "platforms": {
"state": "unknown" "state": "unknown"
},
"requirements": [
{
"kind": "runtime",
"value": "Separately installed Node.js/npm and ncm-cli following ncm-cli-setup/SKILL.md. Search requires the operator to configure appId and privateKey through ncm-cli config set as documented upstream. The package includes ncm-cli-setup/scripts/install_mpv.py for optional local playback. Installing skills does not install or configure the CLI or provision API credentials."
},
{
"kind": "permission",
"value": "Apply for appId/privateKey through the NetEase Cloud Music developer platform and keep privateKey in private host configuration, never chat or this public catalog. Account-specific operations additionally need the relevant account authorization. CLI startup is not proof of a successful search; no credentialed search was verified. Service terms, content/region rights, membership and charges apply separately. Verify configuration and stop on missing access or service errors."
} }
]
}, },
"spec": { "spec": {
"kind": "skill", "kind": "skill",
+3 -3
View File
@@ -9,11 +9,11 @@
"i18n": { "i18n": {
"zh-CN": { "zh-CN": {
"name": "网易云音乐 Skills", "name": "网易云音乐 Skills",
"shortDesc": "基于 ncm-cli 的网易云音乐 AI Agent 技能包,支持音乐搜索、播放与账号配置等操作" "shortDesc": "网易云音乐技能集。需自行安装 Node.js/ncm-cli;搜索还须在主机私下配置 appId 和 privateKey。CLI 启动不代表搜索已验证;账号授权、内容权益、会员及费用另计。"
}, },
"en-US": { "en-US": {
"name": "NetEase Skills", "name": "NetEase Skills",
"shortDesc": "NetEase Cloud Music agent skills built on ncm-cli, for music search, playback and account setup" "shortDesc": "NetEase Cloud Music skills. Requires separately installed Node.js/ncm-cli; search needs privately configured appId and privateKey. CLI startup is not verified search. Account authorization, content rights, membership and charges are separate."
} }
}, },
"maintainer": { "maintainer": {
@@ -23,7 +23,7 @@
"url": "https://github.com/NetEase/skills" "url": "https://github.com/NetEase/skills"
}, },
"stewardship": "pointer", "stewardship": "pointer",
"license": "not-declared", "license": "Apache-2.0",
"redistribution": "source-pointer-only", "redistribution": "source-pointer-only",
"source": { "source": {
"kind": "git", "kind": "git",
+9 -2
View File
@@ -36,7 +36,7 @@
}, },
"reviewedAt": { "reviewedAt": {
"state": "known", "state": "known",
"value": "2026-10-19", "value": "2026-11-24",
"precision": "day" "precision": "day"
}, },
"upstreamObservedAt": { "upstreamObservedAt": {
@@ -54,7 +54,7 @@
}, },
"governance": { "governance": {
"stewardship": "community", "stewardship": "community",
"availability": "listing-only", "availability": "installable",
"license": { "license": {
"state": "known", "state": "known",
"value": "MIT", "value": "MIT",
@@ -65,6 +65,13 @@
"name": "WecomTeam", "name": "WecomTeam",
"url": "https://github.com/WecomTeam/wecom-cli", "url": "https://github.com/WecomTeam/wecom-cli",
"verified": false "verified": false
},
"compliance": {
"licenseEvidencePath": "LICENSE",
"reviewedRef": "4c74ff28838d8fba267eaab5179d9d56f9ca61ae",
"reviewedAt": "2026-11-24",
"reviewedBy": "mashagua",
"upstreamEndorsed": false
} }
}, },
"compatibility": { "compatibility": {