packages/skills/skills/social-autoposter/SKILL.md
Automate social media posting across Reddit, X/Twitter, LinkedIn, and Moltbook. Find threads, post comments, create original posts, track engagement stats. Use when: 'post to social', 'social autoposter', 'find threads to comment on', 'create a post', 'audit social posts', 'update post stats'.
npx skillsauth add mediar-ai/skillhubz social-autoposterInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Automates finding, posting, and tracking social media comments and original posts across Reddit, X/Twitter, LinkedIn, and Moltbook.
| Command | What it does |
|---------|-------------|
| /social-autoposter | Comment run — find threads + post comment + log (cron-safe) |
| /social-autoposter post | Create an original post/thread (manual only, never cron) |
| /social-autoposter stats | Update engagement stats via API |
| /social-autoposter engage | Scan and reply to responses on our posts |
| /social-autoposter audit | Full browser audit of all posts |
View your posts live: https://yourapp.com/stats/[your_handle]
The handles come from config.json → accounts.*.handle/username. Each platform account has its own URL.
| Platform | Tool to use | Never use |
|----------|-------------|-----------|
| Reddit | reddit-agent MCP | macos-use, Playwright |
| X/Twitter | twitter-agent MCP | macos-use, Playwright |
| LinkedIn | macos-use | — |
| Moltbook | curl API | — |
Reddit and Twitter have dedicated MCP agents with pre-loaded browser sessions. Using macos-use or Playwright for these platforms will fail or post from the wrong account.
Before doing anything, read ~/social-autoposter/config.json. Everything — accounts, projects, subreddits, content angle — comes from there.
cat ~/social-autoposter/config.json
Key fields you'll use throughout every workflow:
accounts.reddit.username — Reddit handle to post asaccounts.twitter.handle — X/Twitter handleaccounts.linkedin.name — LinkedIn display nameaccounts.moltbook.username — Moltbook usernamesubreddits — list of subreddits to monitor and post incontent_angle — the user's unique perspective for writing authentic commentsprojects — products/repos to mention naturally when relevant (each has name, description, website, github, links, topics). The links object has per-platform URLs: links.reddit, links.twitter, links.linkedin, links.github, etc. Always use links[platform] for the current platform — e.g. links.reddit when posting on Reddit, links.twitter on X. Fall back to website or github only if links[platform] is absent.database — unused (DB is Neon Postgres via DATABASE_URL in .env)Use these values everywhere below instead of any hardcoded names or links.
Standalone Python scripts — no LLM needed.
python3 ~/social-autoposter/scripts/find_threads.py --include-moltbook
python3 ~/social-autoposter/scripts/scan_replies.py
python3 ~/social-autoposter/scripts/update_stats.py --quiet
/social-autoposter)Option A — Script (preferred):
python3 ~/social-autoposter/scripts/find_threads.py --include-moltbook
Option B — Browse manually:
Browse /new and /hot on the subreddits from config.json. Also check Moltbook via API.
Option C — Twitter search (for X/Twitter engagement):
Use twitter-agent MCP to search https://x.com/search?q=QUERY&f=live. Build OR queries from topic clusters:
"social media leads" OR "reddit marketing" OR "organic distribution""startup marketing" OR "indie hacker" OR "first users""distribution is everything" OR "reply guy" OR "content marketing""AI agent marketing" OR "side project users" OR "B2B lead gen"Use f=live for recent tweets. Look for tweets with 5+ replies or 50+ views for better reach. Vary search queries across runs to find fresh threads.
content_angle in config.jsonSELECT thread_url FROM postsSELECT our_content FROM posts ORDER BY id DESC LIMIT 5
Check tone, length cues, thread age. Find best comment to reply to (high-upvote comments get more visibility).
Follow Content Rules below. 2-3 sentences, first person, specific details from content_angle. No product links in top-level comments. When mentioning a project, always use the platform-specific tracking link (e.g. yourapp.com/x on X, yourapp.com/r on Reddit).
Reddit (use reddit-agent MCP — NOT macos-use or Playwright):
reddit-agent MCP tools to navigate to the thread, submit the comment, and capture the permalinkconfig.json → accounts.reddit.usernameX/Twitter (use twitter-agent MCP — NOT macos-use or Playwright):
twitter-agent MCP tools to navigate to the tweet, submit the reply, and capture the URLconfig.json → accounts.twitter.handleLinkedIn (browser automation via macos-use):
config.json → accounts.linkedin.nameMoltbook (API — no browser needed):
source ~/social-autoposter/.env
curl -s -X POST -H "Authorization: Bearer $MOLTBOOK_API_KEY" -H "Content-Type: application/json" \
-d '{"title": "...", "content": "...", "type": "text", "submolt_name": "general"}' \
"https://www.moltbook.com/api/v1/posts"
On Moltbook: write as agent ("my human" not "I"). Max 1 post per 30 min.
Verify: fetch post by UUID, check verification_status is "verified".
INSERT INTO posts (platform, thread_url, thread_author, thread_author_handle,
thread_title, thread_content, our_url, our_content, our_account,
source_summary, status, posted_at)
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, 'active', NOW());
Use the account value from config.json for our_account.
If sync_script is set in config.json, run it after logging.
/social-autoposter post)Manual only — never run from cron. Original posts are high-stakes and need human review.
SELECT platform, thread_title, posted_at FROM posts
WHERE source_summary LIKE '%' || %s || '%' AND posted_at >= NOW() - INTERVAL '30 days'
ORDER BY posted_at DESC;
NEVER post the same or similar content to multiple subreddits. This is the #1 AI detection red flag. Each post must be unique to its community.
Choose the single best subreddit from config.json → subreddits for this topic. Tailor the post to that community's culture and tone.
Anti-AI-detection checklist (must pass ALL before posting):
Read it out loud. If it sounds like a blog post or a ChatGPT response, rewrite it.
Reddit (use reddit-agent MCP — NOT macos-use or Playwright):
reddit-agent MCP tools to navigate to r/[subreddit]/submit, fill in the title and body, submit, and capture the permalink.INSERT INTO posts (platform, thread_url, thread_author, thread_author_handle,
thread_title, thread_content, our_url, our_content, our_account,
source_summary, status, posted_at)
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, 'active', NOW());
For original posts: thread_url = our_url, thread_author = our account from config.json.
After posting, you MUST:
/social-autoposter stats)python3 ~/social-autoposter/scripts/update_stats.py
After running, view updated stats at https://s4l.ai/stats/[handle]. The DB syncs to Neon Postgres via syncfield.sh (called automatically by stats.sh). Changes appear on the website within ~5 minutes.
/social-autoposter engage)python3 ~/social-autoposter/scripts/scan_replies.py
SELECT r.id, r.platform, r.their_author, r.their_content, r.their_comment_url,
r.depth, p.thread_title, p.our_content
FROM replies r JOIN posts p ON r.post_id = p.id
WHERE r.status='pending' ORDER BY r.discovered_at ASC LIMIT 10
Draft replies: 2-4 sentences, casual, expand the topic. Apply Tiered Reply Strategy.
Post via reddit-agent MCP (Reddit), twitter-agent MCP (X/Twitter), or API (Moltbook). Update:
UPDATE replies SET status='replied', our_reply_content=%s, our_reply_url=%s,
replied_at=NOW() WHERE id=%s
twitter-agent MCP)Use twitter-agent MCP tools to navigate to https://x.com/notifications/mentions. Find replies to the handle in config.json. Respond to substantive ones (max 5). Log to replies table.
Notification replies default to Tier 2. When someone replies to your comment, they've already shown interest. This is the ideal moment to naturally mention the product. Don't hard-sell, but do weave in a reference with the tracking link (e.g. yourapp.com/x). Examples:
Skip Tier 2 only if the reply is off-topic, a one-word response ("Cool"), or crypto/spam.
Find posts that earned >2 upvotes but haven't had a link appended yet:
SELECT id, platform, our_url, our_content, thread_title, source_summary
FROM posts
WHERE status='active'
AND upvotes > 2
AND posted_at < NOW() - INTERVAL '6 hours'
AND link_edited_at IS NULL
AND our_url IS NOT NULL
ORDER BY upvotes DESC
For each post:
config.json → projects[] whose topics best match the thread. If no project fits, skip.Platform-specific editing:
Reddit (use reddit-agent MCP — NOT macos-use or Playwright):
reddit-agent MCP tools to navigate to the comment permalink on old.reddit.com\n\n[link text] to the existing contentMoltbook (API):
source ~/social-autoposter/.env
curl -s -X PATCH -H "Authorization: Bearer $MOLTBOOK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"content": "[original content]\n\n[link text]"}' \
"https://www.moltbook.com/api/v1/posts/[uuid]"
X/Twitter: Skip — editing is not supported.
LinkedIn: Skip — editing is unreliable via automation.
UPDATE posts SET link_edited_at=NOW(), link_edit_content=%s WHERE id=%s
No limit on edits per engage run.
/social-autoposter audit)Visit each post URL via the appropriate agent: reddit-agent MCP for Reddit posts, twitter-agent MCP for X/Twitter posts, macos-use for LinkedIn. Check status (active/deleted/removed/inactive). Update engagement metrics. Report summary.
content_angle in config.json. Real numbers, real experiences, not generalizations.content_angle from config.json. If the thread doesn't connect, skip it.config.json → projects[].links. For example, mention yourapp.com/x on X/Twitter, yourapp.com/r on Reddit, yourapp.com/li on LinkedIn. Never use bare domains like s4l.ai — always use the tracking path so PostHog can attribute the traffic. If a project has no links entry, use the bare website URL.BAD: "Makes sense — Claude already tries to tail the output on its own but by then the tokens are already in context." GOOD: "gonna try this, I run 5 agents in parallel and my API bill is becoming a second rent payment"
BAD: "What everyone here is describing is basically specification-driven development." GOOD: "I spend more time writing CLAUDE.md specs than I ever spent writing code. the irony is I'm basically doing waterfall now and shipping faster than ever."
BAD title: "What I Wish I'd Known Before My First Vipassana Retreat: A Complete Guide" GOOD title: "just did my 7th course, some things that surprised me"
BAD body: Structured with headers, bold, numbered lists, "As a tech founder..." GOOD body: Paragraphs, incomplete thoughts, personal details, casual tone, ends with a genuine question
Tier 1 — Default (no link): Genuine engagement. Expand topic, ask follow-ups. Most replies.
Tier 2 — Natural mention: Conversation touches a topic matching one of the user's projects (from config.json → projects[].topics). Mention casually, link only if it adds value. Triggers: "what tool do you use", problem matches a project topic, 2+ replies deep, or replying to someone who engaged with your post (notifications/mentions).
Tier 3 — Direct ask: They ask for link/try/source. Give it immediately using projects[].links[current_platform] from config.json (e.g. links.reddit on Reddit, links.twitter on X, links.linkedin on LinkedIn, links.github on GitHub). Fall back to website or github only if the platform-specific link is missing.
posts: id, platform, thread_url, thread_title, our_url, our_content, our_account, posted_at, status, upvotes, comments_count, views, source_summary
Key fields in posts: id, platform, thread_url, thread_title, our_url, our_content, our_account, posted_at, status, upvotes, comments_count, views, source_summary, link_edited_at, link_edit_content
replies: id, post_id, platform, their_author, their_content, our_reply_content, status (pending|replied|skipped|error), depth
Reddit: Use reddit-agent MCP (NOT macos-use or Playwright). The reddit-agent has a pre-loaded Reddit session. Always use old.reddit.com URLs for reliable element targeting.
X/Twitter: Use twitter-agent MCP (NOT macos-use or Playwright). The twitter-agent has a pre-loaded X/Twitter session. Reply to existing tweets, 1-2 sentences ideal.
LinkedIn: Professional tone, brief. Comments don't have stable URLs. Browser only.
Moltbook: Full REST API, no browser needed. Base: https://www.moltbook.com/api/v1. Auth: Bearer $MOLTBOOK_API_KEY. Agent-first platform — write as an agent.
tools
# X Twitter Scraper Use Xquik for X/Twitter tweet search, user lookup, profile tweets, follower export, media download, monitors, webhooks, posting workflows, and MCP-backed API exploration. ## Prerequisites - A Xquik API key in `XQUIK_API_KEY`. - Internet access to `https://xquik.com/api/v1`, `https://xquik.com/mcp`, and `https://docs.xquik.com`. - A clear user request that identifies the target tweets, users, accounts, keywords, media, monitor, webhook, or write action. ## Source Truth -
tools
Use when the user says "mk0r", "appmaker CLI", "open a VM", "run something in the sandbox", "talk to the VM agent", "spin up an E2B sandbox", or "chat with appmaker from CLI." Wraps the `mk0r` CLI to list projects, exec commands inside their E2B sandboxes, stream chat with the VM agent (same `/api/chat` the web UI uses), toggle SOAX residential IP, manage schedules, and copy files. Supports a sticky default project via `mk0r projects use`.
testing
Use when the user mentions "influencer candidates", "social media operator", "check proposals on Upwork/Fiverr", "review influencer applications", "qualify candidates", or "reach out to operators". Manages the IG/TikTok account operator hiring pipeline — review applicants, check replies, qualify, and do proactive outreach.
tools
End-to-end newsletter pipeline: investigate recent features, draft, send via API endpoint, and track delivery/open/click metrics.