Agent skill · writing content · sundial-org

xai-search

Search X/Twitter and the web in real-time using xAI's Grok API with agentic search tools.

Why this skill is useful

Adds specific commands and a helper script for using the Grok API to perform real-time searches on X/Twitter and the web, which the AI wouldn't reliably generate on its own.

What it needs

Requires python, xai-sdk installed locally. Requires xai account access. About 1k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.

What this skill does

xAI Search (Grok API) Use xAI's agentic search to query X/Twitter and the web in real-time. This leverages Grok's websearch and xsearch tools. Docs: https://docs.x.ai/docs/ Requirements XAIAPIKEY environment variable Python 3 + xai-sdk: pip install xai-sdk Quick Usage (curl) Web Search X/Twitter Search Combined (Web + X) Helper Script For convenience, use the xai-search.py script in the scripts/ folder: 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: allowedxhandles / excludedxhandles — limit to specific accounts fromdate / todate — date range (ISO8601 format) enableimageunderstanding — analyze images in posts enablevideounderstanding — analyze videos in posts Web Search Filters alloweddomains / excludeddomains — limit to specific sites enableimageunderstanding — 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)

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sundial-org/xai-search

View the source on GitHub

Browse the @skills marketplace