Token导航 LogoToken导航

Agent Skill · 研究检索

x(X 搜索)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

x 是研究检索类 Agent Skill,可用宿主为 Local Agent,通过unknown获取,权限为接触敏感数据;许可证信息还不明确,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 44,713。

总安装 897周安装 37下载 293核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:x(X 搜索)
来源仓库:https://docs.x.com
仓库路径:x
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

调用 X(原 Twitter)API 获取公共对话数据的检索工具。适用于读取帖子、发布内容、管理用户和搜索历史数据。支持近实时流数据和批量查询两种模式。适用宿主包括 Local Agent,接入前应确认版本、权限和运行环境要求。需通过开发者控制台获取凭证并进行付费使用。

x 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:x

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Local Agent;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    没有现成安装命令,按unknown的说明从来源页面获取,仓库路径是 x。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

x 怎么安装?

公开资料没有给出可以直接复制的命令,需要按来源页面说明手动安装,仓库内路径为 x。

x 支持哪些 AI 工具?

公开资料标注支持 Local Agent。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

x 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

x 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

x 用的人多吗?

公开数据是累计安装 897 次,近一周安装 37 次,下载 293 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

x 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 Local Agent 一种宿主,触发方式和使用习惯不用来回切换。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Local Agent,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
x

X 搜索 · 本页

897—接触敏感数据未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

X API Skill

Product summary

The X API provides programmatic access to X's public conversation through REST endpoints. Agents use it to read posts, publish content, manage users, search historical data, and stream near real-time posts. The API uses pay-per-usage pricing with Bearer Token (app-only) or OAuth authentication. Key files: Developer Console at https://console.x.com for credentials and usage tracking. Primary docs: https://docs.x.com/x-api/introduction

When to use

Reach for this skill when:

  • Building applications that read or publish posts, manage users, or access trends
  • Searching historical posts (last 7 days with recent search, or full archive back to 2006)
  • Streaming near real-time posts matching filter rules
  • Accessing user profiles, followers, following, blocks, mutes, or lists
  • Managing direct messages, spaces, or community notes
  • Analyzing engagement metrics or post analytics
  • Integrating X data into dashboards, research tools, or automation workflows

Do not use for: X Ads API (separate product), X for Websites (embedded widgets), or operations requiring user authentication on behalf of another account (use OAuth flows instead).

Quick reference

Authentication methods

MethodUse caseSetup
Bearer Token (app-only)Read public data, publish as appGenerate in Developer Console, use Authorization: Bearer $TOKEN
OAuth 1.0a user contextAct on behalf of a user3-legged flow, requires user approval
OAuth 2.0 auth code + PKCEWeb/mobile apps, user sign-inAuthorization code flow with PKCE

Core endpoints by category

CategoryKey endpointsPurpose
Posts/2/tweets/search/recent, /2/tweets/search/all, /2/tweets/search/streamSearch and stream posts
Posts/2/tweets, /2/tweets/{id}Create, delete, lookup posts
Users/2/users/by/username/{username}, /2/users/{id}Look up user profiles
Users/2/users/{id}/followers, /2/users/{id}/followingGet follower/following lists
Streams/2/tweets/search/stream/rulesManage filtered stream rules
Direct Messages/2/dm_conversations, /2/dm_eventsSend/receive DMs
Lists/2/lists, /2/lists/{id}/membersCreate, manage, query lists

Request parameters

ParameterPurposeExample
tweet.fieldsRequest additional post fieldscreated_at,public_metrics,lang
user.fieldsRequest additional user fieldsdescription,public_metrics,verified
expansionsInclude related objects (author, media, etc.)author_id,attachments.media_keys
max_resultsLimit results per request100 (varies by endpoint)
pagination_tokenNavigate paginated resultsFrom previous response

Response headers for rate limiting

x-rate-limit-limit: 900
x-rate-limit-remaining: 847
x-rate-limit-reset: 1705420800

Check these before hitting limits. Reset time is Unix timestamp.

Decision guidance

When to use search vs. filtered stream

ScenarioUse searchUse filtered stream
Historical data (past 7 days or archive)✓✗
Real-time posts as published✗✓
One-time data collection✓✗
Continuous monitoring✗✓
Complex queries with many operators✓✓
Persistent connection acceptable✗✓

