twitter-automation by toolshell/skills
npx skills add https://github.com/toolshell/skills --skill twitter-automation通过 inference.sh CLI 自动化 Twitter/X。

需要 inference.sh CLI (
infsh)。获取安装说明:npx skills add inference-sh/skills@agent-tools
infsh login
# 发布推文
infsh app run x/post-tweet --input '{"text": "Hello from inference.sh!"}'
| 应用 | 应用 ID | 描述 |
|---|---|---|
| 发布推文 | x/post-tweet |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 发布文字推文 |
| 创建帖子 | x/post-create | 发布带媒体的帖子 |
| 点赞帖子 | x/post-like | 点赞一条推文 |
| 转发 | x/post-retweet | 转发一条帖子 |
| 删除帖子 | x/post-delete | 删除一条推文 |
| 获取帖子 | x/post-get | 通过 ID 获取推文 |
| 发送私信 | x/dm-send | 发送直接消息 |
| 关注用户 | x/user-follow | 关注一个用户 |
| 获取用户 | x/user-get | 获取用户资料 |
infsh app run x/post-tweet --input '{"text": "Just shipped a new feature! 🚀"}'
infsh app sample x/post-create --save input.json
# 编辑 input.json:
# {
# "text": "Check out this AI-generated image!",
# "media_url": "https://your-image-url.jpg"
# }
infsh app run x/post-create --input input.json
infsh app run x/post-like --input '{"tweet_id": "1234567890"}'
infsh app run x/post-retweet --input '{"tweet_id": "1234567890"}'
infsh app run x/dm-send --input '{
"recipient_id": "user_id_here",
"text": "Hey! Thanks for the follow."
}'
infsh app run x/user-follow --input '{"username": "elonmusk"}'
infsh app run x/user-get --input '{"username": "OpenAI"}'
infsh app run x/post-get --input '{"tweet_id": "1234567890"}'
infsh app run x/post-delete --input '{"tweet_id": "1234567890"}'
# 1. 生成图像
infsh app run falai/flux-dev-lora --input '{"prompt": "sunset over mountains"}' > image.json
# 2. 使用图像 URL 发布到 Twitter
infsh app run x/post-create --input '{
"text": "AI-generated art of a sunset 🌅",
"media_url": "<image-url-from-step-1>"
}'
# 1. 生成视频
infsh app run google/veo-3-1-fast --input '{"prompt": "waves on a beach"}' > video.json
# 2. 发布到 Twitter
infsh app run x/post-create --input '{
"text": "AI-generated video 🎬",
"media_url": "<video-url-from-step-1>"
}'
# 完整平台技能(所有 150+ 应用)
npx skills add inference-sh/skills@agent-tools
# 图像生成(创建要发布的图像)
npx skills add inference-sh/skills@ai-image-generation
# 视频生成(创建要发布的视频)
npx skills add inference-sh/skills@ai-video-generation
# AI 头像(创建演示者视频)
npx skills add inference-sh/skills@ai-avatar-video
浏览所有应用:infsh app list
每周安装量
24.9K
仓库
GitHub 星标数
125
首次出现
2 天前
安全审计
安装于
claude-code20.1K
gemini-cli17.5K
codex17.5K
opencode17.5K
amp17.5K
kimi-cli17.5K
Automate Twitter/X via inference.sh CLI.

Requires inference.sh CLI (
infsh). Get installation instructions:npx skills add inference-sh/skills@agent-tools
infsh login
# Post a tweet
infsh app run x/post-tweet --input '{"text": "Hello from inference.sh!"}'
| App | App ID | Description |
|---|---|---|
| Post Tweet | x/post-tweet | Post text tweets |
| Create Post | x/post-create | Post with media |
| Like Post | x/post-like | Like a tweet |
| Retweet | x/post-retweet | Retweet a post |
| Delete Post | x/post-delete | Delete a tweet |
| Get Post | x/post-get | Get tweet by ID |
| Send DM | x/dm-send | Send direct message |
| Follow User | x/user-follow | Follow a user |
| Get User | x/user-get | Get user profile |
infsh app run x/post-tweet --input '{"text": "Just shipped a new feature! 🚀"}'
infsh app sample x/post-create --save input.json
# Edit input.json:
# {
# "text": "Check out this AI-generated image!",
# "media_url": "https://your-image-url.jpg"
# }
infsh app run x/post-create --input input.json
infsh app run x/post-like --input '{"tweet_id": "1234567890"}'
infsh app run x/post-retweet --input '{"tweet_id": "1234567890"}'
infsh app run x/dm-send --input '{
"recipient_id": "user_id_here",
"text": "Hey! Thanks for the follow."
}'
infsh app run x/user-follow --input '{"username": "elonmusk"}'
infsh app run x/user-get --input '{"username": "OpenAI"}'
infsh app run x/post-get --input '{"tweet_id": "1234567890"}'
infsh app run x/post-delete --input '{"tweet_id": "1234567890"}'
# 1. Generate image
infsh app run falai/flux-dev-lora --input '{"prompt": "sunset over mountains"}' > image.json
# 2. Post to Twitter with the image URL
infsh app run x/post-create --input '{
"text": "AI-generated art of a sunset 🌅",
"media_url": "<image-url-from-step-1>"
}'
# 1. Generate video
infsh app run google/veo-3-1-fast --input '{"prompt": "waves on a beach"}' > video.json
# 2. Post to Twitter
infsh app run x/post-create --input '{
"text": "AI-generated video 🎬",
"media_url": "<video-url-from-step-1>"
}'
# Full platform skill (all 150+ apps)
npx skills add inference-sh/skills@agent-tools
# 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: infsh app list
Weekly Installs
24.9K
Repository
GitHub Stars
125
First Seen
2 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
claude-code20.1K
gemini-cli17.5K
codex17.5K
opencode17.5K
amp17.5K
kimi-cli17.5K
74,600 周安装