con un clic
reddit-reader
// 通过 Reddit OAuth2 API 搜索和阅读 Reddit 帖子、评论和子版块内容。当用户要求搜索 Reddit 讨论、浏览子版块帖子、阅读 Reddit 帖子内容和评论、了解 Reddit 社区对某个话题的看法时使用此 skill。支持按时间范围和排序方式筛选,支持读取完整帖子正文和嵌套评论树。
// 通过 Reddit OAuth2 API 搜索和阅读 Reddit 帖子、评论和子版块内容。当用户要求搜索 Reddit 讨论、浏览子版块帖子、阅读 Reddit 帖子内容和评论、了解 Reddit 社区对某个话题的看法时使用此 skill。支持按时间范围和排序方式筛选,支持读取完整帖子正文和嵌套评论树。
监控 claude-relay-service 的 API Key 使用情况和费用统计。支持查询总使用量、今日用量、费用估算等。
End-to-end Xiaohongshu operations: positioning, topic research, content production, publish execution, and post-incident recovery. Reusable across verticals; includes reusable templates and one concrete “陪你看剧” case preset.
Execute force buy orders on Freqtrade bot via REST API. Supports manual entry for specific trading pairs with configurable leverage and stake amount. Use when user wants to manually buy a cryptocurrency through their running Freqtrade bot, especially for short-term trades or when the strategy hasn't triggered an entry yet.
Automatically publish articles to GitHub Pages with Jekyll support. Handles git add/commit/push, README updates, and category indexing.
| name | reddit-reader |
| description | 通过 Reddit OAuth2 API 搜索和阅读 Reddit 帖子、评论和子版块内容。当用户要求搜索 Reddit 讨论、浏览子版块帖子、阅读 Reddit 帖子内容和评论、了解 Reddit 社区对某个话题的看法时使用此 skill。支持按时间范围和排序方式筛选,支持读取完整帖子正文和嵌套评论树。 |
通过 Reddit OAuth2 API 访问 Reddit 内容的 skill,支持搜索帖子、浏览子版块、阅读帖子详情和评论。输出为结构化 Markdown,可直接用于分析和总结。
需要设置以下环境变量(从 https://www.reddit.com/prefs/apps 获取,创建 script 类型应用):
REDDIT_CLIENT_IDREDDIT_CLIENT_SECRET依赖: pip install requests
当用户请求以下任务时触发:
根据用户请求识别需要执行的操作:
| 用户意图 | 子命令 | 示例 |
|---|---|---|
| 搜索特定话题 | search | "搜索 Reddit 上关于 Claude Code 的讨论" |
| 浏览子版块帖子列表 | list | "看看 r/ClaudeAI 最近的热帖" |
| 阅读具体帖子和评论 | read | "读一下这个帖子 https://reddit.com/r/..." |
| 了解子版块信息 | subreddit | "r/LocalLLaMA 是什么社区" |
使用 scripts/reddit_reader.py 执行对应操作。脚本路径相对于此 skill 目录。
python3 scripts/reddit_reader.py search "query" [options]
| 参数 | 说明 | 默认值 | 可选值 |
|---|---|---|---|
query | 搜索关键词(必填) | - | - |
--subreddit, -s | 限定子版块 | 全站搜索 | 任意子版块名 |
--sort | 排序方式 | relevance | relevance, hot, new, top, comments |
--time, -t | 时间范围 | all | hour, day, week, month, year, all |
--limit, -l | 返回条数 | 10 | 1-100 |
示例:
# 全站搜索,按热度排序,最近一周
python3 scripts/reddit_reader.py search "Claude Code tips" --sort hot --time week --limit 15
# 在特定子版块内搜索
python3 scripts/reddit_reader.py search "cursor vs claude" -s ClaudeAI --sort top --time month
python3 scripts/reddit_reader.py list <subreddit> [options]
| 参数 | 说明 | 默认值 | 可选值 |
|---|---|---|---|
subreddit | 子版块名(必填) | - | 如 ClaudeAI, LocalLLaMA |
--category, -c | 帖子分类 | hot | hot, new, top, rising, controversial |
--time, -t | 时间范围(top/controversial) | week | hour, day, week, month, year, all |
--limit, -l | 返回条数 | 10 | 1-100 |
示例:
# 热门帖子
python3 scripts/reddit_reader.py list r/ClaudeAI --category hot --limit 10
# 本月最高赞帖子
python3 scripts/reddit_reader.py list LocalLLaMA --category top --time month --limit 20
python3 scripts/reddit_reader.py read <post_id_or_url> [options]
| 参数 | 说明 | 默认值 | 可选值 |
|---|---|---|---|
post | 帖子 ID 或完整 URL(必填) | - | - |
--comment-sort | 评论排序 | top | best, top, new, controversial, old |
--comment-limit | 评论数量 | 30 | 任意整数 |
--comment-depth | 嵌套深度 | 5 | 1-10 |
示例:
# 通过 URL 阅读
python3 scripts/reddit_reader.py read "https://www.reddit.com/r/ClaudeAI/comments/abc123/some_title"
# 通过 ID 阅读,按最新评论排序
python3 scripts/reddit_reader.py read abc123 --comment-sort new --comment-limit 50
python3 scripts/reddit_reader.py subreddit <name>
示例:
python3 scripts/reddit_reader.py subreddit ClaudeAI
脚本输出为 Markdown 格式。根据用户需求:
详细的 Reddit API 端点参数参考见 references/reddit_api.md。