aydencook03

xAI Search

ナレッジ管理v1.0.4
作者:aydencook03更新日 2026-05-11全 5 バージョン · 最新版の公開日 2026-01-28xai-search@clawhub_aydencook03/xai-search
ナレッジベース Q&A情報検索#Agentic#Twitter

AlphaMoatによると、2026-09時点でxAI Searchのダウンロード数は3,866、スター数は1で、AIスキル全体5,078件中2,693位、ナレッジ管理では442件中246位です。

インストール数
240
ダウンロード数
3866
スター数
1
総合順位
#2,693
全体の上位 54% · ナレッジ管理の上位 56%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗12836821-
SkillHub ↗24038661—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

このスキルは、xAIのGrok APIを通じてX/Twitterとウェブをリアルタイムに検索します。grok-3-fastなどのモデルが持つweb_searchとx_searchのエージェントツールを活用し、curlまたはscripts/xai-search.pyヘルパーから呼び出せます。X検索はアカウント・日付範囲・画像/動画理解でフィルタでき、ウェブ検索はドメインでフィルタ可能です。速報性の高いニュースやセンチメントにはX検索、事実確認やリサーチにはウェブ検索(または両方)を使います。

資料公開日 2026-10-27

できること

  • x_searchでX上の話題の最新の議論やセンチメントをリアルタイムに検索
  • web_searchで事実確認・リサーチ系クエリを実行し、allowed_domainsで絞り込み
  • allowed_x_handles/excluded_x_handlesで特定アカウントを限定・除外
  • enable_image_understanding/enable_video_understandingで投稿メディアを分析
  • 複雑なクエリにはgrok-4-1-fast推論モデルへ切り替え

使う場面

  • リアルタイム情報、速報ニュース、X上のセンチメントが必要なときはX検索を優先
  • 事実ベースのリサーチ回答が必要なときはウェブ検索または両方を使用
  • XAI_API_KEYの設定とxai-sdkのインストールが済んでいるとき

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

x_searchでAIエージェントについてXで今何と言われているかを検索して
web_searchで最新ニュースを検索して、allowed_domainsを主要テックメディアに限定して
このリサーチクエリをgrok-4-1-fastに渡して、web_searchとx_searchの両方を有効にして

月次の推移

ダウンロード数3866
2900341939382026-03 · ダウンロード数 29722026-05 · ダウンロード数 32952026-06 · ダウンロード数 33872026-07 · ダウンロード数 35652026-08 · ダウンロード数 36292026-09 · ダウンロード数 386626-0326-09
スター数1
0122026-03 · スター数 12026-05 · スター数 12026-06 · スター数 12026-07 · スター数 12026-08 · スター数 12026-09 · スター数 126-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-093866—1
2026-083629+1.8%1
2026-073565+5.3%1
2026-063387+2.8%1
2026-053295—1
2026-032972—1

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

2.9 KB・ClawHub v1.0.4
---
name: xai-search
description: Search X/Twitter and the web in real-time using xAI's Grok API with agentic search tools.
metadata: {"clawdbot":{"emoji":"🔍"}}
---

# xAI Search (Grok API)

Use xAI's agentic search to query X/Twitter and the web in real-time. This leverages Grok's `web_search` and `x_search` tools.
すべて表示(全 98 行)
**Docs:** https://docs.x.ai/docs/

## Requirements

- `XAI_API_KEY` environment variable
- Python 3 + xai-sdk: `pip install xai-sdk`

## Quick Usage (curl)

### Web Search
```bash
curl -s https://api.x.ai/v1/chat/completions \
  -H "Authorization: Bearer $XAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-3-fast",
    "messages": [{"role": "user", "content": "YOUR QUERY HERE"}],
    "tools": [{"type": "function", "function": {"name": "web_search"}}]
  }' | jq -r '.choices[0].message.content'
```

### X/Twitter Search
```bash
curl -s https://api.x.ai/v1/chat/completions \
  -H "Authorization: Bearer $XAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-3-fast",
    "messages": [{"role": "user", "content": "YOUR QUERY HERE"}],
    "tools": [{"type": "function", "function": {"name": "x_search"}}]
  }' | jq -r '.choices[0].message.content'
```

### Combined (Web + X)
```bash
curl -s https://api.x.ai/v1/chat/completions \
  -H "Authorization: Bearer $XAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-3-fast",
    "messages": [{"role": "user", "content": "YOUR QUERY HERE"}],
    "tools": [
      {"type": "function", "function": {"name": "web_search"}},
      {"type": "function", "function": {"name": "x_search"}}
    ]
  }' | jq -r '.choices[0].message.content'
```

## Helper Script

For convenience, use the `xai-search.py` script in the `scripts/` folder:

```bash
# Web search (adjust path to your skill location)
python ~/.clawdbot/skills/xai-search/scripts/xai-search.py web "latest news about AI"

# X/Twitter search  
python ~/.clawdbot/skills/xai-search/scripts/xai-search.py x "what are people saying about Clawdbot"

# Both
python ~/.clawdbot/skills/xai-search/scripts/xai-search.py both "current events today"
```

## Models

- `grok-3-fast` — fast, good for quick searches
- `grok-4-1-fast` — reasoning model, better for complex queries

## X Search Filters

You can filter X searches by:
- `allowed_x_handles` / `excluded_x_handles` — limit to specific accounts
- `from_date` / `to_date` — date range (ISO8601 format)
- `enable_image_understanding` — analyze images in posts
- `enable_video_understanding` — analyze videos in posts

## Web Search Filters

- `allowed_domains` / `excluded_domains` — limit to specific sites
- `enable_image_understanding` — analyze images on pages

## Tips

- For breaking news: use X search
- For factual/research queries: use web search or both
- For sentiment/opinions: use X search
- The model will make multiple search calls if needed (agentic)

ナレッジ管理の人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。