# Grok Twitter

> Query and summarize Twitter/X information using Grok AI. Use when user asks about Twitter trends, tweets, X platform content, or needs Twitter information summarized.

- Skill: `dvcrn/grok-twitter` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add dvcrn/grok-twitter`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dvcrn/grok-twitter/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Research & Search
- Author: dvcrn (https://skillmd.com/u/dvcrn)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/dvcrn/grok-twitter

---


# Grok Twitter Query

Use Grok AI to query and summarize Twitter/X information.

## Setup

Set required environment variables:

```bash
export GROK_API_KEY="your-api-key-here"
export GROK_API_URL="https://api.cheaprouter.club/v1/chat/completions"  # optional
export GROK_MODEL="grok-4.20-beta"  # optional
```

## Usage

Run the query script with your Twitter-related prompt:

```bash
python3 scripts/query_grok.py "Summarize recent tweets about [topic]"
```

## Examples

```bash
# Get trending topics
python3 scripts/query_grok.py "What are the top trending topics on Twitter right now?"

# Summarize tweets about a topic
python3 scripts/query_grok.py "Summarize recent tweets about AI developments"

# Get information about a specific user
python3 scripts/query_grok.py "What has @elonmusk been tweeting about recently?"
```

## Notes

- Grok has real-time access to Twitter/X data
- Best for current events and trending information
- Responses are generated by Grok AI model

