管理X(Twitter)账号:自动发布AI生成推文、监控品牌提及、自动点赞相关帖子,并通过Telegram发送审批请求进行回复。
Manage your X (Twitter) account with automated posting, monitoring, and engagement. Generates tweet drafts via xAI, validates content before posting, and routes mention replies through human approval.
This skill requires the following environment variables to be configured before use:
VariableRequiredDescriptionX_API_KEY✅X API Key from developer.x.com (Read+Write app)X_API_SECRET✅X API Key SecretX_ACCESS_TOKEN✅X Access Token (account-specific)X_ACCESS_TOKEN_SECRET✅X Access Token SecretX_USER_ID✅Your X account numeric user IDXAI_API_KEY✅xAI API key for Grok tweet generationTG_TOKEN✅Telegram bot token for approval notificationsTG_CHAT✅Telegram chat ID to receive notifications
No credentials are stored or transmitted by this skill. All values are read from environment variables at runtime only.
Generate 3 tweet drafts for the day using xAI trend analysis. Saves to /tmp/x-drafts-YYYY-MM-DD.json.
bash
bash scripts/script.sh draft
Post a tweet from today's saved drafts. Use --index to select which draft (0=first, 1=second, 2=third).
bash
bash scripts/script.sh post --index 0
bash scripts/script.sh post --index 1
bash scripts/script.sh post --index 2
Run brand and competitor monitoring report. Tracks @bytesagain mentions, @openclaw activity, and AI skill trends. Sends Telegram report with Chinese summary.
bash
bash scripts/script.sh monitor
Auto-like recent tweets matching AI agent / skill keywords. Skips own tweets and already-liked posts.
bash
bash scripts/script.sh like
Scan recent @bytesagain mentions, draft replies via xAI, and send Telegram approval requests to operator.
bash
bash scripts/script.sh scan-mentions
Send a pre-approved reply to one or more tweets. Multiple IDs are staggered 30–90 seconds apart to appear natural.
bash
bash scripts/script.sh send-reply <tweet_id>
bash scripts/script.sh send-reply <tweet_id1> <tweet_id2> <tweet_id3>
Show pending approval queue and today's saved drafts.
bash
bash scripts/script.sh status
scan-mentions detects new @bytesagain mentionssend-reply <tweet_id> to post the approved replyAll tweets are validated before posting:
CheckResultLink in tweet body❌ Blocked (X penalizes -40%)More than 2 hashtags❌ BlockedSpecific large numbers (e.g. 10000, 500K)❌ Blocked (may be inaccurate)Banned words (guaranteed, make money…)❌ BlockedNo question mark⚠️ Warning onlyTweet under 50 characters⚠️ Warning only
Blocked tweets trigger a Telegram notification with the reason. Fallback preset templates are used if xAI times out.
text
30 8 * * * monitor # Daily brand report
0 9 * * * draft # Generate daily drafts (1 xAI call/day)
0 9,13,17,21 * * * like # Auto-like 4x daily
5 10 * * * post --index 0 # Post tweet #1
5 15 * * * post --index 1 # Post tweet #2
5 20 * * * post --index 2 # Post tweet #3
0 */2 * * * scan-mentions # Check mentions every 2 hours
FilePurpose/tmp/x-drafts-YYYY-MM-DD.jsonDaily tweet drafts/tmp/x-liked-ids.jsonDedup: already-liked IDs (last 500)/tmp/x-seen-mentions.jsonDedup: processed mention IDs (last 200)/tmp/x-pending-replies.jsonPending approval queue
requests — HTTP clientrequests-oauthlib — OAuth 1.0a for X APIbash
pip install requests requests-oauthlib
Trigger boundary test cases: evals/trigger_cases.json — 12 cases (6 positive + 6 negative)
https://bytesagain.com/feedback/ Powered by BytesAgain | bytesagain.com