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

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