X Algorithm Mastery
Everything you need to know about the X (Twitter) algorithm. Based on X's open-source code, viral post analysis, and real engagement data.
TL;DR - The Golden Rules
- First 2 hours are critical — replies/engagement in this window determine reach
- No external links in main post — X penalizes links that take users off-platform
- Media > Text — videos get 10x engagement, images get 2-3x
- Reply to EVERYTHING — replies are weighted higher than likes/retweets
- Post when audience is awake — 8 AM - 2 PM weekdays optimal
- Controversy drives engagement — but pick battles wisely
- Threads outperform single tweets — for long-form content
How the Algorithm Works
The 4-Step Process
- Candidate Sourcing: Pulls
1,500 tweets from accounts you follow (50%) and similar accounts
- Ranking: ML model scores likelihood you'll reply (highest), retweet, like, or report (negative)
- Filtering: Removes blocked/muted, balances in/out-network, limits single author
- Serving: Final mix with ads, 5B times/day, ~1.5 seconds
Engagement Weight Hierarchy
| Action |
Weight |
| Replies |
Highest |
| Retweets |
High |
| Quote Tweets |
High (2x regular posts) |
| Likes |
Medium |
| Bookmarks |
Medium |
| Views |
Low |
| Reports |
Negative (kills reach) |
Ranking Signals
1. Recency
- Fresh content prioritized
- Peak visibility: first 2-3 hours
2. Engagement Velocity
- Speed matters more than total
- 100 likes in 30 min > 500 likes over 24 hours
3. Account Credibility
- Verified (Premium) gets boost
- Follower-to-following ratio matters
- History of bans/strikes hurts
4. Content Type
- Video: 10x engagement
- Images: 2-3x engagement
- Polls: Drives replies
- Threads: Higher total engagement
5. Link Presence
- Links = REACH PENALTY
- Put links in replies, not main post
- Quote tweeting a link > direct link
What Kills Your Reach
Instant Death
- ❌ External links in main post
- ❌ Getting reported/blocked
- ❌ Posting same content repeatedly
- ❌ Too many hashtags (>2)
Slow Death
- ❌ Posting inconsistently
- ❌ Not replying to comments
- ❌ Off-topic from your niche
- ❌ Corporate/formal tone
Posting Best Practices
Frequency
| Goal |
Posts/Day |
| Minimum |
2-3 |
| Growth |
5-10 |
| Maximum |
15-30 |
Timing (audience timezone)
- Best: 8 AM - 2 PM weekdays
- Good: 4 PM - 6 PM weekdays
- Worst: 11 PM - 7 AM
The No-Link Strategy
❌ Bad: "Check out my article [link]"
✅ Good: "Here's what I learned (thread 🧵)"
→ Link in reply or final thread post
Getting Replies (Most Important)
- Ask questions — open-ended or controversial
- Hot takes — polarizing opinions get "actually..." replies
- Fill in the blank — "The best movie ever is ___"
- Predictions — people love to disagree
- Personal stories — "This happened to me..."
X Article Best Practices
Hook Patterns That Work
Insecurity/FOMO:
"everyone's talking about X... and you're sitting there wondering if you missed the window"
Big Opportunity:
"this is the biggest opportunity of our lifetime"
RIP Pattern:
"RIP [profession]. This AI tool will [action] in seconds."
Article Structure
1. HOOK (insecurity or opportunity)
2. WHAT IT IS (with social proof)
3. WHY MOST WON'T DO IT (address objections)
4. THE [X]-MINUTE GUIDE (step-by-step)
5. YOUR FIRST [N] WINS (immediate value)
6. THE COST (value comparison)
7. THE WINDOW (urgency)
8. CTA
Style Tips
- Clear H2 section headers
- Bullet lists for scanability
- Bold key phrases
- Time estimates for each step
- Copy-paste commands/prompts
Quick Checklist
Before posting:
Growth Hacks
Reply Guy Strategy
Turn on notifications for big accounts → be first with thoughtful reply → their audience discovers you
Thread Takeover
Find viral post in your area → quote tweet with "Let me explain why..." → add genuine value
Personality Posts
Every 5-10 posts, share something personal. Builds connection → higher engagement.
Sources
- X Algorithm GitHub (open source)
- Hootsuite, Sprout Social, SocialBee guides
- Analysis of viral articles (Damian Player, Alex Finn, Dan Koe)
Installation
clawdhub install NextFrontierBuilds/x-algorithm
Built by @NextXFrontier
1---
2name: x-algorithm
3description: X (Twitter) algorithm rules & viral strategies for AI agents. Boost engagement, avoid reach death. Works with Cursor, Claude, ChatGPT, Copilot. Vibe-coding ready.
4version: 1.0.3
5author: NextFrontierBuilds
6keywords: [x, twitter, algorithm, viral, engagement, social-media, growth, content-strategy, ai-agent, ai-coding, claude, cursor, copilot, github-copilot, chatgpt, openclaw, moltbot, vibe-coding, automation, ai-tools, developer-tools, devtools, typescript, llm]
7metadata:
8 source: https://skillmd.com/skills/modbender/x-algorithm
9---
10
11# X Algorithm Mastery
12
13Everything you need to know about the X (Twitter) algorithm. Based on X's open-source code, viral post analysis, and real engagement data.
14
15## TL;DR - The Golden Rules
16
171. **First 2 hours are critical** — replies/engagement in this window determine reach
182. **No external links in main post** — X penalizes links that take users off-platform
193. **Media > Text** — videos get 10x engagement, images get 2-3x
204. **Reply to EVERYTHING** — replies are weighted higher than likes/retweets
215. **Post when audience is awake** — 8 AM - 2 PM weekdays optimal
226. **Controversy drives engagement** — but pick battles wisely
237. **Threads outperform single tweets** — for long-form content
24
25---
26
27## How the Algorithm Works
28
29### The 4-Step Process
30
311. **Candidate Sourcing**: Pulls ~1,500 tweets from accounts you follow (~50%) and similar accounts
322. **Ranking**: ML model scores likelihood you'll reply (highest), retweet, like, or report (negative)
333. **Filtering**: Removes blocked/muted, balances in/out-network, limits single author
344. **Serving**: Final mix with ads, 5B times/day, ~1.5 seconds
35
36### Engagement Weight Hierarchy
37
38| Action | Weight |
39|--------|--------|
40| Replies | Highest |
41| Retweets | High |
42| Quote Tweets | High (2x regular posts) |
43| Likes | Medium |
44| Bookmarks | Medium |
45| Views | Low |
46| Reports | Negative (kills reach) |
47
48---
49
50## Ranking Signals
51
52### 1. Recency
53- Fresh content prioritized
54- Peak visibility: first 2-3 hours
55
56### 2. Engagement Velocity
57- Speed matters more than total
58- 100 likes in 30 min > 500 likes over 24 hours
59
60### 3. Account Credibility
61- Verified (Premium) gets boost
62- Follower-to-following ratio matters
63- History of bans/strikes hurts
64
65### 4. Content Type
66- **Video**: 10x engagement
67- **Images**: 2-3x engagement
68- **Polls**: Drives replies
69- **Threads**: Higher total engagement
70
71### 5. Link Presence
72- **Links = REACH PENALTY**
73- Put links in replies, not main post
74- Quote tweeting a link > direct link
75
76---
77
78## What Kills Your Reach
79
80### Instant Death
81- ❌ External links in main post
82- ❌ Getting reported/blocked
83- ❌ Posting same content repeatedly
84- ❌ Too many hashtags (>2)
85
86### Slow Death
87- ❌ Posting inconsistently
88- ❌ Not replying to comments
89- ❌ Off-topic from your niche
90- ❌ Corporate/formal tone
91
92---
93
94## Posting Best Practices
95
96### Frequency
97| Goal | Posts/Day |
98|------|-----------|
99| Minimum | 2-3 |
100| Growth | 5-10 |
101| Maximum | 15-30 |
102
103### Timing (audience timezone)
104- **Best**: 8 AM - 2 PM weekdays
105- **Good**: 4 PM - 6 PM weekdays
106- **Worst**: 11 PM - 7 AM
107
108### The No-Link Strategy
109```
110❌ Bad: "Check out my article [link]"
111✅ Good: "Here's what I learned (thread 🧵)"
112 → Link in reply or final thread post
113```
114
115---
116
117## Getting Replies (Most Important)
118
119- **Ask questions** — open-ended or controversial
120- **Hot takes** — polarizing opinions get "actually..." replies
121- **Fill in the blank** — "The best movie ever is ___"
122- **Predictions** — people love to disagree
123- **Personal stories** — "This happened to me..."
124
125---
126
127## X Article Best Practices
128
129### Hook Patterns That Work
130
131**Insecurity/FOMO:**
132> "everyone's talking about X... and you're sitting there wondering if you missed the window"
133
134**Big Opportunity:**
135> "this is the biggest opportunity of our lifetime"
136
137**RIP Pattern:**
138> "RIP [profession]. This AI tool will [action] in seconds."
139
140### Article Structure
141
142```
1431. HOOK (insecurity or opportunity)
1442. WHAT IT IS (with social proof)
1453. WHY MOST WON'T DO IT (address objections)
1464. THE [X]-MINUTE GUIDE (step-by-step)
1475. YOUR FIRST [N] WINS (immediate value)
1486. THE COST (value comparison)
1497. THE WINDOW (urgency)
1508. CTA
151```
152
153### Style Tips
154- Clear H2 section headers
155- Bullet lists for scanability
156- Bold key phrases
157- Time estimates for each step
158- Copy-paste commands/prompts
159
160---
161
162## Quick Checklist
163
164Before posting:
165- [ ] Under 280 chars? (If not, thread it)
166- [ ] First line hooks attention?
167- [ ] Reason to reply? (Question, hot take)
168- [ ] Good time to post?
169- [ ] No external links? (Move to reply)
170- [ ] Fits your niche?
171- [ ] Available to reply for 2 hours?
172
173---
174
175## Growth Hacks
176
177### Reply Guy Strategy
178Turn on notifications for big accounts → be first with thoughtful reply → their audience discovers you
179
180### Thread Takeover
181Find viral post in your area → quote tweet with "Let me explain why..." → add genuine value
182
183### Personality Posts
184Every 5-10 posts, share something personal. Builds connection → higher engagement.
185
186---
187
188## Sources
189- X Algorithm GitHub (open source)
190- Hootsuite, Sprout Social, SocialBee guides
191- Analysis of viral articles (Damian Player, Alex Finn, Dan Koe)
192
193---
194
195## Installation
196
197```bash
198clawdhub install NextFrontierBuilds/x-algorithm
199```
200
201Built by [@NextXFrontier](https://x.com/NextXFrontier)