tweet-composer

CLI Utilities
v1.0.0
Benign

Score and optimize tweets based on X's real open-source ranking algorithm.

582 downloads582 installsby @minilozio

Setup & Installation

Install command

clawhub install minilozio/tweet-composer

If the CLI is not installed:

Install command

npx clawhub@latest install minilozio/tweet-composer

Or install with OpenClaw CLI:

Install command

openclaw skills install minilozio/tweet-composer

or paste the repo link into your assistant's chat

Install command

https://github.com/openclaw/skills/tree/main/skills/minilozio/tweet-composer

What This Skill Does

Scores and optimizes tweet drafts using rules derived from X's open-source ranking algorithm. X's For You feed ranks tweets via a transformer model (Phoenix) that predicts 19 engagement actions; this skill encodes those structural rules into a scoring engine. Works for single tweets and threads.

Scores against X's actual open-source ranking weights rather than generic social media tips.

When to Use It

  • Scoring a draft before posting to estimate For You reach
  • Rewriting a tweet that got less engagement than expected
  • Structuring a thread for maximum first-tweet hook performance
  • Diagnosing why a specific past tweet underperformed
  • Deciding how many tweets to post in a day without triggering author diversity penalties
View original SKILL.md file
# Tweet Composer

Score and optimize tweets using rules derived from X's open-source ranking algorithm.

## How It Works

X's "For You" feed is ranked by a Grok-based transformer (Phoenix) that predicts 19 engagement
actions for every candidate tweet. The final score is a weighted sum of these predictions.
This skill encodes the structural rules from that pipeline into a scoring system.

For the full algorithm breakdown, read `references/algorithm-rules.md`.

## Scoring a Draft Tweet

When a user asks to score or optimize a tweet draft:

1. Read `references/algorithm-rules.md` for the complete rules engine
2. Analyze the draft against all rules
3. Output the score card in this format:

```
๐Ÿฆ Tweet Composer โ€” Score: XX/100

[Category scores with โœ… โš ๏ธ โŒ indicators]

๐Ÿ“Š Predicted Action Boost:
โ”œโ”€ P(reply): [assessment]
โ”œโ”€ P(favorite): [assessment]  
โ”œโ”€ P(share): [assessment]
โ”œโ”€ P(dwell): [assessment]
โ””โ”€ P(not_interested): [assessment]

๐Ÿ’ก Suggestions:
โ†’ [actionable improvements]

โœ๏ธ Optimized version:
"[rewritten tweet]"
```

## Scoring Rubric (Quick Reference)

Score 0-100 based on weighted categories:

| Category | Weight | What to check |
|----------|--------|---------------|
| Reply potential | 25 | Questions, opinions, CTAs that drive replies |
| Media | 20 | Native image/video attached (not link previews) |
| Shareability | 15 | Would someone DM this or copy the link? |
| Dwell time | 15 | Length that makes people stop scrolling |
| Content quality | 10 | Clear, original, not generic |
| Format | 10 | No links in body, no hashtags, good length |
| Negative signals | 5 | Risk of not_interested/mute/block |

## Thread Optimization

When composing threads:
- First tweet = strongest hook (DedupConversationFilter keeps only the best per conversation)
- 3-6 tweets max (short threads > mega-threads)
- Each tweet self-contained (many see only the first)
- Media on tweet 1 or 2 for photo_expand boost
- CTA in last tweet

## Quick Rules (No Reference File Needed)

- **Links:** Always in reply, never in body (learned penalty from lower engagement)
- **Hashtags:** Zero. The model learns they reduce engagement
- **Length:** 100-200 chars sweet spot for single tweets
- **Media:** Native image/video = separate P(photo_expand) and P(video_quality_view) predictions
- **Video:** Must exceed minimum duration threshold for VQV weight to apply
- **Timing:** Post when your audience is active โ€” engagement velocity in first 30 min is critical
- **Frequency:** AuthorDiversityScorer penalizes exponentially: 2nd post ~55% score, 3rd ~33%. Max 3-4 strong tweets/day
- **Quote tweets:** P(quote) has dedicated weight โ€” QTs with added value outperform plain retweets
- **Engagement bait:** Questions/polls drive P(reply). "What would you add?" > "Like if you agree"

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Scoring a draft before posting to estimate For You reach

AGENT
  1. 1Scoring a draft before posting to estimate For You reach
  2. 2Rewriting a tweet that got less engagement than expected
  3. 3Structuring a thread for maximum first-tweet hook performance
  4. 4Diagnosing why a specific past tweet underperformed
  5. 5Deciding how many tweets to post in a day without triggering author diversity penalties
OUTPUT
Score and optimize tweets based on X's real open-source ranking algorithm.

Share this skill

Security Audits

VirusTotalBenign
OpenClawBenign
View full report

These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.

Details

LanguageMarkdown
Last updatedFeb 25, 2026