Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

twittertwitter 搜索

Agent Skill

twitter 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

115,682

周安装

4,803

GitHub Stars

9

下载量

38,698
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/starchild-ai-agent/official-skills --skill twitter

简介

推文、用户、关注者和参与度指标的只读 Twitter/X 数据查找。

  • 九个工具涵盖高级运算符的推文搜索、用户个人资料查找、关注者/关注列表、回复、转发和用户发现
  • 支持高级查询语法,包括关键字、发件人/收件人过滤器、主题标签、现金标签、参与阈值、日期范围和媒体/链接过滤器
  • 基于游标的分页,用于浏览所有端点的大型结果集
  • 需要 TWITTER_API_KEY
  • 环境变量;遵守 API 速率限制

SKILL.md

🔴 Routing Rule — Composio vs Native Twitter Tools

If the user has connected Twitter via Composio (OAuth), use Composio for account actions on their own profile:

User intentUse
Post a tweet / 发推Composio TWITTER_CREATION_OF_A_POST
Query own profile / 查自己的资料Composio TWITTER_USER_LOOKUP_ME
Delete own tweet / 删自己的推Composio TWITTER_POST_DELETE_BY_POST_ID
Lookup someone else's profile or tweetsThis skill (twitter_user_info, twitter_user_tweets)
Search tweets about a topicThis skill (twitter_search_tweets)
Fetch tweets by URL or IDThis skill (twitter_get_tweets)

Rationale: Composio uses the user's own OAuth-connected Twitter account, so it can post, delete, and access self-endpoints. This skill uses a separate API key that is read-only and cannot act on the user's behalf.

🔴 HARD LIMITS — READ FIRST

⛔ CALL AT MOST 3 TWITTER TOOLS PER RESPONSE. STOP AFTER 3 CALLS. After each tool call, check: "Do I have enough data to answer?" If yes → STOP AND REPLY. ⛔ NEVER call bash or write_file for any twitter task — reason inline, no scripts. ⛔ NEVER paginate unless user explicitly asks for more — first page is enough. ⛔ NEVER call lunar_coin, lunar_coin_time_series, or any LunarCrush/CoinGecko tool — Twitter sentiment 问题只用 twitter_search_tweets 回答,不跨 skill。 ⛔ NEVER call coin_price, cg_trending, cg_coins_markets — 价格数据超出 Twitter skill 范围。

🔗 URL Handling — x.com / twitter.com

⛔ NEVER use web_fetch for x.com or twitter.com URLs — Twitter blocks scraping, you'll only get a login wall. ✅ ALWAYS extract the tweet ID from the URL and use twitter_get_tweets.
URL patternExtractTool call
x.com/{user}/status/{id}tweet ID = {id}twitter_get_tweets(tweet_ids=["{id}"])
twitter.com/{user}/status/{id}tweet ID = {id}twitter_get_tweets(tweet_ids=["{id}"])
x.com/{user}username = {user}twitter_user_info(username="{user}")

Example: User sends https://x.com/zerohedge/status/2042670029548794219 → Extract ID: 2042670029548794219 → Call: twitter_get_tweets(tweet_ids=["2042670029548794219"]) → Never: web_fetch("https://x.com/...")

💡 Few-Shot Examples

Q: 找 3 个关于 BTC ETF 的高赞推文,只要 ID 和点赞数 → PLAN: 1 call twitter_search_tweets("BTC ETF min_faves:100") → pick top 3 from results → reply JSON → STOP after 1 call. Total tools: 1

Q: @elonmusk 最近发的推文哪条点赞最多?只要数字 → PLAN: 1 call twitter_user_tweets("elonmusk") → find max likes in results → reply number → STOP after 1 call. Total tools: 1

Q: 搜索 solana 推文,找点赞最多那条的作者 → PLAN: 1 call twitter_search_tweets("solana") → find tweet with most likes → extract username → STOP after 1 call. Total tools: 1

Q: 对比 @A 和 @B 谁粉丝多,再看粉丝多的最新推文 → PLAN: call twitter_user_info("A") + twitter_user_info("B") → determine winner → call twitter_user_tweets(winner) → Total tools: 3. STOP.

⚡ FAST PATHS (act immediately, no clarification needed)

Trigger keywordsAction
x.com or twitter.com URL with /status/{id}Extract tweet ID → twitter_get_tweets(tweet_ids=["{id}"])never web_fetch
x.com or twitter.com URL with /{username} onlyExtract username → twitter_user_info(username="{username}")
crypto sentiment / 情绪扫描 / market mood / BTC ETH SOL 讨论Call twitter_search_tweets once per coin: "$BTC", "$ETH", "$SOL" — summarize tone, no user profile lookups
search tweets about XCall twitter_search_tweets with the topic
who is @usernameCall twitter_user_info
what did @username postCall twitter_user_tweets

Tool Decision Tree

"Search for tweets about a topic"twitter_search_tweets Advanced query with operators: keywords, from:user, #hashtag, $cashtag, min_faves, date ranges.

"Look up a specific tweet or set of tweets"twitter_get_tweets Pass one or more tweet IDs directly.

"Who is this Twitter account?"twitter_user_info Profile data: bio, follower count, tweet count, verification.

"What has this account been posting?"twitter_user_tweets Recent tweets from a specific user.

"Who follows this account?"twitter_user_followers List of followers for a user.

"Who does this account follow?"twitter_user_followings List of accounts a user follows.

