x-search skill
MUST read before searching X/Twitter with the x_search tool. When xAI is connected: date-bound every time-sensitive query (from_date >= yesterday, widen to 7 days), scope trusted accounts with allowed_x_handles, phrase queries as latest/recent with since:/from:/filter: operators, split into 2-3 searches by account and by keyword, and reconcile against web_search. Triggers: X search, Twitter search, tweets, posts on X, what people are saying on X, x_search, social signal.
Is the x-search skill safe?
Clean: nothing in its files matched our rules. We read 1 file in the folder on 2026-09-28.
No findings.
Install the x-search skill
A skill is a folder. Copy it into your agent's skills folder and the agent loads it when the task matches its description.
git clone --depth 1 https://github.com/code-yeongyu/oh-my-openagent.git /tmp/oh-my-openagent mkdir -p ~/.claude/skills cp -r /tmp/oh-my-openagent/packages/omo-senpi/src/components/x-search/skill ~/.claude/skills/x-search
In the Claude apps, zip the folder and upload it from the Skills settings. The folder on GitHub
The instructions your agent would load
SKILL.md as published, without the frontmatter. Read it on GitHub
x-search: searching X (Twitter) through xAI
This skill only matters when an xAI account is connected. The xsearch tool is registered at load time if a credential exists, and it is hidden behind toolsearch until you activate it. Everything below assumes you've read the current date from the system prompt; never hardcode a date.
Which tool
next turn.
- Run toolsearch "X posts". If xsearch shows up, it's callable on the
unavailable, no xAI credential") and fall back to web_search. Don't guess at tweets from memory.
- If nothing matches, xAI isn't connected. Say so plainly ("x_search is
x_search is one round trip to xAI's server-side X tools (keyword search, semantic search, user search, thread fetch). You don't pick the sub-tool; the server does. Your job is to shape the query and the parameters so the server lands on the right one.
The 4 rules
foreign flows, breaking news, product launches: compute yesterday from today's date and pass it as from_date. Start narrow. If the first pass comes back thin, widen to 7 days. Dates are inclusive on both ends.
- Date-bound anything time-sensitive. Stocks, earnings, market reaction,
them as allowedxhandles (bare handles, no @, max 20). Example: ["growthpapa", "aleabitoreddit"]. allowedxhandles and excludedx_handles are exclusive; pick one.
- Scope trusted accounts. When the user names accounts they trust, pass
"latest" or "recent" wording plus operators (since:, until:, from:, filter:links, -filter:replies, lang:). The server has been observed running keyword search in Latest mode when the query carries since:.
- Phrase for recency. Write the query the way X advanced search expects:
searches: one pass by account, one by keyword, and a thread fetch when a single post needs its replies. Each call is one search turn.
- Split, don't stack. One mega-query returns mush. Run 2 to 3 narrower
Operator cheat sheet
Operators live inside query. fromdate / todate / allowedxhandles are separate parameters and are the reliable half; operators nudge the server, parameters bind it. Use both when they agree.
Split-search recipe
Run these as separate x_search calls, not one combined query.
Handle pass. Trusted accounts, narrow window.
query: "latest on <topic> since:<yesterday>"
allowed_x_handles: ["growth_papa", "aleabitoreddit"]
from_date: <yesterday>Keyword pass. Open field, reply noise removed.
query: "recent <topic> <ticker or key term> -filter:replies lang:en"
from_date: <yesterday>Thread-fetch pass. Only when one post from the passes above needs context.
query: "<x.com URL of the post> replies and quotes"Stop after three passes unless the user asks for more. If the handle pass and the keyword pass disagree, report both rather than averaging them.
Reading results
Each result arrives as a URL plus a one-line summary, followed by a Queries used: trailer that lists the exact queries the server ran. Keep the trailer in your notes; it's the only provenance you have for what was actually searched.
When you report:
something, not a verified fact. Say "posted on X by @handle" rather than stating the content as true.
- Cite the x.com URL for every claim drawn from a post.
- Label the source as an X post. A tweet is a signal that someone said
- Quote sparingly. Summaries in your own words plus the link do the job.
Tandem with web_search
Run the same topic through web_search in the same turn. Then reconcile:
the query missed it.
- Web-found event with no X echo: say so. It may be too fresh, too niche, or
- X-only claim with no web coverage: say so, and flag it as unconfirmed.
- Both agree: cite both, X for the reaction, web for the record.
Don't let an X-only claim into a conclusion without that note.
Cost note
xAI bills X search at $5 per 1,000 calls. One x_search call is one search turn. The three-pass recipe costs roughly $0.015. That's cheap, but it isn't free, so don't loop on retries when the first pass came back empty; widen the window once, then stop.
Backtest pointer
Query recipes and parity against other lanes are checked by packages/omo-senpi/scripts/qa/x-search-backtest.mjs. If you change a rule in this skill, update the query set there so the backtest still reflects the recipe it's measuring.
More skills from code-yeongyu/oh-my-openagent
- Aast-grepSearches and rewrites code by AST shape across 25 languages. Use when the target is a syntax pattern (every call/class/import shaped like X, a codemod, a YAML rule) rather than literal text; for plain strings, comments, or filenames, use rg.
- AbrowserDrives a real browser through the omowright library from the js eval kernel: sites the user is already signed into, forms and clicks, JS-rendered pages, screenshots, web QA, extension popups, a human handoff for login, CAPTCHA or OTP, and a browser you own for scraping, bot-scored targets, network capture and QA traces. Use for any interactive browser task; not for a plain search or an unblocked static fetch.
- Acodex-qaQA the omo Codex Light edition (lazycodex / packages/omo-codex) itself, in strict isolation so ONLY our plugin is exercised, never the user's real ~/.codex. The first-party method drives the real `codex app-server` against an isolated CODEX_HOME plus a LOCAL mock model (no real API call), and proves a plugin hook fired by asserting hook/started + hook/completed notifications. Also: isolated install verification, per-component hook probes, a tmux TUI smoke, and runtime log observation (RUST_LOG / logs SQLite / /debug-config). Ships tested helper scripts each with a --self-test. Use whenever someone changes anything under packages/omo-codex or wants to QA, smoke-test, verify, or debug the Codex plugin, its hooks/components, the installer/config.toml, the app-server flow, or the Codex TUI. Triggers: codex qa, qa codex, codex-qa, test codex plugin, verify codex hook, codex app-server, lazycodex qa, isolated CODEX_HOME, prove codex hook fired, codex tui test.
- Acoding-agent-sessionsFinds, reads, and reconstructs coding-agent sessions across Codex, Claude, OpenCode, OMO/Senpi, and other local agent logs. Use when asked to find or search past sessions, transcripts, or subagent runs, or to recover what an earlier session did.
- Acomment-checkerUse when Codex needs to understand or respond to automatic comment-checker feedback emitted after an edit-like PostToolUse hook.
- Adag-libraryStores a DAG definition once and re-runs it by name, instead of pasting the definition into every run. Use when the user wants to save a DAG, run a saved one, or schedule the same multi-agent graph repeatedly.
- Ddata-scientistProcesses and analyzes data with resident-kernel engines (DuckDB, Polars) and one-shot tools. Use for CSV/parquet/JSON analysis, group-by/join/aggregation, time series, distributions, cleaning, or plotting a dataset.
- AdebuggingRuns a hypothesis-driven debugging loop across any language or binary, escalating to orthogonal oracle angles and locking the fix with a failing test. Use for crashes, silent failures, hangs, wrong responses, memory leaks, async misbehavior, or reverse engineering.
- Adev-browserBrowser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website", "log into", or any browser interaction request.
- CfrontendBuilds, styles, and polishes web UI and UX. Use for any frontend, page, component, styling, layout, animation, or visual-quality task, or when asked to make an interface look or feel a certain way.
- AfrontendBuilds, styles, and polishes web UI and UX. Use for any frontend, page, component, styling, layout, animation, or visual-quality task, or when asked to make an interface look or feel a certain way.
- Aget-unpublished-changesCompare HEAD with the latest published npm versions and list all unpublished changes by release layer. Triggers: unpublished changes, changelog, what changed, whats new.