xAI X Search

xAI X Search is a skill for Claude Code, Codex from notforyou23/home23. It costs 33 tokens per session (859 once invoked), scanned A, original, MIT.

A real-time search tool for X/Twitter that uses Grok through the xAI API. It finds recent posts and returns a cited summary.

In plain words
What is it for?
Use it to check what people are saying, search posts from specific accounts, follow a thread from a tweet URL, and investigate recent events or products.
Why use it?
It lets you research current X discussions without relying on the separate X developer API or its credits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to check what people are saying, search posts from specific accounts, follow a thread from a tweet URL, and investigate recent events or products.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/notforyou23/home23/xai-x-search
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add notforyou23/home23 --skill xai-x-search
Clone the repo
git clone --depth 1 https://github.com/notforyou23/home23

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xAI X Search

README.md
[![agentmods](https://agentmods.dev/badge/skills/notforyou23/home23/xai-x-search/github.svg)](https://agentmods.dev/skills/notforyou23/home23/xai-x-search)
Your own site
<a href="https://agentmods.dev/skills/notforyou23/home23/xai-x-search"><img src="https://agentmods.dev/badge/skills/notforyou23/home23/xai-x-search/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xAI X Search

Your own site · 80×15
<a href="https://agentmods.dev/skills/notforyou23/home23/xai-x-search"><img src="https://agentmods.dev/badge/skills/notforyou23/home23/xai-x-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 859 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 111
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00859
Opus 5 $0.00016 $0.00430
Sonnet 5 $0.00007 $0.00172
Haiku 4.5 $0.00003 $0.00086

Measured 12d ago against content hash ecb2a67fdf48, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

xAI X Search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (index.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

workspace/skills/xai-x-search/SKILL.md · 114 lines

What it actually says

Search X/Twitter through Grok's native x_search server-side tool via the xAI Responses API. This does not use the X developer API — it uses the xAI API key already configured in Home23 secrets.

When to use

  • "what are people saying on X" questions
  • live discourse around topics, products, people, events
  • checking recent posts from specific accounts
  • following a thread from a tweet URL
  • any X/Twitter research when the X developer API is unavailable or out of credits

When NOT to use

  • Posting, replying, or authenticated account actions → use the x skill
  • Raw tweet JSON / structured data extraction → use x-research (X developer API)

Actions

search

Search X in real-time. Grok searches natively and returns a synthesized answer with citations.

Input:

{
  "query": "what are people saying about AI agents",
  "fromHandle": "elonmusk",
  "excludeHandle": "spamaccount",
  "fromDate": "2026-07-20",
  "toDate": "2026-07-23",
  "model": "grok-4.5"
}
  • query (required): Natural language question or search topic
  • fromHandle (optional): Only include posts from this X handle
  • excludeHandle (optional): Exclude posts from this X handle
  • fromDate / toDate (optional): ISO 8601 date range (YYYY-MM-DD)
  • model (optional): xAI model to use (default: grok-4.5)

thread

Fetch and summarize a conversation thread from a tweet URL.

Input:

{
  "url": "https://x.com/user/status/123456789",
  "model": "grok-4.5"
}

profile

Read recent posts from a specific X account.

Input:

{
  "username": "elonmusk",
  "model": "grok-4.5"
}

How it works

  1. Sends the query to the xAI Responses API (/v1/responses) with x_search enabled as a server-side tool
  2. Grok searches X natively in real-time
  3. Returns a synthesized answer with citations to the original posts
  4. Optional parameters filter by handle, date range, and media understanding

Gotchas

  • This returns synthesized answers with citations, not raw tweet JSON
  • Grok decides what's relevant — results are curated, not exhaustive
  • The xAI API key is in config/secrets.yaml under xai.apiKey
  • Rate limits follow the xAI API plan, not X developer API tiers
  • Image/video understanding can be enabled but increases token usage
  • For structured data needs (metrics, exact timestamps, bulk export), use x-research with the X developer API instead
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 114 lines · 33 tokens per session scan A ecb2a67fdf48

Subscribe to this mod's changes

xAI X Search is a skill published in the GitHub repository notforyou23/home23 (11 stars, last pushed 2d ago), licensed MIT. It adds 33 tokens to every session and 859 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

industry-intelligence-radar

An industry-monitoring workflow that scans sources such as Hacker News, V2EX, RSS feeds, X, and 即刻 for selected keywords and trends.

chubbyguan/chubbyskills · 62 tokens

codex-grok-search

MUST use first for current X/Twitter or Reddit searches, including latest posts, recent discussions, community sentiment, platform data collection, and cross-platform research. Bridges Codex to the user's locally authenticated Grok Build from a private directory outside the current project, saves Grok's complete…

sudoHG/codex-grok-search · 115 tokens

xpoz-social-search

Search Twitter, Instagram, and Reddit posts in real time. Find social media mentions, track hashtags, discover influencers, and analyze engagement, with billions of posts indexed. Social listening, brand monitoring, and competitor research made easy for AI agents.

XPOZpublic/xpoz-clawhub-skills · 53 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens