بنقرة واحدة
research-by-reddit
基于 Reddit API 进行深度调研并生成研究报告。支持搜索、获取帖子、评论分析、情感分析等。适用于市场调研、用户反馈分析、技术方案调研、产品评价收集、趋势分析等场景
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
基于 Reddit API 进行深度调研并生成研究报告。支持搜索、获取帖子、评论分析、情感分析等。适用于市场调研、用户反馈分析、技术方案调研、产品评价收集、趋势分析等场景
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
火山引擎语音识别 - 将音频/视频转文字,支持长音频分段识别。
Use when publishing an Obsidian plugin to the community plugin store, creating GitHub Releases for Obsidian plugins, or submitting PRs to obsidianmd/obsidian-releases
一键部署静态网站到 Vercel 和 Cloudflare Pages。支持 HTML/React/Vue 等任意静态项目。
将 Expo/React Native 项目通过 EAS Build 构建 iOS 包并提交到 TestFlight。支持从零配置 EAS、构建、提交全流程。
综合画图工具 - AI 生图 (Nanobanana/Gemini) + 图片后处理(拼接/抠图/圆形裁剪/合成)。支持中英文自然语言画图。
统一搜索与抓取能力层 - 整合所有外部信息获取接口(搜索、抓取、下载)
| name | research-by-reddit |
| description | 基于 Reddit API 进行深度调研并生成研究报告。支持搜索、获取帖子、评论分析、情感分析等。适用于市场调研、用户反馈分析、技术方案调研、产品评价收集、趋势分析等场景 |
| allowed-tools | Bash(python:*), Read, Write |
| model | sonnet |
使用 Reddit API (PRAW) 进行专业的社区调研和分析,生成结构化报告。
首先确保已配置 Reddit API 凭证(环境变量):
export REDDIT_CLIENT_ID="your_client_id"
export REDDIT_CLIENT_SECRET="your_client_secret"
export REDDIT_USERNAME="your_username" # 可选
export REDDIT_PASSWORD="your_password" # 可选
export OPENROUTER_API_KEY="your_api_key" # 用于 AI 分析
或创建 .env 文件(项目根目录):
REDDIT_CLIENT_ID=your_client_id
REDDIT_CLIENT_SECRET=your_client_secret
REDDIT_USERNAME=your_username
REDDIT_PASSWORD=your_password
OPENROUTER_API_KEY=your_openrouter_key
搜索调研:
python scripts/search_reddit.py --query "Next.js vs Remix" --limit 10 --include-comments
获取 Subreddit 热门帖子:
python scripts/fetch_posts.py --subreddit reactjs --sort hot --limit 20 --include-comments
分析单个帖子:
python scripts/analyze_reddit.py --post-url "https://reddit.com/r/..." --include-comments
更多示例见 EXAMPLES.md
在指定 subreddit 或全站搜索关键词:
# 使用 scripts/search_reddit.py
--query "关键词" # 搜索内容
--search-subreddit all # 搜索范围(默认 all)
--search-sort relevance # 排序方式
--time-filter week # 时间范围
--limit 10 # 结果数量
--include-comments # 包含评论
获取特定社区的帖子列表:
# 使用 scripts/fetch_posts.py
--subreddit programming # Subreddit 名称
--sort hot # hot/new/top/controversial
--time-filter week # 时间过滤
--limit 20 # 帖子数量
--include-comments # 包含 top 评论
使用 AI 模型分析 Reddit 讨论:
# 使用 scripts/analyze_reddit.py
--query "AI coding tools" # 或 --subreddit / --post-url
--analysis-language zh # 分析语言(zh/en)
--model google/gemini-2-flash-thinking-exp # AI 模型
--output-md report.md # 输出 Markdown 报告
支持多种输出格式:
--output result.json)--output-md report.md)当用户请求 Reddit 调研时,遵循以下流程:
与用户确认:
根据需求选择合适的脚本:
场景 A: 关键词搜索
cd .claude/skills/research-by-reddit
python scripts/search_reddit.py \
--query "TypeScript vs JavaScript" \
--search-subreddit programming \
--search-sort relevance \
--time-filter month \
--limit 15 \
--include-comments \
--comment-limit 10 \
--output-md search_results.md
场景 B: 社区热点分析
python scripts/fetch_posts.py \
--subreddit webdev \
--sort top \
--time-filter week \
--limit 20 \
--include-comments \
--output-md top_posts.md
场景 C: 深度帖子分析
python scripts/analyze_reddit.py \
--post-url "https://reddit.com/r/programming/comments/xyz" \
--include-comments \
--comment-limit 30 \
--output-md deep_analysis.md
所有脚本支持 --skip-analysis 跳过 AI 分析,或使用 AI 生成深度洞察:
# 带 AI 分析(默认)
python scripts/search_reddit.py --query "..." --analysis-language zh
# 仅获取数据
python scripts/search_reddit.py --query "..." --skip-analysis --output data.json
AI 分析会生成:
使用 Read 工具读取生成的 Markdown 文件,并整合为最终报告:
# [调研主题] Reddit 调研报告
## 执行摘要
- 调研时间:[自动生成]
- 数据来源:[subreddits 列表]
- 帖子数量:[统计]
- 核心发现:[AI 提取的关键洞察]
## 主要发现
[基于 AI 分析的结构化总结]
## 典型案例
[高票帖子和精彩评论]
## 数据明细
[完整帖子列表和评论]
## 行动建议
[基于调研的可执行建议]
用途: 在 Reddit 搜索关键词
参数:
--query 搜索关键词(必需)
--search-subreddit 搜索范围(默认 all)
--search-sort 排序:relevance/hot/top/new/comments
--time-filter 时间:hour/day/week/month/year/all
--limit 结果数量(默认 5)
--include-comments 包含评论
--comment-limit 评论数量(默认 10)
--analysis-language 分析语言(zh/en)
--output 保存 JSON
--output-md 保存 Markdown
用途: 获取 subreddit 的帖子列表
参数:
--subreddit Subreddit 名称(必需)
--sort 排序:hot/new/top/controversial
--time-filter 时间范围
--limit 帖子数量
--include-comments 包含评论
用途: 分析单个帖子或执行综合调研
参数:
--post-id 帖子 ID
--post-url 帖子 URL
--query 搜索查询
--subreddit Subreddit 名称
--model AI 模型(默认 gemini-2-flash-thinking-exp)
--analysis-language 输出语言
完整 API 参考见 API_REFERENCE.md
多维度搜索
质量优先
上下文理解
--limit 控制,避免过载--include-comments--max-text-length 和 --max-comment-length 控制{
"source": {
"type": "search",
"query": "Next.js",
"subreddit": "reactjs"
},
"posts": [
{
"id": "abc123",
"title": "...",
"selftext": "...",
"author": "username",
"score": 150,
"num_comments": 45,
"created_at": "2026-01-07T...",
"permalink": "https://reddit.com/r/...",
"top_comments": [...]
}
],
"analysis": "AI 生成的分析...",
"model": "google/gemini-2-flash-thinking-exp"
}
自动生成包含:
python scripts/search_reddit.py \
--query "Docker vs Podman production" \
--search-subreddit devops \
--time-filter year \
--limit 20 \
--include-comments
python scripts/search_reddit.py \
--query "Notion alternatives 2026" \
--search-subreddit productivity \
--search-sort top \
--limit 15
python scripts/fetch_posts.py \
--subreddit vscode \
--sort controversial \
--time-filter month \
--include-comments \
--comment-limit 20
python scripts/search_reddit.py \
--query "AI coding assistant" \
--time-filter year \
--limit 30 \
--analysis-language zh
遇到问题?查看 TROUBLESHOOTING.md
常见问题:
首次使用需安装 Python 依赖:
cd .claude/skills/research-by-reddit
pip install -r scripts/requirements.txt
或使用虚拟环境:
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r scripts/requirements.txt
配置完成后,直接在 Claude Code 中说:
帮我调研一下 Next.js 和 Remix 的实际使用体验
分析 r/programming 上关于 AI 编程工具的讨论
调研 Notion 用户最关心的问题
Claude 会自动使用这个 skill 执行专业的 Reddit API 调研!