When to use fields vs. expansions

NeedUse fieldsUse expansions
Additional data on primary object✓✗
Include related objects (author, media)✗✓
Reduce API calls✗✓
Get specific metrics (likes, reposts)✓✗

Bearer Token vs. OAuth for user context

RequirementBearer TokenOAuth 1.0a/2.0
Read public data only✓✓
Act on behalf of user✗✓
Publish posts as app✓✗
Access user's private data✗✓
Simpler setup✓✗

Workflow

Making your first request

  1. Get credentials: Sign in to https://console.x.com, create an app, copy the Bearer Token
  2. Choose an endpoint: Start with user lookup (/2/users/by/username/{username}) or recent search
  3. Build the request: Use cURL, Postman, or an SDK with Authorization: Bearer $TOKEN header
  4. Add parameters: Include tweet.fields, user.fields, or expansions to customize response
  5. Parse response: Primary data is in data field; related objects in includes section
  6. Check rate limits: Monitor x-rate-limit-remaining header; implement exponential backoff on 429 errors

Streaming near real-time posts

  1. Create rules: POST to /2/tweets/search/stream/rules with filter rules (e.g., from:xdevelopers)
  2. Verify rules: GET /2/tweets/search/stream/rules to confirm they're active
  3. Connect to stream: GET /2/tweets/search/stream with Bearer Token; maintain persistent connection
  4. Handle keep-alives: Expect blank lines every 20 seconds; reconnect if no data/keep-alive for 20+ seconds
  5. Process posts: Parse JSON from stream line-by-line; each line is a complete post object
  6. Manage rules: Add/remove rules without disconnecting; use add and delete arrays in POST body

Searching historical posts

  1. Build query: Use operators like from:user, #hashtag, "phrase", lang:en, -is:retweet
  2. Choose endpoint: Recent search (last 7 days, all developers) or full archive (pay-per-use/Enterprise)
  3. Make request: GET /2/tweets/search/recent or /2/tweets/search/all with query parameter
  4. Handle pagination: Use pagination_token from response to fetch next page
  5. Request fields: Add tweet.fields and expansions to get author, media, metrics
  6. Parse results: Check meta.result_count to see how many posts matched

Common gotchas

  • Bearer Token expires: Regenerating it in the console invalidates the old one. Update all running applications immediately.
  • Rate limits reset every 15 minutes: Don't assume a fixed reset time; use the x-rate-limit-reset header value.
  • Expansions require fields: Requesting author_id expansion alone returns only the ID. Add user.fields to get author details.
  • Search queries are case-insensitive: from:X and from:x match the same user.
  • Filtered stream rules are persistent: Rules remain active until explicitly deleted. Check existing rules before adding duplicates.
  • Keep-alive signals are blank lines: Don't treat them as errors; they maintain the connection.
  • Post edits create new IDs: Edited posts get new IDs; check edit_history_tweet_ids to link versions.
  • Owned Reads pricing: Requests for your own data (posts, bookmarks, followers) cost $0.001 per resource—much cheaper than standard reads.
  • Field order in responses may differ: Don't rely on response field order matching request order.
  • Some fields require user context: Private metrics and certain user fields need OAuth, not Bearer Token.

Verification checklist

Before submitting work with the X API:

  • Bearer Token is stored securely (not in code or version control)
  • Rate limit headers are checked; exponential backoff implemented for 429 errors
  • Filtered stream rules are verified with GET /2/tweets/search/stream/rules before assuming they're active
  • Expansions are paired with corresponding field parameters (e.g., author_id with user.fields)
  • Pagination is handled correctly; pagination_token is used for subsequent requests
  • Keep-alive signals in streams are not treated as errors
  • Error responses are parsed from errors array, not data field
  • API usage is monitored in Developer Console to track costs
  • Owned Reads are used where applicable to reduce costs
  • OAuth flows (if used) include proper error handling and token refresh logic

Resources


For additional documentation and navigation, see: https://docs.x.com/llms.txt

平台分布

Local Agent

70%
按下载量换算205

安全审计

暂无安全审计结果可展示。

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills