mcpField
R
reddit-commenter

reddit-commenter

github.com/rokpiy营销与增长58541 次安装32 周前更新
代码仓库

关于 reddit-commenter

这项技能为使用 Playwright MCP 的 Reddit 评论调研、撰写、发布和活动记录提供流程指引,适用于社区互动与潜在客户识别,并要求发布前分析帖子和检查评论个性化。

主要功能

  1. 01按子版块跟踪活动与频率
  2. 02撰写前分析帖子及现有评论
  3. 03用于评论审阅的个性化清单
  4. 04通过 Playwright MCP 发布评论
  5. 05可选的潜在客户判断与记录

适用场景

  1. 01在选定子版块寻找适合回复的帖子
  2. 02根据帖子内容和社区语气撰写评论
  3. 03记录每日评论数与发布间隔
  4. 04记录符合潜在客户条件的用户

MCP 相关

需要使用 Playwright MCP 浏览 Reddit、检查页面、输入评论并发布。

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/rokpiy/auto-commenter --skill reddit-commenter

安装后在 Claude Code 中输入/reddit-commenter确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

BATCH.md
resources/
personalization_reddit.md
product.md
subreddits.md

详细介绍

Reddit 评论者技能

Reddit 评论自动化——从探索到发布和跟踪


必需工具:Playwright MCP

此技能使用 Playwright MCP 与 Reddit 交互。

主要 MCP 工具
MCP 工具用途
browser_navigate导航到 Reddit 页面
browser_snapshot捕获页面结构(无障碍树)
browser_click点击元素(评论框、按钮等)
browser_type输入文本(评论内容)
browser_wait_for等待页面加载
⚠️ 使用 Playwright MCP 时的重要说明
  • 尽量减少令牌用量:调用 MCP 时,不要传入完整的对话上下文,只需简要概述该操作所需的关键信息
  • 直接导航:使用 browser_navigate 直接导航到 URL,而不是点击元素(可避免点击错误并节省令牌)
  • 指令简洁:仅传入最简指令,例如“导航到 [URL]”“点击 [元素]”“输入:[文本]”
  • ⚠️ 不要使用截图:请勿使用 browser_take_screenshot。始终仅使用 browser_snapshot 验证页面(无障碍树已足够,且不会保存文件)

执行工作流

步骤 1:检查活动状态并选择 Subreddit
1. Check today's date file in tracking/reddit/ folder
   → File name: YYYY-MM-DD.md (e.g., 2026-01-12.md)
   → If file doesn't exist, create new one referencing template.md

2. Check activity status table by subreddit:
   - How many comments posted in each subreddit today
   - Check subreddits under daily limit (3)
   - Check last comment time (minimum 5-10 minute intervals)

3. Select next subreddit for commenting:
   - Prioritize subreddits with no activity today or under limit
   - Prioritize subreddits with oldest last activity time

4. Check subreddit specifics in resources/subreddits.md:
   - Core community rules
   - Community nature
   - Good topics to answer
   → Reflect this information when selecting posts
步骤 2:访问 Reddit 并探索帖子
1. Access Reddit with Playwright MCP
   → browser_navigate("https://www.reddit.com/r/{selected_subreddit}/new/")
   or
   → browser_navigate("https://www.reddit.com/r/{selected_subreddit}/rising/")

2. Page snapshot
   → browser_snapshot()

3. Criteria for selecting posts to comment on:
   • Posts where you can share insights or provide feedback
   • ⚠️ CRITICAL: Posts you haven't commented on today
     - Check activity log in tracking/reddit/today's-date.md file
     - Extract list of post URLs from today's comments
     - Verify selected post URL is NOT in that list
     - Absolutely NO duplicate comments on same post
   • OK even if not related to your service/field
   • Relevance to "good topics to answer" from Step 1
   • Avoid posts with already hundreds of comments

4. Secure URL of selected post
   → Check and record post link in snapshot
   → Navigate directly to this URL in next Step
步骤 3:深入分析帖子内容和现有评论
⚠️ CRITICAL: Must perform this step before writing comment

0. Navigate directly to post
   → browser_navigate(post URL secured in Step 2)
   → Navigate directly to URL, don't click on post (prevents click errors)
   → browser_snapshot()

1. Read post content accurately:
   - Understand what OP is actually asking
   - Don't react only to keywords—understand full context
   - Distinguish between hypothetical questions and actual problem complaints

