Automated summary
Searches for recent tweets on Twitter/X using keywords, hashtags, mentions, and advanced query operators.
Strengths
- Supports advanced search operators (hashtags, mentions, language filters, exclude retweets, etc.)
- Allows specifying result count (up to 100 per request)
- Returns structured data (ID, text, author, date) easy to process
Limitations
- Limited to recent tweets from the last 7 days (X API v2 free tier)
- Capped at 100 results per request
- Requires OAuth authentication and an X Developer account with appropriate API access
For monitoring brand mentions, tracking trending topics, competitive research, or gathering content on a specific subject.
For historical searches of older tweets (beyond 7 days) or for very high search volumes without considering rate limits.
Security analysis
SafeThe skill only provides documentation and examples for querying tweets via an external tool; it does not contain any executable code, destructive commands, data exfiltration, or unsafe operations.
No concerns found
How this analysis is madeExamples
Search for recent tweets about artificial intelligenceFind tweets from @OpenAI that are in English and not retweetsFind tweets with the hashtag #sunset that include media, up to 30 resultsname: twitter-search-skill description: Search for recent tweets on Twitter/X using keywords, hashtags, mentions, and advanced query operators. allowed-tools: twitter_search metadata: author: machina version: "1.0" category: social icon: "🔍" color: "#000000"
Twitter Search Tool
Search for recent tweets on Twitter/X.
How It Works
This skill provides instructions for the Twitter Search tool node. Connect the Twitter Search node to an AI Agent's input-tools handle to enable tweet searching.
twitter_search Tool
Search for tweets matching a query.
Schema Fields
| Field | Type | Required | Description | |-------|------|----------|-------------| | query | string | Yes | Search query (supports operators) | | max_results | integer | No | Number of results (10-100, default: 10) |
Query Operators
The X API supports advanced search operators:
| Operator | Example | Description |
|----------|---------|-------------|
| keyword | python | Tweets containing the word |
| phrase | "machine learning" | Exact phrase match |
| hashtag | #AI | Tweets with hashtag |
| mention | @username | Tweets mentioning user |
| from | from:elonmusk | Tweets by specific user |
| to | to:username | Replies to user |
| -keyword | -spam | Exclude keyword |
| OR | python OR javascript | Either term |
| lang | lang:en | Language filter |
| has:links | AI has:links | Tweets with URLs |
| has:media | sunset has:media | Tweets with media |
| is:retweet | bitcoin is:retweet | Only retweets |
| -is:retweet | news -is:retweet | Exclude retweets |
Examples
Simple keyword search:
{
"query": "artificial intelligence",
"max_results": 20
}
Search with hashtag:
{
"query": "#MachineLearning",
"max_results": 50
}
Search tweets from a user:
{
"query": "from:OpenAI",
"max_results": 10
}
Complex query:
{
"query": "AI (startup OR company) -is:retweet lang:en",
"max_results": 100
}
Search with media:
{
"query": "sunset has:media",
"max_results": 25
}
Response Format
{
"success": true,
"result": {
"tweets": [
{
"id": "1234567890123456789",
"text": "Exciting developments in AI...",
"author_id": "987654321",
"created_at": "2025-02-19T10:30:00Z"
}
],
"count": 20,
"query": "#AI"
},
"execution_time": 0.82
}
Error Response
{
"success": false,
"error": "Search query is required",
"execution_time": 0.01
}
Guidelines
- Query length: Keep queries concise for better results
- Max results: Limited to 100 per request (API constraint)
- Recent tweets only: X API v2 free tier searches recent tweets (last 7 days)
- Rate limits: Be mindful of API rate limits when searching repeatedly
- Combine operators: Use multiple operators for precise filtering
Common Use Cases
- Monitor brand mentions
- Track trending topics
- Find tweets about specific subjects
- Research competitor activity
- Gather content for curation
- Find influencers discussing topics
Setup Requirements
- Connect the Twitter Search node to an AI Agent's
input-toolshandle - Ensure Twitter is connected (authenticated via OAuth in Credentials Modal)
- Your X Developer account must have appropriate API access level
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/twitter-x-tweet-search-mm8o525x/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/twitter-x-tweet-search-mm8o525x' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/twitter-x-tweet-search-mm8o525x/download' --output '.skill-downloads/twitter-x-tweet-search-mm8o525x/SKILL.md.part' && mv '.skill-downloads/twitter-x-tweet-search-mm8o525x/SKILL.md.part' '.skill-downloads/twitter-x-tweet-search-mm8o525x/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): twitter_search
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/twitter-x-tweet-search-mm8o525x/SKILL.md' && test -s '.skill-downloads/twitter-x-tweet-search-mm8o525x/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/twitter-search-skill' && cp -R '.skill-downloads/twitter-x-tweet-search-mm8o525x' '.claude/skills/twitter-search-skill'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/twitter-x-tweet-search-mm8o525x'openskills read 'twitter-x-tweet-search-mm8o525x'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/twitter-x-tweet-search-mm8o525x/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Writing Fragments
Content
Mine raw writing fragments through a relentless interview, without imposing structure. Capture ideas, quotes, and leading words for later use.
UI Copywriting & Auditing
Content
Write or audit user-facing UI copy including buttons, errors, empty states, and tooltips across the monorepo, following the design system source of truth.
Music MIDI Extraction
Content
Extracts the MIDI or score from an existing music production via the CogMusic MCP tool and confirms availability.