From xactions
Automates Grok AI interactions on X/Twitter via browser console JavaScript for chat, image generation, tweet analysis, and content strategy. Requires X Premium+. Use for AI-assisted content workflows on X.
How this skill is triggered — by the user, by Claude, or both
Slash command
/xactions:grok-aiThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Browser console scripts for automating interactions with X's built-in Grok AI assistant.
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.
npx claudepluginhub nirholas/xactionsAutomates content posting on X/Twitter via browser console scripts: threads, scheduling, polls, auto-reposts, previews, quote-tweets, repurposing, and viral tweet plugs. Use for social media content workflows.
X (Twitter) automation for posting, liking, replying, retweeting, and quoting tweets via browser automation.
Posts text, images, videos, and long-form Markdown articles to X (Twitter) via Chrome browser automation. Handles regular posts, videos, quote tweets, and articles.