ClawHub
SkillsPluginsOfficialDocsSupport
K
SkillsBytesagain X Manager

Bytesagain X Manager

loutai0307-prog@loutai0307-prog
Manage X (Twitter) account: auto-post AI-generated tweets, monitor brand mentions, auto-like relevant posts, and send Telegram approval requests for replies.

Install

$
openclaw skills install @loutai0307-prog/bytesagain-x-manager
Security check
Review
Version
1.6.0
Updated
May 18, 2026
License
MIT-0

Latest: v1.6.0

Fix: add Setup table with all required env vars; remove duplicate credentials section

CommunicationAutomation
#twitter#ai-content#engagement#social-media

BytesAgain X Manager

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.

Setup

This skill requires the following environment variables to be configured before use:

VariableRequiredDescription
X_API_KEY✅X API Key from developer.x.com (Read+Write app)
X_API_SECRET✅X API Key Secret
X_ACCESS_TOKEN✅X Access Token (account-specific)
X_ACCESS_TOKEN_SECRET✅X Access Token Secret
X_USER_ID✅Your X account numeric user ID
XAI_API_KEY✅xAI API key for Grok tweet generation
TG_TOKEN✅Telegram bot token for approval notifications
TG_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.

What This Skill Owns

  • Tweet posting and replies: publish content via X API OAuth 1.0a with pre-post validation
  • Daily content generation: create 3 tweet drafts/day using xAI trend analysis
  • Brand monitoring: scan @bytesagain mentions every 2 hours, draft replies for approval
  • Auto-like: like AI/skill related tweets to grow visibility
  • Competitor tracking: monitor @openclaw and related accounts
  • Telegram approval workflow: route all mention replies through human confirmation

What This Skill Does Not Cover

  • Sending DMs (requires additional OAuth scope not currently enabled)
  • Deleting tweets (requires explicit human authorization per tweet)
  • Deep analytics (follower growth trends, engagement rate analysis)
  • Posting images or videos (text-only)
  • Accessing private or protected accounts
  • Publishing skills to ClawHub (use skill-manager for that)

Commands

draft

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

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

monitor

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

like

Auto-like recent tweets matching AI agent / skill keywords. Skips own tweets and already-liked posts.

bash
bash scripts/script.sh like

scan-mentions

Scan recent @bytesagain mentions, draft replies via xAI, and send Telegram approval requests to operator.

bash
bash scripts/script.sh scan-mentions

send-reply

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>

status

Show pending approval queue and today's saved drafts.

bash
bash scripts/script.sh status

Approval Workflow

  1. scan-mentions detects new @bytesagain mentions
  2. xAI drafts a reply for each mention
  3. Telegram message sent to operator: original tweet + draft reply + tweet ID
  4. Operator replies 发 <tweet_id> to approve, 跳过 <tweet_id> to skip
  5. Agent calls send-reply <tweet_id> to post the approved reply

Validation Rules (pre-post checks)

All tweets are validated before posting:

CheckResult
Link in tweet body❌ Blocked (X penalizes -40%)
More than 2 hashtags❌ Blocked
Specific large numbers (e.g. 10000, 500K)❌ Blocked (may be inaccurate)
Banned words (guaranteed, make money…)❌ Blocked
No question mark⚠️ Warning only
Tweet under 50 characters⚠️ Warning only

Blocked tweets trigger a Telegram notification with the reason. Fallback preset templates are used if xAI times out.

Recommended Cron Schedule

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

State Files

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

Requirements

  • Python 3.8+
  • requests — HTTP client
  • requests-oauthlib — OAuth 1.0a for X API
bash
pip install requests requests-oauthlib

References

  • Command Boundary — full in/out-of-scope rules and safety constraints
  • API Notes — X API v2 rate limits, auth, and cost estimates

Evals

Trigger boundary test cases: evals/trigger_cases.json — 12 cases (6 positive + 6 negative)

Feedback

https://bytesagain.com/feedback/ Powered by BytesAgain | bytesagain.com

Related skills

More in Communication
ClawHub

Skills and plugins for OpenClaw agents. Part of the wider OpenClaw ecosystem.

Explore docs

SkillsPluginsOfficialAudits

Publish SkillPublish PluginCreate org

OverviewOpenClawDocsBlog

SupportGitHubDiscord

Built alongside the OpenClaw ecosystem

LobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projectsLobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projects

© 2026 OpenClaw Foundation

Privacy policy·Status·Deployed on Vercel·Powered by Convex

....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals