ai-tech-rss-fetch by tiangong-ai/skills
npx skills add https://github.com/tiangong-ai/skills --skill ai-tech-rss-fetch准备运行时环境和数据库。
确保依赖已安装:python3 -m pip install feedparser。
在多代理运行时环境中,在任何命令之前将数据库路径固定为绝对路径:
export AI_RSS_DB_PATH="/absolute/path/to/workspace-rss-bot/ai_rss.db"
初始化 SQLite 架构(仅需一次):
python3 scripts/rss_subscribe.py init-db --db "$AI_RSS_DB_PATH"
添加 Feed 订阅。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
添加一个 Feed URL:
python3 scripts/rss_subscribe.py add-feed --db "$AI_RSS_DB_PATH" --url "https://example.com/feed.xml"
从 OPML 导入 Feed:
python3 scripts/rss_subscribe.py import-opml --db "$AI_RSS_DB_PATH" --opml assets/hn-popular-blogs-2025.opml
运行增量同步。
获取活跃的 Feed 并存储元数据:
python3 scripts/rss_subscribe.py sync --db "$AI_RSS_DB_PATH" --max-feeds 20 --max-items-per-feed 100
可选的单 Feed 同步:
python3 scripts/rss_subscribe.py sync --db "$AI_RSS_DB_PATH" --feed-url "https://example.com/feed.xml"
查询持久化的元数据。
列出 Feed:
python3 scripts/rss_subscribe.py list-feeds --db "$AI_RSS_DB_PATH" --limit 50
列出最近的条目:
python3 scripts/rss_subscribe.py list-entries --db "$AI_RSS_DB_PATH" --limit 100
feeds 元数据持久化到 SQLite:
feed_url, feed_title, site_url, etag, last_modified, 状态字段。entries 元数据持久化到 SQLite:
id, dedupe_key(兼容的主身份快照), guid, url, canonical_url, title, author, published_at, updated_at, summary, categories, content_hash, match_confidence, 时间戳。entry_identities 映射表持久化到 SQLite:
entry_id, key_type, key_value, created_at。guid, canonical_url, legacy_guid, fallback_hash。db_pathAI_RSS_DB_PATH(多代理运行时中建议使用绝对路径)opml_pathfeed_urlsmax_feeds_per_runmax_items_per_feeduser_agentseen_ttl_daysenable_conditional_getassets/config.example.jsonlast_error。304 Not Modified:跳过条目解析并保持状态。guid 和 link:使用哈希回退身份并设置 match_confidence=low。feedparser):返回安装指导。当用户请求时,请逐字使用以下简化检查清单:
核心目标
输入需求
触发条件
元数据模型
去重与同步规则
命令流程
可配置参数
错误处理
references/input-model.mdreferences/output-rules.mdreferences/time-range-rules.mdassets/hn-popular-blogs-2025.opml(候选 Feed 池)assets/config.example.jsonscripts/rss_subscribe.py每周安装次数
159
代码仓库
GitHub 星标数
4
首次出现
2026年2月10日
安全审计
安装于
openclaw145
opencode143
gemini-cli139
codex139
cursor139
github-copilot137
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
33,600 周安装