X Brand Operator
by @caoqi
Automate X/Twitter brand account tasks including posting, keyword engagement, scheduling, and reporting using xurl API with browser fallback and Telegram ale...
clawhub install x-brand-operatorπ About This Skill
name: x-brand-operator description: Automate X/Twitter brand account operations using OpenClaw native tools (xurl + browser fallback + cron). Use when setting up or managing automated posting, keyword engagement, weekly reporting, or Substack content generation for a brand account. Triggers on: "set up X posting for [brand]", "automate my Twitter account", "schedule tweets", "keyword engagement on X", "brand social media automation".
X Brand Operator
End-to-end X/Twitter brand account automation using xurl (X API v2) with browser fallback. No extra API keys beyond xurl app config.
Core Tools
xurl --app β Post, reply, like, follow, search via X API v2browser β Fallback for posting/replying when xurl fails (profile: user)cron β Schedule recurring tasks (post, engage, report)message β Send Telegram alerts on failures or completionsPosting a Tweet
Primary (xurl):
xurl --app post ""
Fallback (browser, only if xurl fails):
1. browser open β https://x.com/compose/post (profile: user)
2. Wait 4 seconds
3. browser snapshot β find text input ref
4. browser act β click input, type tweet
5. browser snapshot β find Post button ref
6. browser act β click Post
7. browser snapshot β confirm success
Rule: Try each method once only. On failure β notify via Telegram, include draft text, then exit. Never loop.
Replying to a Tweet
Primary: xurl --app
Fallback: Open tweet URL in browser β snapshot β click Reply β type β submit.
Content Quality Standard (score before posting)
| Criterion | Weight | |-----------|--------| | Hook strength | 25 pts | | Value density | 25 pts | | Platform fit | 20 pts | | CTA clarity | 15 pts | | Conciseness | 15 pts |
Minimum score: 70/100. Rewrite once if below threshold; do not post if still failing.
Format rules: Single paragraph, no line breaks, β€ 280 chars, 1β2 hashtags, end with brand URL.
Content Pillar Rotation (daily posting)
Rotate through pillars by day of week. See references/content-strategy.md for pillar definitions, templates, and tone guide. Adapt pillars to the brand's positioning.
Keyword Engagement (weekly)
Search target keywords β filter genuine posts (skip bots/ads) β like + reply + follow author.
Reply quality rules:
See references/engagement-playbook.md for keyword lists and reply templates.
Cron Job Setup
See references/cron-config.md for recommended schedules and full agentTurn prompt templates for:
Failure Handling
| Situation | Action | |-----------|--------| | xurl fails | Switch to browser fallback immediately | | Browser also fails | Send Telegram alert with draft text, exit | | Any step in engagement fails | Skip that item, continue to next | | Always | Send Telegram summary at end of engagement/report runs |
Never retry more than once per method. Never loop.