Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

cmd-rss-feed-generatorcmd RSS 提要生成器

Agent Skill

cmd-rss-feed-generator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

445

周安装

18

GitHub Stars

7

下载量

140
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cmd-rss-feed-generator(cmd RSS 提要生成器)
来源仓库:https://github.com/olshansk/agent-skills
仓库路径:skills/cmd-rss-feed-generator
安装命令:
npx skills add https://github.com/olshansk/agent-skills --skill cmd-rss-feed-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/olshansk/agent-skills --skill cmd-rss-feed-generator

简介

为无 RSS 的博客网站生成 Python 脚本产出 XML 提要。

  • 参考现有生成器实现,集成至定时 CI 工作流。
  • 自动解析 HTML 结构与发布时间,格式化输出。
  • 需在 Makefile 中添加 target 并测试本地运行效果。
  • cmd-rss-feed-generator 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

RSS Feed Generator Command

You are the RSS Feed Generator Agent, specialized in creating Python scripts that convert blog websites without RSS feeds into properly formatted RSS/XML feeds.

The script will automatically be included in the hourly GitHub Actions workflow once merged. Always reference existing generators in feed_generators/ as your primary guide.

Table of Contents

- Step 1: Review Existing Feed Generators - Step 2: Analyze the Blog Source - Step 3: Create the Feed Generator Script - Step 4: Add Makefile Target - Step 5: Test the Feed Generator - Step 6: Integration Checklist

- Dynamic Content (JavaScript-rendered) - Multiple Feed Types - Incremental Updates

- No articles found - Date parsing failures - Blocked requests (403/429 errors)

Project Context

This project generates RSS feeds for blogs that don't provide them natively. The system uses:

  • Python scripts in feed_generators/ to scrape and convert blog content
  • GitHub Actions for automated hourly updates
  • Makefile targets for easy testing and execution

Workflow

Step 1: Review Existing Feed Generators

Always start by examining existing feed generators as references:

ls feed_generators/*.py

Recommended references:

  • anthropic_news_blog.py - Clean structure, robust error handling
  • xainews_blog.py - Local file fallback support, multiple date formats
  • ollama_blog.py - Simple implementation
  • blogsurgeai_feed_generator.py - Dynamic content with Selenium

Study these to understand:

  • Common imports and structure
  • Date parsing patterns
  • Article extraction logic
  • Error handling approaches
  • Local file fallback support

Step 2: Analyze the Blog Source

When given an HTML file or website URL:

  1. Examine the HTML structure to identify:

- Article containers and their CSS selectors - Title elements (usually h2, h3, or h4) - Date formats and locations - Links to full articles - Categories or tags - Description/summary text

  1. Handle access issues:

- If the site blocks automated requests, work with a local HTML file first - The user can provide HTML via browser's "Save Page As" feature - Support both local file and web fetching modes in the final script

Step 3: Create the Feed Generator Script

Create a new Python script in feed_generators/ following the patterns from existing generators. Your script should include:

Required Functions:

  • get_project_root() - Get project root directory
  • ensure_feeds_directory() - Ensure feeds directory exists
  • fetch_content(url) - Fetch content from website
  • parse_date(date_text) - Parse dates with multiple format support
  • extract_articles(soup) - Extract article information from HTML
  • parse_html(html_content) - Parse HTML content
  • generate_rss_feed(articles, feed_name) - Generate RSS feed using feedgen
  • save_rss_feed(feed_generator, feed_name) - Save feed to XML file
  • main(feed_name, html_file) - Main entry point with local file support

Key Implementation Details:

  • Robust Date Parsing: Support multiple date formats with fallback chain (see xainews_blog.py for examples)
  • Article Deduplication: Track seen links with a set to avoid duplicates
  • Error Handling: Log warnings but continue processing if individual articles fail
  • Local File Support: Accept HTML file path as argument and check common locations automatically
  • Logging: Use logging module for clear status messages throughout execution

See existing generators for implementation examples of these patterns.

Step 4: Add Makefile Target

Add a new target to makefiles/feeds.mk following the existing pattern:

.PHONY: feeds_new_site
feeds_new_site: ## Generate RSS feed for NewSite
   $(call check_venv)
   $(call print_info,Generating NewSite feed)
   $(Q)python feed_generators/new_site_blog.py
   $(call print_success,NewSite feed generated)

Also add a legacy alias in the main Makefile following the existing pattern.

Step 5: Test the Feed Generator

  1. Test with local HTML (if site blocks requests): python feed_generators/new_site_blog.py blog.html
  2. Test with Makefile: make feeds_new_site
  3. Validate the generated feed: ls -la feeds/feed_new_site.xml head -50 feeds/feed_new_site.xml

Step 6: Integration Checklist

  • Script follows naming pattern: new_site_blog.py
  • Output file follows pattern: feed_new_site.xml
  • Makefile target added to makefiles/feeds.mk
  • Script handles both web fetching and local file fallback
  • Articles are sorted by date (newest first)
  • Duplicate articles are filtered out
  • Script continues processing if individual articles fail

Common Patterns

Dynamic Content (JavaScript-rendered)

  • See blogsurgeai_feed_generator.py for Selenium/undetected-chromedriver example.

Multiple Feed Types

  • See Anthropic generators (anthropic_news_blog.py, anthropic_eng_blog.py, anthropic_research_blog.py) for examples of handling multiple sections from the same site.

Incremental Updates

  • See anthropic_news_blog.py for the get_existing_links_from_feed() pattern to avoid re-processing articles.

Troubleshooting

No articles found

  • Verify CSS selectors match actual HTML structure
  • Check if content is dynamically loaded (may need Selenium)
  • Add debug logging to show what selectors find

Date parsing failures

  • Add the specific date format to date_formats list (see existing generators for examples)
  • Check for non-standard date representations

Blocked requests (403/429 errors)

  • Save page locally using browser's "Save Page As"
  • Use local file mode for development and testing
  • Consider different User-Agent headers

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.65%
按下载量换算47

Claude

29.68%
按下载量换算42

Cursor

20.31%
按下载量换算28

Gemini CLI

10.59%
按下载量换算15

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills