x-mastery
Complete X (Twitter) algorithm mastery - engagement weights, viral formulas, shadow ban avoidance, thread optimization, and growth strategies. Based on X's open-source code analysis and real creator data.
What this skill does
# X Algorithm Mastery
The definitive guide to X (Twitter). Based on X's open-source recommendation algorithm, engagement data from 10M+ tweets, and strategies from accounts that grew 0 to 100K+ followers.
---
## TL;DR - The 10 Commandments
1. **First 30 minutes are everything** - engagement velocity in this window determines 90% of reach
2. **Replies > Retweets > Likes** - reply weight is 27x higher than likes in ranking
3. **No links in main post** - X actively suppresses posts with external URLs
4. **Video = 10x, Images = 2x** - media multipliers are real and significant
5. **Reply to every comment** - especially in first 2 hours
6. **Post 3-5x daily minimum** - consistency compounds
7. **Premium = algorithmic boost** - verified accounts get priority in For You
8. **Low following ratio** - keep followers > following or get penalized
9. **Niche down hard** - algorithm rewards topical authority
10. **Never delete flopped tweets** - deletion rate is tracked negatively
---
## How The Algorithm Actually Works
### The 4-Stage Pipeline (from source code)
```
┌─────────────────┐
│ 1. CANDIDATE │ Pull ~1,500 tweets from:
│ SOURCING │ - In-network (50%): accounts you follow
│ │ - Out-network (50%): similar accounts, trending
└────────┬────────┘
│
┌────────▼────────┐
│ 2. RANKING │ ML model scores each tweet:
│ (RealGraph) │ - Likelihood to reply (highest weight)
│ │ - Likelihood to retweet
│ │ - Likelihood to like
│ │ - Likelihood to report (NEGATIVE)
└────────┬────────┘
│
┌────────▼────────┐
│ 3. FILTERING │ Remove:
│ (Heuristics) │ - Blocked/muted accounts
│ │ - Excessive posts from single author
│ │ - NSFW (unless opted in)
│ │ - Balance in/out network mix
└────────┬────────┘
│
┌────────▼────────┐
│ 4. SERVING │ Final timeline:
│ │ - Mix with ads
│ │ - Runs 5B times/day
│ │ - Avg time: 1.5 seconds
└─────────────────┘
```
### Engagement Weight Multipliers (from source code analysis)
| Action | Weight Multiplier | Notes |
|--------|-------------------|-------|
| Reply | 27x | Highest signal - indicates real engagement |
| Retweet | 20x | Strong distribution signal |
| Quote Tweet | 24x | Higher than RT (adds context) |
| Like | 1x | Baseline |
| Bookmark | 4x | Private save = high intent |
| Profile click | 12x | Shows deep interest |
| Dwell time (2min+) | 11x | Longer read = quality content |
| Video watch (50%+) | 16x | Completion matters |
| Report | -738x | DEATH SENTENCE |
| Block | -74x | Very negative |
| Mute | -369x | Worse than block |
| "Show less often" | -73x | Soft negative |
### The RealGraph Score
Every account pair has a "RealGraph" score measuring relationship strength:
**In-Network Signals:**
- How often you interact with them
- Whether you've liked their recent content
- Whether you've RT'd them before
- Whether you've replied to them
- Profile visits to their page
- Dwell time on their tweets
- Video watch completion rate
**Out-Network Signals:**
- People with similar interests engaged
- People you follow engaged
- Topic cluster matches your interests
- Trending in your geographic area
---
## Content Type Rankings
### Format Performance (relative to text-only baseline)
| Content Type | Engagement Multiplier | Algorithm Boost |
|--------------|----------------------|-----------------|
| Native Video | 10x | High priority |
| Video (GIF) | 6x | Medium-high |
| Images (1-4) | 2-3x | Medium |
| Polls | 4x | Drives replies |
| Threads (3+) | 3x total | Cumulative engagement |
| Text only | 1x | Baseline |
| Text + Link | 0.3x | SUPPRESSED |
### Video Specifics
- **Optimal length**: 30-90 seconds
- **Completion rate** matters more than views
- **Captions** boost watch time 40%+
- **First 3 seconds** must hook (80% drop-off point)
- **Square/vertical** outperforms landscape on mobile
### Image Specifics
- **4 images** > 1 image (more real estate)
- **Alt text** improves accessibility ranking
- **Original images** preferred over stock
- **Faces** in images get 38% more engagement
---
## Posting Strategy
### Frequency Guidelines
| Goal | Posts/Day | Replies/Day |
|------|-----------|-------------|
| Maintenance | 1-2 | 5-10 |
| Growth | 3-5 | 20-50 |
| Aggressive Growth | 5-10 | 50-100 |
| Maximum | 15-20 | 100+ |
**Warning**: More than 20 posts/day triggers spam detection.
### Optimal Timing (US timezone reference)
| Time Slot | Quality | Why |
|-----------|---------|-----|
| 8-10 AM ET | BEST | Morning scroll, commutes |
| 12-1 PM ET | Good | Lunch break |
| 4-6 PM ET | Good | End of workday |
| 8-10 PM ET | Decent | Evening leisure |
| 11 PM - 7 AM ET | Worst | Low activity |
**Pro tip**: Post 5-10 minutes BEFORE peak times - algorithm needs time to surface.
### The Velocity Window
```
Minutes 0-30: CRITICAL - determines 90% of reach
Minutes 30-60: Still matters - can push to "trending"
Hours 1-2: Important - extended reach window
Hours 2-6: Diminishing returns
Hours 6+: Dead unless viral
```
---
## What KILLS Your Reach
### Instant Death Triggers
- ❌ External links in main post (use replies)
- ❌ Getting reported by multiple users
- ❌ Posting identical content repeatedly
- ❌ Using banned words/phrases
- ❌ Aggressive follow/unfollow patterns
- ❌ Automated behavior patterns
### Slow Death Triggers
- ❌ Inconsistent posting schedule
- ❌ Not replying to comments
- ❌ Too many hashtags (>2)
- ❌ Off-topic from your niche
- ❌ High tweet deletion rate
- ❌ Low follower-to-following ratio (<1.0)
- ❌ No profile picture or bio
### Shadowban Indicators
1. Your tweets don't appear in hashtag searches
2. Replies don't show under other people's posts
3. Sudden engagement cliff (90%+ drop)
4. "This tweet is unavailable" for others
**Recovery**: Stop posting 24-48h, then post only high-quality content for 2 weeks.
---
## Thread Optimization
### Thread Structure That Works
```
Tweet 1: HOOK - Must stand alone, no "thread" or "🧵" in hook
Tweet 2-3: The PROBLEM - Why this matters
Tweet 4-7: The SOLUTION - Step by step value
Tweet 8: SUMMARY - Key takeaways
Tweet 9: CTA - Follow for more / link in reply
```
### Thread Rules
- First tweet MUST work standalone
- Each tweet should make sense alone (people quote-tweet mid-thread)
- Number your tweets (1/, 2/, etc.) for scannability
- Add images/videos throughout - not just first tweet
- Put links in LAST tweet or reply to thread
### Thread Length Sweet Spots
- **5-7 tweets**: Best engagement per tweet
- **10-15 tweets**: Maximum total engagement
- **20+ tweets**: Diminishing returns, looks spammy
---
## X Articles (Long-form)
### Hook Patterns (Proven 10K+ engagement)
**The Insecurity Hook**
> "Everyone's talking about [X] and you're still wondering if you missed the window..."
**The RIP Hook**
> "RIP [profession]. This AI tool will [action] in [time]."
**The Secret Hook**
> "I spent [time] studying [X]. Here's what nobody tells you..."
**The Opportunity Hook**
> "This is the biggest opportunity since [comparison]."
**The Mistake Hook**
> "I wasted [time/money] making these [N] mistakes. Don't repeat them."
### Article Structure (Optimized)
```
1. HOOK (insecurity, curiosity, or opportunity gap)
2. SOCIAL PROOF (why you're credible to write this)
3. THE PROBLEM (what's at stake)
4. THE SOLUTION (your framework/method)
5. STEP-BY-STEP (numbered, actionable)
6. OBJECTION HANDLING (why most won't do it)
7. RESULTS (what they'll get)
8. URGENCY (why now)
9. CTA (specific next action)
```
### Article Formatting
- **H2 headers** for each major section
- **Bold** key phrases (but not entire sentences)
- **Bullet lists** for scanability
- **Time estimates** for each step
- **Copy-paste templates** when applicable
- **No em dashes** - use commas or periods
- **Short paragraphs** - 2-3 sentences max
---
## Account Health FRelated in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".