X Content Optimization Tool - Powered by X algorithm insights + bird CLI + AI
xboost helps you create more engaging content on X by applying insights from the actual X recommendation algorithm. It integrates with the bird CLI to analyze your posts, and uses Claude AI to generate optimized content.
- Analyzes your posting patterns - See what's working and what's not
- Scores posts before publishing - Get feedback on engagement potential
- Shows algorithm weights - Understand exactly what X optimizes for
- Optimizes any text - Turn rough ideas into engaging posts
- Generates posts from URLs - Smart ways to share links
- Creates smart replies - Reply options for any tweet
- Builds full threads - Algorithm-optimized thread generation
- Improves existing posts - Analysis + rewrite suggestions
- Generate → Approve → Queue → Post - Full automation from topics to published content
- AI approval gates - Quality review before posting
- Cron scheduling - Set it and forget it
- Rate limiting - Algorithm-aware posting intervals
- See PROSE_GUIDE.md for complete workflow documentation
Based on the X algorithm source:
| Signal | Weight | Impact |
|---|---|---|
| Reply | 11x | Replies are worth 11x a like! |
| Follow | 10x | New followers are huge |
| Repost/Quote/Share | 4x | Distribution signals |
| Like | 1x | Baseline positive signal |
| Block | -50x | Very negative |
| Report | -100x | Strongest negative |
Key insight: Posts that drive conversation (replies) rank MUCH higher than posts that just get likes.
- Node.js 20+
- bird CLI - Install from bird.fast:
npm install -g @steipete/bird bird whoami # Verify authentication - Claude API key (for AI features):
export ANTHROPIC_API_KEY=your-key-here
# Clone or copy the xboost folder
cd xboost
npm install
npm link # Makes 'xboost' available globallyOr run directly:
node src/index.js <command>Analyze your posts and engagement patterns.
xboost analyze # Analyze logged-in user
xboost analyze -u steipete # Analyze specific user
xboost analyze -n 100 # Analyze last 100 postsScore a potential post before publishing.
xboost score "Just shipped a new feature! Here's what I learned:"
xboost score "Check out my post" --media # Include media boostShow all X algorithm engagement weights.
xboost weightsShow algorithm-based best practices.
xboost tipsTurn any rough idea into optimized posts.
xboost optimize "I just learned something cool about AI agents"
xboost optimize "launching my new project tomorrow" --context "developer audience"Returns 4 variations: hook version, question version, thread opener, hot take.
Generate posts to share a link.
xboost generate https://example.com/article
xboost gen https://x.com/user/status/123 # Works with tweets tooAI creates multiple angles: value-add, question, contrarian take, thread opener.
Generate smart reply options for any tweet.
xboost reply-gen https://x.com/elonmusk/status/123456789Returns 4 reply options: add value, ask question, share experience, friendly challenge.
Generate a full algorithm-optimized thread.
xboost thread "lessons from building in public"
xboost thread "AI tools" --tweets 10 # Specify length
xboost thread "startup advice" --content "my notes about fundraising..."Creates a complete thread with hook, body tweets, and CTA.
Analyze and improve an existing post.
xboost improve "Check out my new project, it's really cool"Returns analysis of what's weak + 2 improved versions.
Generate, review, and schedule content automatically - Complete workflow from topics to posted content.
See PROSE_GUIDE.md for complete documentation.
Generate post variations from topics or URLs.
# From topics
xboost prose "AI agents" "building in public"
# From URLs
xboost prose https://example.com/article
# Mix both
xboost prose "startup tips" https://article.com
# With context
xboost prose "AI" --context "developer audience, technical depth"Generates 4 variations per input (hook, question, thread, hot take), scores each, and saves to .prose/posts/.
AI agent reviews and approves/rejects pending posts.
# Approve all pending
xboost approve
# Approve specific posts
xboost approve abc123 def456AI reviews each post for quality, brand fit, and algorithm optimization. Approved posts move to queue.
View posts by status.
# View approved queue
xboost queue
# View pending posts
xboost queue --status pending
# View posted content
xboost queue --status posted --limit 5Post from queue or view status/stats.
# Post one from queue
xboost lobster
# Post multiple
xboost lobster --count 3
# Dry run (preview)
xboost lobster --dry-run
# Check queue status
xboost lobster --status
# View posting stats
xboost lobster --stats
# Show failures
xboost lobster --failedPosts highest-scoring approved content with rate limiting (30min minimum gap).
Daily Automation Example:
# Generate at 9 AM
0 9 * * * cd /path/to/xboost && node index.js prose "topic1" "topic2"
# Auto-approve at 9:15 AM
15 9 * * * cd /path/to/xboost && node index.js approve
# Post every 2 hours (10 AM - 6 PM)
0 10,12,14,16,18 * * * /path/to/xboost/cron-lobster.shSee PROSE_GUIDE.md for:
- Complete workflow explanation
- Configuration options
- Cron setup examples
- Troubleshooting guide
Get algorithm-optimized post templates.
xboost suggest "AI agents"Generate template-based drafts.
xboost draft "building in public" --type thread
xboost draft "startup fail" --type storyGet template-based suggestions for a URL (use generate for AI version).
xboost check https://x.com/user/status/123# AI optimizes your rough thought into 4 variations
xboost optimize "finally figured out why my docker builds were slow"
# Pick your favorite, copy, post!# AI generates multiple angles to share the link
xboost generate https://interesting-article.com# AI generates smart reply options
xboost reply-gen https://x.com/someone/status/123
# Pick the best one, post via bird:
bird reply https://x.com/someone/status/123 "your chosen reply"# AI generates a complete thread
xboost thread "5 things I learned building my startup"
# Post via bird:
bird tweet "first tweet of thread"
bird reply <tweet-id> "second tweet"
# etc.# Score your draft
xboost score "my draft post here"
# If score is low, get AI improvements
xboost improve "my draft post here"# 1. Generate posts in the morning
xboost prose "AI agents" "startup lessons" "building in public"
# → Creates 12 post variations (4 per topic), all scored
# 2. Review and approve (manual or AI)
xboost queue --status pending # Preview pending posts
xboost approve # AI reviews and approves quality posts
# 3. Check what's ready to post
xboost queue # View approved queue
# 4. Post when ready
xboost lobster # Posts highest-scoring approved post
xboost lobster --dry-run # Preview without posting
# 5. Monitor
xboost lobster --stats # See posting statistics
xboost lobster --failed # Check for any failuresOr set up cron for full automation - See PROSE_GUIDE.md
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY |
Claude API key for AI features |
CLAUDE_API_KEY |
Alternative name for API key |
- Sweet spot: ~100 characters
- Thread when: >200 characters
- Min gap: 30 minutes (avoid flood penalty)
- Ideal gap: 2+ hours
- Max effective/day: ~5 posts
- Personal stories
- Hot takes (contrarian views)
- Tutorials & tips
- Behind-the-scenes
- Data visualizations
- Curated threads
- "I spent X hours/days/years..."
- "Here's what nobody tells you about..."
- "The biggest mistake I see..."
- "Unpopular opinion:"
- "X things I learned from..."
MIT
Created by Yossi Elkrief (@MaTriXy)
- X Algorithm - Algorithm insights
- bird CLI by @steipete - X CLI integration
- Claude - AI content generation