search-x

中风险 · 75 评分:75/100
作者:mvanhorn | 审计时间:2026-02-05T09:47:58.400Z | 规则集:0.1.0

快速安装

将技能安装到你的 Agent

clawhub install search-x

技能介绍

Search X/Twitter in real-time using Grok. Find tweets, trends, and discussions with citations.

Model: grok-4-1-fast (optimized for agentic search)
Returns real tweets with URLs
Supports date and handle filtering
@username (display name)
Direct link to tweet
XAI_API_KEY - Your xAI API key (required)
SEARCH_X_MODEL - Model override (default: grok-4-1-fast)
SEARCH_X_DAYS - Default days to search (default: 30)

使用场景

1 Research topics
2 Find information
3 Answer questions

文档(原文)

来源:README.md
以下为作者原文(通常为英文)。安装请以页面顶部“快速安装”为准。

Search X — Real-time Twitter/X Search for Clawdbot

Search X/Twitter in real-time using Grok's x_search tool. Get actual tweets with citations.

Installation

clawdhub install search-x

Or manually:

cd ~/clawd/skills && git clone https://github.com/mvanhorn/clawdbot-skill-search-x search-x

Setup

Get your API key from console.x.ai, then:

clawdbot config set skills.entries.search-x.apiKey "xai-YOUR-KEY"

Or set environment variable:

export XAI_API_KEY="xai-YOUR-KEY"

Usage

Basic Search

node scripts/search.js "AI video editing"

Time Filter

node scripts/search.js --days 7 "breaking news"    # Last 7 days
node scripts/search.js --days 1 "trending today"   # Last 24 hours

Handle Filters

node scripts/search.js --handles @elonmusk,@OpenAI "AI"
node scripts/search.js --exclude @bots "real discussions"

Output Formats

node scripts/search.js --compact "topic"      # Just tweets
node scripts/search.js --links-only "topic"   # Just URLs
node scripts/search.js --json "topic"         # Full JSON

Chat Examples

Just tell your Clawdbot:

  • "Search X for what people are saying about Claude"
  • "Find tweets about Remotion in the last week"
  • "What's trending on Twitter about AI today?"

How It Works

Uses xAI's Responses API with the x_search tool:

  • Endpoint: /v1/responses
  • Model: grok-4-1-fast (optimized for search)
  • Features: Date filtering, handle filtering, real citations

Output Example

🔍 Searching X: "Remotion Claude Code" (last 30 days)...

**@rknkhanna** (Rahul K)
"made a launch video using remotion. the remotion team published a skill
that teaches claude their best practices. fed it my design system.
described 6 scenes. got working animation code."
https://x.com/rknkhanna/status/2014504411981295928

📎 Citations (5):
   https://x.com/i/status/2014504411981295928
   ...

License

MIT

安全审计

中风险 · 75

摘要

Search X/Twitter in real-time using Grok. Find tweets, trends, and discussions with citations.

风险画像 危险 隐私 范围 声誉 质量

关键风险 0 项

暂无 LLM 风险要点(LLM 未启用或无缓存)。

确定性发现(证据)

规则 严重性 文件 片段
SENSITIVE_ENV medium skills/mvanhorn/search-x/scripts/search.js 行 13
const DEFAULT_MODEL = process.env.SEARCH_X_MODEL || 'grok-4-1-fast';
SENSITIVE_ENV medium skills/mvanhorn/search-x/scripts/search.js 行 14
const DEFAULT_DAYS = parseInt(process.env.SEARCH_X_DAYS, 10) || 30;
SENSITIVE_ENV medium skills/mvanhorn/search-x/scripts/search.js 行 18
if (process.env.XAI_API_KEY) {
SENSITIVE_ENV medium skills/mvanhorn/search-x/scripts/search.js 行 19
return process.env.XAI_API_KEY;
SENSITIVE_ENV medium skills/mvanhorn/search-x/scripts/search.js 行 23
const configPath = path.join(process.env.HOME, '.clawdbot', 'clawdbot.json');
NET_HTTP_REQUEST medium skills/mvanhorn/search-x/scripts/search.js 行 167
const req = https.request({
QUALITY_README_PRESENT low README 行 无
README detected

更多技能