# Send X Auto-Tweet (Browser) to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "x-automation",
    "name": "X Auto-Tweet (Browser)",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/nightfullstar/x-automation",
    "canonicalUrl": "https://clawhub.ai/nightfullstar/x-automation",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/x-automation",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=x-automation",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "PRIVACY_AUDIT.md",
      "QUICKSTART.md",
      "README.md",
      "SKILL.md",
      "WORKFLOW.md",
      "data/README.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/x-automation"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/x-automation",
    "downloadUrl": "https://openagent3.xyz/downloads/x-automation",
    "agentUrl": "https://openagent3.xyz/skills/x-automation/agent",
    "manifestUrl": "https://openagent3.xyz/skills/x-automation/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/x-automation/agent.md"
  }
}
```
## Documentation

### X (Twitter) Automation Skill

Automate X posts via browser control - bypass $200/month API costs.

### What It Does

Scrape trending topics from your personalized "For You" feed
Generate tweet ideas based on trends (crypto/Web3/tech focused)
Schedule tweets throughout the day for natural posting
Post via browser automation - no API keys needed
Queue management for approval workflows

### Why This Exists

X API pricing is insane:

Free tier: Write-only, can't read anything
Basic: $200/month for 15k tweets read
Pro: $5,000/month

This skill uses browser automation instead. Zero API costs.

### Features

✅ Trend Scraping

Navigates to X.com/explore
Extracts trending topics from "For You" tab
Saves to JSON for AI processing

✅ Tweet Generation

AI generates 3-5 tweet ideas based on trends
Customizable tone/voice
Length optimization (150-250 chars for engagement)

✅ Scheduled Posting

Space tweets throughout the day
Human-like delays between posts
Approval queue workflow

✅ Browser Automation

Uses OpenClaw browser control
Requires one-time login
Session persists across runs

### Installation

cd ~/.openclaw/workspace/skills/x-automation
npm install

### 1. Manual Tweet Generation

Ask your agent:

"Check X trends and generate 3 tweet ideas"

The agent will:

Navigate to X.com/explore
Scrape trending topics
Generate tweet ideas
Send to you for approval
Post approved tweets

### 2. Automated Posting (Cron)

Set up a cron job to run every 4 hours:

{
  "schedule": { "kind": "every", "everyMs": 14400000 },
  "payload": {
    "kind": "agentTurn",
    "message": "Check X trends, generate 2-3 tweet ideas, send to Telegram for approval"
  },
  "sessionTarget": "isolated"
}

### 3. Direct Posting

"Post this tweet: <your text>"

### Configuration

No API keys needed! Just:

Log in to X.com in OpenClaw browser
Keep browser session active (or re-login when needed)
Customize tweet voice in your SOUL.md or prompt

### Tweet Generation Guidelines

Default focus areas (customize in your prompts):

Crypto trends (ETH, Base L2, DeFi)
Web3 development
Tech commentary
Product updates (if applicable)

Default tone:

Direct, opinionated
No corporate speak
Short & punchy (150-250 chars)
Engagement-focused

### File Structure

x-automation/
├── scripts/
│   ├── auto-tweet.js       # Main automation
│   ├── post.js             # Single tweet posting
│   ├── post-approved.js    # Post from queue
│   └── check-trends.js     # View current trends
├── data/                   # Created on first run
│   ├── latest-trends.json
│   ├── approved-queue.json
│   └── tweet-history.json
├── SKILL.md
├── README.md
└── package.json

### Safety Features

No auto-posting without approval (unless you configure it)
Human-like delays (30-60s between tweets)
Daily limits (configurable, default 10/day)
Queue review before posting

### Anti-Detection

Uses real browser session (not headless)
Random delays between actions
Natural posting schedule
Human-like mouse movements (Playwright)

### Limitations

Requires browser to stay logged in
Can be detected if too aggressive
Manual login required (can't automate 2FA)

### Legal Note

This automates YOUR account via YOUR browser. You're not violating X ToS any more than using the website normally. Just don't spam.

### Pro Tips

Optimal posting times (adjust for your timezone):

Morning: 9-10 AM (commute browsing)
Lunch: 1-2 PM (break time)
Evening: 7-9 PM (peak Twitter hours)
Late: 11 PM-12 AM (night crew)

Posting frequency:

2-4 tweets/day is natural
Space out by 3-4 hours minimum
Don't post all at once

Content strategy:

Comment on trends (show you're plugged in)
Share insights (demonstrate expertise)
Mention your product (subtle, 1 in 5 tweets)
Engage with replies (build community)

### Examples

See WORKFLOW.md for detailed examples of:

Trend scraping output
Generated tweet samples
Approval workflows
Scheduling strategies

### Support

This skill is credential-free and safe to share. No API keys, no passwords, no private data.

Issues? Check:

Is browser logged into X?
Is OpenClaw browser control running?
Are cron jobs properly configured?

Built for crypto devs who refuse to pay $200/month for an API that should be free.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: nightfullstar
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-05-07T17:22:31.273Z
- Expires at: 2026-05-14T17:22:31.273Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/x-automation)
- [Send to Agent page](https://openagent3.xyz/skills/x-automation/agent)
- [JSON manifest](https://openagent3.xyz/skills/x-automation/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/x-automation/agent.md)
- [Download page](https://openagent3.xyz/downloads/x-automation)