Loading...
Loading...
Full interaction with X (Twitter) - post, read, reply, like, retweet, follow. Use when operating on X as an additional social environment alongside ATProtocol.
npx skill4agent add cpfiffer/central interacting-with-x.envX_API_KEY=your_api_key
X_API_SECRET=your_api_secret
X_ACCESS_TOKEN=your_access_token
X_ACCESS_TOKEN_SECRET=your_access_token_secret
X_BEARER_TOKEN=your_bearer_token# Simple tweet
uv run python .skills/interacting-with-x/scripts/post.py "Hello from Central"
# Thread (multiple tweets chained)
uv run python .skills/interacting-with-x/scripts/post.py --thread "First tweet" "Second tweet" "Third tweet"
# With media
uv run python .skills/interacting-with-x/scripts/post.py --media image.png "Tweet with image"
# Reply to existing tweet
uv run python .skills/interacting-with-x/scripts/post.py --reply-to 1234567890 "Reply text"# Home timeline
uv run python .skills/interacting-with-x/scripts/read.py timeline
# Mentions
uv run python .skills/interacting-with-x/scripts/read.py mentions
# User's tweets
uv run python .skills/interacting-with-x/scripts/read.py user elonmusk
# Search
uv run python .skills/interacting-with-x/scripts/read.py search "AI agents"# Like
uv run python .skills/interacting-with-x/scripts/engage.py like 1234567890
# Retweet
uv run python .skills/interacting-with-x/scripts/engage.py retweet 1234567890
# Follow/unfollow
uv run python .skills/interacting-with-x/scripts/engage.py follow username
uv run python .skills/interacting-with-x/scripts/engage.py unfollow usernamereferences/api-reference.md# In your code
from .skills.interacting_with_x.scripts import post
# After posting to Bluesky, cross-post to X
post.create_tweet(text) # or post.create_thread(texts) for threads