
twitter-automation
Automate Twitter/X tasks via Rube MCP (Composio): posts, search, users, bookmarks, lists, media. Always search tools first for current schemas.
- Installs
- 83
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/composiohq/awesome-claude-skills --skill twitter-automation- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads twitter-automation automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Twitter/X Automation via Rube MCP
Automate Twitter/X operations through Composio's Twitter toolkit via Rube MCP.
Toolkit docs: composio.dev/toolkits/twitter
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
- Bookmarks are private; only the authenticated user can see their own
- Pagination uses
pagination_token, notnext_token
5. Manage Lists
When to use: User wants to view or manage Twitter lists
Tool sequence:
TWITTER_USER_LOOKUP_ME- Get authenticated user ID [Prerequisite]TWITTER_GET_A_USER_S_OWNED_LISTS- List owned lists [Optional]TWITTER_GET_A_USER_S_LIST_MEMBERSHIPS- List memberships [Optional]TWITTER_GET_A_USER_S_PINNED_LISTS- Get pinned lists [Optional]TWITTER_GET_USER_S_FOLLOWED_LISTS- Get followed lists [Optional]TWITTER_LIST_LOOKUP_BY_LIST_ID- Get list details [Optional]
Key parameters:
id: User ID for listing owned/member/followed listslist_id: List ID for specific list lookupmax_results: Results per page (1-100)
Pitfalls:
- List IDs and User IDs are numeric strings
- Lists endpoints require the user's numeric ID, not username
6. Interact with Posts
When to use: User wants to like, unlike, or view liked posts
Tool sequence:
TWITTER_USER_LOOKUP_ME- Get authenticated user ID [Prerequisite]TWITTER_RETURNS_POST_OBJECTS_LIKED_BY_THE_PROVIDED_USER_ID- Get liked posts [Optional]TWITTER_UNLIKE_POST- Unlike a post [Optional]
Key parameters:
id: User ID for listing liked poststweet_id: Tweet ID to unlike
Pitfalls:
- Like/unlike endpoints require user ID from USER_LOOKUP_ME
- Liked posts pagination may be slow for users with many likes
Common Patterns
Search Query Syntax
Operators:
from:username- Posts by userto:username- Replies to user@username- Mentions user#hashtag- Contains hashtag"exact phrase"- Exact matchhas:media- Contains mediahas:links- Contains linksis:retweet/-is:retweet- Include/exclude retweetsis:reply/-is:reply- Include/exclude replieslang:en- Language filter
Combinators:
- Space for AND
ORfor either condition-prefix for NOT- Parentheses for grouping
Media Upload Flow
1. Upload media with TWITTER_UPLOAD_MEDIA (images) or TWITTER_UPLOAD_LARGE_MEDIA (video/GIF)
2. Get media_id from response
3. Pass media_id as string in media__media_ids array to TWITTER_CREATION_OF_A_POST
Known Pitfalls
Character Limits:
- Standard posts: 280 weighted characters
- Some Unicode characters count as more than 1
- URLs are shortened and count as fixed length (23 characters)
Rate Limits:
- Vary significantly by access tier (Free, Basic, Pro, Enterprise)
- Free tier: very limited (e.g., 1,500 posts/month)
- Check
x-rate-limit-remainingheader in responses
Idempotency:
- Post creation is NOT idempotent; duplicate posts will be created on retry
- Implement deduplication logic for automated posting
Quick Reference
| Task | Tool Slug | Key Params |
|---|---|---|
| Create post | TWITTER_CREATION_OF_A_POST | text |
| Delete post | TWITTER_POST_DELETE_BY_POST_ID | id |
| Look up post | TWITTER_POST_LOOKUP_BY_POST_ID | id |
| Recent search | TWITTER_RECENT_SEARCH | query |
| Archive search | TWITTER_FULL_ARCHIVE_SEARCH | query |
| Search counts | TWITTER_RECENT_SEARCH_COUNTS | query |
| My profile | TWITTER_USER_LOOKUP_ME | (none) |
| User by name | TWITTER_USER_LOOKUP_BY_USERNAME | username |
| User by ID | TWITTER_USER_LOOKUP_BY_ID | id |
| Users by IDs | TWITTER_USER_LOOKUP_BY_IDS | ids |
| Upload media | TWITTER_UPLOAD_MEDIA | media |
| Upload video | TWITTER_UPLOAD_LARGE_MEDIA | media |
| List bookmarks | TWITTER_BOOKMARKS_BY_USER | id |
| Add bookmark | TWITTER_ADD_POST_TO_BOOKMARKS | tweet_id |
| Remove bookmark | TWITTER_REMOVE_A_BOOKMARKED_POST | tweet_id |
| Unlike post | TWITTER_UNLIKE_POST | tweet_id |
| Liked posts | TWITTER_RETURNS_POST_OBJECTS_LIKED_BY_THE_PROVIDED_USER_ID | id |
| Owned lists | TWITTER_GET_A_USER_S_OWNED_LISTS | id |
| List memberships | TWITTER_GET_A_USER_S_LIST_MEMBERSHIPS | id |
| Pinned lists | TWITTER_GET_A_USER_S_PINNED_LISTS | id |
| Followed lists | TWITTER_GET_USER_S_FOLLOWED_LISTS | id |
| List details | TWITTER_LIST_LOOKUP_BY_LIST_ID | list_id |
Powered by Composio
FAQ
What does the twitter-automation skill do?
Automate Twitter/X tasks via Rube MCP (Composio): posts, search, users, bookmarks, lists, media. Always search tools first for current schemas.
How do I install twitter-automation?
Run npx skills add https://github.com/composiohq/awesome-claude-skills --skill twitter-automation in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/twitter-automation/ (personal) or .claude/skills/twitter-automation/ (project).
Which AI agents can use twitter-automation?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is twitter-automation safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains twitter-automation?
It is published by composiohq in composiohq/awesome-claude-skills. It has 83 recorded installs.
More from composiohq/awesome-claude-skills
tailored-resume-generator
composiohq/awesome-claude-skills
Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances
content-research-writer
composiohq/awesome-claude-skills
Assists in writing high-quality content by conducting research, adding citations, improving hooks, iterating on outlines, and providing real-time feedback on each section. Transforms your writing process from solo effort to collaborative partnership.
changelog-generator
composiohq/awesome-claude-skills
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
file-organizer
composiohq/awesome-claude-skills
Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.
youtube-downloader
composiohq/awesome-claude-skills
Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.
competitive-ads-extractor
composiohq/awesome-claude-skills
Extracts and analyzes competitors' ads from ad libraries (Facebook, LinkedIn, etc.) to understand what messaging, problems, and creative approaches are working. Helps inspire and improve your own ad campaigns.
Popular marketing & seo skills
reddit-automation
flowkit-labs/skills
Find Reddit threads where people are genuinely asking for what you offer, then draft short, genuinely helpful replies — disclosing your affiliation honestly and naming your product only when it truly answers the question. Two moves: discovery — scan the right subreddits for real needs (recommendation asks, expressed pain, competitor mentions) and rank the few threads where you can actually help; drafting — write from real experience, respect each community's self-promo rules, and keep a human in the loop to review and post. This markets on Reddit the honest way: contribute value, disclose who you are, never astroturf. Distilled from the playbook behind doany.ai's Reddit agent. Triggers on "find reddit opportunities", "reddit marketing", "reddit automation", "reply on reddit for my product", "reddit community engagement", "reddit lead gen", or any ask to turn Reddit threads into genuine, disclosed marketing replies.
twitter-automation
101-skills/superpowers
Automate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet
twitter-automation
magentosh/superpowers
Automate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet
twitter-automation
qu-skills/superpowers
Automate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet
product-launch-video
heygen-com/hyperframes
Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.
twitter-automation
skills-shell/superpowers
Automate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet