SKILL.md
readonly只读
name
reddit
description
从 Reddit 搜索和检索内容。通过公共 JSON API 获取帖子、评论、子版块信息和用户资料。当用户提到 Reddit、子版块或 r/ 链接时使用。
Reddit 技能
通过公共 JSON API 从 Reddit 获取帖子、评论、子版块信息和用户资料。
前提条件
无需 API 密钥! Reddit 的公共 JSON API 无需认证即可使用。
快速检查:
cd <技能目录>
python3 scripts/get_posts.py python --limit 3
命令
所有命令均在技能目录下运行。
子版块帖子
python3 scripts/get_posts.py python --limit 20 # 热门帖子(默认)
python3 scripts/get_posts.py python --sort new --limit 20
python3 scripts/get_posts.py python --sort top --time week
python3 scripts/get_posts.py python --sort top --time all --limit 10
搜索帖子
python3 scripts/search_posts.py "AI agent" --limit 20
python3 scripts/search_posts.py "MCP server" --subreddit ClaudeAI --limit 10
python3 scripts/search_posts.py "async python" --sort top --time year
子版块信息
python3 scripts/get_subreddit.py python
python3 scripts/get_subreddit.py ClaudeAI
帖子与评论
python3 scripts/get_post.py abc123 # 按 ID 获取帖子
python3 scripts/get_post.py abc123 --comments 50 # 包含更多评论
用户资料
python3 scripts/get_user.py spez
python3 scripts/get_user.py spez --posts 10 # 包含最近帖子
排序选项
| 排序 | 描述 | 时间选项 |
|---|---|---|
hot |
热门帖子(默认) | - |
new |
最新帖子 | - |
top |
最高投票 | hour, day, week, month, year, all |
rising |
上升趋势 | - |
controversial |
争议帖子 | hour, day, week, month, year, all |
API 信息
- 方法:公共 JSON API(无需认证)
- 技巧:在任何 Reddit URL 后附加
.json - 速率限制:100 次请求/分钟
- 文档:https://www.reddit.com/dev/api




