twitter-automation: Post, like, retweet and DM on X from the command line
This skill runs Twitter/X actions through the inference.sh belt CLI. It covers creating and deleting posts, with optional media, plus likes, retweets, direct messages, follows, and profile and post lookups. Each action is a belt app run call that takes a JSON input.
What problem this skill solves
Doing Twitter/X actions by hand is slow when the same steps repeat, such as posting content with images or following a set of accounts. With this skill, each action is one belt command with a JSON input that you can run from a shell.
The skill also shows how to take the output of image or video apps and place its URL in the media field of x/post-create, so generated files can be posted without a separate upload step.
Good for
- Posting text, or text with an image or video, from a shell
- Running a fixed set of likes, retweets or follows
- Posting AI-generated images or videos made by other inference.sh apps
Not for
- Timed or scheduled posting, which the examples do not show
- Platforms other than Twitter/X
Install this skill
twitter-automation only
npx skills add https://github.com/whytryharder/superpowers --skill twitter-automationThe whole repository
npx skills add https://github.com/whytryharder/superpowersHow this skill works
- 1Log in once with `belt login`.
- 2Choose an app such as `x/post-create`, `x/post-like` or `x/dm-send`, using the list from `belt app list`.
- 3Pass the action inputs as JSON, for example a `text` field for a post or a `tweet_id` field for a like.
- 4For media, run `belt app sample x/post-create --save input.json`, edit the file to add a `media` list of URLs, then run it with `--input input.json`.
- 5To post generated media, run an image or video app first and put the URL of its output in the `media` list of `x/post-create`.
Are you the author of this skill? Add its rank to your GitHub repo
The badge updates every day and links back to this page.
[](https://linkly.ai/skills/s/whytryharder/superpowers/twitter-automation)