Aripin171103/x-actions — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a simple Python toolkit for automating basic X Twitter actions using logged in cookies. I want to be able to like a tweet, retweet or quote it, follow a user, and post a tweet from code.

Please include two ways to run actions. The first should use X requests with auth cookies from a .env file and should support multiple accounts, rotate between available accounts, and retry when rate limited. The second should use a browser connection through CloakBrowser and inject small JavaScript scripts that click the page buttons directly, so it can still work when the API starts returning limit or automation errors.

Make it easy to set up with an example .env file, clear README instructions for getting auth_token and ct0 cookies from x.com, and simple example commands or code showing how to run each action. Keep it lightweight, just Python plus whatever small dependencies are needed, and add separate scripts for login, navigation, and the browser click actions.

Want more depth? Deep Reverse