AgentSkillsCN

grok-research

通过 Grok (xAI) 实现实时研究,结合 X/Twitter 搜索与网络访问功能。适用于 Brave 无法正常运行,或需要获取时事热点、社交情绪,或实时数据时使用。

SKILL.md
--- frontmatter
name: grok-research
description: Real-time research via Grok (xAI) with X/Twitter search and web access. Use when Brave fails or you need current events, social sentiment, or real-time data.
homepage: https://x.ai
metadata: {"clawdbot":{"emoji":"🔬","requires":{"env":["XAI_API_KEY"]}}}

Grok Research

Use Grok (xAI) for real-time research when:

  • Brave search is down or rate-limited
  • You need X/Twitter search
  • Current events or real-time data
  • Social sentiment analysis

Quick Usage

bash
# Via curl (env: XAI_API_KEY)
curl -s https://api.x.ai/v1/chat/completions \
  -H "Authorization: Bearer $XAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-3",
    "messages": [{"role": "user", "content": "What are people saying about X topic on Twitter right now?"}]
  }' | jq -r '.choices[0].message.content'

Models

ModelUse CaseSpeed
grok-3Deep research, complex queriesSlower
grok-3-miniQuick lookups, simple factsFast

When to Use vs Brave

ScenarioUse
Documentation lookupBrave
API referencesBrave
Current eventsGrok
Twitter/X sentimentGrok
Real-time dataGrok
Brave 429/downGrok

Script

For complex research, use the helper:

bash
~/.claude/skills/grok-research/scripts/grok-search.sh "your query"

Integration

The skill exposes:

  • grok_search(query) - Returns research results
  • grok_sentiment(topic) - Returns X/Twitter sentiment
  • grok_facts(question) - Quick fact lookup

API Handoff Pattern (Fabric-style)

json
{
  "command": "research",
  "query": "...",
  "callback": "https://...",
  "runId": "uuid"
}

Returns:

json
{
  "runId": "uuid",
  "status": "ok",
  "output": "...",
  "sources": ["x.com/...", "..."]
}

Related Search Tools

grok-research specializes in real-time X/Twitter and current events. For other needs:

ToolSpecialtyUse When
grok-research (this)Real-time X/Twitter, current eventsSocial sentiment, trending topics, breaking news
valyuRecursive turn-based researchvalyu research "query" --turns 5
deep-researchMulti-query Tavily synthesisdeep-research "query" --deep
lev-researchMulti-perspective orchestrationlev-research "query"
lev-findUnified local + externallev find "query" --scope=research
brave-searchQuick web searchbrave-search "query"
tavily-searchAI-optimized snippetstavily-search "query"
exa-plusNeural search, LinkedIn, papersexa search "query"
firecrawlWeb scrapingfirecrawl scrape <url>
qmdLocal session searchqmd query "query"

Grok's unique capabilities:

  • ✅ Real-time X/Twitter search
  • ✅ Social sentiment analysis
  • ✅ Current events (fresher than other tools)
  • ✅ Breaking news
  • ✅ Fallback when Brave is down/rate-limited
  • ❌ Academic research (use exa-plus)
  • ❌ Documentation (use brave-search)
  • ❌ Multi-query synthesis (use deep-research)

Integration pattern:

bash
# 1. Check social sentiment with Grok
grok-research "what are people saying about X on Twitter"

# 2. Deep dive with other tools
valyu research "X trends and analysis" --turns 5

See skill://lev-research for comprehensive research workflows.