twitter-automation
Helps your agent automate tasks on Twitter/X. It can post, search, and manage lists and media.
What it does
This tool lets you automate tasks on Twitter/X. You can create posts, search for tweets, view user profiles, manage your bookmarks and lists, and interact with posts.
When to use it
- ✓When you want to post something on Twitter with an image or video.
- ✓When you need to find tweets about a specific topic.
- ✓When you want to save or view tweets you've favorited.
Example of what to ask your AI
“Create a Twitter post with the image 'photo.jpg' saying 'Hello world!'”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
The tool connects to your Twitter account and uses specific commands to perform each task. First, it checks your connection, then it executes the desired action, like creating a post or searching for information.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add sickn33/agentic-awesome-skills --skill twitter-automationOr download just the file:
curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/twitter-automation/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
Twitter/X Automation via Rube MCP
Automate Twitter/X operations through Composio's Twitter toolkit via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Twitter connection via
RUBE_MANAGE_CONNECTIONSwith toolkittwitter - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLSresponds - Call
RUBE_MANAGE_CONNECTIONSwith toolkittwitter - If connection is not ACTIVE, follow the returned auth link to complete Twitter OAuth
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Create and Manage Posts
When to use: User wants to create, delete, or look up tweets/posts
Tool sequence:
TWITTER_USER_LOOKUP_ME- Get authenticated user info [Prerequisite]TWITTER_UPLOAD_MEDIA/TWITTER_UPLOAD_LARGE_MEDIA- Upload media [Optional]TWITTER_CREATION_OF_A_POST- Create a new post [Required]TWITTER_POST_LOOKUP_BY_POST_ID- Look up a specific post [Optional]TWITTER_POST_DELETE_BY_POST_ID- Delete a post [Optional]
Key parameters:
text: Post text content (max 280 weighted characters)media__media_ids: Array of media ID strings for attachmentsreply__in_reply_to_tweet_id: Tweet ID to reply toquote_tweet_id: Tweet ID to quoteid: Post ID for lookup/delete
Pitfalls:
- Post text is limited to 280 weighted characters; some characters count as more than one
- Posting is NOT idempotent; retrying on timeout will create duplicate posts
- Media IDs must be numeric strings, not integers
- UPLOAD_LARGE_MEDIA is for videos/GIFs; UPLOAD_MEDIA for images
- Always call USER_LOOKUP_ME first to get the authenticated user's ID
2. Search Posts
When to use: User wants to find tweets matching specific criteria
Tool sequence:
TWITTER_RECENT_SEARCH- Search recent tweets (last 7 days) [Required]TWITTER_FULL_ARCHIVE_SEARCH- Search full archive (Academic access) [Optional]TWITTER_RECENT_SEARCH_COUNTS- Get tweet count matching query [Optional]
Key parameters:
query: Search query using Twitter search operatorsmax_results: Results per page (10-100)next_token: Pagination tokenstart_time/end_time: ISO 8601 time rangetweet__fields: Comma-separated fields to includeexpansions: Related objects to expand
Pitfalls:
- RECENT_SEARCH covers only the last 7 days; use FULL_ARCHIVE_SEARCH for older tweets
- FULL_ARCHIVE_SEARCH requires Academic Research or Enterprise access
- Query operators:
from:username,to:username,is:retweet,has:media,-is:retweet - Empty results return
meta.result_count: 0with nodatafield - Rate limits vary by endpoint and access level; check response headers
3. Look Up Users
When to use: User wants to find or inspect Twitter user profiles
Tool sequence:
TWITTER_USER_LOOKUP_ME- Get authenticated user [Optional]TWITTER_USER_LOOKUP_BY_USERNAME- Look up by username [Optional]TWITTER_USER_LOOKUP_BY_ID- Look up by user ID [Optional]TWITTER_USER_LOOKUP_BY_IDS- Batch look up multiple users [Optional]
Key parameters:
username: Twitter handle without @ prefixid: Numeric user ID stringids: Comma-separated user IDs for batch lookupuser__fields: Fields to return (description, public_metrics, etc.)
Pitfalls:
- Usernames are case-insensitive but must not include the @ prefix
- User IDs are numeric strings, not integers
- Suspended or deleted accounts return errors, not empty results
- LOOKUP_BY_IDS accepts max 100 IDs per request
4. Manage Bookmarks
When to use: User wants to save, view, or remove bookmarked tweets
Tool sequence:
TWITTER_USER_LOOKUP_ME- Get authenticated user ID [Prerequisite]TWITTER_BOOKMARKS_BY_USER- List bookmarked posts [Required]TWITTER_ADD_POST_TO_BOOKMARKS- Bookmark a post [Optional]TWITTER_REMOVE_A_BOOKMARKED_POST- Remove bookmark [Optional]
Key parameters:
id: User ID (from USER_LOOKUP_ME) for listing bookmarkstweet_id: Tweet ID to bookmark or unbookmarkmax_results: Results per pagepagination_token: Token for next page
Pitfalls:
- Bookmarks require the authenticated user's ID, not username
…
FAQ
What is the character limit for a post?
The limit is 280 weighted characters. Some special characters count as more than one.
How do I search for tweets older than 7 days?
For older tweets, you need special access called 'Academic Research' or 'Enterprise' and use the full archive search tool.
Can I post the same thing multiple times?
It's not recommended. If you try to send the same post multiple times, especially if there's a connection error, you might end up creating duplicate posts.
Details
Original description by the author
Automate Twitter/X tasks via Rube MCP (Composio): posts, search, users, bookmarks, lists, media. Always search tools first for current schemas.
Popularity
- GitHub stars
- 48k
- Ranking position
- #4417
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
Helps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
sickn33/agentic-awesome-skills
007
Lets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
sickn33/agentic-awesome-skills
10-andruia-skill-smith
Helps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
sickn33/agentic-awesome-skills
20-andruia-niche-intelligence
Lets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
sickn33/agentic-awesome-skills
Similar skills
benchmark
Helps your agent measure code speed and performance. It's useful for ensuring things are fast and finding slowness issues.
affaan-m/ECC
content-hash-cache-pattern
Lets your agent use content hashes to cache file processing results. This avoids repeated processing and auto-invalidates the cache when content changes. Useful for speeding up slow tasks.
affaan-m/ECC
parallel-execution-optimizer
Makes your agent speed up complex tasks by breaking them into smaller parts and running them in parallel. It ensures everything is verified at the end.
affaan-m/ECC