360 Secure SkillHub
360 安全技能中心

WeChat RSS

该技能调用 Python 脚本访问 wcrss.com 接口,按天数和数量拉取已关注公众号的文章,支持缓存、计数与按索引读取单篇内容;随后由模型从文章 HTML 中提取 3-8 条要点,按标题、作者、时间、要点和原文链接的固定格式输出。需要预先配置 API Key。

blackomw
blackomw
热度 48.20
最近更新 2026-05-11 17:37:31
分类:搜索依赖:代码执行 / 第三方 API / 内部调用大模型应用场景:摘要总结 / 研究 / 社交媒体

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add wechat-rss
Metadata
name
wechat-rss
description
通过 wcrss.com API 获取并展示微信公众号的最新文章。当用户请求查看微信公众号文章、获取公众号最新发布内容、阅读微信RSS订阅或浏览公众号内容时使用此技能。该技能会从环境变量 WCRSS_API_KEY 中读取 API Key,并调用 wcrss.com 的接口来获取文章数据。

WeChat RSS Skill

Fetch and display the latest articles from WeChat public accounts using the wcrss.com API.

Prerequisites

Before using this skill, the user must:

  1. Register an account at https://wcrss.com/
  2. Add favorite public accounts at https://wcrss.com/publishers
  3. Generate an API key at https://wcrss.com/settings
  4. Save the API key as an environment variable WCRSS_API_KEY

Python Scripts

This skill uses Python scripts for data fetching:

  • Location: scripts/wechat_rss.py (relative to skill directory)
  • Commands:
    • python scripts/wechat_rss.py fetch <recentDays> <num> - Fetch articles (auto-cached for 1 hour)
    • python scripts/wechat_rss.py get <index> - Get single article by index
    • python scripts/wechat_rss.py count - Get total articles count

Workflow for Agent

Step 1: Fetch Articles List

Execute the Python script to fetch articles:

python scripts/wechat_rss.py fetch 3 10

Step 2: Get Total Articles Count

python scripts/wechat_rss.py count

Step 3: Process Each Article

For each article index from 0 to (count-1), call:

python scripts/wechat_rss.py get <index>

This returns:

{
  "title": "文章标题",
  "author": "公众号名称",
  "content_html": "<p>HTML内容...</p>",
  "url": "https://example.com/s/article",
  "publish_time": "%Y-%m-%d %H:%M",
  "description": "文章简介"
}

Step 4: Summarize Each Article

For each article, use the LLM to summarize the content_html into key points (bullet list).

LLM Prompt:

请从以下文章内容中提取关键要点,以条目的形式列出:

标题:{title}
作者:{author}
内容:{content_html}
时间:{publish_time}

请提取3-8个核心要点,每个要点用一句话概括。

Step 5: Display Results

For each article, display in this format:

【{序号}】{标题}
作者:{公众号名称}  {时间}
文章要点:
- 要点1
- 要点2
- 要点3
原文链接:{url}
---

Error Handling

  • If "WCRSS_API_KEY environment variable not set" error occurs, guide the user to configure the API key
  • If API returns an error, display the error message to the user
  • If no articles are found, inform the user and suggest checking their followed publishers