Social Media Agent
by @psmamm
Autonomous social media management for X/Twitter using only OpenClaw native tools. Use when a user wants to automate X posting, generate content, track engagement, or build an audience. Triggers on requests about tweets, social media strategy, X engagement, content calendars, or growing a following. No API keys required β uses browser automation and web_fetch.
clawhub install social-media-agentπ About This Skill
name: social-media-agent description: Autonomous social media management for X/Twitter using only OpenClaw native tools. Use when a user wants to automate X posting, generate content, track engagement, or build an audience. Triggers on requests about tweets, social media strategy, X engagement, content calendars, or growing a following. No API keys required β uses browser automation and web_fetch.
Social Media Agent
Manage an X/Twitter account autonomously using only OpenClaw's built-in tools. No external APIs, no npm packages, no API keys needed.
Core Tools
browser β Post tweets, engage with posts, take screenshotsweb_fetch β Scrape profiles, trending topics, news for contentsessions_spawn β Run content generation in parallelcron β Schedule regular posting and engagementmemory_search / files β Track what was posted, engagement statsPosting a Tweet
1. Ensure Chrome is running with remote debugging OR use OpenClaw's built-in browser 2. Navigate to x.com/compose/post 3. Take a snapshot to find the text input 4. Type the tweet text 5. Click the Post button 6. Verify with another snapshot
browser open β x.com/compose/post
browser snapshot β find textbox ref
browser act β click textbox ref
browser act β type tweet text
browser snapshot β find Post button ref
browser act β click Post button
Important timing: Wait 3-4 seconds after page loads before interacting.
Content Generation Strategy
Content Pillars
Rotate through these categories for balanced content:| Pillar | % | Examples | |--------|---|---------| | Industry Insights | 40% | AI news commentary, tech analysis | | Building in Public | 30% | Progress updates, behind-the-scenes | | Philosophy/Thought | 20% | Hot takes, provocative questions | | Engagement/Humor | 10% | Memes, replies, community interaction |
Content Pipeline
1. Research: Use web_fetch on news sites (theverge.com, techcrunch.com, news.ycombinator.com)
2. Generate: Spawn a content-agent via sessions_spawn with research results
3. Store: Save drafts in memory/tweet-drafts-YYYY-MM-DD.json
4. Review: Check drafts for quality, brand consistency
5. Post: Use browser automation to publish
6. Track: Log posted tweets in memory/social-log.json
Draft Format
{
"text": "Tweet text under 280 chars",
"topic": "What it's about",
"hook": "Why it might engage"
}
Engagement Strategy
Posting Rules
Growing Followers
1. Post consistently (daily) 2. Engage with relevant accounts (reply, quote tweet) 3. Use trending topics when relevant 4. Be authentic β no generic AI responsesScheduling with Cron
Set up automated posting schedules:
Morning post: cron expr "0 9 * * *" β Industry insight
Afternoon post: cron expr "0 15 * * *" β Building update
Evening post: cron expr "0 21 * * *" β Hot take
Use sessionTarget: "isolated" with payload.kind: "agentTurn" for autonomous posting.
Anti-Patterns (Avoid)
Analytics Tracking
Track engagement in memory/social-log.json:
{
"date": "2026-02-08",
"posted": 3,
"platform": "x",
"handle": "@YourHandle",
"tweets": [
{"text": "...", "time": "09:00", "topic": "ai-news"}
]
}
Review weekly: What topics got most engagement? Adjust strategy accordingly.
Quick Reference
For detailed content templates and examples, see references/content-templates.md.