/SKILL.md
X Intelligence CLI for searching, monitoring, and analyzing X/Twitter from the terminal. Use for X/Twitter research prompts such as "search x", "find tweets about", "what's X saying", trend checks, follower diffs, real-time watch tasks, sentiment/report analysis, and bookmark-sync workflows. Best when recent community discourse matters (library/API changes, launches, market or cultural events). Supports search, watch, trends, bookmarks, likes/following (OAuth), Grok analysis, and JSON/JSONL/CSV/Markdown export. Non-goals: posting original tweets, DMs, or enterprise-only features.
npx skillsauth add 0xnyk/xint-rs xint-rsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Fast, zero-dependency binary for X/Twitter search, analysis, and engagement from the terminal. All output goes to stdout (pipe-friendly).
This skill requires sensitive credentials. Follow these guidelines:
.env filedata/ directory: cache, exports, snapshots, OAuth tokenswatch command supports --webhook to send data to external URLsmcp --sse, watch --webhook)curl | bash when possiblexint mcp starts a local MCP server exposing xint commands as tools--sse is explicitly enabled--policy read_only|engagement|moderation and budget guardrailsRequires 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
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/
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://example.com/webhook # POST new tweets to webhook
xint watch "topic" --jsonl # Machine-readable output
xint profile elonmusk # User profile + recent tweets
xint profile elonmusk --json # JSON output (includes connection_status, subscription_type)
xint tweet 1234567890 # Fetch single tweet
xint thread 1234567890 # Fetch conversation thread
xint reposts <tweet_id> # List users who reposted
xint reposts <tweet_id> --limit 50 # Limit results
xint reposts <tweet_id> --json # JSON output
xint users "AI researcher" # Find users by keyword
xint users "solana dev" --limit 10 --json # JSON output with limit
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
xint trends # Worldwide trending
xint trends us # US trends
xint trends --json # JSON output
xint trends --locations # List supported locations
xint analyze "What's the sentiment around AI?" # Default model: grok-4-1-fast
xint analyze --tweets saved.json # Analyze tweets from file
cat tweets.json | xint analyze --pipe # Analyze from stdin
xint analyze "question" --model grok-4 # Use specific model
Available models: grok-4, grok-4-1-fast (default), grok-3, grok-3-mini, grok-2
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/
xint diff @username # Snapshot followers, diff vs previous
xint diff @username --following # Track following instead
xint diff @username --history # Show snapshot history
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
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
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
Search X via xAI's hosted x_search tool (Responses API). 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
# Domain filtering
xint x-search --queries-file queries.json --allow-domains arxiv.org,github.com
xint x-search --queries-file queries.json --exclude-domains spam.com
# Image understanding in search results
xint x-search --queries-file queries.json --vision
# Custom model
xint x-search --queries-file queries.json --model grok-4-1-fast
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
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
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 reportsxint search "topic" --jsonl | jq '.username'
xint search "topic" --json | xint analyze --pipe "summarize these"
xint search "topic" --csv > export.csv
X API costs ~$0.005/tweet read. Budget system prevents runaway costs:
xint costs budget <amount>tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.