mcpField
T
twitter-automation

twitter-automation

github.com/inference-shMarketing & growth7891.7M installsUpdated 2w ago
Repository

About twitter-automation

A belt CLI skill for automating Twitter/X actions, aimed at users managing posts and interactions from the command line. It covers posting with optional media, account actions, and tweet lookup or deletion.

Key features

  1. 01Create posts with optional media
  2. 02Like and retweet posts
  3. 03Send direct messages
  4. 04Follow users and retrieve profiles
  5. 05Get or delete posts

Use cases

  1. 01Publish text or media to Twitter/X
  2. 02Respond to users with direct messages
  3. 03Review profile or post details
  4. 04Manage follows and engagement

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/inference-sh/skills --skill twitter-automation

After installing, type/twitter-automationin Claude Code to confirm it loaded.

Details

From the project README

Install the belt CLI skill: npx skills add belt-sh/cli

Twitter/X Automation

Automate Twitter/X via inference.sh CLI.

Twitter/X Automation

Quick Start

Requires inference.sh CLI (belt). Install instructions

belt login

# Post a tweet
belt app run x/post-create --input '{"text": "Hello from inference.sh!"}'

Available Apps

AppApp IDDescription
Create Postx/post-createPost text, optionally with media
Like Postx/post-likeLike a tweet
Retweetx/post-retweetRetweet a post
Delete Postx/post-deleteDelete a tweet
Get Postx/post-getGet tweet by ID
Send DMx/dm-sendSend direct message
Follow Userx/user-followFollow a user
Get Userx/user-getGet user profile

Examples

Post a Tweet
belt app run x/post-create --input '{"text": "Just shipped a new feature! 🚀"}'
Post with Media
belt app sample x/post-create --save input.json

# Edit input.json:
# {
#   "text": "Check out this AI-generated image!",
#   "media": ["https://your-image-url.jpg"]
# }

belt app run x/post-create --input input.json
Like a Tweet
belt app run x/post-like --input '{"tweet_id": "1234567890"}'
Retweet
belt app run x/post-retweet --input '{"tweet_id": "1234567890"}'
Send a DM
belt app run x/dm-send --input '{
  "recipient_id": "user_id_here",
  "text": "Hey! Thanks for the follow."
}'
Follow a User
belt app run x/user-follow --input '{"username": "elonmusk"}'
Get User Profile
belt app run x/user-get --input '{"username": "OpenAI"}'
Get Tweet Details
belt app run x/post-get --input '{"tweet_id": "1234567890"}'
Delete a Tweet
belt app run x/post-delete --input '{"tweet_id": "1234567890"}'

Workflow: Generate AI Image and Post

# 1. Generate image
belt app run falai/flux-dev-lora --input '{"prompt": "sunset over mountains"}' > image.json

# 2. Post to Twitter with the image URL
belt app run x/post-create --input '{
  "text": "AI-generated art of a sunset 🌅",
  "media": ["<image-url-from-step-1>"]
}'

Workflow: Generate and Post Video

# 1. Generate video
belt app run google/veo-3-1-fast --input '{"prompt": "waves on a beach"}' > video.json

# 2. Post to Twitter
belt app run x/post-create --input '{
  "text": "AI-generated video 🎬",
  "media": ["<video-url-from-step-1>"]
}'

Related Skills

# Full platform skill (all apps)
npx skills add inference-sh/skills@infsh-cli

# Image generation (create images to post)
npx skills add inference-sh/skills@ai-image-generation

# Video generation (create videos to post)
npx skills add inference-sh/skills@ai-video-generation

# AI avatars (create presenter videos)
npx skills add inference-sh/skills@ai-avatar-video

Browse all apps: belt app list

Documentation

Comments

Markdown supported