微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🐦

AI 实时社交趋势洞察专家

x-search · v0.05
专业技能 安全 B 级 作者 TzannetosGiannis 公开目录收录
1k 下载 207 安装 5.2k 收藏 16.2k 浏览

简介

基于 x402 协议的 AI 搜索工具,$0.05 USDC/次提供 X 平台实时趋势与情感分析,适合社交情报研究者。

原始描述

AI-powered X/Twitter search for real-time trends, breaking news, sentiment analysis, and social media insights. Use when users want to search Twitter/X for topics, hashtags, viral content, or public opinion. Costs $0.05 USDC per request via x402 protocol on Base network.

通过你的 Agent 添加

安装目录:x-search/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/x-search/
Codex CLI~/.codex/skills/x-search/
DeepSeek Harness~/.agents/skills/x-search/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

x-search 是一款基于 x402 支付协议的 AI 驱动型 X/Twitter 搜索工具。用户需先配置包含 private key 的 ~/.x402-config.json 文件,通过执行 scripts/search.sh 并传入搜索关键词,即可支付 $0.05 USDC(Base 网络)获取经 AI 处理的实时搜索结果。该技能支持话题标签分析、情感倾向判断、病毒式内容追踪及突发新闻监测,所有操作均通过 npx 动态调用 @itzannetosgiannis/x402-tools-claude 包完成。

显著优点

实时性与智能化并重:能够捕捉 X 平台的实时讨论趋势,并通过 AI 进行情感分析与观点提炼,将海量社交数据转化为结构化洞察。透明的微支付模式:采用按次付费($0.05 USDC),无订阅门槛,用户可精确控制成本。灵活的配置方式:支持环境变量或配置文件(推荐 ~/.x402-config.json)两种私钥管理方式,兼顾便捷性与安全性。专业的社交情报能力:针对公关监测、竞品分析、舆情研究等场景优化,可识别病毒内容及公众情绪变化。

潜在缺点与局限性

动态依赖风险:使用 npx -y 无版本锁定地加载远程 npm 包,每次执行可能获取最新版本,存在供应链攻击风险。加密货币支付门槛:要求用户持有 Base 网络的 USDC 并理解私钥管理,对非 Web3 用户不够友好。来源可信度限制:开发者 tzannetosgiannis 为个人账号(T3 来源),非企业级维护,长期稳定性与合规性存疑。累积成本考量:虽然单次 $0.05 看似低廉,但高频使用成本会快速累积,且无批量查询折扣机制。超时限制:API 设有 5 分钟超时,复杂查询可能因处理时间过长而失败。

适合的目标群体

市场营销与公关从业者:监测品牌声誉、追踪 campaign 效果、分析竞品动态。学术与商业研究人员:进行舆情分析、社会科学研究、消费者行为洞察。内容创作者与媒体人:发现热门话题、寻找病毒内容灵感、验证新闻真实性。加密货币与 Web3 投资者:追踪项目方动态、监测社区情绪、捕捉 Alpha 信息。运营与社区经理:实时掌握行业动态、快速响应危机舆情。

使用风险说明

私钥管理责任:用户需自行保管 x402 private key,若配置文件权限设置不当(建议 chmod 600)可能导致资金被盗。网络与链上依赖:依赖 Base 网络稳定性及 USDC 代币状态,网络拥堵可能导致支付失败或延迟。动态代码执行:虽经安全审计无恶意代码,但 npx 自动安装机制理论上存在供应链投毒可能,建议在隔离环境使用。数据隐私:搜索查询内容会上传至第三方服务进行处理,敏感话题搜索需谨慎。钱包资金风险:建议使用专用小额钱包进行支付,避免在主钱包存放大量资金。

技能正文


name: x-search description: "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."

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

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.

正文来自原始仓库, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/code-yeongyu/oh-my-opencode

标签

content-mediamarketingdata-analyticsoperationssocial-mediaautomation

同类 Skill