Skip to content
Back to skills

Twitter

ASecurity

Launch the X/Twitter Poster Agent to auto-create and publish tweets. Use when: user types /twitter, /x, wants to post tweets, create threads, write X content, or manage Twitter posts. Keywords: twitter, x, tweet, thread, 推文, 发推, 推特

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agentspythonshellbashapi

Works with

  • terminal
  • api

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add shengdabai/Tony-Claude-Code-Skills --skill twitter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Twitter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Twitter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shengdabai-twitter/badge)](https://www.skillsdirectory.com/skills/shengdabai-twitter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: twitter
description: |
  Launch the X/Twitter Poster Agent to auto-create and publish tweets.
  Use when: user types /twitter, /x, wants to post tweets, create threads,
  write X content, or manage Twitter posts.
  Keywords: twitter, x, tweet, thread, 推文, 发推, 推特
---

# X/Twitter Poster Agent

Auto-create and publish tweets and threads to X/Twitter.

## What it does
1. Takes a topic/direction from the user
2. Generates tweet content (single tweet or thread)
3. Saves draft for review
4. Posts to X/Twitter via API v2

## How to launch

Run the agent in the terminal:

```bash
cd ~/x-poster && python3 x-poster.py
```

Then interact:
```
x-post >> 写一条关于AI agent发展趋势的推文
x-post >> 写一个5条的thread,主题是为什么每个开发者都应该学AI
x-post >> 查看我最近发布的推文
```

## Quick mode (non-interactive)

```bash
cd ~/x-poster && python3 -c "
from dotenv import load_dotenv; load_dotenv(override=True)
exec(open('x-poster.py').read().split('if __name__')[0])
history = [{'role': 'user', 'content': 'YOUR_TOPIC_HERE'}]
agent_loop(history)
"
```

## Available tools in the agent
- `bash` — shell commands
- `read_file` / `write_file` — file/draft operations
- `post_tweet` — publish a single tweet (max 280 chars)
- `post_thread` — publish a thread (auto-chained replies)
- `get_my_tweets` — fetch recent tweets with engagement metrics

## Writing guidelines (built into agent)
- Concise and punchy, under 280 chars per tweet
- Thread hook: first tweet grabs attention
- 2-3 hashtags, tasteful emoji use
- End with CTA (call to action)
- Agent always shows draft before posting

## Configuration
- LLM API: `~/x-poster/.env` (Kimi/Anthropic compatible)
- X API: `~/x-poster/.env` (API Key + Access Token with Read/Write)
- Drafts: `~/x-poster/drafts/`
- Post history: `~/x-poster/post_history.jsonl`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.