From xai-cli
Use the `xai` CLI to search X (Twitter) posts, browse user timelines, retrieve threads, discover trending topics, and perform web searches via the xAI API. Use when the user wants to search for posts on X/Twitter, see what someone tweeted, read a thread, check what's trending, or do a web search. Trigger on: "xai", "X", "Twitter", "tweet", "posts on X", "trending", "search X", "search Twitter", "what's trending", "check someone's timeline", "read this thread", "web search via xai", "find tweets about", or any request to search, browse, or retrieve content from X/Twitter. Do NOT trigger when the user mentions "X" in a non-Twitter context (e.g., "variable X").
How this skill is triggered — by the user, by Claude, or both
Slash command
/xai-cli:xaiThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use the `xai` command to search and browse X (Twitter) content and the web via the xAI API.
Use the xai command to search and browse X (Twitter) content and the web via the xAI API.
https://github.com/tani-shi/xai-cli
uv tool install .
XAI_API_KEY environment variable must be setxai config init to set up configuration--format json — JSON output (use for parsing structured data)--format markdown — Markdown formatted output (search command only)--format FORMAT — output format (text, json; markdown supported by search)--no-stream — disable streaming output--from DATE — filter results after this date (search, user commands)--to DATE — filter results before this date (search, user commands)Load the relevant reference file based on which command the user needs:
When performing complex tasks (e.g., "find posts by a user about a topic"), chain commands:
xai models
xai search "query" --from 2026-03-06
npx claudepluginhub tani-shi/xai-cli --plugin xai-cliSearches X (Twitter) for users, tweets, trending topics, and replies via the Felo X Search API. Use with explicit commands or when users ask about X/Twitter data.
Searches X/Twitter via API v2 for real-time dev discussions, product feedback, breaking news, expert opinions. Supports engagement sorting, user profiles, thread fetching, watchlists, result caching. Useful for recent discourse on library releases, API changes, launches.
Searches recent X/Twitter posts (last 7 days) by query using the X API. Returns raw tweets. For AI summaries, use x-research skill.