From xactions
Automates Grok AI interactions on X/Twitter via browser console scripts for chat, image generation, tweet analysis, and content creation. Requires X Premium+.
npx claudepluginhub harryvik990/x-autoThis skill uses the workspace's default tool permissions.
Browser console scripts for automating interactions with X's built-in Grok AI assistant.
Automates Grok AI interactions on X/Twitter via browser console scripts for chat, image generation, tweet analysis, and content creation. Requires X Premium+.
Provides X/Twitter content strategy guidance: generates tweets/threads with hooks, reviews content performance, analyzes accounts, offers growth and monetization tips from top creators and algorithm data.
Posts text, images, videos, and long-form Markdown articles to X (Twitter) using real Chrome with CDP to bypass anti-bot detection.
Share bugs, ideas, or general feedback.
Browser console scripts for automating interactions with X's built-in Grok AI assistant.
| Goal | File | Navigate to |
|---|---|---|
| Chat with Grok | src/grokIntegration.js | x.com/i/grok |
| Generate images | src/grokIntegration.js | x.com/i/grok |
| Analyze tweet with Grok | src/grokIntegration.js | Any tweet |
File: src/grokIntegration.js
Automates Grok AI prompts and response scraping.
x.com/i/grokXActions.ask(prompt) -- Send a prompt to GrokXActions.scrapeResponse() -- Capture Grok's latest responseXActions.generateImage(prompt) -- Request image generationXActions.batchAsk(prompts[]) -- Send multiple prompts sequentiallyXActions.export() -- Download conversation history as JSON| Element | Selector |
|---|---|
| Grok input | [data-testid="grokInput"] or textarea[placeholder] |
| Send button | [data-testid="grokSend"] |
| Response container | [data-testid="grokResponse"] |
| Image output | [data-testid="grokImage"] |
| Grok nav | a[href="/i/grok"] |
XActions.ask("What are the top 5 trending topics in {niche} right now?")XActions.ask("Write 3 tweet variations about {topic}")XActions.ask("Analyze this tweet for engagement: {tweet_text}")XActions.scrapeResponse()src/threadComposer.js for thread creationawait XActions.batchAsk([
"Write a hot take about AI agents",
"Write a thread hook about productivity",
"Write a poll question about remote work",
"Suggest 5 tweet ideas about {niche}",
]);
XActions.export(); // Download all responses
XActions.generateImage("Professional headshot, tech founder, minimalist")For programmatic AI content without Grok, the XActions MCP server includes AI tools powered by OpenRouter:
| MCP Tool | Purpose |
|---|---|
x_analyze_voice | Analyze account's writing style |
x_generate_tweet | Generate tweet in user's voice |
x_rewrite_tweet | Rewrite tweet for better engagement |
x_summarize_thread | Summarize a thread |
These require an OPENROUTER_API_KEY env var but work without Premium.