agentleFS
tiangong-aitiangong-ai/agent-skills/ai-tech-rss-fetch/SKILL.md

ai-tech-rss-fetch

Skill11 starsChanged 3 months agoMITView on GitHub

Subscribe to AI and tech RSS feeds and persist normalized metadata into SQLite using mature Python tooling (feedparser + sqlite3). Use when adding feed URLs/OPML sources, running incremental sync with deduplication, and storing entry metadata without full-text extraction or summarization.

  • Installs packages

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep only metadata; do not fetch full article bodies and do not summarize.

    line 12
  2. Very specific:

    Ensure dependency is installed: python3 -m pip install feedparser.

    line 22
  3. Distinctive:

    Add one feed URL:

    line 36
  4. Distinctive:

    Import feeds from OPML:

    line 42
  5. Distinctive:

    Do not store generated summaries and do not create archive markdown files.

    line 89
  6. Distinctive:

    Use the following simplified checklist verbatim when the user requests it:

    line 119

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AI Tech RSS Fetch

Core Goal

  • Subscribe to RSS/Atom sources.
  • Persist feed and entry metadata to SQLite.
  • Deduplicate entries with layered identity keys plus content fingerprints.
  • Keep only metadata; do not fetch full article bodies and do not summarize.

Triggering Conditions

  • Receive a request to subscribe RSS feeds from URLs or OPML.
  • Receive a request to run incremental RSS sync reliably.
  • Need stable metadata persistence for downstream processing.
  • Need dedupe-safe storage of feed items over repeated runs.

Workflow

  1. Prepare runtime and database.
  • Ensure dependency is installed: python3 -m pip install feedparser.
  • In multi-agent runtimes, pin DB to an absolute path before any command:
export AI_RSS_DB_PATH="/absolute/path/to/workspace-rss-bot/ai_rss.db"
  • Initialize SQLite schema once:
python3 scripts/rss_subscribe.py init-db --db "$AI_RSS_DB_PATH"
  1. Add feed subscriptions.
  • Add one feed URL:
python3 scripts/rss_subscribe.py add-feed --db "$AI_RSS_DB_PATH" --url "https://example.com/feed.xml"
  • Import feeds from OPML:
python3 scripts/rss_subscribe.py import-opml --db "$AI_RSS_DB_PATH" --opml assets/hn-popular-blogs-2025.opml
  1. Run incremental sync.
  • Fetch active feeds and store metadata:
python3 scripts/rss_subscribe.py sync --db "$AI_RSS_DB_PATH" --max-feeds 20 --max-items-per-feed 100
  • Optional one-feed sync:
python3 scripts/rss_subscribe.py sync --db "$AI_RSS_DB_PATH" --feed-url "https://example.com/feed.xml"
  1. Query persisted metadata.
  • List feeds:
python3 scripts/rss_subscribe.py list-feeds --db "$AI_RSS_DB_PATH" --limit 50
  • List recent entries:
python3 scripts/rss_subscribe.py list-entries --db "$AI_RSS_DB_PATH" --limit 100

Input Requirements

  • Supported inputs:
    • RSS XML feed URLs.
    • OPML feed list files.

Output Contract (Metadata Only)

  • Persist feeds metadata to SQLite:
    • feed_url, feed_title, site_url, etag, last_modified, status fields.
  • Persist entries metadata to SQLite:
    • id, dedupe_key (compat primary identity snapshot), guid, url, canonical_url, title, author, published_at, updated_at, summary, categories, content_hash, match_confidence, timestamps.
  • Persist entry_identities mapping table to SQLite:
    • entry_id, key_type, key_value, created_at.
    • Supported key types: guid, canonical_url, legacy_guid, fallback_hash.
  • Do not store generated summaries and do not create archive markdown files.

Configurable Parameters

  • db_path
  • AI_RSS_DB_PATH (recommended absolute path in multi-agent runtime)
  • opml_path
  • feed_urls
  • max_feeds_per_run
  • max_items_per_feed
  • user_agent
  • seen_ttl_days
  • enable_conditional_get
  • Example config: assets/config.example.json

Error and Boundary Handling

  • Feed HTTP/network failure: keep syncing other feeds and record last_error.
  • Feed 304 Not Modified: skip entry parsing and keep state.
  • Missing guid and link: use hashed fallback identity and set match_confidence=low.
  • Dependency missing (feedparser): return install guidance.

Final Output Checklist (Required)

  • core goal
  • trigger conditions
  • input requirements
  • metadata schema
  • dedupe and sync rules
  • command workflow
  • configurable parameters
  • error handling

Use the following simplified checklist verbatim when the user requests it:

核心目标
输入需求
触发条件
元数据模型
去重与同步规则
命令流程
可配置参数
错误处理

References

  • references/input-model.md
  • references/output-rules.md
  • references/time-range-rules.md

Assets

  • assets/hn-popular-blogs-2025.opml (candidate feed pool)
  • assets/config.example.json

Scripts

  • scripts/rss_subscribe.py

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.