⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
x-monitor
Monitor X/Twitter accounts and topics with AI-enriched Discord alerts. Cron-powered, fully agentic.
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
🐦 X Monitor
An OpenClaw skill — Monitor X/Twitter accounts and topics with AI-enriched Discord alerts. Fully agentic, cron-powered, self-healing.
What It Does
X Monitor watches X/Twitter on your behalf and pushes rich Discord alerts in real time:
| Feature | Details |
|---|---|
| Account Monitor | Polls up to N accounts every 5 min, detects new tweets, fetches thread context (first 3 replies), sends AI-summarized Discord embed |
| Topic Research | Searches live X every 6h per topic, filters bots/spam, sends AI-synthesized Discord digest |
| Hot Trend Detection | Alerts when a topic spikes 2.5× its rolling average (with 12h cooldown) |
| AI Insights | Uses your configured OpenClaw agent to generate 1-2 sentence summaries and structured THEMES/VIBE/SIGNAL digests |
| Discord Buttons | Inline Mute / Remove / Pause / Search buttons on every alert |
| Self-Healing | Exponential backoff on rate limits, session validation, emergency stop on combined failures |
Prerequisites
| Requirement | Notes |
|---|---|
| OpenClaw | Must be installed and gateway running |
| bird CLI (agent-reach) | X/Twitter API wrapper. Install: brew install openclaw/tap/agent-reach |
| Google Chrome | For session validation and thread context fetching |
| X.com account | Your auth cookies (auth_token + ct0) |
| Discord bot | With a token and permissions to post in your channels |
| Node.js ≥ 18 |
Installation
# 1. Clone the repo
git clone https://github.com/your-username/x-monitor.git
cd x-monitor
# 2. Install dependencies
npm install
# 3. Run the setup wizard
npm run setup
The setup wizard will walk you through:
- Entering your X.com
auth_tokenandct0cookies - Entering your Discord bot token and channel IDs
- Creating
data/andlogs/directories - (Optional) Verifying your X session
- (Optional) Installing OpenClaw cron jobs
Getting Your Credentials
X.com auth_token + ct0
- Open x.com in Chrome and log in
- Press
F12→ Application tab → Cookies →https://x.com - Find
auth_tokenandct0— copy their values
Discord Bot Token + Channel IDs
- Go to discord.com/developers/applications
- Create a new application → Bot tab → copy the token
- Invite the bot to your server with
Send Messages+Use Slash Commandspermissions - Right-click any channel → Copy Channel ID (enable Developer Mode in Discord settings if needed)
Configuration
All config lives in .env (created by npm run setup or copy from .env.example):
# X.com API credentials
AUTH_TOKEN=your_auth_token_here
CT0=your_ct0_cookie_here
# Discord
DISCORD_BOT_TOKEN=your_bot_token
DISCORD_ACCOUNT_CHANNEL_ID=channel_id_for_account_alerts
DISCORD_RESEARCH_CHANNEL_ID=channel_id_for_topic_research
DISCORD_MAIN_CHANNEL_ID=channel_id_for_hot_trend_pings
# Optional — auto-detected if blank
BIRD_PATH=bird
CHROME_PATH=
CHROME_CDP_PORT=18803
# OpenClaw agent used for AI insights
OPENCLAW_AGENT=dataulu
Quick Start (After Setup)
Manage Monitored Accounts
# Add an account
npm run accounts -- add elonmusk
# Remove an account
npm run accounts -- remove elonmusk
# List all monitored accounts
npm run accounts -- list
# Show status
npm run accounts -- status
Manage Research Topics
# Add a topic
npm run topics -- add "openclaw"
# Remove a topic
npm run topics -- remove "openclaw"
# List active topics
npm run topics -- list
# Pause/resume a topic
npm run topics -- pause "openclaw"
npm run topics -- resume "openclaw"
Run Manually
# Run account monitor once
npm run monitor
# Run topic research for a topic
npm run research -- "openclaw"
# Verify X.com session
npm run session -- verify
# Reset session (re-login)
npm run session
How It Works
Every 5 min (cron) Every 6 hours (cron)
│ │
▼ ▼
┌─────────────────┐ ┌──────────────────────┐
│ headless-poll.js │ │ topic-poll.js │
│ │ │ │
│ bird user-tweets│ │ bird search "<topic>"│
│ → detect new │ │ → 24h filter │
│ → thread context│ │ → bot/spam filter │
│ → dedup SQLite │ │ → dedup SQLite │
└────────┬────────┘ └──────────┬───────────┘
│ │
▼ ▼
┌─────────────────┐ ┌──────────────────────┐
│ ai-layer.js │ │ ai-layer.js │
│ │ │ │
│ openclaw agent │ │ openclaw agent │
│ → 1-2 sentence │ │ → THEMES/VIBE/SIGNAL │
│ summary │ │ digest │
└────────┬────────┘ └──────────┬───────────┘
│ │
▼ ▼
┌─────────────────┐ ┌──────────────────────┐
│ format-alert.js │ │ topic-alert.js │
│ │ │ │
│ Discord embed │ │ Discord embed with │
│ + Mute / Remove │ │ AI digest + Pause / │
│ buttons │ │ Search / Remove btns │
└────────┬────────┘ └──────────┬───────────┘
│ │
└───────────────┬───────────────┘
▼
Discord Channel
Cron Jobs
Installed automatically by bash scripts/setup-cron.sh (or via npm run setup):
| Job | Schedule | Script |
|---|---|---|
x-account-monitor | Every 5 min | scripts/run-monitor.sh |
x-topic-research | Every 6 hours | scripts/run-research.sh |
To install manually:
bash scripts/setup-cron.sh
To verify:
openclaw cron list
OpenClaw Skill Integration
This project ships as an OpenClaw skill (SKILL.md). Once installed, your OpenClaw agent can respond to Discord slash commands:
/x-monitor
/x-monitor add elonmusk → Start monitoring @elonmusk
/x-monitor remove elonmusk → Stop monitoring
/x-monitor list → List all monitored accounts
/x-monitor status → Show health + last run
/x-research
/x-research add "openclaw" → Start tracking topic
/x-research remove "openclaw"
/x-research list
/x-research pause "openclaw"
/x-research resume "openclaw"
/x-research status
To install the skill in your OpenClaw workspace:
cp SKILL.md PIPELINE.md ~/.openclaw/workspace/skills/x-monitor/
# or add this repo to skills.load.extraDirs in openclaw.json
Or install directly from ClawHub:
clawhub install x-monitor
Project Structure
x-monitor/
├── SKILL.md # OpenClaw / ClawHub skill manifest
├── PIPELINE.md # Agentic pipeline runbook (for the AI agent)
├── .env.example # Config template — copy to .env and fill in
├── setup.js # Interactive setup wizard
├── src/
│ ├── config.js # Central config loader (dotenv + validation)
│ ├── monitor/
│ │ ├── headless-poll.js # Account monitoring engine
│ │ └── format-alert.js # Discord embed builder (accounts)
│ ├── research/
│ │ ├── topic-poll.js # Topic research engine
│ │ └── topic-alert.js # Discord embed builder (topics)
│ ├── shared/
│ │ ├── db.js # SQLite init helper
│ │ ├── discord.js # Discord REST client
│ │ ├── bird.js
// HOW IT'S BUILT
KEY FILES