By the-focus-ai
Twitter/X API integration - post tweets, read timeline, manage lists, engage with content, network analysis
A 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
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub the-focus-ai/claude-marketplace --plugin twitter-skillGenerate images and videos using Google Gemini and Veo models. Provides skills for AI image generation, image editing, text-to-video, and image-to-video workflows.
QuickBooks Online read-only access for Claude Code using OAuth 2.0
Pocket Casts integration - access starred episodes, listening history, show notes, and podcast metadata
Claude Code skills for managing Hetzner servers, Cloudflare DNS, and Docker deployments
Google services integration for Gmail, Calendar, Sheets, Docs, and YouTube using OAuth 2.0
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Frontend design skill for UI/UX implementation
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Memory compression system for Claude Code - persist context across sessions
Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.