skills/grok-ai/SKILL.md
Integrates with X/Twitter's Grok AI for chat, image generation, tweet analysis, and content creation. Automates Grok prompts, scrapes Grok responses, and uses Grok for content strategy. Requires X Premium+. Use when users want to use Grok AI for content generation, analysis, or chat automation on X.
npx skillsauth add RanaPriyansh/XActions grok-aiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
tools
Free MCP server providing 68+ tools for AI agents to automate X/Twitter. Scrapes profiles, followers, tweets. Posts, follows, likes, retweets, downloads videos, analyzes sentiment, monitors brands, manages DMs, runs workflows, and more. Uses local Puppeteer -- no API keys or payments required. Compatible with Claude Desktop, Cursor, Windsurf, VS Code. Use when setting up or using AI agent Twitter automation via MCP.
tools
Command-line interface for scraping X/Twitter data, managing MCP server config, and running automation. Scrapes profiles, followers, tweets, search results, and more from terminal. Outputs text, JSON, or CSV. Uses Puppeteer stealth. Use when running Twitter operations from command line or automated pipelines.
content-media
Researches trending topics and competitor threads to generate high-engagement thread content with optimized hooks, value ladders, and calls to action. Use when creating threads or planning viral content.
tools
Mass unfollow on X/Twitter via browser console scripts. Unfollows everyone, only non-followers, non-followers with username logging, smart time-based unfollow with whitelists, and follow/following ratio management. Use when cleaning up a following list, removing non-followers, bulk unfollowing accounts, or optimizing your follow ratio.