nirholas/xactions

grok-ai

Integrates with X/Twitter's Grok AI for chat, image generation, tweet analysis, and content creation.

First seen Feb 28, 2026

Installation

$ npx skills add nirholas/xactions --skill grok-ai

Summary

  • 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.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from nirholas/xactions · top by installs.

npx skills add nirholas/xactions

Browse all from nirholas/xactions

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 510
License LICENSE
Default branch main
Open issues 9
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version4.0
LicenseApache-2.0
More metadata
author
nichxbt
version
4.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,761 B
  • docs SUMMARY.md 315 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 16 installs

SKILL.md

Grok AI Integration

Browser console scripts for automating interactions with X's built-in Grok AI assistant.

Script Selection

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

Grok Integration

File: src/grokIntegration.js

Automates Grok AI prompts and response scraping.

How to Use

  1. Navigate to x.com/i/grok
  2. Open DevTools (F12) -> Console
  3. Paste the script -> Enter

Controls

  • XActions.ask(prompt) -- Send a prompt to Grok
  • XActions.scrapeResponse() -- Capture Grok's latest response
  • XActions.generateImage(prompt) -- Request image generation
  • XActions.batchAsk(prompts[]) -- Send multiple prompts sequentially
  • XActions.export() -- Download conversation history as JSON

Features

  • Automated prompt submission with response capture
  • Batch prompting for content generation workflows
  • Image generation prompt automation
  • Conversation history export
  • Rate-limited to avoid triggering restrictions

DOM Selectors

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"]

Content Strategy with Grok

Using Grok for content ideation

  1. XActions.ask("What are the top 5 trending topics in {niche} right now?")
  2. XActions.ask("Write 3 tweet variations about {topic}")
  3. XActions.ask("Analyze this tweet for engagement: {tweet_text}")
  4. Capture responses with XActions.scrapeResponse()
  5. Feed into src/threadComposer.js for thread creation

Batch content generation

await 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

Image generation workflow

  1. XActions.generateImage("Professional headshot, tech founder, minimalist")
  2. Wait for generation (10-30 seconds)
  3. Right-click generated image to save
  4. Use as profile picture, header, or tweet media

Requirements

  • X Premium or Premium+ subscription
  • Grok access varies by region and account tier
  • Image generation requires Premium+ in most regions
  • Rate limits: ~20 prompts/hour for chat, ~5 images/hour

MCP Alternative

For programmatic AI content without Grok, the XActions MCP server includes AI tools powered by OpenRouter:

MCP Tool Purpose
xanalyzevoice Analyze account's writing style
xgeneratetweet Generate tweet in user's voice
xrewritetweet Rewrite tweet for better engagement
xsummarizethread Summarize a thread

These require an OPENROUTERAPIKEY env var but work without Premium.

Notes

  • Grok responses are AI-generated and should be reviewed before posting
  • Grok has real-time X data access -- can reference current trends
  • Image generation creates original images (not screenshots/existing images)
  • Conversation context is maintained within a chat session