This skill allows users to access and manage their Twitter accounts through API commands. It is designed for developers who want to automate Twitter interactions such as posting tweets, searching for posts, and managing engagements.
$ npx skills add https://github.com/alberduris/skills --skill x-twitterThe X (Twitter) API v2 skill enables developers to automate Twitter interactions directly through Claude Code. It supports core operations including posting tweets, searching for posts, and managing engagements without manual browser interaction. This skill is built for developers who need programmatic access to Twitter functionality and want to integrate social media automation into their workflows.
To install, run `npx skills add https://github.com/alberduris/skills --skill x-twitter`
Retrieve user profile and metrics
Search for tweets by specific queries
Post and manage tweets
Like and unlike tweets
$ npx skills add https://github.com/alberduris/skills --skill x-twittergit clone https://github.com/alberduris/skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Use the Twitter API v2 to [ACTION: e.g., post a tweet, search for recent posts, retrieve user mentions, etc.] for [COMPANY: e.g., Acme Corp]. Focus on [INDUSTRY: e.g., tech, marketing, customer support] and include [DATA: e.g., specific keywords, hashtags, timeframes, or user IDs]. Ensure the output follows Twitter's API v2 guidelines and best practices for [OBJECTIVE: e.g., engagement, data analysis, automation].
### Twitter API v2 Response for Acme Corp **Action:** Retrieve recent posts containing '#AI' from the last 24 hours **Total Posts Retrieved:** 50 --- #### Sample Post Analysis: - **Post ID:** 1789234567890 - **Author:** @TechInnovator - **Text:** "Just launched our new AI-powered analytics tool! 🚀 #AI #Innovation" - **Engagement:** 124 likes, 32 retweets, 8 replies - **Timestamp:** 2023-11-15T14:30:00Z - **Post ID:** 1789234567891 - **Author:** @FutureTech - **Text:** "How AI is transforming industries in 2023. A thread 🧵 #AI #FutureTech" - **Engagement:** 89 likes, 15 retweets, 5 replies - **Timestamp:** 2023-11-15T12:15:00Z --- #### Key Insights: - **Top Hashtags:** #AI (45 posts), #Innovation (12 posts), #FutureTech (8 posts) - **Most Engaged User:** @TechInnovator (124 likes) - **Average Engagement Rate:** 2.1% (likes + retweets / followers) --- **Next Steps:** - Consider engaging with high-engagement posts to boost visibility. - Analyze top hashtags for future campaign targeting. *Data retrieved via Twitter API v2.*
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan