## 概述 / Summary 手工三方调和并升级 `ai-news-radar` 本地 MIT 派生包:`LearnPrompt/ai-news-radar` `689395109cc962a27c369bdd6fa50d1e090eb319`(`2026.11.24`)→ `3c663ddab7da78e62365e1ee0e58f34cc9cef09a`(`2026.12.01`,与 `9fda56e8c82aca27e2e0fecbbe383a231a89311f` 相比所有受跟踪代码/文档文件逐字节一致,仅 `data/*` 有新快照)。 ### 冲突调和与同步明细 1. **`assets/styles.css`**:合入上游新增的「今天值得做」卡片样式,并与上游逐字节对齐(消除此前仅 1 处末尾空行差异,避免后续 CSS 更新再次触发冲突)。 2. **`classic/index.html`**:合入上游新区块与静态资源版本号,继续保留适配 `<base href="../">` 的 `./assets/service-status.*` 路径修正。 3. **`README.md` / `references/upstream-project-readme*.md` / `docs/SOURCE_COVERAGE.md`**:根目录 `README.md` 保留本地安装说明;上游新 `README.md`、`README.en.md` 与 `docs/SOURCE_COVERAGE.md` 同步到对应引用位置,保留引用声明头与固定 commit 链接。 4. **同步其余受跟踪上游文件 & 补齐新引用资源**:同步 `scripts/update_news.py`、`index.html`、`assets/app.js`、`assets/service-status.js`、`assets/view-mode.js`、`classic/assets/app.js`、`classic/assets/styles.css`;补齐新版 `index.html` 引用的 `assets/i18n.js`、`assets/i18n/zh.js`、`assets/i18n/en.js`(避免断链)。继续排除 `#350` 明确不安装的 `data/`、测试与上游工作流。 5. **元数据与映射同步**:同步更新 `config/verified-updates.v1.json`、`skills/ai-news-radar/UPSTREAM.md`、`skills/ai-news-radar/catalog-metadata.v1.json`。 ## 验证 / Validation - `python3 -B skills/ai-news-radar/scripts/update_news.py --help` - `uv run --offline --quiet --with pytest --with pyyaml --with jsonschema python -m pytest scripts/catalog/test_tracked_updates.py -q` - `uv run --offline --quiet scripts/catalog/validate_catalog_metadata.py --require-complete` - `uv run --offline --quiet scripts/i18n/validate-i18n.py` - `uv run --offline --quiet scripts/i18n/translate.py --check` - `git diff --check` 合并后可关闭仅记录阻断状态的旧草稿 [#399](https://github.com/desirecore/market/pull/399)。
8.4 KiB
name, description, version, license, type, risk_level, disable-model-invocation, tags, compatibility, metadata, market
| name | description | version | license | type | risk_level | disable-model-invocation | tags | compatibility | metadata | market | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ai-news-radar | Generate AI daily-brief JSON with a complete MIT Python package. Requires Python 3.11+, dependencies and feed access; optional mail/API sources need separate authorization. | 2026.12.01 | MIT | hybrid | medium | true |
|
Python 3.11+, requirements.txt, authorized feed access, and a private writable output directory outside this skill. Optional email/API integrations require separate authorization and may incur service fees. |
|
|
AI News Radar
Scope and provenance
Generate AI daily-brief JSON from the complete local Python package, review public source quality, and optionally inspect the bundled reader assets. Read package notes, provenance and license, and source intake. This is a maintained MIT local edition based only on LearnPrompt/ai-news-radar commit 3c663ddab7da78e62365e1ee0e58f34cc9cef09a; package version 2026.12.01 is not an upstream release. It is optional marketplace content, not an automatically installed builtin.
Prerequisites and boundaries
Require Python 3.11+, uv or an equivalent private Python environment, the pinned packages in requirements.txt, and access to the user's selected public feeds. Dependency downloads and normal generation require network access; upstream websites can fail, change terms, or rate-limit requests. Report source failures honestly. Do not claim a live feed, authenticated service, deployment, or email test passed merely because installation or the offline fixture passed.
Keep the installed directory read-only. Use the safe launcher, which requires an absolute output directory outside the skill and suppresses bytecode writes. The unchanged upstream generator defaults to a relative output path; do not run its default command inside the skill. Never write a virtual environment, private OPML, generated data, logs, tokens, cookies, or email bodies into the installed skill or public repository.
Prepare a private run
Set SKILL_DIR to the absolute installed directory, then choose a private working directory outside it. The following creates a fresh temporary working directory; use a private persistent directory instead when retention is wanted.
RUN_DIR="$(mktemp -d "${TMPDIR:-/tmp}/ai-news-radar.XXXXXX")"
export SKILL_DIR RUN_DIR
cp "$SKILL_DIR/feeds/follow.example.opml" "$RUN_DIR/follow.opml"
uv run --with-requirements "$SKILL_DIR/requirements.txt" python -B "$SKILL_DIR/scripts/update_news.py" --help
Ask which sources the user wants. Edit only the private OPML copy, using the bundled example OPML; do not collect credentials in chat. The supplied OPML is a public example, not the user's subscription list.
Generate the daily brief
uv run --with-requirements "$SKILL_DIR/requirements.txt" python -B "$SKILL_DIR/scripts/run_daily_brief.py" --output-dir "$RUN_DIR/data" --window-hours 24 --rss-opml "$RUN_DIR/follow.opml"
Read the generated daily brief, latest 24-hour items, and source-status JSON in the chosen output directory. Those are generated outputs, not missing bundled resources. Empty history is supported; large upstream historical archives and translation caches are deliberately not shipped. AI relevance and the optional translation glossary are included. The offline smoke test is fixture-based and does not establish current public-feed availability.
Review a candidate source
Follow source intake and product method. Prefer official RSS/Atom or public generated feeds over fragile scraping. The overlap helper is included; use the generated archive in the private output directory as its baseline and save the advisory report outside the skill. A low overlap score is not proof of source quality or permission to scrape.
Optional local reader
The reader page, reader code, and styles are bundled with their local static dependencies. To preview, copy the page and assets into a private working site, generate its data there, and serve only that directory. Never start a server rooted in the installed skill or publish private outputs automatically. Reader screenshots and historical datasets are not runtime dependencies. The reader includes the classic view and web manifest; its optional GSAP animation script comes from jsDelivr under its separate terms and needs network access. For optional persona commentary, the scorer and persona definitions are included: use explicit private data and bundled persona directories. Set PERSONA_ENABLED=0 for rules-only scoring; do not enable a paid DeepSeek API run without separate authorization and private credentials. The daily generator does not automatically run the scorer.
Optional private integrations
Email, X, cookie-based sources and paid APIs are optional, separately authorized integrations, not bundled accounts or free service entitlements. Keep email disabled unless the user explicitly authorizes it (EMAIL_DIGEST_ENABLED=1); leave publication disabled. Use private host/vault configuration for credentials, never chat, history-token reuse, public files or logs. Obtain confirmation before any publication, email sending, account change, or charge. This skill's default task is read-only collection, not sending mail. Stop before an unavailable or unauthorized integration; do not fabricate success.
Reference material and validation
The upstream project guide, English guide, skill guide, handoff notes, source coverage, roadmap, and product brief are included as reference material. Their upstream development tests, external skill-creator tools, hosted site, GitHub Actions and publication workflows are not installed or invoked by this edition. Do not run upstream workflow/deployment instructions without a separate user request. Retain the verbatim MIT license and LearnPrompt attribution when redistributing.