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

twittertwitter 搜索

Agent Skill

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

总安装

1,126

周安装

46

GitHub Stars

22

下载量

361
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/tdimino/claude-code-minoan --skill twitter

简介

用于根据关键词、任务场景快速定位候选结果,适合信息检索和筛选任务。

  • 它可在 Codex、Claude、Cursor、Gemini CLI 中辅助查找相关线索或来源信息。
  • 使用时建议结合具体仓库路径和原始 README 核验实际用法,确保权限可控。
  • 安装命令:npx skills add https://github.com/tdimino/claude-code-minoan --skill twitter。
  • 安装前应确认是否会触发联网、命令执行或文件读写,避免安全风险。

SKILL.md

Twitter/X — Dual-Mode Integration

Three tools for different operations. Choose by task:

ModeToolAuthCostUse For
Official APIx-searchBearer token$0.005/read, $0.01/userSearch, research, profiles, threads, monitoring
Official APIx-search post/replyOAuth 1.0a$0.01/postPosting, replying via official API
SessionbirdBrowser cookiesFreePosting, replying, bookmarks, mentions, media
ArchivalsmaugVia birdFreeBookmark/likes processing, AI-powered filing

Setup

x-search (Official API v2)

Requires an X API Bearer token from console.x.com. Pay-per-use — no monthly commitment.

# Store token (pick one)
echo 'X_BEARER_TOKEN=your_token_here' >> ~/.claude/skills/twitter/.env
# OR
export X_BEARER_TOKEN=your_token_here
# OR
mkdir -p ~/.config/env && echo 'X_BEARER_TOKEN=your_token_here' >> ~/.config/env/global.env

OAuth 1.0a (for posting)

Posting requires OAuth 1.0a credentials in addition to the Bearer token.

  1. Go to console.x.com → your project → Keys and tokens
  2. Under "Consumer Keys", copy API Key and API Key Secret
  3. Under "Authentication Tokens", generate Access Token and Access Token Secret (with Read and Write permissions)
  4. Add all four to ~/.claude/skills/twitter/.env:
X_API_KEY=your_api_key
X_API_SECRET=your_api_secret
X_ACCESS_TOKEN=your_access_token
X_ACCESS_TOKEN_SECRET=your_access_token_secret

bird CLI

brew install steipete/tap/bird   # or: npm install -g @steipete/bird
bird whoami                       # verify auth (uses browser cookies)

Smaug (archival)

cd ~/tools/smaug && npx smaug setup

x-search — Official API Research

Run via: bun run ~/.claude/skills/twitter/x-search/x-search.ts <command>

Quick Search (cost-conscious default)

bun run ~/.claude/skills/twitter/x-search/x-search.ts search "AI agents" --quick
# 1 page, max 10 results, auto noise filter, 1hr cache, cost summary
# Est. cost: ~$0.50

Full Search

bun run ~/.claude/skills/twitter/x-search/x-search.ts search "Claude Code" --pages 3 --sort likes --since 1d
bun run ~/.claude/skills/twitter/x-search/x-search.ts search "BG3 mods" --from LarianStudios --quality
bun run ~/.claude/skills/twitter/x-search/x-search.ts search "Minoan archaeology" --markdown --save

Search Options

FlagDefaultDescription
--quickoff1 page, max 10, noise filter, 1hr cache
--sortlikes`likes\impressions\retweets\recent`
--since7d`1h\3h\12h\1d\7d` or ISO timestamp
--pages11-5 pages (100 tweets/page)
--limit15Max results displayed
--fromShorthand for from:username
--qualityoffFilter tweets with < 10 likes
--min-likes0Minimum like threshold
--no-repliesoffExclude replies
--saveoffSave markdown to ~/tools/smaug/knowledge/research/
--jsonoffRaw JSON output
--markdownoffMarkdown research document

Profiles, Threads, Single Tweets

bun run ~/.claude/skills/twitter/x-search/x-search.ts profile AnthropicAI --count 10
bun run ~/.claude/skills/twitter/x-search/x-search.ts thread 1234567890 --pages 3
bun run ~/.claude/skills/twitter/x-search/x-search.ts tweet 1234567890

Feed -- Daily Reading from Followed Accounts

Pull the latest tweets from named account groups, filtered by time window. Uses batched OR-query search (cheap, ~$0.005/tweet).

# Read today's tweets from a feed group
bun run ~/.claude/skills/twitter/x-search/x-search.ts feed mygroup --since 1d

# Last week from all groups
bun run ~/.claude/skills/twitter/x-search/x-search.ts feed all --since 7d

# Custom accounts (comma-separated)
bun run ~/.claude/skills/twitter/x-search/x-search.ts feed user1,user2,user3 --since 1d

# Free via bird CLI (no API cost)
bun run ~/.claude/skills/twitter/x-search/x-search.ts feed mygroup --since 1d --bird

# Save as markdown research doc
bun run ~/.claude/skills/twitter/x-search/x-search.ts feed mygroup --since 7d --markdown --save

Feed options: --since 1d|7d|1h|3h|12h, --limit N (tweets per account, default 4), --bird (free), --markdown, --save, --json, --no-cache.

Feed Groups -- Named Account Collections

