Install
openclaw skills install agent2rssAgent2RSS 客户端,管理 RSS 频道并推送内容。触发:用户提到 Agent2RSS/RSS 频道/推送文章/上传文章/创建频道/设置默认频道/幂等性。
openclaw skills install agent2rss管理 Agent2RSS 频道并推送内容到 RSS。
bashcurljqconfig.json 中的 serverUrl 发起网络请求(创建频道、上传内容、推送文章)。https://agent2rss.yaotutu.top:8765(官方托管服务)。http:// 会有明文传输风险。$HOME/.openclaw/workspace/.skill-data/agent2rss-client/config.json600。不要把该文件提交到仓库。scripts/agent2rss.sh$HOME/.openclaw/workspace/.skill-data/agent2rss-client/$CONFIG_DIR/config.jsonassets/config-template.json# 推荐:直接使用官方托管服务(默认)
scripts/agent2rss.sh init
# 如果你有自建实例,再显式指定 server-url
scripts/agent2rss.sh init --server-url https://your-agent2rss.example.com
init只初始化配置,不会自动创建默认频道。请显式执行create-channel。 Agent2RSS 是开源项目,可自部署:https://github.com/yaotutu/agent2rss。
# 健康检查
scripts/agent2rss.sh health
# 创建频道(并设为默认)
scripts/agent2rss.sh create-channel "技术博客" "分享技术文章"
# 列出频道
scripts/agent2rss.sh list
# 设置默认频道
scripts/agent2rss.sh set-default <channelId>
# 上传文件推送(推荐)
scripts/agent2rss.sh push-file article.md
# JSON 推送
scripts/agent2rss.sh push-json post.json
# 仅预览请求,不实际发送
DRY_RUN=1 scripts/agent2rss.sh push-file article.md
脚本会调用以下接口(基于 serverUrl):
GET /healthPOST /api/channelsPUT /api/channels/:idPOST /api/channels/:id/postsPOST /api/channels/:id/posts/uploadidempotencyKey 建议使用:文章URL、文件名+哈希 或业务唯一 ID。isNew: false)。401:token 无效或缺失。404:频道 ID 不存在。400:缺少 content/file 等必填字段。5xx:服务异常,稍后重试。references/api-examples.mdreferences/e2e-test.md