一键导入
grok-insights
Search and analyze X/Twitter posts using the local Grok CLI for real-time social intelligence, sentiment analysis, and trend detection
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Search and analyze X/Twitter posts using the local Grok CLI for real-time social intelligence, sentiment analysis, and trend detection
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | grok-insights |
| description | Search and analyze X/Twitter posts using the local Grok CLI for real-time social intelligence, sentiment analysis, and trend detection |
| argument-hint | ["query or topic"] |
| disable-model-invocation | true |
| allowed-tools | ["Bash","Read"] |
Get real-time social intelligence from X/Twitter using the locally installed Grok CLI. This skill uses the CLI built from this repository.
$ARGUMENTS
The CLI is installed globally when you run npm install in this repo. Verify it's available:
grok --version
Ensure GROK_API_KEY is set in your environment or .env file.
Analyze X/Twitter posts about a topic with sentiment and themes.
grok search "QUERY" --time-window 4hr --limit 30 --analysis both -f text
Options:
--time-window or -t: 15min, 1hr, 4hr, 24hr, 7d (default: 4hr)--limit or -l: Max posts to analyze, 1-50 (default: 50)--analysis or -a: sentiment, themes, both (default: both)-f or --format: Output format, json or text (default: json)Deep analysis with custom aspects.
grok analyze "TOPIC" --aspects "sentiment,influencers,controversy" --time-window 24hr -f text
Options:
--aspects or -a: Comma-separated aspects to analyze--time-window or -t: Time window for analysis--limit or -l: Max posts to analyzeIdentify trending topics and discussions.
grok trends --category technology --limit 30 -f text
Options:
--category or -c: technology, politics, sports, entertainment--limit or -l: Max posts to analyze for trendsGeneral chat, optionally grounded in X/Twitter data.
grok chat "What are people saying about AI?" --search -f text
Options:
--search or -s: Enable X/Twitter search--search-limit or -l: Max posts to search if search enabled--temperature: Response creativity 0.0-1.0 (default: 0.7)Determine what kind of analysis the user wants:
Based on $ARGUMENTS:
For a simple search:
grok search "$ARGUMENTS" --time-window 4hr -f text
For trend detection:
grok trends -f text
For a grounded chat question:
grok chat "$ARGUMENTS" --search -f text
Summarize the results in a clear format:
Summary: Brief overview of what people are saying
Key Themes:
Sentiment: Overall positive/negative/neutral/mixed
Notable Points:
Citations: Include relevant X post URLs if available
To test CLI changes locally:
# Build the CLI
npm run build
# Test commands
node dist/cli.js search "test query" -f text
node dist/cli.js trends -f text
node dist/cli.js chat "Hello" -f text
User: "What's the sentiment around Tesla stock?"
grok search "Tesla stock $TSLA" --analysis sentiment --time-window 24hr -f text
User: "What's trending in tech?"
grok trends --category technology -f text
User: "Analyze crypto with focus on sentiment and influencers"
grok analyze "cryptocurrency" --aspects "sentiment,key influencers,controversy" -f text