"What are people saying in reply to this tweet?"twitter_tweet_replies Replies to a specific tweet by ID.

"Who retweeted this?"twitter_tweet_retweeters Users who retweeted a specific tweet.

"Find accounts related to a topic"twitter_search_users Search users by name or keyword.

"Read a long X article"twitter_get_article Pass the article tweet ID. Returns title, preview, cover, and content blocks.

"Get full thread context"twitter_tweet_thread_context One call returns parent chain + direct replies for the target tweet.

"Who quoted this tweet?"twitter_tweet_quote Get quote tweets for a specific tweet ID.

"What is trending now?"twitter_get_trends Get trends with optional woeid, country, category, limit.

"Crypto sentiment scan / 情绪扫描 / market mood"twitter_search_tweets (call once per coin) For BTC/ETH/SOL sentiment: search "$BTC", "$ETH", "$SOL" separately, then summarize tone inline. ⛔ NEVER call twitter_user_info, twitter_user_followers, or twitter_user_tweets during a sentiment scan — text analysis only.

Available Tools

ToolDescriptionKey Params
twitter_search_tweetsAdvanced tweet searchquery (required), cursor
twitter_get_tweetsGet tweets by IDtweet_ids (array, required)
twitter_user_infoUser profile lookupusername (required)
twitter_user_tweetsUser's recent tweetsusername (required), cursor
twitter_user_followersUser's followersusername (required), cursor
twitter_user_followingsUser's followingsusername (required), cursor
twitter_tweet_repliesReplies to a tweettweet_id (required), cursor
twitter_tweet_retweetersWho retweetedtweet_id (required), cursor
twitter_search_usersSearch for usersquery (required), cursor
twitter_get_articleGet long-form articletweet_id (required)
twitter_tweet_thread_contextGet full thread contexttweet_id (required)
twitter_tweet_quoteGet quote tweetstweet_id (required), cursor
twitter_get_trendsGet trendswoeid, country, category, limit

Usage Patterns

⚠️ Token Budget Rules

  • Sentiment scan: max 3 twitter_search_tweets calls (one per coin), then summarize. Stop.
  • Account research: max 2 tool calls total unless user asks for more depth.
  • Never chain more than 5 Twitter tool calls in one response.

Research an account

  1. twitter_user_info — get profile, follower count, bio
  2. twitter_user_tweets — see what they've been posting
  3. twitter_user_followings — who they follow (reveals interests)

Track a topic or token

  1. twitter_search_tweets with query like "$SOL min_faves:50" — find popular tweets
  2. twitter_search_users with the topic — find relevant accounts

Output Constraints (IMPORTANT for small models)

  • Max 1 twitter_search_tweets call per coin/topic — do not repeat searches for same query. First result set is sufficient.
  • Max 3 twitter_user_info calls per response — only look up the most relevant accounts.
  • Never call bash or write_file for Twitter data — reason inline directly from tool results.
  • Sentiment summaries: after 1 search call, summarize tone inline in 3–5 sentences. Done.
  • Pagination: only fetch next page if user explicitly asks for more results.
  • After getting search results: sort/filter in your head, do not call bash to sort.

Analyze engagement on a tweet

  1. twitter_get_tweets — get the tweet and its metrics
  2. twitter_tweet_replies — see the conversation
  3. twitter_tweet_retweeters — see who amplified it

Find influencers in a space

  1. twitter_search_users with keyword (e.g. "DeFi analyst")
  2. twitter_user_info on top results to compare follower counts
  3. twitter_user_tweets to check content quality

Search Query Operators

The twitter_search_tweets tool supports advanced operators:

OperatorExampleDescription
keywordbitcoinTweets containing the word
exact phrase"ethereum merge"Exact phrase match
from:from:elonmuskTweets by a specific user
to:to:elonmuskTweets replying to a user
#hashtag#cryptoTweets with hashtag
$cashtag$BTCTweets with cashtag
lang:lang:enFilter by language
has:mediahas:mediaTweets with images/video
has:linkshas:linksTweets with URLs
is:replyis:replyOnly replies
min_faves:min_faves:100Minimum likes
min_retweets:min_retweets:50Minimum retweets
since:since:2024-01-01Tweets after date
until:until:2024-12-31Tweets before date

Combine operators: from:VitalikButerin $ETH min_faves:100 since:2024-01-01

Pagination

Most endpoints support cursor-based pagination. When a response includes a cursor value, pass it as the cursor parameter to get the next page. If no cursor is returned, you've reached the end.

Notes

  • API key required: Set TWITTER_API_KEY environment variable. Tools will error without it.
  • Read-only: These tools only retrieve data. No posting, liking, or following.
  • For posting, deleting, or accessing the user's own Twitter account: use the composio skill (see TWITTER_CREATION_OF_A_POST, TWITTER_USER_LOOKUP_ME, TWITTER_POST_DELETE_BY_POST_ID). This skill cannot act on the user's behalf.
  • Usernames: Always pass without the @ prefix (e.g. "elonmusk" not "@elonmusk").
  • Tweet IDs: Use string format for tweet IDs to avoid integer overflow issues.
  • Rate limits: The API has rate limits. If you get rate-limited, wait before retrying.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.25%
按下载量换算14,802

Claude

26.93%
按下载量换算10,421

Cursor

16.52%
按下载量换算6,393

Gemini CLI

8.66%
按下载量换算3,351

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills