x-search
できること
このツールは、X(旧Twitter)上の情報を検索します。特定のトピックに関する最新の投稿を見つけることを目的とし、信頼できるアカウントに注目して、日付を使って検索を絞り込みます。
使う場面
- ✓あるテーマの最新ニュースを知りたいとき。
- ✓X上の特定のアカウントの意見や情報を探したいとき。
- ✓最近の出来事についてプラットフォーム上でどのような発言があったかを確認したいとき。
スキルのリンク
https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/omo-senpi/src/components/x-search/skill/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“昨日以降の人工知能に関する最新の投稿で、@openai と @googleai のアカウントからのものを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
ツールはxAIというシステムを使ってXに接続します。Xが最も関連性の高い投稿を返せるように、日付と信頼できるアカウントを考慮して質問を整理します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
x-search: searching X (Twitter) through xAI
This skill only matters when an xAI account is connected. The x_search tool
is registered at load time if a credential exists, and it is hidden behind
tool_search until you activate it. Everything below assumes you've read the
current date from the system prompt; never hardcode a date.
Which tool
- Run
tool_search "X posts". Ifx_searchshows up, it's callable on the next turn. - If nothing matches, xAI isn't connected. Say so plainly ("x_search is
unavailable, no xAI credential") and fall back to
web_search. Don't guess at tweets from memory.
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
- Date-bound anything time-sensitive. Stocks, earnings, market reaction,
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. - Scope trusted accounts. When the user names accounts they trust, pass
them as
allowed_x_handles(bare handles, no@, max 20). Example:["growth_papa", "aleabitoreddit"].allowed_x_handlesandexcluded_x_handlesare exclusive; pick one. - Phrase for recency. Write the query the way X advanced search expects:
"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 carriessince:. - Split, don't stack. One mega-query returns mush. Run 2 to 3 narrower 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.
Operator cheat sheet
| Operator | Meaning | Example |
|---|---|---|
since:YYYY-MM-DD |
posts on or after the date | since:2026-09-02 |
until:YYYY-MM-DD |
posts on or before the date | until:2026-09-03 |
from:handle |
posts by one account | from:growth_papa |
filter:links |
only posts with links | earnings filter:links |
-filter:replies |
drop replies | NVDA -filter:replies |
lang:xx |
language code | lang:ko, lang:en |
"exact phrase" |
literal match | "foreign net buying" |
Operators live inside query. from_date / to_date / allowed_x_handles
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:
- Cite the
x.comURL for every claim drawn from a post. - Label the source as an X post. A tweet is a signal that someone said something, not a verified fact. Say "posted on X by @handle" rather than stating the content as true.
- 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:
- Web-found event with no X echo: say so. It may be too fresh, too niche, or the query missed it.
- 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
…
よくある質問
Xに接続されていない場合はどうなりますか?
Xに接続されていない場合、ツールはXを検索できないことを通知し、代わりにWeb検索を使用します。
情報が最新であることをどのように確認しますか?
「最新」や「最近」といった言葉を加え、日付フィルターを使って、見つかった投稿が指定した期間のものになるようにします。
どのアカウントの投稿でも検索できますか?
検索対象とする信頼できるアカウントを指定できます。指定しない場合はより広く検索しますが、常に関連性と日付を優先します。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 70k
- ランキング
- #3127
- ライセンス
- NOASSERTION
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
comment-checker
70kエージェントが自動コメントチェッカーからのフィードバックを理解し、それに対応するのを支援します。自動化されたコードやコンテンツのレビュー結果の処理に役立ちます。
lcx-contribute-bug-fix
70kエージェントがLazyCodex関連プロジェクトのバグ修正に貢献するのを支援します。Issueやプルリクエストを作成し、コードの品質を保ちます。
lcx-doctor
70kエージェントがLazyCodexとCodex CLIのインストール状態を確認できるようにします。更新や変更の後に動作がおかしいときに役立ちます。
lcx-report-bug
70kエージェントがLazyCodexプロジェクトのバグを詳しく報告するのを支援します。開発者が問題を修正するのに役立つ情報を含むIssueを作成します。
似ているスキル
xurl
394k認証済みのxurlツールを使い、Xに投稿、返信、検索、閲覧し、ダイレクトメッセージを送り、メディアをアップロードするようエージェントを支援します。
connections-optimizer
280kソーシャルネットワークのつながりを改善します。フォローやフォロー解除の候補を提案し、パーソナライズされたメッセージの作成を支援して、ネットワークを広げます。
content-engine
280kさまざまなプラットフォーム向けのコンテンツを作成します。X、LinkedIn、YouTubeなどのネットワークで効果的な投稿、台本、コンテンツカレンダーの作成を支援します。