x-automation
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
02 资源文件 14
- 参考文档_meta.json293 B
- 参考文档data/README.md507 B
- 参考文档package.json417 B
- 参考文档PRIVACY_AUDIT.md1.5 KB
- 参考文档QUICKSTART.md1.2 KB
- 参考文档README.md2.1 KB
- 脚本scripts/auto-tweet.js2.3 KB
- 脚本scripts/check-trends.js1.5 KB
- 脚本scripts/generate-ideas.js1.4 KB
- 脚本scripts/post-approved.js2.5 KB
- 脚本scripts/post-single.js2.6 KB
- 脚本scripts/post.js1.6 KB
- 脚本scripts/trends.js2.0 KB
- 参考文档WORKFLOW.md4.4 KB
03 SKILL.md 正文
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
Usage
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.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.