跳到正文
Skillpedia
社交媒体70k · #3127

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/omo-senpi/src/components/x-search/skill/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Run tool_search "X posts". If x_search shows up, it's callable on the next turn.
  2. 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

  1. 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.
  2. 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_handles and excluded_x_handles are exclusive; pick one.
  3. 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 carries since:.
  4. 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.com URL 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,并改用网页搜索作为替代方案。

工具怎么确保信息是最新的?

它会加入“最新”“近期”等关键词,并使用日期过滤器,确保找到的帖子都在你所需的时间范围内。

我可以搜索任何账号的帖子吗?

你可以指定要搜索的可信账号。如果不指定,它会进行更广泛的搜索,但始终优先考虑相关性和日期。

详情

作者的原始描述

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

repo: code-yeongyu/oh-my-openagent

热度

GitHub 星标
70k
排名
#3127
许可证
NOASSERTION
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能