Feedship Skill
Version: 1.5
For: Claude Code and OpenClaw compatible agents
Description: Manage information feeds, subscribe to RSS/GitHub sources, and search articles
Setup
Before using this skill, install feedship with ML and cloud extras:
CODEBLOCK0
Note: cloudflare extra provides scrapling (HTML fetching); ml extra provides
sentence-transformers + chromadb (semantic search). Both are required for full functionality.
China / Restricted Networks
For environments where PyPI or HuggingFace is not accessible, use mirrors:
CODEBLOCK1
Upgrade
CODEBLOCK2
After installation, verify with: INLINECODE2
First-time setup for semantic search: After installing, run feedship fetch --all
to populate the vector database with article embeddings. Semantic search requires
embeddings to be generated first (chromadb storage).
Commands
feed
Manage RSS/Atom feeds and GitHub release trackers.
feed add
CODEBLOCK3
Add a new feed by URL with automatic provider detection.
Options:
- -
--auto-discover/--no-auto-discover — Enable feed auto-discovery (default: enabled) - INLINECODE5 — Automatically add all discovered feeds (default: off)
- INLINECODE6 — Discovery crawl depth 1-10 (default: 1)
- INLINECODE7 — Feed weight for semantic search (default: 0.3)
Examples:
CODEBLOCK4
feed list
CODEBLOCK5
List all subscribed feeds with status.
Options:
- -
-v, --verbose — Show detailed output - INLINECODE9 — Output in JSON format for programmatic consumption
feed remove
CODEBLOCK6
Remove a subscribed feed by ID.
fetch
CODEBLOCK7
Fetch new articles from subscribed feeds.
Options:
- -
--all — Fetch all subscribed feeds - INLINECODE11 — Max concurrent fetches 1-100 (default: 10)
Examples:
feedship fetch --all
feedship fetch abc12345
feedship fetch abc12345 def67890 --concurrency 20
article
Manage and view fetched articles.
article list
CODEBLOCK9
Options:
- -
--limit N — Maximum articles (default: 20) - INLINECODE13 — Filter by feed ID
- INLINECODE14 — Start date (YYYY-MM-DD)
- INLINECODE15 — End date (YYYY-MM-DD)
- INLINECODE16 — Specific date (can repeat for multiple)
- INLINECODE17 — Output in JSON format for programmatic consumption
article view
CODEBLOCK10
View full article content and metadata.
article open
CODEBLOCK11
Open article in system browser.
article related
CODEBLOCK12
Find semantically related articles.
search
CODEBLOCK13
Search articles using full-text or semantic search.
Options:
- -
--limit N — Maximum results (default: 20) - INLINECODE19 — Filter by feed ID
- INLINECODE20 — Use semantic (vector) search instead of keyword
- INLINECODE21 — Apply Cross-Encoder reranking
- INLINECODE22 — Start date filter
- INLINECODE23 — End date filter
- INLINECODE24 — Specific date filter
- INLINECODE25 — Output in JSON format for programmatic consumption
Examples:
feedship search "machine learning"
feedship search "python news" --semantic
feedship search "updates" --semantic --rerank
discover
CODEBLOCK15
Discover RSS/Atom/RDF feeds on a website without subscribing.
Options:
- -
--discover-depth N — Crawl depth 1-10 (default: 1) - INLINECODE27 — Output in JSON format for programmatic consumption
Examples:
CODEBLOCK16
info
CODEBLOCK17
Display system information, configuration, and storage status.
Options:
- -
--json — Output in JSON format for programmatic consumption
Output includes:
- - Version information
- Configuration file location
- Database/storage path
- Feed count and article count
- Installed extras (ml, cloudflare)
Examples:
feedship info
feedship info --json
Output Formats
Tables
INLINECODE29 , article list, search, discover output Rich tables:
- - Magenta headers
- Alternating row styles
- Truncated columns with overflow indicators
Panels
INLINECODE33 uses Rich Panel:
- - Title: Article title
- Subtitle: Feed name | Date
- Content: Full article text
Progress Bars
INLINECODE34 uses Rich progress bars showing:
- - Current feed being fetched
- New articles count
- Elapsed time
Common Patterns
Initial Setup
CODEBLOCK19
Daily Workflow
CODEBLOCK20
Feed Management
CODEBLOCK21
Scheduled Fetching (OpenClaw Best Practice)
For automated periodic fetching, use platform-specific schedulers:
macOS (LaunchAgent):
CODEBLOCK22
Linux (systemd timer):
CODEBLOCK23
Cron:
CODEBLOCK24
OpenClaw Cron (every 30 minutes):
openclaw cron add \
--name "feedship-fetch" \
--agent agent \
--cron "*/30 * * * *" \
--tz Asia/Shanghai \
--session isolated \
--message "uv run --with feedship[ml,cloudflare] feedship fetch --all" \
--timeout-seconds 1800
Optional Dependencies
ML Extra (pip install feedship[ml])
Required for semantic search and related articles:
- - sentence-transformers
- chromadb
- torch
Cloudflare Extra (pip install feedship[cloudflare])
For enhanced web scraping with:
- - browserforge
- playwright
- curl-cffi
Feedship 技能
版本: 1.5
适用对象: Claude Code 和 OpenClaw 兼容代理
描述: 管理信息源,订阅 RSS/GitHub 源,以及搜索文章
安装设置
使用此技能前,请安装带有 ML 和云扩展的 feedship:
bash
uv tool install feedship[ml,cloudflare] --python 3.12 --force
注意: cloudflare 扩展提供 scrapling(HTML 获取);ml 扩展提供 sentence-transformers + chromadb(语义搜索)。两者均为完整功能所必需。
中国/受限网络
对于无法访问 PyPI 或 HuggingFace 的环境,请使用镜像:
bash
添加到 ~/.bashrc 以持久化
echo export HF_ENDPOINT=https://hf-mirror.com >> ~/.bashrc
echo export PIP
INDEXURL=https://mirrors.aliyun.com/pypi/simple/ >> ~/.bashrc
source ~/.bashrc
安装
uv tool install feedship[cloudflare,ml] --force
升级
bash
从 PyPI(如果可以访问)
uv tool upgrade feedship
从 GitHub(最新提交)
uv tool install feedship @ git+https://github.com/yanpeipan/feedship.git \
--pip-args=-i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \
--include-deps --force
安装后,使用以下命令验证:feedship --version
首次设置语义搜索: 安装后,运行 feedship fetch --all 以用文章嵌入填充向量数据库。语义搜索需要先生成嵌入(chromadb 存储)。
命令
feed
管理 RSS/Atom 源和 GitHub 发布追踪器。
feed add
bash
feedship feed add [选项]
通过 URL 添加新源,自动检测提供者。
选项:
- - --auto-discover/--no-auto-discover — 启用源自动发现(默认:启用)
- --automatic on|off — 自动添加所有发现的源(默认:关闭)
- --discover-depth N — 发现爬取深度 1-10(默认:1)
- --weight FLOAT — 语义搜索的源权重(默认:0.3)
示例:
bash
feedship feed add https://example.com
feedship feed add https://github.com/python/cpython --automatic on
feedship feed add https://example.com --discover-depth 3
feed list
bash
feedship feed list [-v]
列出所有已订阅的源及其状态。
选项:
- - -v, --verbose — 显示详细输出
- --json — 以 JSON 格式输出,供程序化使用
feed remove
bash
feedship feed remove
按 ID 移除已订阅的源。
fetch
bash
feedship fetch [--all|] [--concurrency N]
从已订阅的源获取新文章。
选项:
- - --all — 获取所有已订阅的源
- --concurrency N — 最大并发获取数 1-100(默认:10)
示例:
bash
feedship fetch --all
feedship fetch abc12345
feedship fetch abc12345 def67890 --concurrency 20
article
管理和查看已获取的文章。
article list
bash
feedship article list [选项]
选项:
- - --limit N — 最大文章数(默认:20)
- --feed-id — 按源 ID 过滤
- --since — 开始日期(YYYY-MM-DD)
- --until — 结束日期(YYYY-MM-DD)
- --on — 特定日期(可重复用于多个)
- --json — 以 JSON 格式输出,供程序化使用
article view
bash
feedship article view
查看完整文章内容和元数据。
article open
bash
feedship article open
在系统浏览器中打开文章。
article related
bash
feedship article related [--limit N]
查找语义相关的文章。
search
bash
feedship search [选项]
使用全文或语义搜索搜索文章。
选项:
- - --limit N — 最大结果数(默认:20)
- --feed-id — 按源 ID 过滤
- --semantic — 使用语义(向量)搜索而非关键词
- --rerank — 应用交叉编码器重排序
- --since — 开始日期过滤
- --until — 结束日期过滤
- --on — 特定日期过滤
- --json — 以 JSON 格式输出,供程序化使用
示例:
bash
feedship search 机器学习
feedship search Python 新闻 --semantic
feedship search 更新 --semantic --rerank
discover
bash
feedship discover [--discover-depth N]
在网站上发现 RSS/Atom/RDF 源,无需订阅。
选项:
- - --discover-depth N — 爬取深度 1-10(默认:1)
- --json — 以 JSON 格式输出,供程序化使用
示例:
bash
feedship discover example.com
feedship discover example.com --discover-depth 3
info
bash
feedship info [选项]
显示系统信息、配置和存储状态。
选项:
- - --json — 以 JSON 格式输出,供程序化使用
输出包括:
- - 版本信息
- 配置文件位置
- 数据库/存储路径
- 源数量和文章数量
- 已安装的扩展(ml, cloudflare)
示例:
bash
feedship info
feedship info --json
输出格式
表格
feed list、article list、search、discover 输出 Rich 表格:
面板
article view 使用 Rich 面板:
- - 标题:文章标题
- 副标题:源名称 | 日期
- 内容:完整文章文本
进度条
fetch 使用 Rich 进度条显示:
常见模式
初始设置
bash
添加网站源
feedship feed add https://example.com --automatic on
获取所有源
feedship fetch --all
查看最近文章
feedship article list --limit 50
日常工作流程
bash
获取新文章
feedship fetch --all
搜索主题
feedship search 机器学习 --semantic
阅读文章
feedship article view abc12345
在浏览器中打开以查看完整内容
feedship article open abc12345
源管理
bash
列出源
feedship feed list -v
移除过时源
feedship feed remove old123
在网站上发现新源
feedship discover news-site.com --discover-depth 2
定时获取(OpenClaw 最佳实践)
对于自动定期获取,请使用平台特定的调度器:
macOS(LaunchAgent):
xml
ProgramArguments/usr/local/bin/feedshipfetch--all
StartInterval3600
Linux(systemd 定时器):
ini
~/.config/systemd/user/feedship.timer
[Timer] OnBootSec=5min OnUnitActiveSec=1h
Cron:
bash
0 feedship fetch --all >> ~/.feedship/fetch.log 2>&1
OpenClaw Cron(每 30 分钟):
bash
openclaw cron add \
--name feedship-fetch \
--agent agent \
--cron /30 * \
--tz Asia/Shanghai