Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

twitter-automation推特自动化

Agent Skill

twitter-automation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,285

周安装

53

GitHub Stars

2,777

下载量

420
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:twitter-automation(推特自动化)
来源仓库:https://github.com/davepoon/buildwithclaude
仓库路径:skills/twitter-automation
安装命令:
npx skills add https://github.com/davepoon/buildwithclaude --skill twitter-automation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/davepoon/buildwithclaude --skill twitter-automation

简介

通过 Composio 的 Twitter 工具集实现推文发布、互动分析与账号管理操作。

  • 适用于社交媒体运营与舆情监控等场景。
  • 需先调用 RUBE_SEARCH_TOOLS 获取工具定义,再配置 Twitter 账号连接。
  • 配置时将 https://rube.app/mcp 设为 MCP 服务器,系统自动处理认证流程。
  • twitter-automation 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

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_CONNECTIONS with toolkit twitter
  • Always call RUBE_SEARCH_TOOLS first 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.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit twitter
  3. If connection is not ACTIVE, follow the returned auth link to complete Twitter OAuth
  4. 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:

  1. TWITTER_USER_LOOKUP_ME - Get authenticated user info [Prerequisite]
  2. TWITTER_UPLOAD_MEDIA / TWITTER_UPLOAD_LARGE_MEDIA - Upload media [Optional]
  3. TWITTER_CREATION_OF_A_POST - Create a new post [Required]
  4. TWITTER_POST_LOOKUP_BY_POST_ID - Look up a specific post [Optional]
  5. 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 attachments
  • reply__in_reply_to_tweet_id: Tweet ID to reply to
  • quote_tweet_id: Tweet ID to quote
  • id: 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:

  1. TWITTER_RECENT_SEARCH - Search recent tweets (last 7 days) [Required]
  2. TWITTER_FULL_ARCHIVE_SEARCH - Search full archive (Academic access) [Optional]
  3. TWITTER_RECENT_SEARCH_COUNTS - Get tweet count matching query [Optional]

Key parameters:

  • query: Search query using Twitter search operators
  • max_results: Results per page (10-100)
  • next_token: Pagination token
  • start_time/end_time: ISO 8601 time range
  • tweet__fields: Comma-separated fields to include
  • expansions: 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: 0 with no data field
  • 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:

  1. TWITTER_USER_LOOKUP_ME - Get authenticated user [Optional]
  2. TWITTER_USER_LOOKUP_BY_USERNAME - Look up by username [Optional]
  3. TWITTER_USER_LOOKUP_BY_ID - Look up by user ID [Optional]
  4. TWITTER_USER_LOOKUP_BY_IDS - Batch look up multiple users [Optional]

Key parameters:

  • username: Twitter handle without @ prefix
  • id: Numeric user ID string
  • ids: Comma-separated user IDs for batch lookup
  • user__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:

  1. TWITTER_USER_LOOKUP_ME - Get authenticated user ID [Prerequisite]
  2. TWITTER_BOOKMARKS_BY_USER - List bookmarked posts [Required]
  3. TWITTER_ADD_POST_TO_BOOKMARKS - Bookmark a post [Optional]
  4. TWITTER_REMOVE_A_BOOKMARKED_POST - Remove bookmark [Optional]

Key parameters:

  • id: User ID (from USER_LOOKUP_ME) for listing bookmarks
  • tweet_id: Tweet ID to bookmark or unbookmark
  • max_results: Results per page
  • pagination_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, not next_token

5. Manage Lists

When to use: User wants to view or manage Twitter lists

Tool sequence:

  1. TWITTER_USER_LOOKUP_ME - Get authenticated user ID [Prerequisite]
  2. TWITTER_GET_A_USER_S_OWNED_LISTS - List owned lists [Optional]
  3. TWITTER_GET_A_USER_S_LIST_MEMBERSHIPS - List memberships [Optional]
  4. TWITTER_GET_A_USER_S_PINNED_LISTS - Get pinned lists [Optional]
  5. TWITTER_GET_USER_S_FOLLOWED_LISTS - Get followed lists [Optional]
  6. TWITTER_LIST_LOOKUP_BY_LIST_ID - Get list details [Optional]

Key parameters:

  • id: User ID for listing owned/member/followed lists
  • list_id: List ID for specific list lookup
  • max_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:

  1. TWITTER_USER_LOOKUP_ME - Get authenticated user ID [Prerequisite]
  2. TWITTER_RETURNS_POST_OBJECTS_LIKED_BY_THE_PROVIDED_USER_ID - Get liked posts [Optional]
  3. TWITTER_UNLIKE_POST - Unlike a post [Optional]

Key parameters:

  • id: User ID for listing liked posts
  • tweet_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 user
  • to:username - Replies to user
  • @username - Mentions user
  • #hashtag - Contains hashtag
  • "exact phrase" - Exact match
  • has:media - Contains media
  • has:links - Contains links
  • is:retweet / -is:retweet - Include/exclude retweets
  • is:reply / -is:reply - Include/exclude replies
  • lang:en - Language filter

Combinators:

  • Space for AND
  • OR for 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-remaining header in responses

Idempotency:

  • Post creation is NOT idempotent; duplicate posts will be created on retry
  • Implement deduplication logic for automated posting

Quick Reference

TaskTool SlugKey Params
Create postTWITTER_CREATION_OF_A_POSTtext
Delete postTWITTER_POST_DELETE_BY_POST_IDid
Look up postTWITTER_POST_LOOKUP_BY_POST_IDid
Recent searchTWITTER_RECENT_SEARCHquery
Archive searchTWITTER_FULL_ARCHIVE_SEARCHquery
Search countsTWITTER_RECENT_SEARCH_COUNTSquery
My profileTWITTER_USER_LOOKUP_ME(none)
User by nameTWITTER_USER_LOOKUP_BY_USERNAMEusername
User by IDTWITTER_USER_LOOKUP_BY_IDid
Users by IDsTWITTER_USER_LOOKUP_BY_IDSids
Upload mediaTWITTER_UPLOAD_MEDIAmedia
Upload videoTWITTER_UPLOAD_LARGE_MEDIAmedia
List bookmarksTWITTER_BOOKMARKS_BY_USERid
Add bookmarkTWITTER_ADD_POST_TO_BOOKMARKStweet_id
Remove bookmarkTWITTER_REMOVE_A_BOOKMARKED_POSTtweet_id
Unlike postTWITTER_UNLIKE_POSTtweet_id
Liked postsTWITTER_RETURNS_POST_OBJECTS_LIKED_BY_THE_PROVIDED_USER_IDid
Owned listsTWITTER_GET_A_USER_S_OWNED_LISTSid
List membershipsTWITTER_GET_A_USER_S_LIST_MEMBERSHIPSid
Pinned listsTWITTER_GET_A_USER_S_PINNED_LISTSid
Followed listsTWITTER_GET_USER_S_FOLLOWED_LISTSid
List detailsTWITTER_LIST_LOOKUP_BY_LIST_IDlist_id

*Powered by Composio*

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.92%
按下载量换算159

Claude

27.56%
按下载量换算116

Cursor

18.24%
按下载量换算77

Gemini CLI

8.74%
按下载量换算37

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills