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
+23030 -98

No files matched your search

+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.