bun run ~/.claude/skills/twitter/x-search/x-search.ts feedgroup                              # list all
bun run ~/.claude/skills/twitter/x-search/x-search.ts feedgroup show mygroup                  # show group
bun run ~/.claude/skills/twitter/x-search/x-search.ts feedgroup create tech "Tech follows"
bun run ~/.claude/skills/twitter/x-search/x-search.ts feedgroup add tech karpathy "AI research"
bun run ~/.claude/skills/twitter/x-search/x-search.ts feedgroup remove tech karpathy
bun run ~/.claude/skills/twitter/x-search/x-search.ts feedgroup delete tech
bun run ~/.claude/skills/twitter/x-search/x-search.ts feedgroup alias daily tech,news

Groups stored at ~/.claude/skills/twitter/x-search/data/feedgroups.json. Ships empty — populate with your own accounts.

Watchlist

Monitor accounts with batch checking (uses profile API, more expensive).

bun run ~/.claude/skills/twitter/x-search/x-search.ts watchlist                    # show list
bun run ~/.claude/skills/twitter/x-search/x-search.ts watchlist add kikismith "Ancient art"
bun run ~/.claude/skills/twitter/x-search/x-search.ts watchlist remove kikismith
bun run ~/.claude/skills/twitter/x-search/x-search.ts watchlist check              # check all accounts

Watchlist stored at ~/.claude/skills/twitter/x-search/data/watchlist.json.

Posting and Replying (OAuth 1.0a)

Post tweets and replies via the official API. Requires OAuth 1.0a credentials (see setup above).

# Post a tweet
bun run ~/.claude/skills/twitter/x-search/x-search.ts post "Hello from x-search!"

# Reply to a tweet
bun run ~/.claude/skills/twitter/x-search/x-search.ts reply 1234567890 "Great thread!"
  • 280-character limit enforced
  • Cost: $0.01 per post
  • Returns the posted tweet URL
  • Errors: descriptive messages for missing credentials, permission issues, rate limits

Cache

15-minute TTL (1hr in quick mode). File-based, auto-managed.

bun run ~/.claude/skills/twitter/x-search/x-search.ts cache clear

Cost Reference

ResourceCost
Post read$0.005
User lookup$0.010
Post create$0.010
Quick search (~100 tweets)~$0.50
3-page deep search (~300 tweets)~$1.50
Profile check~$0.51
Cached repeatFREE

X API deduplicates reads within 24h. Cache prevents redundant queries within 15min.


bird CLI — Session-Based Operations

Uses undocumented Twitter GraphQL APIs via browser cookies. Free but may break when Twitter rotates internals.

Posting

bird tweet "Hello world"
bird reply 123456789 "Great thread!"
bird tweet "With image" --media photo.png --alt "Description"

Reading

bird read 123456789
bird thread https://x.com/user/status/123456789
bird replies 123456789 --json

Search (free, via GraphQL)

bird search "query" -n 10
bird search "from:anthropic" -n 20 --json

Monitoring

bird mentions -n 10
bird bookmarks -n 20
bird likes -n 20
bird following -n 50
bird followers -n 50

Maintenance

bird whoami          # verify auth
bird check           # credential sources
bird query-ids --fresh  # refresh when Twitter rotates IDs

Smaug — Bookmark Archival

Archives bookmarks/likes to organized markdown with AI categorization.

cd ~/tools/smaug
npx smaug run                    # fetch + process with Claude
npx smaug fetch 20               # fetch only
npx smaug fetch --source likes   # likes instead of bookmarks
npx smaug run -t                 # track token costs
npx smaug status                 # check state

Output: bookmarks.md, knowledge/tools/, knowledge/articles/


Research Methodology

For deep X research, follow this agentic loop:

  1. Decompose — Break topic into 2-3 search queries targeting different angles
  2. Search — Run each query with --quick first to assess signal quality
  3. Refine — Narrow queries based on initial results (add --from, --quality, --since)
  4. Thread — Follow high-value conversation threads for deeper context
  5. Deep-Dive — Re-run best queries with --pages 3 --markdown --save
  6. Synthesize — Compile findings from saved markdown into analysis

Default to --quick for exploratory queries. Use full mode only for confirmed-valuable searches.


Troubleshooting

x-search: "X_BEARER_TOKEN not found"

Set token via env, ~/.config/env/global.env, or ~/.claude/skills/twitter/.env. Get one at console.x.com.

bird: 403 Errors

Browser cookies expired. Log into Twitter in browser, then bird check.

bird: Query ID Errors

Twitter rotated internals. Run bird query-ids --fresh.

Rate Limiting (429)

Wait for reset. x-search shows reset time. bird: wait a few minutes.


When to Use Which

TaskToolWhy
Search tweets by topicx-searchOfficial API, cost-tracked, cached
Research a topic deeplyx-searchMulti-page, markdown output, save
Daily feed from followed accountsx-search feedCheap batched OR-query, grouped output
Monitor specific accountsx-search watchlistBatch check with cost tracking
Post a tweet or replyx-search post/replyOfficial API, reliable, $0.01/post
Post with mediabirdFree, media upload support
Read a specific tweet/threadbird (free) or x-search (tracked)bird for quick reads, x-search for research
Check mentionsbirdFree, real-time
Archive bookmarkssmaugAI categorization, markdown output
Fetch bookmarks/likesbird + smaugSession-based access

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.32%
按下载量换算120

Claude

29.67%
按下载量换算107

Cursor

19.44%
按下载量换算70

Gemini CLI

8.2%
按下载量换算30

安全审计

Gen Agent Trust Hub

可疑

Socket

未通过

Snyk

可疑

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills