twitter-automation
它能做什么
这个工具可以帮你自动完成 Twitter/X 上的任务。你可以发布内容、搜索推文、查看用户主页、管理书签和列表,还能与帖子互动。
适用场景
- ✓当你想发布一条带图片或视频的推文时。
- ✓当你需要查找某个话题相关的推文时。
- ✓当你想保存或查看自己收藏过的推文时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/twitter-automation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“创建一条 Twitter 帖子,附上图片 'photo.jpg',内容是 'Hello world!'”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会连接到你的 Twitter 账号,并通过特定命令执行每项任务。它会先检查连接,然后执行你需要的操作,比如发帖或搜索信息。
技术内容(原始 SKILL.md)
作者在 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
…
常见问题
一条帖子有字数限制吗?
有,上限是 280 个加权字符。部分特殊字符会按多个字符计算。
如何搜索 7 天以前的推文?
搜索更早的推文需要 “Academic Research” 或 “Enterprise” 等专门的访问权限,并使用完整存档搜索工具。
同一条内容可以多次发布吗?
不建议这样做。如果你多次发送同一条帖子,尤其是在遇到连接错误时,可能会意外创建重复的帖子。
详情
作者的原始描述
Automate Twitter/X tasks via Rube MCP (Composio): posts, search, users, bookmarks, lists, media. Always search tools first for current schemas.
热度
- GitHub 星标
- 48k
- 排名
- #6031
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。