social-bot

作者 mguozhen已验证

Reddit & X auto-reply bot — browser-based, Claude AI generated replies for Solvea/VOC.ai

110
Stars
33
Forks
Python
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/mguozhen/social-bot

快速入门

使用 social-bot 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Social Bot

Social Reply Bot

AI-powered Reddit & X auto-reply bot that finds your customers and joins the conversation.

5min Setup Agent Skills MIT License Python 3.9+ Reddit + X

Quick StartHow It WorksFeaturesScreenshotsConfigurationArchitecture


What is this?

Social Reply Bot searches Reddit and X/Twitter for posts relevant to your product, then uses Claude AI to generate genuine, helpful replies that naturally mention your brand. No API keys for Reddit or X required — it uses browser automation to act like a real user.

Not spam. The AI evaluates every post for relevance first. If a post isn't a good fit, it skips it. When it does reply, it sounds like an experienced practitioner sharing real insight — because that's what the prompt engineers it to be.

Currently configured for two products:

  • Solvea — AI customer service agent for Amazon/Shopify sellers
  • VOC.ai — Amazon review intelligence and sentiment analysis

But it's fully configurable for any product/niche via config.json.

Features

FeatureDescription
Dual PlatformReddit (subreddit search) + X/Twitter (keyword search)
AI-Generated RepliesClaude crafts genuine, on-topic responses — not templates
Smart FilteringTwo-layer filter: keyword match first, then AI relevance check
Browser AutomationNo platform API keys needed — uses real browser sessions
Reddit WarmupKarma-building mode for new accounts (safe subreddits, no product mentions)
Lead TrackingEvery replied post scored 1-10 for customer potential
Web DashboardReal-time Flask dashboard showing daily progress
DeduplicationSQLite-backed — never replies to the same post twice
Rate LimitingConfigurable delays (Reddit: 10min, X: 5min between replies)
Daily SchedulingmacOS LaunchAgent runs at 10:05 AM automatically

How It Works

Keyword Search (Reddit subreddits + X queries)
       ↓
Two-Layer Relevance Filter
  ├─ Layer 1: Keyword match (zero API cost)
  └─ Layer 2: Claude AI judges if post is worth replying to
       ↓
Claude generates reply as "experienced seller sharing real insight"
       ↓
Browser automation posts the reply
       ↓
SQLite logs it → Dashboard displays it → Lead scored

The core principle: Every reply must provide genuine value. The AI is prompted as a "seller with 5 years of experience" who naturally mentions tools they use — not as a marketer pushing a product. Posts that don't fit get skipped, not force-fitted.

Screenshots

Dashboard — Real-time Daily Progress

Dashboard showing daily reply targets and progress

The web dashboard tracks daily X posts, Reddit comments, product mentions, and historical totals.

X/Twitter — Targeted Competitive Replies

AI-generated reply on X to a competitor's post

The bot found a competitor's tweet about customer support automation and replied with a genuine insight that naturally positioned Solvea as an alternative. No "Great product!" fluff — real technical substance.

Reddit — High-Quality Community Comments

AI-generated Reddit comment about WooCommerce chatbot issues

On r/ecommerce, a user discussed WooCommerce chatbot inventory sync issues. The bot shared specific technical experience (event-triggered vs. scheduled sync), earning genuine upvotes and discussion.

Quick Start

Option 1: One-Line Install

curl -fsSL https://raw.githubusercontent.com/mguozhen/social-bot/main/install.sh | bash

This will:

  1. Clone the repo to ~/social-bot
  2. Install Python dependencies (anthropic, flask)
  3. Check for browse CLI
  4. Guide you through .env setup
  5. Initialize SQLite database
  6. Register macOS LaunchAgent (daily 10:05 AM)

Option 2: Manual Setup

git clone https://github.com/mguozhen/social-bot.git ~/social-bot
cd ~/social-bot
pip3 install -r requirements.txt
cp .env.template .env
# Edit .env with your ANTHROPIC_API_KEY

Prerequisites

RequirementHow to Get It
Python 3.9+Pre-installed on macOS
browse CLInpm install -g @anthropic-ai/browse-cli
Anthropic API Keyconsole.anthropic.com
Reddit accountLog in once in the browse-controlled Chrome
X/Twitter accountLog in once in the browse-controlled Chrome

No Reddit API key or Twitter API key required. The bot uses browser sessions, not platform APIs.

Commands

As Claude Code Skill

Once installed as a skill, just tell Claude:

social reply bot                  # run both platforms
social reply bot x only           # X/Twitter only
social reply bot reddit only      # Reddit only
social reply bot warmup           # build Reddit karma (8 comments)
social reply bot warmup 15        # warmup with custom target
social reply bot leads            # show potential customers found
social reply bot stats            # today's stats
social reply bot dashboard        # open web dashboard

As Standalone Script

python3 run_daily.py              # run both platforms
python3 run_daily.py --x-only     # X only
python3 run_daily.py --reddit-only # Reddit only
python3 warmup_reddit.py          # karma building mode

Configuration

Edit config.json to customize for your product:

{
  "x": {
    "username": "@YourAccount",
    "daily_target": 20,
    "min_delay_seconds": 300,
    "search_queries": [
      "your product keyword 1",
      "your product keyword 2"
    ]
  },
  "reddit": {
    "username": "your_reddit_user",
    "daily_target": 10,
    "min_delay_seconds": 600,
    "subreddits": ["YourTargetSubreddit", "AnotherOne"]
  },
  "products": {
    "YourProduct": {
      "description": "What your product does (AI uses this to craft mentions)",
      "trigger_keywords": ["keyword1", "keyword2"]
    }
  },
  "reply_style": {
    "tone": "knowledgeable practitioner sharing experience",
    "max_length_x": 260,
    "max_length_reddit": 400,
    "rules": [
      "Lead with genuine insight about the post",
      "Mention product as 'what we use/built' — not as an ad",
      "Skip if not relevant — never force a mention"
    ]
  }
}

Environment Variables

VariableRequiredDescription
ANTHROPIC_API_KEYYesClaude API key for reply generation
BROWSERBASE_API_KEYNoOptional: persistent browser sessions across reboots
BROWSERBASE_PROJECT_IDNoOptional: pairs with Browserbase key

Architecture

social-bot/
├── bot/
│   ├── ai_engine.py        # Claude AI: relevance filter + reply generation
│   ├── browser.py           # Browser automation via browse CLI
│   ├── db.py                # SQLite: dedup, history, lead scoring
│   ├── reddit_bot.py        # Reddit: search subreddits, post comments
│   └── x_bot.py             # X/Twitter: search queries, post replies
├── dashboard/
│   ├── app.py               # Flask web dashboard
│   └── templates/           # Dashboard HTML
├── docs/
│   ├── screenshot_dashboard.png
│   ├── screenshot_reddit_reply.png
│   └── screenshot_x_reply.png
├── launchd/                 # macOS LaunchAgent plist
├── config.json              # Platform targets, keywords, products
├── run_daily.py             # Main entry point (scheduled daily)
├── warmup_reddit.py         # Reddit karma builder
├── install.sh               # One-line installer
├── setup.sh                 # Manual setup helper
├── SKILL.md                 # Claude Code / Agent Skills definition
└── .env.template            # Credential template

Two-Layer Filtering

# Layer 1: Fast keyword match (zero API cost)
def detect_product(text: str) -> Optional[str]:
    # Returns matching product name or None

# Layer 2: Claude AI relevance check
# If Layer 1 matches, Claude decides:
#   - Is this post genuinely relevant?
#   - Can we add real value with a reply?
#   - SKIP if forcing a mention would feel unnatural

Rate Limiting & Safety

PlatformDelay Between RepliesDaily CapDeduplication
Reddit10 minutes10 postsSQLite (URL-based)
X/Twitter5 minutes20 postsSQLite (URL-based)

Reddit Warmup

New Reddit accounts need karma before posting in restricted subreddits. The warmup mode:

  • Visits safe, low-moderation subreddits (r/karma, r/CasualConversation, r/self)
  • Claude Haiku generates authentic short comments (no product mentions)
  • 90-180 second natural delays between posts
  • Default: 8 comments per session, configurable
python3 warmup_reddit.py          # default 8 comments
python3 warmup_reddit.py --target 15  # custom target

Expected Results

With default settings (X: 20/day, Reddit: 10/day):

MetricMonthly
Posts covered600+ targeted posts
Users reached600+ people actively discussing your niche
Click-through~10-15% visit your profile/link
Cost~$0.30/day (Claude API at ~$0.01/reply)

This isn't viral growth — it's consistent, targeted brand presence in conversations where your product is genuinely relevant.

Known Limitations

IssueCauseWorkaround
Reddit comments auto-removedAccount karma < 10 or age < 10 daysRun warmup mode for 1-2 weeks first
Some X replies failPage structure changes or rate limitsAuto-retry with backoff, skips on persistent failure
Low match rate on some daysToday's posts don't match your keywordsAdd more subreddits and search queries

FAQ

Is this against Reddit/X terms of service?

This tool uses browser automation (not API abuse) and generates unique, contextually relevant responses (not spam). However, automated posting always carries platform risk. Use responsibly, keep daily volumes reasonable, and ensure your replies genuinely add value to conversations.

How do I add my own product?

Edit the products section in config.json. Add your product name, description (used by Claude to craft natural mentions), and trigger keywords. Then update search_queries and subreddits to target where your audience hangs out.

Can I use this without Claude Code?

Yes. run_daily.py is a standalone script. You just need Python 3.9+, the browse CLI, and an Anthropic API key. The Claude Code skill integration is optional.

How much does it cost to run?

About $0.01 per reply (Claude API). At 30 replies/day, that's roughly $9/month. Browser automation is free — no Reddit or X API fees.

Contributing

PRs welcome. Please test your changes with both platforms before submitting.

License

MIT


Built with Claude AI • Browser automation via browse CLI

常见问题

What is social-bot?

social-bot is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by mguozhen. Reddit & X auto-reply bot — browser-based, Claude AI generated replies for Solvea/VOC.ai. It has 110 GitHub stars.

Is social-bot safe to use?

Yes. social-bot passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install social-bot?

Clone the repository with "git clone https://github.com/mguozhen/social-bot" and add it to your Claude Code skills directory (see the Installation section above). social-bot ships a SKILL.md manifest, so compatible agents can discover and load it automatically.

What programming language is social-bot written in?

social-bot is primarily written in Python. It is open-source under mguozhen on GitHub, so you can review or fork the full source.

Are there alternatives to social-bot?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh social-bot against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情