Searches Twitter/X by keyword using the Twitter API, fetches up to 1000 tweets, and generates analysis reports with insights and recommendations. Useful for social listening, trend analysis, and influencer identification.
Ships in sundial-org-awesome-openclaw-skills-4. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Search Twitter for keywords using advanced search syntax, fetch up to 1000 relevant tweets, and analyze the data to produce professional reports with insights, statistics, and actionable recommendations.
API Key Required: Users must configure their Twitter API key from https://twitterapi.io
The API key can be provided in three ways:
TWITTER_API_KEY in your ~/.bashrc or ~/.zshrc
echo 'export TWITTER_API_KEY="your_key_here"' >> ~/.bashrc
source ~/.bashrc
--api-key YOUR_KEY with the wrapper scriptThe wrapper script automatically handles environment variable loading and dependency checks:
# Basic search (uses TWITTER_API_KEY from shell config)
./scripts/run_search.sh "AI"
# With custom API key
./scripts/run_search.sh "AI" --api-key YOUR_KEY
# With options
./scripts/run_search.sh "\"Claude AI\"" --max-results 100 --format summary
# Advanced query
./scripts/run_search.sh "from:elonmusk since:2024-01-01" --query-type Latest
# Search for a keyword
scripts/twitter_search.py "$API_KEY" "AI"
# Search with multiple keywords
scripts/twitter_search.py "$API_KEY" "\"ChatGPT\" OR \"Claude AI\""
# Search from specific user
scripts/twitter_search.py "$API_KEY" "from:elonmusk"
# Search with date range
scripts/twitter_search.py "$API_KEY" "Bitcoin since:2024-01-01"
# Complex query: AI tweets from verified users, English only
scripts/twitter_search.py "$API_KEY" "AI OR \"machine learning\" lang:en filter:verified"
# Recent crypto tweets with minimum engagement
scripts/twitter_search.py "$API_KEY" "Bitcoin min_retweets:10 lang:en"
# From specific influencers
scripts/twitter_search.py "$API_KEY" "from:elonmusk OR from:VitalikButerin since:2024-01-01"
# Full JSON with all tweets
scripts/twitter_search.py "$API_KEY" "AI" --format json
# Summary with statistics (default)
scripts/twitter_search.py "$API_KEY" "AI" --format summary
--max-results N: Maximum tweets to fetch (default: 1000)--query-type Latest|Top: Sort order (default: Top for relevance)--format json|summary: Output format (default: summary)Clarify the analysis goal:
Use Twitter Advanced Search syntax:
| Syntax | Example | Description |
|---|---|---|
keyword | AI | Single keyword |
"phrase" | "machine learning" | Exact phrase |
OR | AI OR ChatGPT | Either term |
from:user | from:elonmusk | From specific user |
to:user | to:elonmusk | Reply to user |
since:DATE | since:2024-01-01 | After date |
until:DATE | until:2024-12-31 | Before date |
lang:xx | lang:en | Language code |
#hashtag | #AI | Hashtag |
filter:links | filter:links | Tweets with links |
min_retweets:N | min_retweets:100 | Minimum retweets |
Execute the search script:
scripts/twitter_search.py "$API_KEY" "YOUR_QUERY" --max-results 1000 --query-type Top
Important: Default is 1000 tweets maximum. The script automatically:
After fetching data, produce a comprehensive professional report with:
Executive Summary (2-3 sentences)
Data Overview
Key Metrics
Top Content Analysis
Influencer Analysis
Trend Insights (based on data patterns)
Key Takeaways
Actionable Recommendations
Present the report in clear markdown with:
[@username](https://x.com/username/status/tweet_id))Always include clickable links to tweets:
| Author | Tweet | URL |
|--------|-------|-----|
| @user | Summary of tweet content | [View](https://x.com/user/status/123456) |
Or inline format:
- **@username**: Tweet summary - [View Tweet](https://x.com/username/status/123456)
"AI" OR "artificial intelligence" lang:en min_retweets:50
from:competitor1 OR from:competitor2 since:2024-01-01
#ProductName OR "Product Name" lang:en filter:verified
#BrandName OR "Brand Name" lang:en --query-type Latest
#Topic lang:en min_retweets:100 min_faves:500
"brand name" OR #BrandName lang:en --max-results 1000
Convenience wrapper that handles environment variable loading and dependency checks:
TWITTER_API_KEY from ~/.bashrc or ~/.zshrcUsage:
./scripts/run_search.sh <query> [options]
Options:
--api-key KEY: Override environment variable API key--max-results N: Maximum tweets to fetch (default: 1000)--query-type Latest|Top: Sort order (default: Top)--format json|summary: Output format (default: json)Executable Python script that:
Usage:
scripts/twitter_search.py <api_key> <query> [options]
Comprehensive API documentation including:
Read this when: Building complex queries or understanding data structure.
If the script fails:
What SKILL.md sets; muted values are Claude Code's defaults
/sundial-org-awesome-openclaw-skills-4:twitter-searchfrom sundial-org-awesome-openclaw-skills-4
sundial-org-awesome-openclaw-skills-4@cascade-ai-ml-agents-misc-2 is listed by joshuarweaver/cascade-ai-ml-agents-misc-2 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-2 --plugin sundial-org-awesome-openclaw-skills-4908 skills in this plugin
/1passwordSet up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op./a11y-checkerScan HTML and JSX for accessibility issues with AI-powered fix suggestions/abm-outboundMulti-channel ABM automation that turns LinkedIn URLs into coordinated outbound campaigns. Scrapes profiles, enriches with Apollo (email + phone), gets mailing addresses via Skip Trace, then orchestrates email sequences, LinkedIn touches, and handwritten letters via Scribeless. The secret weapon for standing out in crowded inboxes.Other plugins' skills for the same job