xai-x-search
Search Twitter/X in real-time using Grok API. Use when searching X posts, tracking trends, monitoring accounts, or analyzing social discussions.
npx skills add majiayu000/claude-skill-registry --skill xai-x-search --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# xAI X (Twitter) Search Real-time Twitter/X search using Grok's native X integration - a capability unique to xAI. ## Quick Start ```python import os from openai import OpenAI client = OpenAI( api_key=os.getenv("XAI_API_KEY"), base_url="https://api.x.ai/v1" ) # Simple X search response = client.chat.completions.create( model="grok-4-1-fast", messages=[{ "role": "user", "content": "Search X for what people are saying about Tesla stock today" }] ) print(response.choices[0].message.content) ``` ## Search Capabilities ### 1. Topic Search ```python def search_x_topic(topic: str) -> str: """Search X for posts about a topic.""" response = client.chat.completions.create( model="grok-4-1-fast", messages=[{ "role": "user", "content": f"Search X for recent posts about {topic}. Summarize the main discussions and sentiment." }] ) return response.choices[0].message.content ``` ### 2. Ticker/Stock Search ```python def search_stock_mentions(ticker: str) -> str: """Search X for stock ticker mentions.""" response = client.chat.completions.create( model="grok-4-1-fast", messages=[{ "role": "user", "content": f"""Search X for mentions of ${ticker} stock. Find: - Recent discussions - Sentiment (bullis
- Quick Start
- Search Capabilities
- 1. Topic Search
- 2. Ticker/Stock Search
- 3. Account Monitoring
- 4. Trending Topics
- Agent Tools API (Advanced)
- Filter by Handles
- Common Use Cases
- Financial News Monitoring
- Earnings Reaction Tracking
- Competitor Analysis
- Search Parameters
- Rate Limits & Costs
What does the xai-x-search skill do?
Search Twitter/X in real-time using Grok API. Use when searching X posts, tracking trends, monitoring accounts, or analyzing social discussions.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill xai-x-search --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
