# Twitter Agent

Build and run a Twitter/X agent with a distinct personality and automated workflows

- Repository: https://github.com/BankrBot/skills (1208 stars)
- Category: AI and agents
- License: see repository
- Last updated: 2026-10-31
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add BankrBot/skills --skill twitter-agent -g -a claude-code -y`
Codex: `npx skills add BankrBot/skills --skill twitter-agent -g -a codex -y`
Cursor: `npx skills add BankrBot/skills --skill twitter-agent -g -a cursor -y`
Gemini CLI: `npx skills add BankrBot/skills --skill twitter-agent -g -a gemini-cli -y`

## Description

Build and run a Twitter/X agent with a distinct personality and automated workflows

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Twitter Agent Skill

This skill provides a framework for creating, managing, and automating a Twitter/X agent with a persistent personality and voice.

## Prerequisites

### X Account Setup (REQUIRED, Do This First)

Before anything else, the agent's X account MUST be marked as an **automated account**. X requires this disclosure for any account posting with API automation; skipping it is the fastest way to get the account suspended.

**Exact path (do this once, while logged in as the agent account):**
1. Log in to x.com as the agent account.
2. Go to **Settings and privacy** → **Your account** → **Account information**.
3. Scroll to **Automation** and tap it.
4. Re-enter the password when prompted.
5. Set **Managing account** to the human/handle responsible for the bot and save.

Direct link: https://x.com/settings/account/automation

This adds the "Automated by @…" label to the profile and replies. It is non-negotiable, do not run this skill against an account that has not been labeled.

### Environment Variables

Set these 4 variables in your Bankr settings (gear icon -> Env Vars). Generate them from the [X Developer Portal](https://developer.x.com/en/portal/dashboard) with **Read and Write** permissions enabled:

- `X_API_KEY`: Consumer Key (OAuth 1.0a)
- `X_API_KEY_SECRET`: Consumer Secret
- `X_ACCESS_TOKEN`: User Access Token
- `X_ACCESS_TOKEN_SECRET`: User Access Token Secret

### Approval Channel for Automations

Bankr automations natively support routing their output to Telegram. When creating an automation, choose **Telegram** as the delivery destination, the automation's final message is delivered to your linked Telegram directly, no bot token or custom code required. Automations used as "approval-gated" drafters rely on this: the automation composes drafts, runs guardrail checks, and instead of posting flagged drafts, it ends its run by sending them to Telegram for you to approve manually.

The rest: https://github.com/BankrBot/skills/blob/HEAD/bankr-twitter-agent/SKILL.md
