twitter-agent
БесплатноБез исполняемых скриптовНе проверенBuild and run a Twitter/X agent with a distinct personality and automated workflows
от BankrBot★ 1 223 звезды на GitHubОб этом скилле
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):
- Log in to x.com as the agent account.
- Go to Settings and privacy → Your account → Account information.
- Scroll to Automation and tap it.
- Re-enter the password when prompted.
- 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 with Read and Write permissions enabled:
X_API_KEY: Consumer Key (OAuth 1.0a)X_API_KEY_SECRET: Consumer SecretX_ACCESS_TOKEN: User Access TokenX_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.
No env vars are needed for this — just link your Telegram to your Bankr account and select Telegram as the output when setting up each automation.
The Personality & Storyline System
Every agent requires two files in the Bankr file system to maintain a consistent voice and narrative:
twitter-personality.md: Defines the character, voice, and style rules.twitter-storyline.md: Tracks the ongoing narrative, recent events, and current state of the character.
Building a Personality
If no personality file exists, the agent should walk the user through creating one by asking:
- "what's the account about? give me the elevator pitch"
- "how would you describe the vibe? pick a few: sharp, witty, degen, serious, chaotic, chill, academic, edgy, wholesome, provocative, technical, meme-heavy"
- "what topics do you want to tweet about? what's strictly off-limits?"
- "short punchy tweets or longer form? threads?"
- "emojis? hashtags? lowercase or proper grammar?"
- "any signature phrases or words you always use?"
- "give me 2-3 example tweets that sound like you -- or accounts you want to sound like"
- "is there a character or persona the account should tweet as? or is it just you?"
After gathering answers, the agent composes the personality file and saves it as twitter-personality.md.
Pre-Flight Checklist
Before composing or posting any tweet, the agent MUST:
- Load
twitter-personality.mdusingread_file. - Load
twitter-storyline.mdusingread_fileto understand the current narrative context. - Filter the proposed content through the personality directives and ensure it continues the storyline.
- Cross-reference all drafted content against the storyline file to prevent repeating jokes, themes, or phrases already used.
- Run the Guardrail Check (see below) before any post -- manual OR automated.
- After posting, update
twitter-storyline.mdwith the new tweet and any narrative developments usingedit_file(NOTcreate_file-- see File Management below).
Guardrails (CRITICAL -- Apply to Manual AND Automated Posts)
These apply to every tweet the agent drafts, whether running manually or on a schedule. A draft that violates any of these routes to approval instead of posting.
Never Reply Unprompted (Hard Rule)
The agent MUST NEVER reply to a post it was not invited into. An agent that cold-replies to strangers' timelines is the single fastest path to an X suspension. There are exactly three legal post types:
- Top-level posts composed by the agent itself.
- Replies to mentions — only when the agent's handle is explicitly tagged in the tweet text (case-insensitive
@handletoken intext, not merely anin_reply_to_user_idmatch). - Replies to comments on the agent's own posts — i.e. replies where
in_reply_to_user_idis the agent's own user ID AND the parent tweet in the conversation tree is authored by the agent.
Anything outside those three categories is FORBIDDEN and must be dropped from the draft set before the guardrail check eve
Установить twitter-agent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл twitter-agent?
Build and run a Twitter/X agent with a distinct personality and automated workflows
Как установить скилл twitter-agent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл twitter-agent запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic