Twitter/X自动化Skill twitter-automation

这个技能用于通过inference.sh命令行界面自动化Twitter/X的操作,包括发帖、互动和用户管理,适用于社交媒体自动化、内容调度和增长营销。关键词:Twitter自动化、社交媒体自动化、CLI工具、内容调度、互动机器人。

DevOps 0 次安装 0 次浏览 更新于 3/12/2026

名称: twitter-automation 描述: “通过 inference.sh CLI 自动化 Twitter/X,包括发帖、互动和用户管理。应用:x/post-tweet、x/post-create(带媒体)、x/post-like、x/post-retweet、x/dm-send、x/user-follow。功能:发推文、调度内容、点赞帖子、转推、发送私信、关注用户、获取资料。用于:社交媒体自动化、内容调度、互动机器人、受众增长、X API。触发词:twitter api、x api、推文自动化、发推文、twitter 机器人、社交媒体自动化、x 自动化、推文调度器、twitter 集成、发推文、twitter 发帖、x 发帖、发送推文” 允许的工具: Bash(infsh *)

Twitter/X 自动化

通过 inference.sh CLI 自动化 Twitter/X。

Twitter/X 自动化

快速开始

# 安装 CLI
curl -fsSL https://cli.inference.sh | sh && infsh login

# 发推文
infsh app run x/post-tweet --input '{"text": "Hello from inference.sh!"}'

安装说明: 安装脚本 仅检测您的操作系统/架构,从 dist.inference.sh 下载匹配的二进制文件,并验证其 SHA-256 校验和。无需提升权限或后台进程。提供 手动安装和验证

可用应用

应用 应用 ID 描述
发推文 x/post-tweet 发文本推文
创建帖子 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"}'

工作流:生成 AI 图像并发布

# 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@inference-sh

# 图像生成(创建要发布的图像)
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

文档