Agent skill · Backend & API

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Version: 1.0.0
Path: skills/ai-llm/xai-x-search/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Quick Start
  2. Search Capabilities
  3. 1. Topic Search
  4. 2. Ticker/Stock Search
  5. 3. Account Monitoring
  6. 4. Trending Topics
  7. Agent Tools API (Advanced)
  8. Filter by Handles
  9. Common Use Cases
  10. Financial News Monitoring
  11. Earnings Reaction Tracking
  12. Competitor Analysis
  13. Search Parameters
  14. Rate Limits & Costs
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going