بنقرة واحدة
research-by-reddit
基于 Reddit API 进行深度调研并生成研究报告。支持搜索、获取帖子、评论分析、情感分析等功能
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
基于 Reddit API 进行深度调研并生成研究报告。支持搜索、获取帖子、评论分析、情感分析等功能
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Extract Xiaohongshu (小红书) noteId from shared note text or URLs, including xhslink.com short links and xiaohongshu.com/discovery/item/<noteId> links. Use when the user asks for “noteId/笔记ID”, provides a 小红书 share message, or pastes an xhslink short URL that needs redirect expansion.
Use when refactoring TeamVenture domains/architecture; enforces migration order (Planning→Authorization→Identity→Infrastructure) and preferred steps (split classes before moving packages).
自动发布每日科技早报播客到小宇宙平台。 触发场景:用户提到"发布播客"、"小宇宙播客"、"自动发布"、"播客上传"、"RSS发布"。 适用于:将生成的播客音频自动发布到RSS.com,并通过RSS订阅同步到小宇宙,同时发送飞书通知。
飞书消息发送与文档创建工作流。 触发场景:用户提到"发飞书消息"、"飞书文档"、"通知某人"、"发送到飞书"、"飞书通知"。 适用于:发送飞书消息、创建飞书文档、操作多维表格、管理知识库。
小程序页面设计与代码生成工作流。 触发场景:用户提到"修改页面"、"更新UI"、"添加组件"、"调整布局"、"生成代码"、"小程序设计"。 适用于:TeamVenture 小程序的页面设计迭代、UI 组件开发、样式调整。
Obsidian 知识库整理工作流。 触发场景:用户提到"整理Obsidian"、"清理文件夹"、"知识库混乱"、"目录太多"、"合并分类"。 适用于:个人知识管理、笔记整理、文件夹重组。
| name | research-by-reddit |
| description | 基于 Reddit API 进行深度调研并生成研究报告。支持搜索、获取帖子、评论分析、情感分析等功能 |
| allowed-tools | ["Bash(python:*)","Read","Write"] |
| model | sonnet |
基于 Reddit API (PRAW) 进行市场调研、用户反馈收集、技术方案研究等任务。
需要设置以下环境变量(在 .env 文件中):
REDDIT_CLIENT_ID=your_client_id
REDDIT_CLIENT_SECRET=your_client_secret
REDDIT_USER_AGENT=your_app_name/1.0
OPENROUTER_API_KEY=your_openrouter_key # 用于 AI 分析
搜索 Reddit 全站或特定 subreddit 的内容。
python scripts/search_reddit.py --query "关键词" [选项]
参数:
--query: 搜索关键词(必需)--subreddit: 限定搜索的 subreddit(可选,不指定则全站搜索)--limit: 返回结果数量(默认 25,最大 100)--time_filter: 时间范围 [all, year, month, week, day, hour](默认 all)--sort: 排序方式 [relevance, hot, top, new, comments](默认 relevance)--output: 输出文件路径(可选,默认输出到 stdout)示例:
# 搜索 AI 相关讨论
python scripts/search_reddit.py --query "AI productivity tools" --limit 50 --time_filter month
# 在特定 subreddit 搜索
python scripts/search_reddit.py --query "团建" --subreddit "China_irl" --limit 30
获取指定 subreddit 的热门/最新帖子及评论。
python scripts/fetch_posts.py --subreddit "subreddit名称" [选项]
参数:
--subreddit: 目标 subreddit(必需)--sort: 排序方式 [hot, new, top, rising, controversial](默认 hot)--limit: 帖子数量(默认 25)--time_filter: 时间范围,仅对 top/controversial 有效(默认 week)--include_comments: 是否包含评论(默认 false)--comment_limit: 每个帖子的评论数量(默认 10)--output: 输出文件路径示例:
# 获取 startup subreddit 热门帖子
python scripts/fetch_posts.py --subreddit "startups" --sort hot --limit 20
# 获取帖子及评论
python scripts/fetch_posts.py --subreddit "smallbusiness" --include_comments --comment_limit 20
对收集的 Reddit 数据进行 AI 分析,生成研究报告。
python scripts/analyze_reddit.py --input "数据文件" --analysis_type "分析类型" [选项]
参数:
--input: 输入数据文件(JSON 格式,来自 search 或 fetch)--analysis_type: 分析类型 [sentiment, topic, summary, competitive, pain_points]--model: AI 模型(默认 gemini,可选 claude, gpt-4)--output: 输出报告路径--format: 输出格式 [json, markdown](默认 markdown)分析类型说明:
sentiment: 情感分析,识别正面/负面/中性观点topic: 主题聚类,识别讨论热点summary: 内容摘要,提取关键信息competitive: 竞品分析,识别提及的竞品及评价pain_points: 痛点分析,识别用户抱怨和需求示例:
# 情感分析
python scripts/analyze_reddit.py --input data/search_results.json --analysis_type sentiment
# 生成 Markdown 报告
python scripts/analyze_reddit.py --input data/posts.json --analysis_type pain_points --format markdown --output reports/pain_points.md
定义调研目标
数据收集
# 1. 搜索相关讨论
python scripts/search_reddit.py --query "your topic" --limit 100 --output data/search.json
# 2. 获取热门帖子
python scripts/fetch_posts.py --subreddit "relevant_sub" --include_comments --output data/posts.json
数据分析
# 3. 运行 AI 分析
python scripts/analyze_reddit.py --input data/search.json --analysis_type pain_points --output reports/analysis.md
报告生成
# 了解目标用户对某类产品的看法
python scripts/search_reddit.py --query "team building software" --limit 100 --time_filter year
python scripts/analyze_reddit.py --input results.json --analysis_type competitive
# 收集特定产品的用户反馈
python scripts/search_reddit.py --query "Notion alternative" --subreddit "productivity" --limit 50
python scripts/analyze_reddit.py --input results.json --analysis_type pain_points
# 了解技术选型讨论
python scripts/fetch_posts.py --subreddit "programming" --sort top --time_filter month --include_comments
python scripts/analyze_reddit.py --input posts.json --analysis_type topic
{
"query": "搜索词",
"timestamp": "2024-01-15T10:30:00Z",
"total_results": 50,
"results": [
{
"id": "post_id",
"title": "帖子标题",
"author": "用户名",
"subreddit": "subreddit名",
"score": 1234,
"num_comments": 56,
"created_utc": 1705312200,
"url": "https://reddit.com/...",
"selftext": "帖子内容...",
"comments": [...]
}
]
}
# Reddit 调研报告:[主题]
## 概述
- 数据来源:[subreddit 列表]
- 时间范围:[开始] - [结束]
- 样本量:[N] 条帖子
## 关键发现
1. ...
2. ...
## 详细分析
### 主题分布
...
### 情感倾向
...
## 结论与建议
...
cd .claude/skills/research-by-reddit/scripts
pip install -r requirements.txt
认证失败
搜索结果为空
AI 分析失败