2. Understand OP's intent:
   - Seeking specific help? (problem solving)
   - Seeking opinions/discussion? (hypothetical scenario)
   - Information sharing? (experience story)

3. Analyze existing comments:
   - Check how others interpreted
   - Understand how community is receiving this post
   - Check tone and answering style

4. Decide comment direction:
   - Is this post worth answering?
   - From what angle should I answer?
   - Can I naturally answer in my style?

5. ⚠️ CRITICAL: Determine if site/link verification needed:
   - Did OP provide website/app link?
   - Are there expressions like "feedback requested", "honest feedback", "looking for feedback"?
   - Is feedback requested on UX, design, performance that requires actual verification?

   → If YES:
     • Visit actual site with browser_navigate(provided link)
     • Check UI/UX with browser_snapshot()
     • Write feedback based ONLY on what you actually saw
     • Absolutely NO speculative feedback on things you didn't see

   → If NO:
     • Can answer from post content alone
     • General advice or experience sharing

⚠️ Proceed to Step 4 only after clearly verifying analysis results
步骤 4:撰写评论
1. Draft comment based on Step 3 analysis results:
   - Answer matching OP's actual question
   - Practically helpful content
   - Match subreddit tone
   - Focus on 1-2 points (don't try to explain everything)
步骤 5:个性化审查(循环)
1. Check resources/personalization_reddit.md file
   → Sequentially check 16 personalization checklist items based on actual comment style
   → Especially important: #4 personal experience, #13 experience pattern, #15 question intent understanding, #16 site verification

2. Check style patterns:
   • Which pattern (1-8) is it closest to?
   • Does it capture that pattern's characteristics well?
   • Does it look like you wrote it?

3. Review process:
   • All items PASS → Proceed to Step 6
   • Any violation → Revise comment and re-review from Step 5 beginning

详细的个性化指南:参见 resources/personalization_reddit.md

步骤 6:发布评论
1. Click comment input box
   → Check comment input element after browser_snapshot()
   → browser_click(comment box ref)

2. Input comment content
   → browser_type(reviewed comment)

3. Click post button
   → browser_click(post button ref)

4. Secure comment URL
   → Copy comment permalink after posting
步骤 7:判断是否为潜在客户(可选)
⚠️ CRITICAL: Judge accurately by referring to Step 3 analysis again

→ Refer to "Lead Selection Criteria" in leads/reddit.md
→ Classify as lead only users with actual problems (not hypothetical questions)

When lead discovered, update leads/reddit.md:
  - Username, subreddit, post URL
  - Post summary, selection reason, relevance
步骤 8:更新跟踪信息
Update tracking/reddit/[today's-date].md file:

1. Activity status table by subreddit:
   - Increment comment count for that subreddit by +1
   - Update last comment time

2. Add to activity log:
   ### [HH:MM] r/subreddit
   - **Post**: [Title](URL)
   - **Topic Summary**: One-line summary of post content
   - **Comment Link**: [Comment URL]
   - **Comment Content**:

撰写的完整评论


3. When potential customer discovered:
- Update 'leads/reddit.md' when potential customer discovered

文件引用规则(节省令牌)

文件引用时机
resources/subreddits.md步骤 1(选择 Subreddit)
resources/personalization_reddit.md步骤 5(审查)
resources/product.md步骤 7(判断是否为潜在客户)
leads/reddit.md步骤 7(检查潜在客户标准)

→ 仅在相关步骤引用,不要提前读取


注意事项

  1. 需要登录:检查 Reddit 账号的登录状态
  2. 速率限制:操作过快可能导致账号受限
  3. 社区规则:必须遵守各 Subreddit 的规则
  4. 防止垃圾信息:绝对不要复制粘贴相同内容
  5. 需要审查:如果违反任何检查项,请重写
  6. ⚠️ 必须执行步骤 3:未经分析帖子内容,绝不要撰写评论。仅凭关键词判断可能导致严重错误
  7. ⚠️ 尽量减少 Playwright MCP 令牌用量:
    • 调用 Playwright MCP 时不要传入完整上下文
    • 仅简要概述每次 MCP 调用所需的关键信息
    • 例如:仅使用“导航到 [URL]”“点击评论框”“输入:[文本]”等最简指令
    • 避免因输入令牌过多而出错
  8. ⚠️ 帖子导航:使用 browser_navigate 直接导航到 URL,而不是点击帖子(可避免点击错误)

评论

支持 Markdown