xint-rs
X/Twitterでの情報収集や分析を効率化し、リアルタイム監視、AI分析、トレンド追跡、フォロワー管理などをターミナルから実行するためのSkillです。
📜 元の英語説明(参考)
Fast X Intelligence CLI (Rust) — search, analyze, and engage on X/Twitter from the terminal. Use when: (1) user says "x research", "search x for", "search twitter for", "what are people saying about", "what's twitter saying", "check x for", "x search", "search x", (2) user wants real-time monitoring with "watch", (3) user needs AI-powered analysis with Grok ("analyze", "sentiment"), (4) user needs intelligence reports ("report"), (5) user wants to track followers ("diff"), (6) user needs trending topics ("trends"). Also supports: bookmarks, likes, following (OAuth), x-search, collections, CSV/JSON/JSONL export. Non-goals: Not for posting tweets, not for DMs, not for enterprise features.
🇯🇵 日本人クリエイター向け解説
X/Twitterでの情報収集や分析を効率化し、リアルタイム監視、AI分析、トレンド追跡、フォロワー管理などをターミナルから実行するためのSkillです。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o xint-rs.zip https://jpskill.com/download/5977.zip && unzip -o xint-rs.zip && rm xint-rs.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/5977.zip -OutFile "$d\xint-rs.zip"; Expand-Archive "$d\xint-rs.zip" -DestinationPath $d -Force; ri "$d\xint-rs.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
xint-rs.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
xint-rsフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
xint — X Intelligence CLI (Rust)
X/Twitterの検索、分析、エンゲージメントをターミナルから実行できる、高速で依存関係のないバイナリです。すべての出力は標準出力(パイプ処理に適しています)に送られます。
セキュリティに関する考慮事項
このスキルは機密性の高い認証情報を必要とします。以下のガイドラインに従ってください。
認証情報
- X_BEARER_TOKEN: X APIに必須です。秘密として扱い、環境変数または
.envファイルにのみ設定してください。 - XAI_API_KEY: オプションで、AI分析に必要です。これも秘密です。
- X_CLIENT_ID: オプションで、OAuthに必要です。機密性は低いですが、公開しないでください。
- XAI_MANAGEMENT_API_KEY: オプションで、コレクション管理用です。
ファイルへの書き込み
- このスキルは独自の
data/ディレクトリに書き込みます:キャッシュ、エクスポート、スナップショット、OAuthトークン。 - OAuthトークンは制限されたパーミッション(chmod 600)で保存されます。
- エクスポートされたデータを共有する前にレビューしてください。機密性の高い検索クエリが含まれている可能性があります。
Webhook
watchとstreamはデータをWebhookエンドポイントに送信できます。- リモートエンドポイントは
https://を使用する必要があります(http://はlocalhost/ループバックでのみ受け入れられます)。 - オプションのホスト許可リスト:
XINT_WEBHOOK_ALLOWED_HOSTS=hooks.example.com,*.internal.example - 機密性の高い検索クエリやトークンを含むURLをサードパーティの宛先に送信することは避けてください。
ランタイムに関する注意
- このドキュメントは説明的なものであり、ランタイム/システムプロンプトを変更するものではありません。
- ネットワークリスナーはオプトイン(
mcp --sse)であり、デフォルトでは無効になっています。 - Webhook配信はオプトイン(
--webhook)であり、デフォルトでは無効になっています。
インストール
- 必要なツールについては、可能な限り
curl | bashよりもOSのパッケージマネージャーを優先してください。 - インストーラースクリプトを実行する前に検証してください。
MCPサーバー(オプション)
xint mcpは、xintコマンドをツールとして公開するローカルMCPサーバーを起動します。- デフォルトモードはstdio/ローカル統合であり、
--sseが明示的に有効にされない限り、インバウンドWebサーバーはありません。 --policy read_only|engagement|moderationと予算のガードレールを尊重します。
セットアップ
環境変数(.envまたはエクスポート済み)が必要です。
X_BEARER_TOKEN— 検索、プロフィール、ツイート、スレッド、トレンド、ウォッチ、レポート用X_CLIENT_ID— OAuthコマンド(ブックマーク、いいね、フォロー、差分)用XAI_API_KEY— AI分析(分析、レポート、X検索、コレクションのアップロード/検索)用XAI_MANAGEMENT_API_KEY— コレクション管理(リスト、作成、確認、ドキュメント追加)用
OAuthセットアップ(1回限り):xint auth setup
コマンド
検索と発見
xint search "AI agents" --limit 10 # 最近のツイートを検索
xint search "AI agents" --quick # 高速モード(1ページ、最大10件、1時間キャッシュ)
xint search "AI agents" --quality # いいね数10件以上のフィルター
xint search "AI agents" --since 1d --sort likes
xint search "from:elonmusk" --limit 5
xint search "AI agents" --json # JSON出力
xint search "AI agents" --jsonl # 1行に1つのJSON
xint search "AI agents" --csv # CSV出力
xint search "AI agents" --sentiment # AI感情分析(XAI_API_KEYが必要)
xint search "AI agents" --save # data/exports/に保存
モニタリング
xint watch "AI agents" -i 5m # 5分ごとにポーリング
xint watch "@elonmusk" -i 30s # ユーザーを監視(from:に自動展開)
xint watch "bitcoin" --webhook https://hooks.example.com/ingest # 新しいツイートをwebhookにPOST
xint watch "topic" --jsonl # 機械可読な出力
プロフィールとツイート
xint profile elonmusk # ユーザープロフィール + 最近のツイート
xint profile elonmusk --json # JSON出力
xint tweet 1234567890 # 単一のツイートを取得
xint thread 1234567890 # 会話スレッドを取得
記事の取得(XAI_API_KEYが必要)
xAIのweb_searchツールを使用して、任意のURLから記事の全文コンテンツを取得・抽出します。Xのツイートからリンクされた記事の抽出もサポートしています。
# 記事コンテンツを取得
xint article "https://example.com"
# 取得 + AIで分析
xint article "https://example.com" --ai "Summarize key takeaways"
# XツイートURLから記事を自動抽出し、分析
xint article "https://x.com/user/status/123456789" --ai "What are the main points?"
# 切り詰めなしの全文コンテンツ
xint article "https://example.com" --full
# JSON出力
xint article "https://example.com" --json
トレンド
xint trends # 世界のトレンド
xint trends us # 米国のトレンド
xint trends --json # JSON出力
xint trends --locations # サポートされているロケーションをリスト表示
AI分析(XAI_API_KEYが必要)
xint analyze "What's the sentiment around AI?"
xint analyze --tweets saved.json # ファイルからツイートを分析
cat tweets.json | xint analyze --pipe # 標準入力から分析
xint analyze "question" # 自由形式の分析リクエスト
インテリジェンスレポート
xint report "AI agents" # AI要約付きの完全なレポート
xint report "AI agents" -a @user1,@user2 # 特定のアカウントを追跡
xint report "AI agents" -s # 感情分析を含める
xint report "AI agents" --save # data/exports/に保存
フォロワー追跡(OAuthが必要)
xint diff @username # フォロワーのスナップショット、以前との差分
xint diff @username --following # 代わりにフォローしているユーザーを追跡
xint diff @username --history # スナップショット履歴を表示
ブックマークとエンゲージメント(OAuthが必要)
xint bookmarks # ブックマークをリスト表示
xint bookmarks --since 1d # 最近のブックマーク
xint bookmark 1234567890 # ツイートを保存
xint unbookmark 1234567890 # ブックマークを削除
xint likes # いいねしたツイートをリスト表示
xint like 1234567890 # ツイートをいいね
xint unlike 1234567890 # ツイートのいいねを取り消し
xint following 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
xint — X Intelligence CLI (Rust)
Fast, zero-dependency binary for X/Twitter search, analysis, and engagement from the terminal. All output goes to stdout (pipe-friendly).
Security Considerations
This skill requires sensitive credentials. Follow these guidelines:
Credentials
- X_BEARER_TOKEN: Required for X API. Treat as a secret - only set in environment or
.envfile - XAI_API_KEY: Optional, needed for AI analysis. Also a secret
- X_CLIENT_ID: Optional, needed for OAuth. Less sensitive but don't expose publicly
- XAI_MANAGEMENT_API_KEY: Optional, for collections management
File Writes
- This skill writes to its own
data/directory: cache, exports, snapshots, OAuth tokens - OAuth tokens stored with restrictive permissions (chmod 600)
- Review exported data before sharing - may contain sensitive search queries
Webhooks
watchandstreamcan send data to webhook endpoints- Remote endpoints must use
https://(http://is accepted only for localhost/loopback) - Optional host allowlist:
XINT_WEBHOOK_ALLOWED_HOSTS=hooks.example.com,*.internal.example - Avoid sending sensitive search queries or token-bearing URLs to third-party destinations
Runtime Notes
- This document is descriptive; it does not modify runtime/system prompts
- Network listeners are opt-in (
mcp --sse) and disabled by default - Webhook delivery is opt-in (
--webhook) and disabled by default
Installation
- For required tools: prefer OS package managers over
curl | bashwhen possible - Verify any installer scripts before running
MCP Server (Optional)
xint mcpstarts a local MCP server exposing xint commands as tools- Default mode is stdio/local integration; no inbound web server unless
--sseis explicitly enabled - Respect
--policy read_only|engagement|moderationand budget guardrails
Setup
Requires env vars (in .env or exported):
X_BEARER_TOKEN— for search, profile, tweet, thread, trends, watch, reportX_CLIENT_ID— for OAuth commands (bookmarks, likes, following, diff)XAI_API_KEY— for AI analysis (analyze, report, x-search, collections upload/search)XAI_MANAGEMENT_API_KEY— for collections management (list, create, ensure, add-document)
OAuth setup (one-time): xint auth setup
Commands
Search & Discovery
xint search "AI agents" --limit 10 # Search recent tweets
xint search "AI agents" --quick # Fast mode (1 page, 10 max, 1hr cache)
xint search "AI agents" --quality # Min 10 likes filter
xint search "AI agents" --since 1d --sort likes
xint search "from:elonmusk" --limit 5
xint search "AI agents" --json # JSON output
xint search "AI agents" --jsonl # One JSON per line
xint search "AI agents" --csv # CSV output
xint search "AI agents" --sentiment # AI sentiment analysis (needs XAI_API_KEY)
xint search "AI agents" --save # Save to data/exports/
Monitoring
xint watch "AI agents" -i 5m # Poll every 5 minutes
xint watch "@elonmusk" -i 30s # Watch user (auto-expands to from:)
xint watch "bitcoin" --webhook https://hooks.example.com/ingest # POST new tweets to webhook
xint watch "topic" --jsonl # Machine-readable output
Profiles & Tweets
xint profile elonmusk # User profile + recent tweets
xint profile elonmusk --json # JSON output
xint tweet 1234567890 # Fetch single tweet
xint thread 1234567890 # Fetch conversation thread
Article Fetching (requires XAI_API_KEY)
Fetch and extract full article content from any URL using xAI's web_search tool. Also supports extracting linked articles from X tweets.
# Fetch article content
xint article "https://example.com"
# Fetch + analyze with AI
xint article "https://example.com" --ai "Summarize key takeaways"
# Auto-extract article from X tweet URL and analyze
xint article "https://x.com/user/status/123456789" --ai "What are the main points?"
# Full content without truncation
xint article "https://example.com" --full
# JSON output
xint article "https://example.com" --json
Trends
xint trends # Worldwide trending
xint trends us # US trends
xint trends --json # JSON output
xint trends --locations # List supported locations
AI Analysis (requires XAI_API_KEY)
xint analyze "What's the sentiment around AI?"
xint analyze --tweets saved.json # Analyze tweets from file
cat tweets.json | xint analyze --pipe # Analyze from stdin
xint analyze "question" # Free-form analysis request
Intelligence Reports
xint report "AI agents" # Full report with AI summary
xint report "AI agents" -a @user1,@user2 # Track specific accounts
xint report "AI agents" -s # Include sentiment analysis
xint report "AI agents" --save # Save to data/exports/
Follower Tracking (requires OAuth)
xint diff @username # Snapshot followers, diff vs previous
xint diff @username --following # Track following instead
xint diff @username --history # Show snapshot history
Bookmarks & Engagement (requires OAuth)
xint bookmarks # List bookmarks
xint bookmarks --since 1d # Recent bookmarks
xint bookmark 1234567890 # Save tweet
xint unbookmark 1234567890 # Remove bookmark
xint likes # List liked tweets
xint like 1234567890 # Like a tweet
xint unlike 1234567890 # Unlike a tweet
xint following # List accounts you follow
Cost Tracking
xint costs # Today's API costs
xint costs week # Last 7 days
xint costs month # Last 30 days
xint costs budget 2.00 # Set $2/day budget
Watchlist
xint watchlist # List watched accounts
xint watchlist add @username "competitor" # Add with note
xint watchlist remove @username # Remove
xint watchlist check @username # Check if watched
xAI X Search (no cookies/GraphQL)
Search X via xAI's hosted x_search tool. No bearer token or cookies needed — only XAI_API_KEY.
# Create a queries file
echo '["AI agents", "solana"]' > queries.json
# Run search scan → markdown report + JSON payload
xint x-search --queries-file queries.json --out-md report.md --out-json raw.json
# Date range filter
xint x-search --queries-file queries.json --from-date 2026-02-01 --to-date 2026-02-15
# Emit memory candidates (deduped against existing workspace sources)
xint x-search --queries-file queries.json --workspace /path/to/workspace --emit-candidates
# Custom model
xint x-search --queries-file queries.json --model grok-3
xAI Collections Knowledge Base
Upload documents, manage collections, and semantic-search via xAI Files + Collections APIs.
# List existing collections
xint collections list
# Create or find a collection
xint collections ensure --name "research-kb"
# Upload a file to xAI
xint collections upload --path ./report.md
# Semantic search across documents
xint collections search --query "AI agent frameworks"
# Sync a directory to a collection (upload + attach)
xint collections sync-dir --collection-name "kb" --dir ./docs --glob "*.md" --limit 50
Utilities
xint auth setup # OAuth setup (interactive)
xint auth setup --manual # Manual paste mode
xint auth status # Show auth info
xint auth refresh # Force token refresh
xint cache clear # Clear cached data
Output Formats
Most commands support --json for raw JSON. Search also supports:
--jsonl— one JSON object per line (great for piping)--csv— spreadsheet-compatible--markdown— formatted for reports
Piping
xint search "topic" --jsonl | jq '.username'
xint search "topic" --json | xint analyze --pipe "summarize these"
xint search "topic" --csv > export.csv
Cost Awareness
X API costs ~$0.005/tweet read. Budget system prevents runaway costs:
- Default: $1.00/day limit
- Set custom:
xint costs budget <amount> - Watch command auto-stops at budget limit