By the-focus-ai
Twitter/X API integration - post tweets, read timeline, manage lists, engage with content, network analysis
npx claudepluginhub the-focus-ai/claude-marketplace --plugin twitter-skillA Claude Code plugin for full Twitter/X API integration with OAuth 2.0 PKCE authentication.
# Install dependencies
pnpm install
# Set up credentials (supports 1Password or manual entry)
pnpm tsx scripts/twitter.ts setup
# Authenticate with Twitter
pnpm tsx scripts/twitter.ts auth
# Get your profile
pnpm tsx scripts/twitter.ts me
setup # Configure API credentials
auth # Run OAuth flow
check # Verify authentication status
me [--email] # Get authenticated user info
user <username> # Get user by username
user-id <id> # Get user by ID
users <id1,id2,...> # Get multiple users by IDs (max 100)
post "text" # Post a tweet
delete <id> # Delete a tweet
tweet <id> # Get a single tweet
tweets # Get my recent tweets
timeline # Get home timeline
like <id> # Like a tweet
unlike <id> # Unlike a tweet
retweet <id> # Retweet
unretweet <id> # Undo retweet
search "query" # Search tweets
lists # Get my lists
list <id> # Get list details
list-members <id> # Get members of a list
list-add <list-id> <user-id> # Add user to list
list-remove <list-id> <user-id> # Remove user from list
list-create "name" [--private] # Create a new list
list-delete <id> # Delete a list
Every API call logs rate limit status:
[rate-limit] /users/me: 1199997/1200000, resets in 13m
[rate-limit] /lists/.../members: 2/5 (low), resets in 14m
[rate-limit] /tweets: 0/50 (CRITICAL), resets in 5m
If you have 1Password CLI installed, credentials are loaded from:
op://Development/Twitter Client ID/notesPlainop://Development/Twitter Client Secret/notesPlainCreate ~/.config/twitter-skill/credentials.json:
{
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET"
}
Tokens are stored per-project at .claude/twitter-skill.local.json, allowing different projects to use different Twitter accounts.
Add to your Claude Code plugins to use Twitter from any project:
# From Claude Code
/twitter post "Hello from Claude Code!"
/twitter timeline
/twitter lists
MIT
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Creative skill for generating algorithmic and generative art. Produces visual designs using mathematical patterns, fractals, and procedural generation.
Frontend design skill for UI/UX implementation
Humanise text and remove AI writing patterns. Detects and fixes 24 AI tell-tales including inflated language, promotional tone, AI vocabulary, filler phrases, sycophantic tone, and formulaic structure.
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). Proactively activates in projects with cacheComponents: true, providing patterns for 'use cache' directive, cacheLife(), cacheTag(), cache invalidation, and parameter permutation rendering.